@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

/* Design tokens shared by the public site,
dashboard,
admin panel,
and checkout screens. */
:root{
  --bg: #fffdf9;
  --bg-soft: #f7efe5;
  --paper: #ffffff;
  --paper-soft: #fff8ef;
  --ink: #111111;
  --ink-soft: #1f1916;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-2: rgba(255, 248, 239, 0.96);
  --text: #111111;
  --text-soft: #5e564f;
  --text-faint: #8b7e72;
  --primary: #ff4fa3;
  --secondary: #f5c542;
  --accent: #cf9820;
  --pink: #ff5cb8;
  --danger: #e85a82;
  --warning: #f5c542;
  --border: rgba(17, 17, 17, 0.1);
  --radius: 0.95rem;
  --radius-lg: 1.35rem;
  --container: 1080px;
  --gradient-primary: linear-gradient(135deg, #ff4fa3 0%, #f5c542 100%);
  --gradient-accent: linear-gradient(135deg, #111111 0%, #ff4fa3 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 243, 236, 0.98));
  --shadow-card: 0 18px 48px rgba(33, 18, 7, 0.08);
  --shadow-neon: 0 0 0 1px rgba(255, 79, 163, 0.14), 0 18px 40px rgba(255, 79, 163, 0.12);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.72s;
  --motion-distance: 30px;
}

/* Base reset and layout primitives. */
*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  font-size: 15px;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 79, 163, 0.14), transparent 24rem),
    radial-gradient(circle at top left, rgba(245, 197, 66, 0.2), transparent 30rem),
    linear-gradient(180deg, #fffdf9 0%, #f6ede1 100%);
}

/* Progressive reveal motion is opt-in and disabled for reduced-motion users by script-live.js. */
html.motion-enabled .fade-up,
html.motion-enabled .fade-in,
html.motion-enabled .scale-in{
  opacity: 0;
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.motion-enabled .fade-up{
  transform: translate3d(0, var(--motion-distance), 0);
}

html.motion-enabled .fade-in{
  transform: translate3d(0, 0.65rem, 0);
}

html.motion-enabled .scale-in{
  transform: scale(0.96);
}

html.motion-enabled .fade-up.scale-in{
  transform: translate3d(0, var(--motion-distance), 0) scale(0.96);
}

html.motion-enabled .show.fade-up,
html.motion-enabled .show.fade-in,
html.motion-enabled .show.scale-in{
  opacity: 1;
}

html.motion-enabled .show.fade-up{
  transform: translate3d(0, 0, 0);
}

html.motion-enabled .show.fade-in{
  transform: translate3d(0, 0, 0);
}

html.motion-enabled .show.scale-in{
  transform: scale(1);
}

html.motion-enabled .show.fade-up.scale-in{
  transform: translate3d(0, 0, 0) scale(1);
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select{
  font: inherit;
}

button{
  cursor: pointer;
}

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

/* Main content shells account for the fixed site/app headers. */
.site-main,
.app-main{
  min-height: calc(100vh - 5rem);
  padding-top: 4.75rem;
}

.section{
  position: relative;
  padding: 4.4rem 0;
}

.section-soft{
  background: rgba(247, 239, 229, 0.82);
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.hero{
  position: relative;
  overflow: hidden;
  padding: 5.25rem 0 3.9rem;
}

.hero::before,
.hero::after{
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before{
  left: -6rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(245, 197, 66, 0.18);
  filter: blur(70px);
}

.hero::after{
  top: 4rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 79, 163, 0.14);
  filter: blur(70px);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(245, 197, 66, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title-xl,
.title-lg,
.title-md,
.title-sm,
.brand-name,
.stat-value{
  font-family: "Space Grotesk", sans-serif;
}

.title-xl{
  margin: 1.25rem 0;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.title-lg{
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.title-md{
  margin: 0 0 0.9rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
}

.title-sm{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lead,
.copy{
  color: var(--text-soft);
  line-height: 1.8;
}

.lead{
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1rem;
}

.copy{
  font-size: 0.94rem;
}

.text-center{
  text-align: center;
}

.text-gradient{
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  transition: transform 300ms var(--motion-ease), border-color 300ms var(--motion-ease), background 300ms var(--motion-ease), box-shadow 300ms var(--motion-ease);
}

.btn-primary{
  color: #111111;
  background: var(--gradient-primary);
  box-shadow: 0 16px 34px rgba(255, 79, 163, 0.2);
}

.btn-neon{
  color: var(--ink);
  background: rgba(255, 79, 163, 0.08);
  border-color: rgba(255, 79, 163, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 163, 0.05), 0 0 0 rgba(0, 0, 0, 0);
}

.btn-outline{
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 17, 17, 0.12);
}

.btn-ghost{
  color: var(--text-soft);
  background: transparent;
  border-color: transparent;
}

.btn-danger{
  color: #7f183c;
  background: rgba(232, 90, 130, 0.12);
  border-color: rgba(232, 90, 130, 0.22);
}

.btn-small{
  min-height: 2.2rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.btn-block{
  width: 100%;
}

.curriculum-editor{
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  background: rgba(255, 249, 242, 0.9);
}

.curriculum-editor-scroll{
  display: grid;
  gap: 0.8rem;
  max-height: 34rem;
  overflow: auto;
  padding-right: 0.25rem;
   

}

.admin-details-scroll{
  max-height: 30rem;
  overflow: auto;
  padding-right: 0.25rem;
  
}

.curriculum-unit-card,
.curriculum-lecture-card{
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.curriculum-unit-card{
  padding: 0.95rem;
}

.curriculum-unit-card.is-expanded{
  border-color: rgba(255, 79, 163, 0.24);
}

.curriculum-unit-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.curriculum-unit-body{
  margin-top: 0.9rem;
}

.curriculum-lecture-stack{
  margin-top: 0.85rem;
}

.curriculum-lecture-card{
  padding: 0.88rem;
  background: rgba(255, 247, 238, 0.96);
}

.curriculum-empty{
  padding: 0.9rem;
  border: 1px dashed rgba(17, 17, 17, 0.16);
  border-radius: 1rem;
  color: var(--text-soft);
  text-align: center;
}

.card,
.panel,
.table-card,
.form-card,
.auth-card,
.faq-item,
.kpi-card,
.message-card{
  position: relative;
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--motion-ease), border-color 300ms var(--motion-ease), box-shadow 300ms var(--motion-ease), background 300ms var(--motion-ease);
}

@media (hover: hover) {
  .btn:hover{
    transform: translateY(-4px);
  }

  .btn-primary:hover{
    box-shadow: 0 22px 42px rgba(255, 79, 163, 0.24);
  }

  .btn-outline:hover,
.btn-neon:hover,
.btn-ghost:hover{
    border-color: rgba(255, 79, 163, 0.2);
    box-shadow: 0 18px 34px rgba(42, 25, 10, 0.1);
  }

  .card:hover,
.panel:hover,
.table-card:hover,
.form-card:hover,
.faq-item:hover,
.kpi-card:hover,
.message-card:hover,
.stat-card:hover{
    transform: translateY(-5px);
    border-color: rgba(255, 79, 163, 0.24);
    box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.1), 0 24px 50px rgba(42, 25, 10, 0.12), 0 0 24px rgba(245, 197, 66, 0.08);
  }
}

.card.is-selected{
  border-color: rgba(255, 79, 163, 0.22);
  background: rgba(255, 79, 163, 0.06);
}

.card-body,
.panel-body{
  padding: 1.35rem;
}

/* Checkout screens share the same grid,
summary card,
consent,
and secure-payment treatment. */
.checkout-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(19rem, 0.9fr);
  gap: 1.35rem;
  align-items: start;
}

.checkout-shell-card{
  min-height: 100%;
}

.checkout-step-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.checkout-step-row-centered{
  justify-content: center;
}

.checkout-method-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.checkout-method-card{
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(128, 150, 194, 0.16);
  border-radius: 1rem;
  background: rgba(16, 24, 45, 0.72);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.checkout-method-card:hover{
  border-color: rgba(45, 188, 255, 0.3);
  transform: translateY(-2px);
}

.checkout-method-card input{
  margin: 0;
}

.checkout-method-card strong{
  color: var(--text);
}

.checkout-method-card span{
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkout-summary-card{
  position: sticky;
  top: 5.4rem;
}

.checkout-price{
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.checkout-item-spotlight{
  margin-top: 1.05rem;
}

.checkout-secure-payment-card .meta-row span{
  font-weight: 800;
}

.checkout-policy-consent{
  display: flex;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(128, 150, 194, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.checkout-policy-consent span{
  flex: 1;
}

.checkout-total-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 150, 194, 0.12);
  color: var(--text-soft);
}

.checkout-total-row strong{
  color: var(--text);
  font-size: 1.1rem;
}

.checkout-state-card{
  max-width: 46rem;
  margin: 0 auto;
}

.service-detail-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.35rem;
  align-items: start;
}

.service-detail-aside{
  position: sticky;
  top: 5.4rem;
}

.service-detail-price{
  display: block;
  margin: 0.75rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.service-detail-actions{
  gap: 0.8rem;
}

.success-card{
  text-align: center;
}

.success-actions{
  justify-content: center;
}

.grid-2,
.grid-3,
.grid-4,
.grid-auto{
  display: grid;
  gap: 1.25rem;
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card{
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 1.45rem 1rem;
  text-align: center;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 244, 236, 0.98));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 20px 54px rgba(33, 18, 7, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.1), transparent 38%);
  pointer-events: none;
}

.stat-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255, 79, 163, 0.2);
  box-shadow: 0 26px 60px rgba(33, 18, 7, 0.12), 0 0 26px rgba(255, 79, 163, 0.08);
}

.stat-value{
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 700;
}

.symbol{
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #fff7fb;
  background: linear-gradient(135deg, #111111 0%, #ff4fa3 62%, #f5c542 100%);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.18), 0 0 22px rgba(255, 79, 163, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.symbol::after{
  content: "";
  position: absolute;
  top: -0.7rem;
  right: -0.45rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
}

.symbol.large{
  width: 4.45rem;
  height: 4.45rem;
  border-radius: 1.35rem;
  font-size: 1.05rem;
}

.symbol svg{
  position: relative;
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}

.symbol.large svg{
  width: 1.78rem;
  height: 1.78rem;
}

.stat-card .symbol{
  margin-bottom: 0.35rem;
}

.blue{
  background: linear-gradient(135deg, #111111 0%, #ff4fa3 58%, #f5c542 100%);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.16), 0 0 24px rgba(255, 79, 163, 0.12);
}

.purple{
  background: linear-gradient(135deg, #2a161f 0%, #ff4fa3 48%, #f5c542 100%);
  box-shadow: 0 16px 30px rgba(255, 79, 163, 0.18), 0 0 24px rgba(255, 79, 163, 0.12);
}

.green{
  background: linear-gradient(135deg, #2e2610 0%, #f5c542 46%, #ff4fa3 100%);
  box-shadow: 0 16px 30px rgba(245, 197, 66, 0.18), 0 0 24px rgba(245, 197, 66, 0.12);
}

.pink{
  background: linear-gradient(135deg, #ff4fa3 0%, #f68dca 48%, #f5c542 100%);
  box-shadow: 0 16px 30px rgba(255, 79, 163, 0.18), 0 0 24px rgba(255, 79, 163, 0.12);
}

.gold{
  background: linear-gradient(135deg, #f5c542 0%, #ffd86f 54%, #ff4fa3 100%);
  box-shadow: 0 16px 30px rgba(245, 197, 66, 0.18), 0 0 24px rgba(245, 197, 66, 0.12);
}

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag,
.status{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 248, 239, 0.92);
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.status.success{
  color: var(--accent);
  background: rgba(245, 197, 66, 0.14);
}

.status.info{
  color: var(--primary);
  background: rgba(255, 79, 163, 0.1);
}

.status.warn{
  color: var(--warning);
  background: rgba(245, 197, 66, 0.14);
}

.status.danger{
  color: var(--danger);
  background: rgba(232, 90, 130, 0.12);
}

/* Shared public-site header and responsive navigation. */
.site-header{
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.24) 100%);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background 320ms var(--motion-ease), border-color 320ms var(--motion-ease), backdrop-filter 320ms var(--motion-ease), box-shadow 320ms var(--motion-ease);
}

.site-header.is-scrolled,
.site-header.is-open{
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 14px 40px rgba(38, 22, 8, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html{
    scroll-behavior: auto;
  }

  html.motion-enabled .fade-up,
html.motion-enabled .fade-in,
html.motion-enabled .scale-in{
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .btn,
.card,
.panel,
.table-card,
.form-card,
.faq-item,
.kpi-card,
.message-card,
.stat-card,
.site-header{
    transition: none;
  }
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.brand-mark{
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
}

.brand-mark img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.brand-name{
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-tech{
  background: linear-gradient(135deg, #ff4fa3 0%, #f5c542 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nav-links,
.nav-actions{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-top-actions{
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.mobile-top-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mobile-top-action.is-primary{
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.mobile-top-auth-placeholder{
  width: 3.4rem;
  opacity: 0;
  pointer-events: none;
}

.mobile-top-auth-placeholder.is-wide{
  width: 6.9rem;
}

.mobile-top-actions:empty{
  display: none !important;
}

.nav-link{
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active{
  color: var(--text);
  background: rgba(255, 79, 163, 0.08);
}

.nav-link.is-active{
  color: var(--primary);
}

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.mobile-panel{
  display: none;
  padding-bottom: 1rem;
}

.mobile-panel.is-open{
  display: block;
}

.mobile-card{
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
}

.mobile-links,
.mobile-actions,
.stack,
.info-list,
.faq-list,
.message-list{
  display: grid;
  gap: 0.75rem;
}

.mobile-quick-nav{
  display: none;
}

.mobile-quick-scroll{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 1.2rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-quick-scroll::-webkit-scrollbar{
  display: none;
}

.mobile-quick-link{
  position: relative;
  flex: 0 0 auto;
  padding: 0.72rem 0.05rem 0.96rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-quick-link::after{
  content: "";
  position: absolute;
  left: 50%;
  width: calc(100% - 0.1rem);
  transform: translateX(-50%);
  bottom: 0.38rem;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.mobile-quick-link.is-active{
  color: var(--text);
}

.mobile-quick-link.is-active::after{
  background: #111111;
}

.footer{
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111111;
}

.footer-brand{
  display: grid;
  gap: 1.15rem;
}

.footer-brand-link{
  width: fit-content;
}

.footer-copy{
  max-width: 22rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0 2.5rem;
}

.footer-title{
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.footer-links{
  display: grid;
  gap: 0.7rem;
}

.footer-links a,
.footer-links span{
  color: var(--text-soft);
}

.footer-links a:hover{
  color: var(--secondary);
}

.footer-social-block{
  display: grid;
  gap: 0.85rem;
}

.footer-social-label{
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-social-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social-link svg,
.footer-contact-icon svg{
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-link svg path,
.footer-contact-icon svg path{
  fill: currentColor;
  stroke: none;
}

.footer-social-link:hover{
  transform: translateY(-2px);
  border-color: rgba(245, 197, 66, 0.4);
  color: #ffffff;
  background: rgba(255, 79, 163, 0.22);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.footer-social-link.is-instagram:hover{
  border-color: rgba(255, 124, 92, 0.5);
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.95), rgba(253, 29, 115, 0.94), rgba(252, 176, 69, 0.92));
  box-shadow: 0 16px 30px rgba(225, 75, 108, 0.28);
}

.footer-social-link.is-youtube:hover{
  border-color: rgba(255, 0, 0, 0.48);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.96), rgba(190, 18, 60, 0.92));
  box-shadow: 0 16px 30px rgba(255, 0, 0, 0.24);
}

.footer-social-link.is-telegram:hover{
  border-color: rgba(72, 183, 245, 0.55);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.98), rgba(72, 183, 245, 0.92));
  box-shadow: 0 16px 30px rgba(34, 158, 217, 0.26);
}

.footer-social-link.is-whatsapp:hover{
  border-color: rgba(109, 242, 163, 0.5);
  background: linear-gradient(135deg, rgba(11, 155, 83, 0.98), rgba(41, 205, 100, 0.92));
  box-shadow: 0 16px 30px rgba(27, 168, 94, 0.28);
}

.footer-social-link-whatsapp,
.footer-contact-icon{
  color: #6df2a3;
}

.footer-contact-cta{
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.82rem 1rem 0.82rem 0.95rem;
  border: 1px solid rgba(109, 242, 163, 0.2);
  border-radius: 999px;
  background: rgba(109, 242, 163, 0.08);
  color: #fff8ef;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-contact-cta:hover{
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(109, 242, 163, 0.48);
  background: linear-gradient(135deg, rgba(10, 117, 63, 0.98), rgba(34, 197, 94, 0.9));
  box-shadow: 0 16px 30px rgba(27, 168, 94, 0.26);
}

.footer-contact-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}

.footer-note{
  padding: 1.3rem 0 2rem;
  border-top: 1px solid rgba(128, 150, 194, 0.1);
  color: var(--text-faint);
  font-size: 0.92rem;
  text-align: center;
}

.card-top,
.panel-top,
.between{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-copy,
.muted{
  color: var(--text-soft);
}

.card-copy{
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 0.96rem;
}

.feature-list{
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li{
  display: flex;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feature-list li::before{
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(55, 230, 181, 0.12);
  flex: 0 0 auto;
}

.timeline{
  display: grid;
  gap: 1rem;
}

.timeline-item{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.2rem;
}

.timeline-number{
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(128, 150, 194, 0.18);
  background: rgba(12, 18, 35, 0.8);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(45, 188, 255, 0.06);
}

.timeline-number svg{
  width: 1.6rem;
  height: 1.6rem;
  stroke-width: 2.1;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.form-card,
.table-card,
.auth-card{
  padding: 1.7rem;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field{
  display: grid;
  gap: 0.45rem;
}

.field label{
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.input,
.select{
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input:focus,
.select:focus{
  border-color: rgba(255, 79, 163, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.1);
}

textarea.input{
  min-height: 8rem;
  resize: vertical;
}

.referral-input-wrap{
  position: relative;
}

.referral-input-wrap .input{
  padding-right: 3.1rem;
  text-transform: uppercase;
}

.input.has-referral-valid{
  border-color: rgba(15, 159, 79, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 159, 79, 0.08);
}

.input.has-referral-invalid{
  border-color: rgba(232, 90, 130, 0.62);
  box-shadow: 0 0 0 4px rgba(232, 90, 130, 0.08);
}

.referral-valid-icon{
  position: absolute;
  right: 0.95rem;
  top: 50%;
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 159, 79, 0.22);
  border-radius: 999px;
  background: rgba(15, 159, 79, 0.1);
  color: #0f9f4f;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.referral-valid-icon[hidden]{
  display: none;
}

.referral-status-field{
  padding-top: 1.82rem;
}

.referral-inline-status{
  display: flex;
  min-height: 3rem;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.referral-inline-status:empty{
  display: none;
}

.referral-inline-status.is-invalid{
  color: var(--danger);
}

.helper,
.form-message,
.tiny{
  color: var(--text-faint);
  font-size: 0.88rem;
}

.form-message.success{
  color: var(--accent);
}

.form-message.error{
  color: var(--danger);
}

.password-strength-note{
  margin-top: 0.65rem;
}

.password-strength-note.is-neutral{
  color: var(--text-faint);
}

.password-strength-note.is-very-bad,
.password-strength-note.is-bad{
  color: var(--danger);
}

.password-strength-note.is-good{
  color: #f7c65f;
}

.password-strength-note.is-very-good,
.password-strength-note.is-excellent{
  color: var(--accent);
}

body[data-page="login"]{
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 79, 163, 0.16), transparent 24rem),
    radial-gradient(circle at top left, rgba(245, 197, 66, 0.2), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0%, #f6ede1 100%);
}

body[data-page="login"] a{
  color: inherit;
}

/* Auth modal and standalone login page styles. */
.auth-modern-header{
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0;
}

.auth-modern-logo{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-modern-logo-mark{
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  background: var(--gradient-primary);
  color: #08101f;
  font-size: 1rem;
  letter-spacing: 0;
}

.auth-modern-logo-text{
  line-height: 1;
}

.auth-modern-actions{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.auth-modern-chip{
  border: 1px solid rgba(128, 150, 194, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 0.82rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.auth-modern-chip:hover,
.auth-modern-chip.is-active{
  background: rgba(45, 188, 255, 0.14);
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(45, 188, 255, 0.3);
  box-shadow: 0 18px 36px rgba(45, 188, 255, 0.12);
}

.auth-modern-main{
  display: grid;
  align-items: center;
  min-height: calc(100vh - 4.8rem);
  padding: 0.7rem 1rem 1.8rem;
}

.auth-modern-panel{
  position: relative;
  display: grid;
  place-items: center;
}

.auth-modern-backdrop{
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(860px, 100%);
  height: min(620px, 74vh);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at top, rgba(45, 188, 255, 0.18), rgba(45, 188, 255, 0)),
    linear-gradient(145deg, rgba(123, 92, 255, 0.16), rgba(12, 18, 35, 0));
  filter: blur(6px);
  opacity: 0.85;
}

.auth-modern-card{
  z-index: 1;
  width: min(100%, 560px);
  padding: 1.45rem 1.45rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.auth-modern-back{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 0;
  font-weight: 600;
}

.auth-modern-view{
  display: grid;
  gap: 1rem;
}

.auth-modern-copy{
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.auth-modern-eyebrow{
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-modern-copy h1{
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.auth-modern-copy p{
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-modern-copy strong{
  color: var(--text);
}

.auth-modern-provider-stack{
  display: grid;
  gap: 0.7rem;
}

.auth-modern-provider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.4rem;
  border: 1px solid rgba(128, 150, 194, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-modern-provider.is-disabled{
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-modern-provider:hover{
  transform: translateY(-1px);
  border-color: rgba(45, 188, 255, 0.28);
  box-shadow: 0 18px 38px rgba(45, 188, 255, 0.12);
}

.auth-modern-provider.is-disabled:hover{
  transform: none;
  border-color: rgba(128, 150, 194, 0.16);
  box-shadow: none;
}

.auth-modern-google-slot{
  width: 100%;
  min-height: 3.4rem;
  display: grid;
  align-items: center;
}

.auth-modern-google-slot > div,
.auth-modern-google-slot iframe{
  width: 100% !important;
}

.auth-modern-provider-icon{
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-modern-provider-icon svg{
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-modern-provider-icon.is-google{
  color: #ea4335;
}

.auth-modern-provider-icon.is-apple,
.auth-modern-provider-icon.is-phone{
  color: var(--text);
}

.auth-modern-divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-modern-divider::before,
.auth-modern-divider::after{
  content: "";
  height: 1px;
  background: rgba(128, 150, 194, 0.14);
}

.auth-modern-form{
  display: grid;
  gap: 0.8rem;
}

.auth-modern-label,
.auth-modern-identity-label{
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-modern-input{
  width: 100%;
  min-height: 3.8rem;
  border: 1px solid rgba(128, 150, 194, 0.16);
  border-radius: 999px;
  background: rgba(14, 22, 40, 0.9);
  color: var(--text);
  padding: 0 1.2rem;
  font-size: 1.08rem;
  line-height: 1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-modern-input:focus,
.auth-modern-select:focus{
  outline: none;
  border-color: rgba(45, 188, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(45, 188, 255, 0.1);
}

.auth-modern-input::placeholder{
  color: var(--text-faint);
}

.auth-modern-select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 1.65rem) calc(50% - 0.18rem),
    calc(100% - 1.15rem) calc(50% - 0.18rem);
  background-size: 0.55rem 0.55rem, 0.55rem 0.55rem;
  background-repeat: no-repeat;
  font-size: 1.15rem;
  color: var(--text);
}

.auth-modern-code-input{
  text-align: center;
  letter-spacing: 0.28em;
}

.auth-modern-primary,
.auth-modern-secondary{
  min-height: 3.8rem;
  border-radius: 999px;
  padding: 0 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-modern-primary{
  border: 0;
  background: var(--gradient-primary);
  color: #07111f;
  box-shadow: 0 22px 38px rgba(45, 188, 255, 0.18);
}

.auth-modern-primary:hover:not(:disabled),
.auth-modern-secondary:hover:not(:disabled){
  transform: translateY(-1px);
}

.auth-modern-primary:disabled,
.auth-modern-secondary:disabled{
  cursor: default;
  opacity: 0.65;
}

.auth-modern-secondary{
  border: 1px solid rgba(128, 150, 194, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.auth-modern-checkbox{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.auth-modern-checkbox input{
  width: 1rem;
  height: 1rem;
}

.auth-modern-checkbox a{
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.auth-modern-consent{
  align-items: flex-start;
  line-height: 1.45;
}

.auth-modern-consent input{
  flex: 0 0 auto;
  margin-top: 0.18rem;
}

.auth-modern-password-wrap{
  position: relative;
  display: grid;
}

.auth-modern-password-wrap .auth-modern-input{
  padding-right: 4.8rem;
}

.auth-modern-visibility{
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-modern-identity{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(128, 150, 194, 0.14);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.auth-modern-identity strong{
  display: block;
  margin-top: 0.18rem;
  font-size: 0.96rem;
}

.auth-modern-inline-link,
.auth-modern-text-link{
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-weight: 600;
}

.auth-modern-text-link{
  justify-self: center;
  color: var(--text-soft);
}

.auth-modern-meta,
.auth-modern-runtime-note{
  margin: 0;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.55;
  font-size: 0.88rem;
}

.auth-modern-feedback{
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-modern-feedback strong{
  font-weight: 800;
}

.auth-modern-feedback.is-error{
  background: rgba(255, 107, 122, 0.12);
  color: #b22436;
}

.auth-modern-feedback.is-info{
  background: rgba(45, 188, 255, 0.08);
  color: var(--text);
}

.auth-modern-feedback.is-dev{
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.auth-modern-strength{
  margin: -0.05rem 0 0;
  font-size: 0.85rem;
}

.auth-modern-strength.is-neutral{
  color: var(--text-faint);
}

.auth-modern-strength.is-very-bad,
.auth-modern-strength.is-bad{
  color: #cf3d52;
}

.auth-modern-strength.is-good{
  color: #b67d00;
}

.auth-modern-strength.is-very-good,
.auth-modern-strength.is-excellent{
  color: #0e8a56;
}

.auth-modern-legal{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.auth-modern-legal a:hover,
.auth-modern-inline-link:hover,
.auth-modern-text-link:hover,
.auth-modern-back:hover{
  text-decoration: underline;
}

.faq-item{
  padding: 0;
}

.faq-button{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.4rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}

.faq-answer{
  display: none;
  padding: 0 1.4rem 1.35rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.faq-item.is-open .faq-answer{
  display: block;
}

.auth-shell{
  display: grid;
  place-items: center;
  min-height: calc(100vh - 5rem);
  padding: 3rem 1rem;
}

.auth-toggle-row{
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(128, 150, 194, 0.08);
}

.auth-toggle{
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  padding: 0.8rem 1rem;
  font-weight: 700;
}

.auth-toggle.is-active{
  background: rgba(45, 188, 255, 0.12);
  color: var(--primary);
}

.password-wrap{
  position: relative;
}

.password-wrap .toggle-password{
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

/* Dashboard and admin app shell layout. */
.dashboard-shell{
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: calc(100vh - 4.75rem);
  align-items: stretch;
}

.sidebar{
  position: sticky;
  top: 4.75rem;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100vh - 4.75rem);
  max-height: calc(100vh - 4.75rem);
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.sidebar-label{
  margin: 0 0 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav{
  display: grid;
  gap: 0.45rem;
}

.sidebar-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.9rem;
  border-radius: 1rem;
  color: var(--text-soft);
  font-weight: 600;
}

.sidebar-link span:first-child{
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1;
}

.sidebar-link:hover,
.sidebar-link.is-active{
  color: var(--text);
  background: rgba(255, 79, 163, 0.08);
}

.sidebar-link.is-active{
  color: var(--primary);
  border: 1px solid rgba(255, 79, 163, 0.18);
}

.sidebar-link.is-active .sidebar-count{
  background: rgba(255, 79, 163, 0.14);
  color: var(--primary);
}

.sidebar-footer{
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.app-content{
  min-width: 0;
}

.topbar{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  overflow: visible;
  z-index: 40;
}

.topbar h1,
.topbar p{
  margin: 0;
}

.topbar-actions{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.notification-stack{
  position: relative;
  flex: 0 0 auto;
  z-index: 45;
}

.admin-topbar-tools{
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-topbar-search{
  min-width: min(360px, 100%);
}

.notification-drawer{
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  z-index: 120;
  width: min(380px, calc(100vw - 2rem));
  max-height: var(--notification-drawer-max-height, min(620px, calc(100vh - 14rem)));
  overflow: hidden;
  display: none;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.notification-drawer.is-open{
  display: block;
}

.notification-drawer-header{
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.notification-drawer-actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.notification-close-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
}

.notification-close-button:hover{
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.notification-list{
  max-height: var(--notification-list-max-height, min(520px, calc(100vh - 20rem)));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notification-list::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

.notification-item{
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  background: rgba(255, 248, 239, 0.92);
  color: var(--text);
  text-align: left;
}

.notification-item.is-unread{
  border-color: rgba(255, 79, 163, 0.18);
  background: rgba(255, 79, 163, 0.08);
}

.app-panels{
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

.app-section{
  display: none;
}

.app-section.is-active{
  display: block;
}

.kpi-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.overview-highlight-grid{
  margin-top: 1.3rem;
  align-items: start;
}

.overview-table-section{
  margin-top: 1.75rem;
}

.admin-overview-intro{
  margin-bottom: 1.5rem;
}

.kpi-card{
  padding: 1.1rem;
}

.table-wrap{
  overflow-x: auto;
}

table{
  width: 100%;
  border-collapse: collapse;
}

th,
td{
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  vertical-align: top;
}

th{
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

td{
  color: var(--text-soft);
  font-size: 0.94rem;
}

tbody tr:hover{
  background: rgba(245, 197, 66, 0.08);
}

.toolbar,
.inline-row,
.tab-row,
.message-compose{
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.grow{
  flex: 1 1 auto;
}

.tab-row{
  margin-bottom: 1.4rem;
}

.admin-shortcuts{
  gap: 0.85rem;
}

.tab-button{
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  font-weight: 700;
}

.admin-tab-button{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.8rem 0.5rem 0.55rem;
}

.admin-tab-symbol{
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  font-size: 0.58rem;
  flex: 0 0 auto;
}

.admin-tab-label{
  color: inherit;
  font-size: 0.98rem;
  line-height: 1;
}

.admin-tab-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(128, 150, 194, 0.12);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1;
}

.tab-button.is-active,
.tab-button:hover{
  color: var(--text);
  border-color: rgba(255, 79, 163, 0.22);
  background: rgba(255, 79, 163, 0.08);
}

.tab-button.is-active .admin-tab-count,
.admin-tab-button:hover .admin-tab-count{
  background: rgba(245, 197, 66, 0.18);
}

.message-card.self{
  border-color: rgba(45, 188, 255, 0.24);
  background: rgba(45, 188, 255, 0.08);
  margin-left: auto;
}

.support-grid{
  align-items: start;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.chat-panel{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.chat-panel-main{
  min-height: 0;
}

.chat-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chat-actions{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chat-thread{
  display: grid;
  gap: 0.8rem;
  max-height: 29rem;
  overflow: auto;
  padding-right: 0.2rem;
  min-height: 0;
}

.support-list-panel{
  padding: 1.05rem;
  gap: 0.8rem;
}

.support-list-head{
  gap: 0.8rem;
}

.support-list-head .tag{
  white-space: nowrap;
}

.support-search-input{
  min-height: 2.7rem;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
}

.support-filter-row{
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.support-filter-chip{
  border: 1px solid rgba(128, 150, 194, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.support-filter-chip.is-active{
  border-color: rgba(45, 188, 255, 0.32);
  background: rgba(45, 188, 255, 0.14);
  color: var(--primary);
}

.support-user-stack{
  display: grid;
  gap: 0.35rem;
  max-height: 32rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.support-user-card{
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.82rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(128, 150, 194, 0.1);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.support-user-card:hover{
  border-color: rgba(45, 188, 255, 0.22);
  background: rgba(45, 188, 255, 0.05);
  transform: translateY(-1px);
}

.support-user-card.is-selected{
  border-color: rgba(45, 188, 255, 0.32);
  background: rgba(45, 188, 255, 0.1);
  box-shadow: 0 10px 22px rgba(8, 15, 32, 0.22);
}

.support-user-avatar{
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 188, 255, 0.22), rgba(124, 58, 237, 0.24));
  border: 1px solid rgba(128, 150, 194, 0.16);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.support-user-body{
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.16rem;
}

.support-user-row{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.support-user-row strong{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-user-time{
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 0.77rem;
  white-space: nowrap;
}

.support-user-time-wrap{
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  min-width: 3.2rem;
}

.support-unread-dot{
  color: #f5c542;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.support-user-card.has-unread .support-user-preview{
  font-weight: 700;
}

.support-user-line{
  display: block;
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-user-preview{
  color: var(--text);
  opacity: 0.86;
}

.chat-bubble{
  max-width: min(34rem, 100%);
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(128, 150, 194, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.chat-bubble.self{
  margin-left: auto;
  border-color: rgba(45, 188, 255, 0.24);
  background: rgba(45, 188, 255, 0.08);
}

.chat-compose{
  margin-top: auto;
}

.support-note-card{
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(128, 150, 194, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.support-note-card a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.withdrawal-history-head{
  align-items: flex-start;
  gap: 0.85rem;
}

.withdrawal-title-row{
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.withdrawal-important-note{
  margin-top: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-left: 3px solid #f5c542;
  border-radius: 0.5rem;
  background: rgba(245, 197, 66, 0.1);
}

textarea.input.affiliate-note-input{
  min-width: 13rem;
  min-height: 4.4rem;
  resize: vertical;
}

.affiliate-note-save{
  margin-top: 0.55rem;
}

.settings-check{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.settings-check input{
  width: auto;
  margin: 0;
}

.meta-list{
  display: grid;
  gap: 0.7rem;
}

.meta-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.meta-row strong{
  color: var(--text);
  text-align: right;
}

/* Loading,
empty,
and skeleton states used while API data is loading or unavailable. */
.empty{
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(17, 17, 17, 0.12);
  border-radius: 1rem;
  background: rgba(255, 250, 245, 0.86);
  line-height: 1.7;
}

.empty-compact{
  padding: 1.5rem 1rem;
}

.loading-state-card{
  min-height: 18rem;
}

.loading-skeleton-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.skeleton-card{
  display: grid;
  gap: 0.8rem;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.skeleton-line{
  display: block;
  height: 0.82rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.07), rgba(255, 255, 255, 0.84), rgba(17, 17, 17, 0.07));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.skeleton-line.is-short{
  width: 48%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 760px) {
  .loading-skeleton-grid{
    grid-template-columns: 1fr;
  }
}

.legal{
  max-width: 760px;
  margin: 0 auto;
}

.legal section{
  margin-bottom: 1.75rem;
}

.legal h2{
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.legal p{
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.legal p + p,
.legal p + ul,
.legal ul + p{
  margin-top: 0.75rem;
}

.legal ul{
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.legal li + li{
  margin-top: 0.35rem;
}

.legal a{
  color: var(--primary);
}

.legal-contact{
  color: var(--text);
}

.legal-note{
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.not-found{
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.toast-container{
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.75rem;
}

.toast{
  min-width: 280px;
  max-width: 360px;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(8, 12, 24, 0.96);
  border: 1px solid rgba(128, 150, 194, 0.18);
  box-shadow: var(--shadow-card);
  color: #ffffff;
}

.toast strong,
.toast p{
  margin: 0;
}

.toast strong{
  color: #ffffff;
}

.toast p{
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.toast.success{
  border-color: rgba(55, 230, 181, 0.22);
}

.toast.error{
  border-color: rgba(255, 107, 122, 0.24);
}

.toast.info{
  border-color: rgba(45, 188, 255, 0.24);
}

.hidden{
  display: none !important;
}

@media (max-width: 1080px) {
  .grid-4,
.stat-grid,
.kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-main,
.app-main{
    padding-top: 8rem;
  }

  .nav-links,
.nav-actions{
    display: none;
  }

  .nav-toggle{
    display: inline-flex;
  }

  .navbar{
    gap: 0.55rem;
  }

  .mobile-top-actions{
    display: flex;
  }

  .mobile-top-actions .mobile-top-action{
    min-height: 1.9rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.74rem;
  }

  .mobile-quick-nav{
    display: block;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .grid-2,
.grid-3,
.split,
.form-grid{
    grid-template-columns: 1fr;
  }

  .referral-status-field{
    padding-top: 0;
    margin-top: -0.35rem;
  }

  .referral-inline-status{
    min-height: 0;
  }

  .timeline-item,
.dashboard-shell{
    grid-template-columns: 1fr;
  }

  .checkout-layout{
    grid-template-columns: 1fr;
  }

  .service-detail-grid{
    grid-template-columns: 1fr;
  }

  .checkout-summary-card{
    position: static;
    top: auto;
  }

  .service-detail-aside{
    position: static;
    top: auto;
  }

  .checkout-method-grid{
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .topbar,
body[data-page="admin"] .topbar{
    position: relative;
    top: auto;
    z-index: 20;
  }

  .sidebar{
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 150, 194, 0.12);
  }
}

@media (max-width: 760px) {
  .auth-modern-header{
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
  }

  .auth-modern-actions{
    width: 100%;
    justify-content: stretch;
  }

  .auth-modern-chip{
    flex: 1;
    padding-inline: 1rem;
  }

  .auth-modern-card{
    padding: 1.35rem 1rem 1.2rem;
    border-radius: 1.55rem;
  }

  .auth-modern-copy h1{
    font-size: 2.2rem;
  }

  .auth-modern-copy p,
.auth-modern-provider,
.auth-modern-primary,
.auth-modern-secondary{
    font-size: 1rem;
  }

  .auth-modern-input{
    min-height: 4rem;
    font-size: 1.12rem;
  }

  .auth-modern-provider{
    min-height: 3.7rem;
  }

  .auth-modern-identity{
    align-items: flex-start;
    flex-direction: column;
  }

  .site-main,
.app-main{
    padding-top: 8rem;
  }

  .brand{
    gap: 0.8rem;
  }

  .brand-mark{
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
  }

  .brand-name{
    font-size: 0.96rem;
  }

  .hero{
    padding: 4.4rem 0 3.4rem;
  }

  .section{
    padding: 3.4rem 0;
  }

  .grid-auto,
.grid-4,
.stat-grid,
.kpi-grid{
    grid-template-columns: 1fr;
  }

  .btn-row,
.inline-row,
.toolbar,
.tab-row,
.message-compose{
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid{
    grid-template-columns: 1fr;
  }

  .topbar,
.app-panels{
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .admin-topbar-search{
    min-width: 100%;
  }

  .stat-card{
    padding: 1.3rem 0.9rem;
  }

  .symbol{
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 1.05rem;
  }

  .symbol.large{
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
  }

  .symbol svg{
    width: 1.28rem;
    height: 1.28rem;
  }

  .symbol.large svg{
    width: 1.58rem;
    height: 1.58rem;
  }

  th,
td{
    padding: 0.9rem 0.85rem;
  }
}

body.auth-modal-open{
  overflow: hidden;
}

.auth-site-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
}

.auth-site-modal.is-open{
  display: block;
}

.auth-site-modal-backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 204, 64, 0.12), rgba(255, 204, 64, 0) 22%),
    radial-gradient(circle at 82% 15%, rgba(123, 92, 255, 0.2), rgba(123, 92, 255, 0) 22%),
    radial-gradient(circle at 50% 100%, rgba(45, 188, 255, 0.18), rgba(45, 188, 255, 0) 36%),
    rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(16px);
}

.auth-site-modal-panel{
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-site-modal-card{
  position: relative;
  width: min(100%, 32rem);
  padding: 1.6rem 1.6rem 1.3rem;
  border-radius: 2rem;
  border: 1px solid rgba(128, 150, 194, 0.14);
  background:
    linear-gradient(145deg, rgba(19, 28, 51, 0.96), rgba(7, 11, 23, 0.97));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(22px);
}

.auth-site-modal-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.auth-site-modal-close:hover{
  background: rgba(255, 255, 255, 0.08);
}

.auth-site-modal .auth-modern-back{
  margin-bottom: 0.9rem;
  color: var(--text-soft);
}

.auth-site-modal .auth-modern-copy{
  gap: 0.9rem;
}

.auth-site-modal .auth-modern-eyebrow{
  color: var(--text-faint);
}

.auth-site-modal .auth-modern-copy h1{
  color: var(--text);
  font-size: clamp(2.2rem, 3vw, 2.9rem);
  letter-spacing: -0.055em;
}

.auth-site-modal .auth-modern-copy p,
.auth-site-modal .auth-modern-meta,
.auth-site-modal .auth-modern-runtime-note{
  color: var(--text-soft);
}

.auth-site-modal .auth-modern-provider,
.auth-site-modal .auth-modern-input,
.auth-site-modal .auth-modern-select,
.auth-site-modal .auth-modern-identity{
  border-color: rgba(128, 150, 194, 0.16);
  background: rgba(14, 22, 40, 0.9);
  color: var(--text);
  box-shadow: none;
}

.auth-site-modal .auth-modern-google-slot{
  min-height: 3.55rem;
}

.auth-site-modal .auth-modern-provider:hover{
  border-color: rgba(45, 188, 255, 0.28);
  box-shadow: 0 18px 38px rgba(45, 188, 255, 0.12);
}

.auth-site-modal .auth-modern-input::placeholder{
  color: var(--text-faint);
}

.auth-site-modal .auth-modern-label,
.auth-site-modal .auth-modern-identity-label,
.auth-site-modal .auth-modern-divider,
.auth-site-modal .auth-modern-text-link,
.auth-site-modal .auth-modern-inline-link{
  color: var(--text-soft);
}

.auth-site-modal .auth-modern-divider::before,
.auth-site-modal .auth-modern-divider::after{
  background: rgba(128, 150, 194, 0.14);
}

.auth-site-modal .auth-modern-primary{
  background: var(--gradient-primary);
  color: #07111f;
  box-shadow: 0 22px 38px rgba(45, 188, 255, 0.18);
}

.auth-site-modal .auth-modern-primary:hover:not(:disabled){
  box-shadow: 0 24px 44px rgba(45, 188, 255, 0.2);
}

.auth-site-modal .auth-modern-secondary{
  border-color: rgba(128, 150, 194, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.auth-site-modal .auth-modern-feedback.is-error{
  background: rgba(255, 107, 122, 0.12);
  color: #ff6078;
}

.auth-site-modal .auth-modern-feedback.is-info,
.auth-site-modal .auth-modern-feedback.is-dev{
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.auth-site-modal .auth-modern-legal{
  margin-top: 1.2rem;
  color: var(--text-faint);
}

/* Public Website Phase */
body[data-page="home"] .hero > .container,
body[data-page="about"] .hero > .container,
body[data-page="services"] .hero > .container,
body[data-page="earn"] .hero > .container,
body[data-page="contact"] .hero > .container{
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 5vw, 4.6rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: calc(var(--radius-lg) + 0.7rem);
  background:
    radial-gradient(circle at top right, rgba(245, 197, 66, 0.22), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(255, 79, 163, 0.18), transparent 20rem),
    linear-gradient(135deg, #111111 0%, #171311 48%, #2a161f 100%);
  box-shadow: 0 28px 72px rgba(17, 17, 17, 0.18);
}

body[data-page="home"] .hero > .container::before,
body[data-page="about"] .hero > .container::before,
body[data-page="services"] .hero > .container::before,
body[data-page="earn"] .hero > .container::before,
body[data-page="contact"] .hero > .container::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

body[data-page="home"] .hero .eyebrow,
body[data-page="about"] .hero .eyebrow,
body[data-page="services"] .hero .eyebrow,
body[data-page="earn"] .hero .eyebrow,
body[data-page="contact"] .hero .eyebrow{
  color: #fff7ea;
  background: rgba(245, 197, 66, 0.16);
  border-color: rgba(245, 197, 66, 0.24);
}

body[data-page="home"] .hero .title-xl,
body[data-page="home"] .hero .title-lg,
body[data-page="about"] .hero .title-lg,
body[data-page="services"] .hero .title-lg,
body[data-page="earn"] .hero .title-lg,
body[data-page="contact"] .hero .title-lg{
  color: #fffaf3;
}

body[data-page="home"] .hero .lead,
body[data-page="about"] .hero .lead,
body[data-page="services"] .hero .lead,
body[data-page="earn"] .hero .lead,
body[data-page="contact"] .hero .lead{
  color: rgba(255, 247, 238, 0.78);
}

body[data-page="home"] .hero .tag,
body[data-page="about"] .hero .tag,
body[data-page="services"] .hero .tag,
body[data-page="earn"] .hero .tag,
body[data-page="contact"] .hero .tag{
  color: #fff7ea;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-page="home"] .hero .btn-outline,
body[data-page="about"] .hero .btn-outline,
body[data-page="services"] .hero .btn-outline,
body[data-page="earn"] .hero .btn-outline,
body[data-page="contact"] .hero .btn-outline{
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-page="home"] .hero .btn-neon,
body[data-page="about"] .hero .btn-neon,
body[data-page="services"] .hero .btn-neon,
body[data-page="earn"] .hero .btn-neon,
body[data-page="contact"] .hero .btn-neon{
  color: #fff9f1;
  background: rgba(245, 197, 66, 0.14);
  border-color: rgba(245, 197, 66, 0.22);
}

body[data-page="home"] .site-main .card::before,
body[data-page="about"] .site-main .card::before,
body[data-page="services"] .site-main .card::before,
body[data-page="earn"] .site-main .card::before,
body[data-page="contact"] .site-main .card::before,
body[data-page="contact"] .site-main .faq-item::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0.92;
}

body[data-page="home"] .stat-card,
body[data-page="about"] .grid-3 > .card,
body[data-page="earn"] .grid-3 > .card,
body[data-page="services"] .grid-auto > .card,
body[data-page="contact"] .info-list .card{
  min-height: 100%;
}

body[data-page="services"] .card-body.split{
  gap: 2.25rem;
  align-items: stretch;
}

body[data-page="services"] .card-body.split > .stack{
  gap: 0.8rem;
  padding: 0.95rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.94), rgba(255, 255, 255, 0.8));
}

body[data-page="services"] [data-service-summary]{
  border-color: rgba(17, 17, 17, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="services"] [data-service-summary] .card-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 0.9rem;
}

body[data-page="services"] [data-service-summary] strong{
  min-width: 0;
  line-height: 1.15;
}

body[data-page="services"] [data-service-summary] .text-gradient{
  justify-self: end;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  -webkit-text-fill-color: #111111;
  background-clip: border-box;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

body[data-page="services"] [data-service-summary]:hover{
  border-color: rgba(255, 79, 163, 0.18);
}

.feature-list{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.feature-list li::before{
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.14);
}

.timeline-item{
  align-items: center;
}

.timeline-number{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 233, 0.96));
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 163, 0.03);
}

body[data-page="contact"] .form-card{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 236, 0.99));
}

body[data-page="contact"] .split{
  align-items: stretch;
}

body[data-page="contact"] .info-list{
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

body[data-page="contact"] .info-list .card{
  min-height: 0;
}

body[data-page="contact"] .info-list .card-body{
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  column-gap: 1rem;
  min-height: 100%;
  padding: 1rem 1.1rem;
}

body[data-page="contact"] .info-list .symbol{
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 0.82rem;
}

body[data-page="contact"] .info-list .symbol svg{
  width: 1.15rem;
  height: 1.15rem;
}

body[data-page="contact"] .info-list .title-sm{
  margin: 0 0 0.22rem !important;
  font-size: 1rem;
}

body[data-page="contact"] .info-list .copy{
  grid-column: 2;
  margin: 0;
  line-height: 1.45;
}

body[data-page="contact"] .faq-item{
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-page="contact"] .faq-item.is-open{
  border-color: rgba(255, 79, 163, 0.2);
  box-shadow: 0 18px 42px rgba(33, 18, 7, 0.08);
}

body[data-page="contact"] .faq-button span:last-child{
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

body[data-page="services"] .empty.card{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 236, 0.98));
}

/* Commerce Phase */
body[data-page="checkout"] .hero > .container,
body[data-page="service-request"] .hero > .container,
body[data-page="service-checkout"] .hero > .container,
body[data-page="success"] .hero > .container{
  position: relative;
  overflow: hidden;
  padding: clamp(2.7rem, 5vw, 4.2rem) clamp(1.2rem, 3.5vw, 2.8rem);
  border-radius: calc(var(--radius-lg) + 0.7rem);
  background:
    radial-gradient(circle at top right, rgba(245, 197, 66, 0.2), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(255, 79, 163, 0.16), transparent 18rem),
    linear-gradient(135deg, #111111 0%, #1a1411 54%, #2d1721 100%);
  box-shadow: 0 28px 72px rgba(17, 17, 17, 0.18);
}

body[data-page="checkout"] .hero > .container::before,
body[data-page="service-request"] .hero > .container::before,
body[data-page="service-checkout"] .hero > .container::before,
body[data-page="success"] .hero > .container::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

body[data-page="checkout"] .hero .eyebrow,
body[data-page="service-request"] .hero .eyebrow,
body[data-page="service-checkout"] .hero .eyebrow,
body[data-page="success"] .hero .eyebrow{
  color: #fff7ea;
  background: rgba(245, 197, 66, 0.16);
  border-color: rgba(245, 197, 66, 0.22);
}

body[data-page="checkout"] .hero .title-lg,
body[data-page="service-request"] .hero .title-lg,
body[data-page="service-checkout"] .hero .title-lg,
body[data-page="success"] .hero .title-lg{
  color: #fffaf3;
}

body[data-page="checkout"] .hero .lead,
body[data-page="service-request"] .hero .lead,
body[data-page="service-checkout"] .hero .lead,
body[data-page="success"] .hero .lead{
  color: rgba(255, 247, 238, 0.78);
}

body[data-page="checkout"] .checkout-layout,
body[data-page="service-request"] .checkout-layout,
body[data-page="service-checkout"] .checkout-layout,
body[data-page="success"] .checkout-layout{
  gap: 1.5rem;
  align-items: start;
}

body[data-page="checkout"] .checkout-shell-card,
body[data-page="service-request"] .checkout-shell-card,
body[data-page="service-checkout"] .checkout-shell-card,
body[data-page="success"] .checkout-shell-card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 246, 236, 0.98));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 24px 58px rgba(33, 18, 7, 0.1);
}

body[data-page="checkout"] .checkout-shell-card::before,
body[data-page="service-request"] .checkout-shell-card::before,
body[data-page="service-checkout"] .checkout-shell-card::before,
body[data-page="success"] .checkout-shell-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-primary);
}

body[data-page="checkout"] .checkout-headline,
body[data-page="service-request"] .checkout-headline,
body[data-page="service-checkout"] .checkout-headline{
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

body[data-page="checkout"] .checkout-step-row,
body[data-page="service-request"] .checkout-step-row,
body[data-page="service-checkout"] .checkout-step-row,
body[data-page="success"] .checkout-step-row{
  gap: 0.55rem;
}

body[data-page="checkout"] .checkout-step-row .tag,
body[data-page="service-request"] .checkout-step-row .tag,
body[data-page="service-checkout"] .checkout-step-row .tag,
body[data-page="success"] .checkout-step-row .tag{
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.07);
  color: var(--ink-soft);
}

body[data-page="checkout"] .checkout-step-row .status,
body[data-page="service-request"] .checkout-step-row .status,
body[data-page="service-checkout"] .checkout-step-row .status,
body[data-page="success"] .checkout-step-row .status{
  border-color: rgba(255, 79, 163, 0.14);
}

body[data-page="checkout"] .checkout-method-card,
body[data-page="service-checkout"] .checkout-method-card{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 238, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

body[data-page="checkout"] .checkout-method-card:hover,
body[data-page="service-checkout"] .checkout-method-card:hover,
body[data-page="checkout"] .checkout-method-card:has(input:checked),
body[data-page="service-checkout"] .checkout-method-card:has(input:checked){
  border-color: rgba(255, 79, 163, 0.22);
  box-shadow: 0 18px 36px rgba(255, 79, 163, 0.12);
  transform: translateY(-2px);
}

body[data-page="checkout"] .checkout-method-card strong,
body[data-page="service-checkout"] .checkout-method-card strong{
  color: var(--text);
}

body[data-page="checkout"] .checkout-summary-card,
body[data-page="service-request"] .checkout-summary-card,
body[data-page="service-checkout"] .checkout-summary-card,
body[data-page="success"] .checkout-summary-card{
  background:
    radial-gradient(circle at top right, rgba(245, 197, 66, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(255, 244, 233, 0.99));
}

body[data-page="checkout"] .checkout-price,
body[data-page="service-request"] .checkout-price,
body[data-page="service-checkout"] .checkout-price,
body[data-page="success"] .checkout-price{
  font-size: 1.7rem;
}

body[data-page="checkout"] .checkout-total-row,
body[data-page="service-request"] .checkout-total-row,
body[data-page="service-checkout"] .checkout-total-row,
body[data-page="success"] .checkout-total-row{
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

body[data-page="checkout"] .support-note-card,
body[data-page="service-request"] .support-note-card,
body[data-page="service-checkout"] .support-note-card,
body[data-page="success"] .support-note-card{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 251, 246, 0.96);
}

body[data-page="checkout"] .meta-row,
body[data-page="service-request"] .meta-row,
body[data-page="service-checkout"] .meta-row,
body[data-page="success"] .meta-row{
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.06);
}

body[data-page="checkout"] .meta-row:last-child,
body[data-page="service-request"] .meta-row:last-child,
body[data-page="service-checkout"] .meta-row:last-child,
body[data-page="success"] .meta-row:last-child{
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-page="checkout"] .checkout-state-card,
body[data-page="service-request"] .checkout-state-card,
body[data-page="service-checkout"] .checkout-state-card,
body[data-page="success"] .success-card{
  text-align: center;
}

body[data-page="success"] .success-card .symbol{
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.16), 0 0 26px rgba(245, 197, 66, 0.12);
}

body[data-page="success"] .success-actions .btn-outline,
body[data-page="checkout"] .checkout-shell-card .btn-outline,
body[data-page="service-request"] .checkout-shell-card .btn-outline,
body[data-page="service-checkout"] .checkout-shell-card .btn-outline{
  background: rgba(17, 17, 17, 0.02);
}

.auth-modern-chip{
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-soft);
  box-shadow: 0 14px 32px rgba(33, 18, 7, 0.08);
}

.auth-modern-chip:hover,
.auth-modern-chip.is-active{
  background: rgba(255, 79, 163, 0.08);
  color: var(--text);
  border-color: rgba(255, 79, 163, 0.2);
  box-shadow: 0 18px 36px rgba(255, 79, 163, 0.1);
}

.auth-modern-backdrop{
  background:
    radial-gradient(circle at 14% 18%, rgba(245, 197, 66, 0.18), rgba(245, 197, 66, 0) 22%),
    radial-gradient(circle at 82% 15%, rgba(255, 79, 163, 0.22), rgba(255, 79, 163, 0) 22%),
    radial-gradient(circle at 50% 100%, rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0) 36%);
  filter: blur(10px);
  opacity: 0.95;
}

.auth-modern-card{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 236, 0.98));
  box-shadow: 0 28px 70px rgba(33, 18, 7, 0.1);
}

.auth-modern-provider,
.auth-modern-input,
.auth-modern-select,
.auth-modern-identity{
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.auth-modern-provider:hover{
  border-color: rgba(255, 79, 163, 0.22);
  box-shadow: 0 18px 38px rgba(255, 79, 163, 0.1);
}

.auth-modern-input:focus,
.auth-modern-select:focus{
  border-color: rgba(255, 79, 163, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.1);
}

.auth-modern-primary{
  color: #111111;
  box-shadow: 0 20px 38px rgba(255, 79, 163, 0.16);
}

.auth-modern-secondary{
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.auth-modern-feedback.is-info{
  background: rgba(245, 197, 66, 0.12);
  color: var(--ink);
}

.auth-modern-feedback.is-dev{
  background: rgba(17, 17, 17, 0.04);
  color: var(--text);
}

.auth-site-modal-backdrop{
  background:
    radial-gradient(circle at 14% 18%, rgba(245, 197, 66, 0.2), rgba(245, 197, 66, 0) 22%),
    radial-gradient(circle at 82% 15%, rgba(255, 79, 163, 0.18), rgba(255, 79, 163, 0) 22%),
    radial-gradient(circle at 50% 100%, rgba(17, 17, 17, 0.18), rgba(17, 17, 17, 0) 36%),
    rgba(17, 17, 17, 0.52);
}

.auth-site-modal-card{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 236, 0.98));
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.2);
}

.auth-site-modal-close{
  background: rgba(17, 17, 17, 0.05);
  color: var(--text);
}

.auth-site-modal-close:hover{
  background: rgba(255, 79, 163, 0.12);
}

.auth-site-modal .auth-modern-provider,
.auth-site-modal .auth-modern-input,
.auth-site-modal .auth-modern-select,
.auth-site-modal .auth-modern-identity{
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.auth-site-modal .auth-modern-provider:hover{
  border-color: rgba(255, 79, 163, 0.22);
  box-shadow: 0 18px 38px rgba(255, 79, 163, 0.1);
}

.auth-site-modal .auth-modern-divider::before,
.auth-site-modal .auth-modern-divider::after{
  background: rgba(17, 17, 17, 0.1);
}

.auth-site-modal .auth-modern-primary{
  color: #111111;
  box-shadow: 0 20px 38px rgba(255, 79, 163, 0.16);
}

.auth-site-modal .auth-modern-primary:hover:not(:disabled){
  box-shadow: 0 24px 44px rgba(255, 79, 163, 0.2);
}

.auth-site-modal .auth-modern-secondary{
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.auth-site-modal .auth-modern-feedback.is-error{
  background: rgba(232, 90, 130, 0.12);
  color: #9a294d;
}

.auth-site-modal .auth-modern-feedback.is-info,
.auth-site-modal .auth-modern-feedback.is-dev{
  background: rgba(245, 197, 66, 0.12);
  color: var(--text);
}

/* App Phase */
body[data-page="dashboard"],
body[data-page="admin"]{
  background:
    radial-gradient(circle at top left, rgba(245, 197, 66, 0.16), transparent 24rem),
    radial-gradient(circle at top right, rgba(255, 79, 163, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffdf9 0%, #f5ece2 100%);
}

body[data-page="dashboard"] .app-main,
body[data-page="admin"] .app-main{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(247, 239, 229, 0.94));
}

body[data-page="dashboard"] #site-footer,
body[data-page="admin"] #site-footer{
  display: none;
}

body[data-page="dashboard"] .sidebar,
body[data-page="admin"] .sidebar{
  background: linear-gradient(180deg, #111111 0%, #171311 52%, #23151a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-page="dashboard"] .sidebar::-webkit-scrollbar,
body[data-page="admin"] .sidebar::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

body[data-page="dashboard"] .sidebar-label,
body[data-page="admin"] .sidebar-label{
  color: rgba(245, 197, 66, 0.78);
}

body[data-page="dashboard"] .sidebar-link,
body[data-page="admin"] .sidebar-link{
  color: rgba(255, 247, 238, 0.74);
}

body[data-page="dashboard"] .sidebar-count,
body[data-page="admin"] .sidebar-count{
  background: rgba(255, 255, 255, 0.1);
  color: #fff7ea;
}

body[data-page="dashboard"] .sidebar-link:hover,
body[data-page="dashboard"] .sidebar-link.is-active,
body[data-page="admin"] .sidebar-link:hover,
body[data-page="admin"] .sidebar-link.is-active{
  color: #fffaf3;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.18), rgba(245, 197, 66, 0.14));
}

body[data-page="dashboard"] .sidebar-link.is-active,
body[data-page="admin"] .sidebar-link.is-active{
  border-color: rgba(245, 197, 66, 0.16);
}

body[data-page="dashboard"] .sidebar-link.is-active .sidebar-count,
body[data-page="admin"] .sidebar-link.is-active .sidebar-count{
  background: rgba(245, 197, 66, 0.2);
  color: #fff7ea;
}

body[data-page="dashboard"] .sidebar-footer,
body[data-page="admin"] .sidebar-footer{
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="dashboard"] .sidebar-footer .copy,
body[data-page="admin"] .sidebar-footer .copy{
  color: rgba(255, 247, 238, 0.7);
}

body[data-page="dashboard"] .sidebar .btn-ghost,
body[data-page="admin"] .sidebar .btn-ghost{
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-page="dashboard"] .topbar,
body[data-page="admin"] .topbar{
  position: sticky;
  top: 4.75rem;
  z-index: 35;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(33, 18, 7, 0.06);
}

body[data-page="dashboard"] .app-panels,
body[data-page="admin"] .app-panels{
  padding: 1.5rem;
}

body[data-page="dashboard"] .kpi-card,
body[data-page="admin"] .kpi-card{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 238, 0.98));
  box-shadow: 0 22px 54px rgba(33, 18, 7, 0.08);
}

body[data-page="dashboard"] .kpi-card::before,
body[data-page="admin"] .kpi-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-primary);
}

body[data-page="dashboard"] .notification-drawer,
body[data-page="admin"] .notification-drawer{
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 56px rgba(33, 18, 7, 0.12);
}

body[data-page="dashboard"] .notification-item.is-unread,
body[data-page="admin"] .notification-item.is-unread{
  border-color: rgba(255, 79, 163, 0.18);
  background: rgba(255, 79, 163, 0.08);
}

body[data-page="dashboard"] .support-list-panel,
body[data-page="admin"] .support-list-panel,
body[data-page="dashboard"] .chat-panel,
body[data-page="admin"] .chat-panel{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 246, 236, 0.98));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 20px 50px rgba(33, 18, 7, 0.08);
}

body[data-page="dashboard"] .support-filter-chip,
body[data-page="admin"] .support-filter-chip{
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(17, 17, 17, 0.03);
}

body[data-page="dashboard"] .support-filter-chip.is-active,
body[data-page="admin"] .support-filter-chip.is-active{
  border-color: rgba(255, 79, 163, 0.2);
  background: rgba(255, 79, 163, 0.08);
  color: var(--primary);
}

body[data-page="dashboard"] .support-user-card,
body[data-page="admin"] .support-user-card{
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

body[data-page="dashboard"] .support-user-card:hover,
body[data-page="admin"] .support-user-card:hover{
  border-color: rgba(255, 79, 163, 0.18);
  background: rgba(255, 79, 163, 0.05);
}

body[data-page="dashboard"] .support-user-card.is-selected,
body[data-page="admin"] .support-user-card.is-selected{
  border-color: rgba(255, 79, 163, 0.24);
  background: rgba(255, 79, 163, 0.1);
  box-shadow: 0 12px 28px rgba(255, 79, 163, 0.1);
}

body[data-page="dashboard"] .support-user-avatar,
body[data-page="admin"] .support-user-avatar{
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(135deg, #111111 0%, #ff4fa3 62%, #f5c542 100%);
  color: #fff8ef;
}

body[data-page="dashboard"] .chat-bubble,
body[data-page="admin"] .chat-bubble{
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 249, 242, 0.96);
  box-shadow: 0 10px 24px rgba(33, 18, 7, 0.06);
}

body[data-page="dashboard"] .chat-bubble.self,
body[data-page="admin"] .chat-bubble.self,
body[data-page="dashboard"] .message-card.self,
body[data-page="admin"] .message-card.self{
  border-color: rgba(255, 79, 163, 0.2);
  background: rgba(255, 79, 163, 0.1);
}

body[data-page="dashboard"] .support-note-card,
body[data-page="admin"] .support-note-card{
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 249, 242, 0.96);
}

/* Polish Phase */
html{
  background: var(--bg);
}

body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection{
  background: rgba(255, 79, 163, 0.22);
  color: #111111;
}

body[data-page="dashboard"] ::selection,
body[data-page="admin"] ::selection{
  background: rgba(17, 17, 17, 0.14);
  color: #111111;
}

a,
button,
input,
select,
textarea{
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.sidebar-link:focus-visible,
.tab-button:focus-visible,
.notification-item:focus-visible,
.support-user-card:focus-visible,
.support-filter-chip:focus-visible,
.faq-button:focus-visible,
.nav-link:focus-visible{
  outline: 3px solid rgba(255, 79, 163, 0.18);
  outline-offset: 3px;
}

.copy strong,
.lead strong,
.tiny strong{
  color: var(--text);
}

.tag{
  font-weight: 600;
}

.input::placeholder,
textarea::placeholder,
input::placeholder{
  color: #988a7d;
}

.table-wrap{
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

thead tr{
  background: rgba(255, 250, 245, 0.98);
}

th{
  letter-spacing: 0.14em;
}

.empty,
.empty-compact{
  border: 1px dashed rgba(17, 17, 17, 0.1);
  border-radius: 1rem;
  background: rgba(255, 250, 245, 0.82);
}

body[data-page="dashboard"] .form-card,
body[data-page="dashboard"] .table-card,
body[data-page="admin"] .form-card,
body[data-page="admin"] .table-card{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 246, 236, 0.98));
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-page="dashboard"] .dashboard-tab-row,
body[data-page="admin"] .tab-row{
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

body[data-page="dashboard"] .overview-highlight-grid,
body[data-page="admin"] .overview-highlight-grid{
  align-items: stretch;
}

body[data-page="dashboard"] .topbar h1,
body[data-page="admin"] .topbar h1{
  letter-spacing: -0.04em;
}

body[data-page="dashboard"] .notification-stack .btn-neon,
body[data-page="admin"] .notification-stack .btn-neon{
  background: rgba(255, 79, 163, 0.08);
  border-color: rgba(255, 79, 163, 0.18);
}

body[data-page="dashboard"] .notification-stack .btn-neon:hover,
body[data-page="admin"] .notification-stack .btn-neon:hover{
  background: rgba(255, 79, 163, 0.12);
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .sidebar,
body[data-page="admin"] .sidebar{
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.12);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero > .container,
body[data-page="about"] .hero > .container,
body[data-page="services"] .hero > .container,
body[data-page="earn"] .hero > .container,
body[data-page="contact"] .hero > .container,
body[data-page="checkout"] .hero > .container,
body[data-page="service-request"] .hero > .container,
body[data-page="service-checkout"] .hero > .container,
body[data-page="success"] .hero > .container{
    padding: 2.2rem 1rem;
    border-radius: 1.6rem;
  }

  body[data-page="dashboard"] .topbar,
body[data-page="admin"] .topbar{
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
  }

  body[data-page="dashboard"] .kpi-card,
body[data-page="admin"] .kpi-card{
    min-height: 0;
  }

  body[data-page="checkout"] .checkout-step-row,
body[data-page="service-request"] .checkout-step-row,
body[data-page="service-checkout"] .checkout-step-row,
body[data-page="success"] .checkout-step-row{
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .auth-site-modal-panel{
    padding: 1rem 0.75rem;
  }

  .auth-site-modal-card{
    width: min(100%, 30rem);
    padding: 1.3rem 1rem 1.1rem;
    border-radius: 1.6rem;
  }

  .auth-site-modal .auth-modern-copy h1{
    font-size: 2rem;
  }

  .auth-site-modal .auth-modern-input,
.auth-site-modal .auth-modern-primary,
.auth-site-modal .auth-modern-secondary,
.auth-site-modal .auth-modern-provider{
    min-height: 3.55rem;
    font-size: 1rem;
  }
}

/* Monochrome Theme Simplification */
:root{
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --ink: #111111;
  --ink-soft: #1f1f1f;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-2: rgba(248, 248, 248, 0.98);
  --text: #111111;
  --text-soft: #5f6368;
  --text-faint: #8b8f94;
  --primary: #111111;
  --secondary: #111111;
  --accent: #111111;
  --border: rgba(17, 17, 17, 0.08);
  --gradient-primary: linear-gradient(135deg, #111111 0%, #2f2f2f 100%);
  --gradient-accent: linear-gradient(135deg, #111111 0%, #444444 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 249, 249, 0.99));
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.05);
  --shadow-neon: 0 12px 28px rgba(0, 0, 0, 0.05);
}

body,
body[data-page="dashboard"],
body[data-page="admin"],
body[data-page="login"]{
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.section-soft{
  background: #f7f7f7;
  border-top: 1px solid rgba(17, 17, 17, 0.05);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.text-gradient{
  background: linear-gradient(135deg, #111111 0%, #444444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.brand-tech{
  background: linear-gradient(135deg, #ff4fa3 0%, #f5c542 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.eyebrow{
  color: #111111;
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.btn-primary,
.auth-modern-primary,
.auth-site-modal .auth-modern-primary{
  color: #ffffff;
  background: #111111;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.btn-neon,
.btn-outline,
.auth-modern-secondary,
.auth-site-modal .auth-modern-secondary{
  color: #111111;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 17, 17, 0.12);
  box-shadow: none;
}

.btn-primary:hover,
.auth-modern-primary:hover:not(:disabled),
.auth-site-modal .auth-modern-primary:hover:not(:disabled){
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

.btn-neon:hover,
.btn-outline:hover,
.auth-modern-secondary:hover:not(:disabled),
.auth-site-modal .auth-modern-secondary:hover:not(:disabled){
  border-color: rgba(17, 17, 17, 0.18);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.card,
.panel,
.table-card,
.form-card,
.auth-card,
.faq-item,
.kpi-card,
.message-card,
.stat-card,
.support-list-panel,
.chat-panel,
.checkout-shell-card{
  background: var(--gradient-card);
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-card);
}

.symbol,
.blue,
.purple,
.green,
.pink,
.gold,
body[data-page="dashboard"] .support-user-avatar,
body[data-page="admin"] .support-user-avatar{
  background: linear-gradient(135deg, #111111 0%, #2f2f2f 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(17, 17, 17, 0.08);
}

.tag,
.status,
.checkout-step-row .tag{
  color: #111111;
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.08);
}

.status.info,
.status.success{
  color: #111111;
  background: rgba(17, 17, 17, 0.06);
}

.status.warn{
  color: #8a6500;
  background: rgba(245, 197, 66, 0.14);
}

.status.danger{
  color: #9a294d;
  background: rgba(255, 79, 163, 0.12);
}

.site-header,
.site-header.is-scrolled,
.site-header.is-open,
.topbar,
body[data-page="dashboard"] .topbar,
body[data-page="admin"] .topbar{
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.nav-link:hover,
.nav-link.is-active,
.tab-button.is-active,
.tab-button:hover,
body[data-page="dashboard"] .support-filter-chip.is-active,
body[data-page="admin"] .support-filter-chip.is-active{
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.tab-button.is-active .admin-tab-count,
.admin-tab-button:hover .admin-tab-count,
.sidebar-link.is-active .sidebar-count{
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

body[data-page="home"] .hero > .container,
body[data-page="about"] .hero > .container,
body[data-page="services"] .hero > .container,
body[data-page="earn"] .hero > .container,
body[data-page="contact"] .hero > .container,
body[data-page="checkout"] .hero > .container,
body[data-page="service-request"] .hero > .container,
body[data-page="service-checkout"] .hero > .container,
body[data-page="success"] .hero > .container{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 249, 249, 0.99));
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

body[data-page="home"] .hero > .container::before,
body[data-page="about"] .hero > .container::before,
body[data-page="services"] .hero > .container::before,
body[data-page="earn"] .hero > .container::before,
body[data-page="contact"] .hero > .container::before,
body[data-page="checkout"] .hero > .container::before,
body[data-page="service-request"] .hero > .container::before,
body[data-page="service-checkout"] .hero > .container::before,
body[data-page="success"] .hero > .container::before{
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

body[data-page="home"] .hero .title-xl,
body[data-page="home"] .hero .title-lg,
body[data-page="about"] .hero .title-lg,
body[data-page="services"] .hero .title-lg,
body[data-page="earn"] .hero .title-lg,
body[data-page="contact"] .hero .title-lg,
body[data-page="checkout"] .hero .title-lg,
body[data-page="service-request"] .hero .title-lg,
body[data-page="service-checkout"] .hero .title-lg,
body[data-page="success"] .hero .title-lg,
body[data-page="home"] .hero .lead,
body[data-page="about"] .hero .lead,
body[data-page="services"] .hero .lead,
body[data-page="earn"] .hero .lead,
body[data-page="contact"] .hero .lead,
body[data-page="checkout"] .hero .lead,
body[data-page="service-request"] .hero .lead,
body[data-page="service-checkout"] .hero .lead,
body[data-page="success"] .hero .lead,
body[data-page="home"] .hero .tag,
body[data-page="about"] .hero .tag,
body[data-page="services"] .hero .tag,
body[data-page="earn"] .hero .tag,
body[data-page="contact"] .hero .tag,
body[data-page="checkout"] .hero .tag,
body[data-page="service-request"] .hero .tag,
body[data-page="service-checkout"] .hero .tag,
body[data-page="success"] .hero .tag{
  color: #111111;
}

body[data-page="dashboard"] .sidebar,
body[data-page="admin"] .sidebar{
  background: linear-gradient(180deg, #111111 0%, #1d1d1d 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-page="dashboard"] .sidebar-link,
body[data-page="admin"] .sidebar-link{
  color: #ffffff;
}

body[data-page="dashboard"] .sidebar-link:hover,
body[data-page="dashboard"] .sidebar-link.is-active,
body[data-page="admin"] .sidebar-link:hover,
body[data-page="admin"] .sidebar-link.is-active{
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body[data-page="dashboard"] .sidebar-count,
body[data-page="admin"] .sidebar-count{
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .dashboard-shell,
body[data-page="admin"] .dashboard-shell{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body[data-page="dashboard"] .sidebar,
body[data-page="admin"] .sidebar{
    display: none;
  }

  body[data-page="dashboard"] .app-content,
body[data-page="admin"] .app-content{
    width: 100%;
  }

  body[data-page="dashboard"] .mobile-card,
body[data-page="admin"] .mobile-card{
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.12);
  }

  body[data-page="dashboard"] .mobile-links,
body[data-page="admin"] .mobile-links{
    gap: 0.45rem;
  }

  body[data-page="dashboard"] .mobile-app-link,
body[data-page="admin"] .mobile-app-link{
    justify-content: flex-start;
    min-height: 2.35rem;
    padding: 0.72rem 0.9rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  body[data-page="dashboard"] .mobile-app-link.is-active,
body[data-page="admin"] .mobile-app-link.is-active{
    color: #ffffff;
    background: #111111;
  }

  body[data-page="dashboard"] .mobile-actions,
body[data-page="admin"] .mobile-actions{
    margin-top: 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
  }
}

body[data-page="home"] .hero .eyebrow,
body[data-page="about"] .hero .eyebrow,
body[data-page="services"] .hero .eyebrow,
body[data-page="earn"] .hero .eyebrow,
body[data-page="contact"] .hero .eyebrow,
body[data-page="checkout"] .hero .eyebrow,
body[data-page="service-request"] .hero .eyebrow,
body[data-page="service-checkout"] .hero .eyebrow,
body[data-page="success"] .hero .eyebrow{
  color: #111111;
  background: rgba(245, 197, 66, 0.12);
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-page="home"] .hero .btn-outline,
body[data-page="about"] .hero .btn-outline,
body[data-page="services"] .hero .btn-outline,
body[data-page="contact"] .hero .btn-outline,
body[data-page="checkout"] .hero .btn-outline,
body[data-page="service-request"] .hero .btn-outline,
body[data-page="service-checkout"] .hero .btn-outline,
body[data-page="success"] .hero .btn-outline,
body[data-page="home"] .hero .btn-neon,
body[data-page="about"] .hero .btn-neon,
body[data-page="services"] .hero .btn-neon,
body[data-page="contact"] .hero .btn-neon,
body[data-page="checkout"] .hero .btn-neon,
body[data-page="service-request"] .hero .btn-neon,
body[data-page="service-checkout"] .hero .btn-neon,
body[data-page="success"] .hero .btn-neon{
  color: #111111;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.footer .brand-name,
.footer .footer-title{
  color: #ffffff;
}

.footer .footer-copy,
.footer .footer-links a,
.footer .footer-links span,
.footer .footer-social-label,
.footer .footer-note{
  color: rgba(255, 255, 255, 0.7);
}

.footer .footer-links a:hover{
  color: #ffffff;
}

.footer .footer-social-link{
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.05);
}

.footer .footer-contact-cta{
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="dashboard"] .notification-item.is-unread,
body[data-page="admin"] .notification-item.is-unread,
body[data-page="dashboard"] .support-user-card.is-selected,
body[data-page="admin"] .support-user-card.is-selected,
body[data-page="dashboard"] .chat-bubble.self,
body[data-page="admin"] .chat-bubble.self,
body[data-page="dashboard"] .message-card.self,
body[data-page="admin"] .message-card.self{
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
  box-shadow: none;
}

.auth-modern-backdrop,
.auth-site-modal-backdrop{
  background: rgba(0, 0, 0, 0.42);
  filter: none;
  opacity: 1;
}

.auth-modern-card,
.auth-site-modal-card{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 249, 249, 0.99));
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.auth-modern-provider,
.auth-modern-input,
.auth-modern-select,
.auth-modern-identity,
.auth-site-modal .auth-modern-provider,
.auth-site-modal .auth-modern-input,
.auth-site-modal .auth-modern-select,
.auth-site-modal .auth-modern-identity{
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
}

.auth-modern-chip:hover,
.auth-modern-chip.is-active{
  color: #ffffff;
  background: #111111;
  border-color: #111111;
  box-shadow: none;
}

.kpi-card::before,
.checkout-shell-card::before{
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.72));
}

@media (max-width: 980px) {
  /* Mobile app headings scroll away so dashboard/admin content gets more usable space. */
  body[data-page="dashboard"] .topbar,
body[data-page="admin"] .topbar{
    position: relative;
    top: auto;
    z-index: 90;
  }

  body[data-page="dashboard"] .mobile-quick-nav,
body[data-page="admin"] .mobile-quick-nav,
body[data-page="home"] .mobile-quick-nav,
body[data-page="about"] .mobile-quick-nav,
body[data-page="services"] .mobile-quick-nav,
body[data-page="earn"] .mobile-quick-nav,
body[data-page="contact"] .mobile-quick-nav,
body[data-page="checkout"] .mobile-quick-nav,
body[data-page="service-request"] .mobile-quick-nav,
body[data-page="service-checkout"] .mobile-quick-nav,
body[data-page="success"] .mobile-quick-nav{
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #111111 0%, #1d1d1d 100%);
    backdrop-filter: none;
  }

  body[data-page="dashboard"] .mobile-quick-link,
body[data-page="admin"] .mobile-quick-link,
body[data-page="home"] .mobile-quick-link,
body[data-page="about"] .mobile-quick-link,
body[data-page="services"] .mobile-quick-link,
body[data-page="earn"] .mobile-quick-link,
body[data-page="contact"] .mobile-quick-link,
body[data-page="checkout"] .mobile-quick-link,
body[data-page="service-request"] .mobile-quick-link,
body[data-page="service-checkout"] .mobile-quick-link,
body[data-page="success"] .mobile-quick-link{
    color: rgba(255, 255, 255, 0.72);
  }

  body[data-page="dashboard"] .mobile-quick-link.is-active,
body[data-page="admin"] .mobile-quick-link.is-active,
body[data-page="home"] .mobile-quick-link.is-active,
body[data-page="about"] .mobile-quick-link.is-active,
body[data-page="services"] .mobile-quick-link.is-active,
body[data-page="earn"] .mobile-quick-link.is-active,
body[data-page="contact"] .mobile-quick-link.is-active,
body[data-page="checkout"] .mobile-quick-link.is-active,
body[data-page="service-request"] .mobile-quick-link.is-active,
body[data-page="service-checkout"] .mobile-quick-link.is-active,
body[data-page="success"] .mobile-quick-link.is-active{
    color: #ffffff;
  }

  body[data-page="dashboard"] .mobile-quick-link.is-active::after,
body[data-page="admin"] .mobile-quick-link.is-active::after,
body[data-page="home"] .mobile-quick-link.is-active::after,
body[data-page="about"] .mobile-quick-link.is-active::after,
body[data-page="services"] .mobile-quick-link.is-active::after,
body[data-page="earn"] .mobile-quick-link.is-active::after,
body[data-page="contact"] .mobile-quick-link.is-active::after,
body[data-page="checkout"] .mobile-quick-link.is-active::after,
body[data-page="service-request"] .mobile-quick-link.is-active::after,
body[data-page="service-checkout"] .mobile-quick-link.is-active::after,
body[data-page="success"] .mobile-quick-link.is-active::after{
    background: #f5c542;
  }

  .site-header .mobile-quick-nav{
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, #111111 0%, #1d1d1d 100%) !important;
    backdrop-filter: none !important;
  }

  .site-header .mobile-quick-link{
    color: rgba(255, 255, 255, 0.72) !important;
  }

  .site-header .mobile-quick-link.is-active{
    color: #ffffff !important;
  }

  .site-header .mobile-quick-link.is-active::after{
    background: #f5c542 !important;
  }
}

html.motion-enabled .fade-up,
html.motion-enabled .fade-in,
html.motion-enabled .scale-in{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  transition-delay: 0ms !important;
  will-change: auto !important;
}

[data-card-link],
.is-clickable-card{
  cursor: pointer;
}

/* Compact auth modal sizing keeps the full login flow visible on laptop-height screens. */
.auth-site-modal-panel{
  padding: 0.75rem 1rem;
}

.auth-site-modal-card{
  width: min(100%, 30rem);
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  padding: 1.05rem 1.45rem 0.95rem;
  border-radius: 1.55rem;
}

.auth-site-modal-close{
  top: 0.7rem;
  right: 0.7rem;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.65rem;
}

.auth-site-modal .auth-modern-view{
  gap: 0.68rem;
}

.auth-site-modal .auth-modern-copy{
  gap: 0.35rem;
}

.auth-site-modal .auth-modern-copy h1{
  font-size: clamp(1.85rem, 2.5vw, 2.4rem);
}

.auth-site-modal .auth-modern-copy p,
.auth-site-modal .auth-modern-meta,
.auth-site-modal .auth-modern-runtime-note{
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-site-modal .auth-modern-eyebrow,
.auth-site-modal .auth-modern-label,
.auth-site-modal .auth-modern-identity-label{
  font-size: 0.78rem;
}

.auth-site-modal .auth-modern-provider-stack{
  gap: 0.55rem;
}

.auth-site-modal .auth-modern-google-slot{
  min-height: 2.8rem;
}

.auth-site-modal .auth-modern-provider,
.auth-site-modal .auth-modern-input,
.auth-site-modal .auth-modern-primary,
.auth-site-modal .auth-modern-secondary,
.auth-site-modal .auth-modern-select{
  min-height: 3.05rem;
  font-size: 0.94rem;
}

.auth-site-modal .auth-modern-form{
  gap: 0.6rem;
}

.auth-site-modal .auth-modern-divider{
  gap: 0.7rem;
  font-size: 0.78rem;
}

.auth-site-modal .auth-modern-legal{
  margin-top: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .auth-site-modal-panel{
    padding: 0.75rem;
  }

  .auth-site-modal-card{
    padding: 1rem 0.95rem 0.9rem;
  }
}

/* Desktop density pass: keep browser zoom at 100% while matching the preferred 80-90% visual feel. */
@media (min-width: 1081px){
  html {
    font-size: 14px;
  }

  :root {
    --shadow-card: 0 16px 38px rgba(33, 18, 7, 0.07);
  }

  .site-main,
  .app-main {
    padding-top: 4.35rem;
  }

  .navbar {
    min-height: 4.35rem;
  }

  .brand {
    gap: 0.82rem;
  }

  .brand-mark {
    width: 2.85rem;
    height: 2.85rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav-links,
  .nav-actions {
    gap: 0.35rem;
  }

  .nav-link {
    padding: 0.62rem 0.82rem;
    font-size: 0.91rem;
  }

  .btn {
    min-height: 2.55rem;
    padding: 0.65rem 1rem;
  }

  .btn-small {
    min-height: 2rem;
    padding: 0.46rem 0.78rem;
    font-size: 0.84rem;
  }

  body[data-page="home"] .hero,
  body[data-page="about"] .hero,
  body[data-page="services"] .hero,
  body[data-page="earn"] .hero,
  body[data-page="contact"] .hero {
    padding: 4rem 0 3rem;
  }

  body[data-page="home"] .section,
  body[data-page="about"] .section,
  body[data-page="services"] .section,
  body[data-page="earn"] .section,
  body[data-page="contact"] .section {
    padding: 3.55rem 0;
  }

  body[data-page="home"] .hero > .container,
  body[data-page="about"] .hero > .container,
  body[data-page="services"] .hero > .container,
  body[data-page="earn"] .hero > .container,
  body[data-page="contact"] .hero > .container {
    padding: clamp(2.15rem, 4vw, 3.65rem) clamp(1.15rem, 3.5vw, 2.6rem);
    border-radius: 1.35rem;
  }

  body[data-page="home"] .title-xl {
    font-size: clamp(2.15rem, 4vw, 3.8rem);
  }

  body[data-page="home"] .title-lg,
  body[data-page="about"] .title-lg,
  body[data-page="services"] .title-lg,
  body[data-page="earn"] .title-lg,
  body[data-page="contact"] .title-lg {
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  }

  body[data-page="home"] .section > .container > .text-center,
  body[data-page="about"] .section > .container > .text-center,
  body[data-page="services"] .section > .container > .text-center,
  body[data-page="earn"] .section > .container > .text-center,
  body[data-page="contact"] .section > .container > .text-center {
    margin-bottom: 2.25rem !important;
  }

  .lead,
  .copy,
  .card-copy {
    line-height: 1.62;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto,
  .stat-grid {
    gap: 1rem;
  }

  .card-body,
  .panel-body {
    padding: 1.18rem;
  }

  .form-card,
  .table-card,
  .auth-card {
    padding: 1.35rem;
  }

  .stat-card {
    padding: 1.22rem 0.92rem;
    border-radius: 1.1rem;
    box-shadow: 0 16px 38px rgba(33, 18, 7, 0.07);
  }

  .stat-value {
    margin: 0.42rem 0 0.18rem;
    font-size: clamp(1.45rem, 2.35vw, 1.82rem);
  }

  .symbol {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.05rem;
  }

  .symbol.large {
    width: 4rem;
    height: 4rem;
    border-radius: 1.18rem;
  }

  .symbol svg {
    width: 1.28rem;
    height: 1.28rem;
  }

  .symbol.large svg {
    width: 1.58rem;
    height: 1.58rem;
  }

  .tag,
  .status {
    padding: 0.38rem 0.68rem;
    font-size: 0.76rem;
  }

  .tag-row {
    gap: 0.48rem;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .timeline-number {
    width: 3.9rem;
    height: 3.9rem;
    border-radius: 1.05rem;
  }

  body[data-page="dashboard"] .dashboard-shell,
  body[data-page="admin"] .dashboard-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: calc(100vh - 4.35rem);
  }

  body[data-page="dashboard"] .sidebar,
  body[data-page="admin"] .sidebar {
    top: 4.35rem;
    min-height: calc(100vh - 4.35rem);
    max-height: calc(100vh - 4.35rem);
    padding: 0.9rem 0.78rem;
  }

  body[data-page="dashboard"] .sidebar-label,
  body[data-page="admin"] .sidebar-label {
    margin-bottom: 0.8rem;
    font-size: 0.74rem;
  }

  body[data-page="dashboard"] .sidebar-nav,
  body[data-page="admin"] .sidebar-nav {
    gap: 0.35rem;
  }

  body[data-page="dashboard"] .sidebar-link,
  body[data-page="admin"] .sidebar-link {
    padding: 0.62rem 0.74rem;
    border-radius: 0.82rem;
    font-size: 0.92rem;
  }

  body[data-page="dashboard"] .sidebar-footer,
  body[data-page="admin"] .sidebar-footer {
    padding-top: 0.9rem;
  }

  body[data-page="dashboard"] .topbar,
  body[data-page="admin"] .topbar {
    top: 4.35rem;
    padding: 0.78rem 1.05rem;
  }

  body[data-page="dashboard"] .topbar h1,
  body[data-page="admin"] .topbar h1 {
    font-size: 1.85rem;
    line-height: 1.05;
  }

  body[data-page="dashboard"] .topbar p,
  body[data-page="admin"] .topbar p {
    font-size: 0.92rem;
  }

  body[data-page="dashboard"] .app-panels,
  body[data-page="admin"] .app-panels {
    padding: 1.05rem 1.15rem;
  }

  body[data-page="dashboard"] .kpi-grid,
  body[data-page="admin"] .kpi-grid {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  body[data-page="dashboard"] .kpi-card,
  body[data-page="admin"] .kpi-card {
    padding: 0.9rem;
    box-shadow: 0 16px 38px rgba(33, 18, 7, 0.07);
  }

  body[data-page="dashboard"] .form-card,
  body[data-page="dashboard"] .table-card,
  body[data-page="admin"] .form-card,
  body[data-page="admin"] .table-card {
    padding: 1.12rem;
  }

  body[data-page="dashboard"] .overview-highlight-grid,
  body[data-page="admin"] .overview-highlight-grid {
    margin-top: 1rem;
  }

  body[data-page="dashboard"] .admin-overview-intro,
  body[data-page="admin"] .admin-overview-intro {
    margin-bottom: 1rem;
  }

  body[data-page="dashboard"] .tab-row,
  body[data-page="admin"] .tab-row,
  body[data-page="dashboard"] .dashboard-tab-row,
  body[data-page="admin"] .dashboard-tab-row {
    gap: 0.55rem;
    margin-bottom: 0.95rem;
  }

  body[data-page="dashboard"] .tab-button,
  body[data-page="admin"] .tab-button {
    padding: 0.58rem 0.82rem;
    font-size: 0.9rem;
  }

  body[data-page="dashboard"] th,
  body[data-page="dashboard"] td,
  body[data-page="admin"] th,
  body[data-page="admin"] td {
    padding: 0.75rem 0.85rem;
  }

  body[data-page="dashboard"] .input,
  body[data-page="dashboard"] .select,
  body[data-page="admin"] .input,
  body[data-page="admin"] .select {
    min-height: 2.65rem;
    padding: 0.7rem 0.86rem;
    border-radius: 0.8rem;
  }
}

/* Mobile density pass: default 100% browser zoom should feel close to 80-85% without hurting readability. */
@media (max-width: 760px){
  html {
    font-size: 14px;
  }

  .container {
    width: min(100% - 1.35rem, var(--container));
  }

  .site-main,
  .app-main {
    padding-top: 7.35rem;
  }

  .navbar {
    min-height: 4.2rem;
    gap: 0.45rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .mobile-top-actions {
    gap: 0.25rem;
  }

  .mobile-top-actions .mobile-top-action {
    min-height: 1.85rem;
    padding: 0.38rem 0.56rem;
    font-size: 0.7rem;
  }

  .nav-toggle {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.8rem;
  }

  .mobile-quick-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .hero {
    padding: 3rem 0 2.4rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  body[data-page="home"] .hero > .container,
  body[data-page="about"] .hero > .container,
  body[data-page="services"] .hero > .container,
  body[data-page="earn"] .hero > .container,
  body[data-page="contact"] .hero > .container,
  body[data-page="checkout"] .hero > .container,
  body[data-page="service-request"] .hero > .container,
  body[data-page="service-checkout"] .hero > .container,
  body[data-page="success"] .hero > .container {
    padding: 2.05rem 1rem;
    border-radius: 1.28rem;
  }

  .eyebrow {
    padding: 0.52rem 0.72rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .title-xl {
    font-size: clamp(2.15rem, 9.3vw, 2.8rem);
    line-height: 1.08;
  }

  .title-lg {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.08;
  }

  .title-md {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .lead {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .copy,
  .card-copy {
    line-height: 1.58;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto,
  .stat-grid,
  .kpi-grid {
    gap: 0.9rem;
  }

  .card-body,
  .panel-body {
    padding: 1rem;
  }

  .form-card,
  .table-card,
  .auth-card {
    padding: 1rem;
  }

  .btn-row {
    gap: 0.72rem;
  }

  .btn {
    min-height: 2.55rem;
    padding: 0.64rem 0.9rem;
  }

  .btn-small {
    min-height: 2rem;
    padding: 0.46rem 0.76rem;
  }

  .symbol {
    width: 3.05rem;
    height: 3.05rem;
    border-radius: 1rem;
  }

  .symbol.large {
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 1.08rem;
  }

  .symbol svg {
    width: 1.22rem;
    height: 1.22rem;
  }

  .symbol.large svg {
    width: 1.48rem;
    height: 1.48rem;
  }

  .tag,
  .status {
    padding: 0.36rem 0.62rem;
    font-size: 0.74rem;
  }

  .tag-row {
    gap: 0.45rem;
  }

  .stat-card {
    padding: 1rem 0.8rem;
    border-radius: 1.08rem;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  body[data-page="home"] .section > .container > .text-center,
  body[data-page="about"] .section > .container > .text-center,
  body[data-page="services"] .section > .container > .text-center,
  body[data-page="earn"] .section > .container > .text-center,
  body[data-page="contact"] .section > .container > .text-center {
    margin-bottom: 1.85rem !important;
  }

  body[data-page="services"] .card-body.split {
    gap: 1rem;
  }

  body[data-page="services"] .card-body.split > .stack {
    gap: 0.56rem;
    padding: 0.72rem;
    border-radius: 1rem;
  }

  body[data-page="services"] [data-service-summary] .card-body {
    gap: 0.62rem;
    padding: 0.66rem 0.72rem;
  }

  body[data-page="services"] [data-service-summary] strong {
    font-size: 0.82rem;
  }

  body[data-page="services"] [data-service-summary] .text-gradient {
    padding: 0.3rem 0.52rem;
    font-size: 0.72rem;
  }

  body[data-page="dashboard"] .tab-row,
  body[data-page="admin"] .tab-row,
  body[data-page="dashboard"] .dashboard-tab-row,
  body[data-page="admin"] .dashboard-tab-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body[data-page="dashboard"] .tab-row::-webkit-scrollbar,
  body[data-page="admin"] .tab-row::-webkit-scrollbar,
  body[data-page="dashboard"] .dashboard-tab-row::-webkit-scrollbar,
  body[data-page="admin"] .dashboard-tab-row::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body[data-page="dashboard"] .tab-button,
  body[data-page="admin"] .tab-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body[data-page="dashboard"] .topbar,
  body[data-page="admin"] .topbar {
    padding: 0.78rem 0.9rem;
  }

  body[data-page="dashboard"] .topbar h1,
  body[data-page="admin"] .topbar h1 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  body[data-page="dashboard"] .topbar p,
  body[data-page="admin"] .topbar p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  body[data-page="dashboard"] .app-panels,
  body[data-page="admin"] .app-panels {
    padding: 0.9rem;
  }

  body[data-page="dashboard"] .kpi-card,
  body[data-page="admin"] .kpi-card {
    padding: 0.9rem;
  }

  body[data-page="dashboard"] .form-card,
  body[data-page="dashboard"] .table-card,
  body[data-page="admin"] .form-card,
  body[data-page="admin"] .table-card {
    padding: 1rem;
  }
}

@media (max-width: 374px) {
  html{
    font-size: 13.5px;
  }

  .container{
    width: min(100% - 1rem, var(--container));
  }

  .brand-mark{
    width: 2.45rem;
    height: 2.45rem;
  }

  .brand-name{
    font-size: 0.86rem;
  }

  .mobile-top-actions .mobile-top-action{
    padding-inline: 0.46rem;
    font-size: 0.66rem;
  }

  .title-xl{
    font-size: clamp(2rem, 9.5vw, 2.5rem);
  }

  .hero{
    padding-top: 2.65rem;
  }

  body[data-page="services"] [data-service-summary] .card-body{
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  body[data-page="services"] [data-service-summary] strong{
    font-size: 0.78rem;
  }

  body[data-page="services"] [data-service-summary] .text-gradient{
    font-size: 0.68rem;
  }
}

@media (min-width: 415px) and (max-width: 760px) {
  .container{
    width: min(100% - 1.65rem, var(--container));
  }

  .title-xl{
    font-size: clamp(2.35rem, 8.8vw, 3.05rem);
  }

  body[data-page="home"] .hero > .container,
body[data-page="about"] .hero > .container,
body[data-page="services"] .hero > .container,
body[data-page="earn"] .hero > .container,
body[data-page="contact"] .hero > .container{
    padding: 2.35rem 1.15rem;
  }
}
