.profile-header {
  max-width: 1080px; /* Desktop max-width */
  margin: 48px auto 0 auto; /* Centered with 80px lateral margin for desktop */
  padding: 0;
}

.profile-header-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

.profile-header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.profile-header-names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-names-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.profile-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 50px;
  margin-bottom: 0;
  color: #000;
}

.profile-desc-links-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.profile-desc {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: #46464e;
  margin: 0;
}

.profile-links {
  display: flex;
  gap: 8px;
  height: 32px;
  border-radius: 40px;
}

.profile-description {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  color: #000;
  max-width: 656px;
  margin-top: 32px; /* Space below the row section */
}

.profile-description p {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.profile-header-photo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 200px;
}

.profile-header-photo img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Tablet styles */
@media (max-width: 1080px) {
  .profile-header {
    margin-left: 40px;
    margin-right: 40px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .profile-header {
    margin-left: 20px; /* Mobile lateral margin */
    margin-right: 20px; /* Mobile lateral margin */
  }

  .profile-header-row {
    flex-direction: row; /* Name/socials and image are row-aligned */
    align-items: flex-start;
    gap: 16px;
  }

  .profile-header-left {
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .profile-header-names {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-names-row {
    flex-direction: column; /* Valentina and Ferretti stacked */
    gap: 0;
  }

  .profile-name {
    font-size: 36px; /* Smaller font size for mobile */
  }

  .profile-desc-links-row {
    flex-direction: column; /* I learn I build and logos stacked */
    align-items: flex-start;
    gap: 4px;
  }

  .profile-desc {
    font-size: 16px; /* Smaller font size for mobile */
  }

  .profile-links {
    justify-content: flex-start;
  }

  .profile-header-photo {
    width: 120px; /* Smaller image width */
    height: 180px; /* Smaller image height */
    min-width: unset; /* Allow image to shrink */
  }

  .profile-header-photo img {
    width: 100%;
    height: 100%;
  }

  .profile-description {
    font-size: 16px; /* Smaller font size for mobile */
    max-width: 100%;
    margin-top: 16px; /* Adjust space below the row section */
  }
}

/* Existing responsive adjustments from the original css/styles.css */
@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
    text-align: center;
  }

  .post-info {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .post-thumb {
    width: 100%;
    height: auto;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .profile-name {
    font-size: 2em;
  }

  .post-title {
    font-size: 1.5em;
  }
}

.shiny-card {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 32px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.shiny-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

.shiny-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 80%);
  animation: shine 5s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.clickable-image {
  display: block;
  border-radius: 32px;
}

#gc-coin-balance-global {
  position: fixed;
  top: 12px;
  right: 32px;
  z-index: 10001;
  background-color: #5C7AFF;
  color: #FFFFFF;
  font-weight: 800;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: 8px 24px 8px 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
#gc-coin-balance-global img {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .glass-header {
    padding: var(--spacing-sm);
  }
  #gc-coin-balance-global {
    padding: 6px 16px;
    font-size: 16px;
    gap: 4px;
    right: 16px;
    top: 10px;
  }
  #gc-coin-balance-global img {
    width: 24px;
    height: 24px;
  }
}

.reward-card {
  position: relative;
  padding-bottom: 4px;
}

/* Tooltip shown when hovering a disabled reward button */
.reward-card .reward-btn:disabled:hover::after {
  content: "Consume more content 🤑";
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-in-out;
}

.reward-card .reward-btn:disabled:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent;
  z-index: 29;
  opacity: 0;
  transition: opacity 120ms ease-in-out;
}

.reward-card .reward-btn:disabled:hover::after,
.reward-card .reward-btn:disabled:hover::before {
  opacity: 1;
}

/* Hide tooltip on touch devices (no hover) to avoid accidental overlays */
@media (hover: none) and (pointer: coarse) {
  .reward-card .reward-btn:disabled::after,
  .reward-card .reward-btn:disabled::before {
    display: none !important;
  }
}

/* Toast styling for gc.showToast */
.gc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  min-width: 125px;
}

.gc-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes gentle-wiggle {
  0%, 31.03%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  7.75% {
    transform: rotate(2deg) translate(2px, 0);
  }
  23.27% {
    transform: rotate(-2deg) translate(-2px, 0);
  }
}

/* Coin shake animation for the coin counter */
@keyframes coin-shake {
  0% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-4px) rotate(-6deg); }
  30% { transform: translateY(2px) rotate(6deg); }
  45% { transform: translateY(-2px) rotate(-3deg); }
  60% { transform: translateY(1px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Apply the shake to the coin image when .coin-shake class is present */
.coin-shake {
  animation: coin-shake 600ms cubic-bezier(.36,.07,.19,.97);
  will-change: transform;
}

#locked-reward-img {
  animation: gentle-wiggle 5800ms ease-in-out infinite;
}

.sparkle-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sparkle-star {
  position: absolute;
  opacity: 0;
  animation: sparkle-visibility 5800ms infinite, sparkle-effect 500ms infinite alternate;
}

@keyframes sparkle-visibility {
  0%, 24.14% {
    opacity: 1;
  }
  31.03% {
    opacity: 0;
  }
  31.04%, 100% {
    opacity: 0;
  }
}

@keyframes sparkle-effect {
  from {
    transform: scale(1) translate(0, 0);
    filter: brightness(1);
  }
  to {
    transform: scale(1.2) translate(5px, -5px);
    filter: brightness(1.5);
  }
}

.sparkle-star.star1 { top: 10%; left: 20%; width: 16px; height: 16px; animation-delay: 0s, 0.1s; }
.sparkle-star.star2 { top: 80%; left: 30%; width: 16px; height: 16px; animation-delay: 0s, 0.2s; }
.sparkle-star.star3 { top: 30%; left: 80%; width: 16px; height: 16px; animation-delay: 0s, 0.3s; }
.sparkle-star.star4 { top: 70%; left: 90%; width: 16px; height: 16px; animation-delay: 0s, 0.4s; }
.sparkle-star.star5 { top: 20%; left: 60%; width: 16px; height: 16px; animation-delay: 0s, 0.5s; }

/* When the rain reward is redeemed, hide/stop its sparkles and show a badge */
.reward-card[data-reward="rain"][data-redeemed="true"] .sparkle-star {
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Ensure the unlocked rain reward image displays at 120px height when redeemed */
.reward-card[data-reward="rain"][data-redeemed="true"] .reward-img {
  height: 120px !important;
  width: auto !important;
  object-fit: contain;
}

/* Remove the extra top margin on the rain reward's button when redeemed */
.reward-card[data-reward="rain"][data-redeemed="true"] .reward-btn {
  margin-top: 0 !important;
}

/* redeemed badge removed per UX preference */

/* --- Airbnb-like Toggle Switch --- */

.matrix-toggle-copy {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  display: inline-block;     /* allow intrinsic width and wrapping */
  line-height: 1.05;
  max-width: 90px;           /* world-class constraint so text wraps into up to 2 lines */
  white-space: normal;       /* allow wrapping within the cap */
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .matrix-toggle-copy {
    font-size: 16px;
    max-width: 90px;       /* keep same cap on mobile as requested */
  }
}

.airbnb-toggle {
    cursor: pointer;
    display: inline-block;
}

.airbnb-toggle-input {
    display: none;
}

.airbnb-toggle-label {
    display: block;
    width: 56px;
    height: 42px;
    background-color: #7F8DC1;
    box-shadow: 0 -3px 2px 0 rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.25) inset;
    border-radius: 64px;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.airbnb-toggle-handle {
    position: absolute;
    top: 5px;
    left: 3px;
    width: 33px;
    height: 33px;
    background-color: #e1e1e1;
    filter: drop-shadow(0 1px 0 #2846B7);
    background: linear-gradient(180deg, rgba(250,250,250,1) 20%, rgba(225,225,225,1) 80%);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airbnb-toggle-check {
    width: 16px;
    height: 16px;
    color: #5C7AFF;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.airbnb-toggle-input:checked + .airbnb-toggle-label {
    background-color: #5C7AFF;
    box-shadow: 0 -3px 2px 0 rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.25) inset;
}

.airbnb-toggle-input:checked + .airbnb-toggle-label .airbnb-toggle-handle {
    transform: translateX(18px);
}

.airbnb-toggle-input:checked + .airbnb-toggle-label .airbnb-toggle-check {
    opacity: 1;
}

.fire-text {
  --fire-color-1: #ffc506; /* Brighter Yellow */
  --fire-color-2: #ff6400;
  --fire-color-3: #400000;
  --speed: 1.5s; /* Slightly slower for smoother motion */

  color: white; /* Fallback */
  font-weight: bold;

  background:
    radial-gradient(ellipse at center, var(--fire-color-1) 0%, var(--fire-color-2) 40%, transparent 80%),
    linear-gradient(to bottom, transparent 0%, var(--fire-color-2) 90%),
    radial-gradient(ellipse at bottom, var(--fire-color-3) 0%, transparent 70%);

  background-size: 100% 100%, 100% 100%, 100% 100%; /* Start with visible sizes */
  background-position: center 20%, center center, center bottom;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation:
    flicker-main var(--speed) ease-in-out infinite,
    flicker-sub calc(var(--speed) * 0.75) ease-in-out infinite,
    pulse calc(var(--speed) * 0.6) ease-in-out infinite;
}

@keyframes flicker-main {
  0% {
    background-size: 115% 115%, 100% 100%, 105% 105%;
    background-position: center 35%, center center, center bottom;
  }
  25% {
    background-size: 120% 120%, 100% 100%, 100% 100%;
    background-position: center 40%, center center, center bottom;
  }
  50% {
    background-size: 100% 100%, 100% 100%, 130% 130%;
    background-position: center 45%, center center, center bottom;
  }
  75% {
    background-size: 110% 110%, 100% 100%, 115% 115%;
    background-position: center 42%, center center, center bottom;
  }
  100% {
    background-size: 115% 115%, 100% 100%, 105% 105%;
    background-position: center 35%, center center, center bottom;
  }
}

@keyframes flicker-sub {
  0% {
    background-size: 120% 120%, 95% 95%, 100% 100%;
    background-position: center 25%, center center, center bottom;
  }
  30% {
    background-size: 140% 140%, 100% 100%, 105% 105%;
    background-position: center 30%, center center, center bottom;
  }
  60% {
    background-size: 130% 130%, 100% 100%, 110% 110%;
    background-position: center 35%, center center, center bottom;
  }
  100% {
    background-size: 120% 120%, 95% 95%, 100% 100%;
    background-position: center 25%, center center, center bottom;
  }
}

@keyframes pulse {
  0% {
    -webkit-text-fill-color: transparent;
  }
  30% {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.12); /* Slightly more visible pulse */
  }
  70% {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.06);
  }
  100% {
    -webkit-text-fill-color: transparent;
  }
}