:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-strong: #eef4fb;
  --text: #172033;
  --muted: #6b7280;
  --line: #e5e9f0;
  --brand-blue: #0078d4;
  --brand-blue-dark: #075ea4;
  --brand-yellow: #ffd700;
  --brand-orange: #ff8c00;
  --brand-coral: #ff6347;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 8%, rgba(0, 120, 212, 0.1), transparent 34%),
    radial-gradient(circle at 70% 88%, rgba(255, 215, 0, 0.14), transparent 30%),
    #f4f7fb;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img,
svg {
  display: block;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.api-banner {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 20;
  padding: 10px 12px;
  border-radius: 14px;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  font-size: 0.82rem;
  line-height: 1.3;
  box-shadow: var(--shadow-soft);
  animation:
    banner-in 240ms var(--ease-out) both,
    banner-out 520ms ease 4.45s forwards;
}

.screen {
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: screen-in 260ms var(--ease-out) both;
}

.scroll-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 22px 96px;
  scrollbar-width: none;
}

.scroll-view::-webkit-scrollbar {
  display: none;
}

.detail-view {
  padding-bottom: 28px;
}

.welcome-view {
  min-height: 100dvh;
  padding: 58px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(255, 215, 0, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 99, 71, 0.07), transparent 54%),
    var(--bg);
  background-size: 190% 190%, 180% 180%, 170% 170%, auto;
  animation:
    screen-in 320ms var(--ease-out) both,
    welcome-gradient 16s ease-in-out infinite alternate;
}

.welcome-view::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(0, 120, 212, 0.1), transparent 44%),
    linear-gradient(300deg, rgba(255, 215, 0, 0.12), transparent 48%);
  filter: blur(18px);
  opacity: 0.82;
  transform: translate3d(0, 0, 0);
  animation: welcome-glow 18s ease-in-out infinite alternate;
}

.welcome-view > * {
  position: relative;
  z-index: 1;
}

.welcome-logo {
  width: min(286px, 74vw);
  aspect-ratio: 4 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 46px;
  animation: float-in 620ms var(--ease-snap) both;
}

.brand-row {
  display: flex;
  align-items: center;
  width: fit-content;
}

.brand-logo {
  width: 178px;
  aspect-ratio: 4 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
  animation: soft-pop 420ms var(--ease-snap) both;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 14vw, 3.3rem);
  line-height: 0.98;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

.welcome-view .hero-title {
  animation: slogan-float 5200ms ease-in-out infinite;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-yellow) 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.welcome-view .gradient-text {
  background:
    linear-gradient(
      100deg,
      var(--brand-blue) 0%,
      #19a7ce 34%,
      var(--brand-yellow) 64%,
      var(--brand-coral) 100%
    );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: slogan-gradient 6800ms ease-in-out infinite alternate;
}

.lead {
  width: min(330px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.welcome-view .lead {
  animation: rise-in 520ms var(--ease-out) 120ms both;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 58px;
}

.pill {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  box-shadow: 0 5px 13px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

.actions-stack {
  width: 100%;
  display: grid;
  gap: 12px;
}

.btn {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: var(--surface-soft);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  text-align: center;
  white-space: normal;
}

.btn:hover,
.icon-btn:hover,
.chip:hover,
.link-btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), #89b7e8);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(0, 120, 212, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 32px rgba(0, 120, 212, 0.22);
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-light {
  background: #fff;
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-compact {
  width: auto;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.tiny-note {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.35;
}

.password-hint {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.signup-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.signup-stepper span {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.signup-stepper span.active {
  background: linear-gradient(90deg, var(--brand-blue), #89b7e8);
}

.signup-note {
  padding: 15px;
  display: grid;
  gap: 8px;
}

.signup-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.dev-code {
  color: var(--brand-blue) !important;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 233, 240, 0.8);
  padding: 16px 22px;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar h1,
.section-title h2,
.panel-title {
  margin: 0;
}

.topbar h1 {
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 5px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.back-btn {
  background: transparent;
}

.form-screen {
  padding: 28px 22px 36px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: screen-in 260ms var(--ease-out) both;
}

.auth-header {
  margin: 30px 0 32px;
}

.auth-header .brand-row {
  margin-bottom: 30px;
}

.auth-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 800;
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.input-wrap {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.input-wrap:focus-within {
  border-color: rgba(0, 120, 212, 0.38);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.08);
  transform: translateY(-1px);
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.input-wrap textarea {
  min-height: 96px;
  padding: 15px 0;
  resize: vertical;
}

.input-wrap select {
  appearance: none;
}

.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
  margin-top: 1px;
}

.link-btn {
  width: auto;
  padding: 0;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 700;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.role-card.active,
.role-card:hover {
  border-color: rgba(0, 120, 212, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.role-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), #75b9f0);
}

.role-title {
  margin: 0 0 2px;
  font-weight: 800;
}

.role-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.home-header {
  padding: 28px 22px 12px;
}

.home-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.home-heading {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
}

.location-pill {
  margin-top: 14px;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
}

.search-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.search-card:focus-within {
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.search-card p {
  margin: 0 0 10px;
  font-weight: 800;
}

.search-box {
  min-height: 48px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.section {
  padding: 16px 22px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  min-height: 154px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.choice-card:hover,
.category-tile:hover,
.category-grid-card:hover,
.provider-card:hover,
.task-card:hover,
.list-card:hover,
.service-status-card:hover,
.service-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.choice-card.primary {
  color: #fff;
  background: linear-gradient(145deg, #005ca8, #0078d4 52%, #2296e8);
  border-color: transparent;
  text-shadow: 0 1px 8px rgba(0, 44, 82, 0.25);
}

.choice-card.warm {
  color: #2b1b08;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 235, 0.72)),
    linear-gradient(145deg, rgba(255, 215, 0, 0.34), rgba(255, 99, 71, 0.18));
  border-color: rgba(245, 158, 11, 0.24);
}

.choice-card h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
  color: inherit;
  line-height: 1.16;
}

.choice-card p {
  margin: 0;
  color: inherit;
  opacity: 0.96;
  font-size: 0.8rem;
  line-height: 1.35;
}

.choice-card > span:last-child {
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.choice-card.warm > span:last-child {
  background: rgba(255, 255, 255, 0.74);
  color: #7c2d12;
}

.briefing-screen {
  min-height: 100dvh;
  padding: 26px 22px 34px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  background:
    radial-gradient(circle at 22% 10%, rgba(0, 120, 212, 0.16), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(255, 190, 32, 0.18), transparent 30%),
    var(--surface-soft);
  animation: screen-in 260ms var(--ease-out) both;
}

.briefing-card {
  align-self: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.briefing-art {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), #56a9ec);
  box-shadow: 0 16px 30px rgba(0, 120, 212, 0.18);
}

.briefing-card h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.06;
}

.briefing-card p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.briefing-card small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.briefing-progress {
  display: grid;
  gap: 8px;
  width: 100%;
}

.briefing-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.briefing-progress-row strong {
  color: var(--brand-blue);
  font-size: 0.82rem;
}

.briefing-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 120, 212, 0.08);
}

.briefing-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), #21a8ff);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.24);
  transition: width 0.28s ease;
}

.briefing-dots {
  display: flex;
  gap: 7px;
}

.briefing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.briefing-dots span.active {
  width: 26px;
  background: var(--brand-blue);
}

.briefing-actions {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 10px;
}

.feature-tour-screen {
  min-height: 100dvh;
  padding: 26px 22px 34px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  background:
    radial-gradient(circle at 22% 8%, rgba(0, 120, 212, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 190, 32, 0.18), transparent 32%),
    var(--surface-soft);
  animation: screen-in 260ms var(--ease-out) both;
}

.feature-tour-phone {
  position: relative;
  align-self: end;
  min-height: 310px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.feature-tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.tour-target {
  position: relative;
  min-height: 66px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.tour-target.tour-search,
.tour-target.tour-safety {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour-target strong,
.tour-target small,
.tour-target span {
  display: block;
}

.tour-target small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.tour-target.active {
  z-index: 2;
  border-color: rgba(0, 120, 212, 0.54);
  box-shadow:
    0 0 0 4px rgba(0, 120, 212, 0.1),
    0 18px 32px rgba(0, 120, 212, 0.16);
  transform: translateY(-2px);
}

.tour-cursor {
  position: absolute;
  z-index: 5;
  width: 38px;
  height: 44px;
  filter: drop-shadow(0 10px 16px rgba(0, 44, 90, 0.22));
  transition:
    left 0.3s ease,
    top 0.3s ease;
  animation: cursor-tap 1.2s ease-in-out infinite;
}

.tour-cursor span {
  display: block;
  width: 30px;
  height: 36px;
  background: linear-gradient(145deg, var(--brand-blue), #21a8ff);
  clip-path: polygon(0 0, 0 82%, 26% 62%, 42% 100%, 58% 93%, 43% 56%, 78% 56%);
}

.tour-cursor::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 120, 212, 0.34);
  border-radius: 999px;
  animation: tour-ring 1.2s ease-in-out infinite;
}

.tour-cursor.tour-search {
  left: 58px;
  top: 88px;
}

.tour-cursor.tour-services {
  left: 56px;
  top: 176px;
}

.tour-cursor.tour-task {
  left: 214px;
  top: 176px;
}

.tour-cursor.tour-safety {
  left: 176px;
  top: 250px;
}

.feature-tour-card {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 13px;
}

.feature-tour-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), #21a8ff);
}

.feature-tour-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.feature-tour-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.parental-consent-panel {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.72);
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 22px 8px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-tile {
  width: 150px;
  min-width: 150px;
  min-height: 168px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.category-art {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: contain;
  border-radius: 14px;
  background: var(--surface-soft);
}

.category-name {
  margin: 12px 0 2px;
  font-weight: 800;
  font-size: 0.93rem;
  line-height: 1.18;
}

.category-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.grid {
  display: grid;
  gap: 12px;
}

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

.category-grid-card,
.metric-card,
.list-card,
.task-card,
.provider-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  animation: rise-in 320ms var(--ease-out) both;
}

.grid > *:nth-child(2),
.category-strip > *:nth-child(2) {
  animation-delay: 35ms;
}

.grid > *:nth-child(3),
.category-strip > *:nth-child(3) {
  animation-delay: 70ms;
}

.grid > *:nth-child(4),
.category-strip > *:nth-child(4) {
  animation-delay: 105ms;
}

.grid > *:nth-child(n + 5),
.category-strip > *:nth-child(n + 5) {
  animation-delay: 130ms;
}

.category-grid-card {
  padding: 12px;
  text-align: left;
}

.category-grid-card img {
  width: 74px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
}

.category-grid-card h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  line-height: 1.2;
}

.category-grid-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.provider-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  align-items: start;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.provider-card-main {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  text-align: left;
}

.provider-card-media {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-soft);
}

.provider-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.provider-card:hover .provider-card-media img {
  transform: scale(1.04);
}

.favorite-btn {
  width: 42px;
  height: 42px;
  background: var(--surface-soft);
}

.favorite-btn.saved,
.icon-btn.saved,
.saved-soft {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  box-shadow: 0 10px 22px rgba(0, 120, 212, 0.16);
}

.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.provider-card h3,
.task-card h3,
.list-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.provider-card p,
.task-card p,
.list-card p,
.muted {
  color: var(--muted);
}

.provider-card p,
.task-card p,
.list-card p {
  margin: 4px 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.rating {
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--success);
  font-weight: 900;
  font-size: 1.3rem;
}

.price small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.task-card {
  width: 100%;
  padding: 15px;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tag {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--brand-blue);
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.tag.success {
  animation: soft-pop 260ms var(--ease-snap) both;
}

.tag.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.tag.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.tag.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.loyalty-tag {
  background: rgba(255, 140, 0, 0.12);
  color: var(--brand-orange);
}

.budget {
  min-width: 72px;
  text-align: right;
  color: var(--success);
  font-weight: 900;
  font-size: 1.22rem;
}

.budget small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.cta-panel {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(255, 215, 0, 0.16)),
    var(--surface);
}

.filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.chip.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.subcategory-panel {
  display: grid;
  gap: 12px;
}

.section-title.compact {
  margin-bottom: 0;
}

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

.subcategory-card {
  min-height: 118px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.92));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  align-content: start;
  gap: 8px;
}

.subcategory-card strong {
  font-size: 0.9rem;
  line-height: 1.18;
}

.subcategory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.profile-hero {
  position: relative;
  padding: 26px 22px 22px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 120, 212, 0.96), rgba(7, 94, 164, 0.92)),
    var(--brand-blue);
  overflow: hidden;
  isolation: isolate;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(0, 120, 212, 0.86), rgba(7, 94, 164, 0.82));
}

.profile-cover-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero .back-btn,
.profile-hero .icon-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.provider-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
}

.provider-identity .avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-coral));
}

.profile-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.provider-identity h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.provider-identity p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.stat-box {
  min-height: 74px;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 0.95rem;
}

.stat-box span {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.2;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 22px 0;
}

.tab-row button {
  min-height: 40px;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.tab-row button.active {
  color: #fff;
  background: var(--brand-blue);
}

.profile-command-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.profile-command-row .btn {
  min-width: 0;
  padding-inline: 8px;
}

.service-option {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-option.active {
  border-color: rgba(0, 120, 212, 0.5);
  background: rgba(0, 120, 212, 0.06);
  box-shadow: 0 14px 28px rgba(0, 120, 212, 0.12);
}

.service-option-media {
  grid-template-columns: 58px 1fr auto;
  align-items: center;
}

.service-thumb .photo-tile {
  width: 58px;
  border-radius: 16px;
}

.service-option strong {
  display: block;
}

.service-option span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.16), rgba(255, 215, 0, 0.18)),
    var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
  text-align: center;
  font-size: 0.68rem;
  padding: 4px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 260ms ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
}

.photo-tile span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.service-detail-hero {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.service-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.14), rgba(255, 215, 0, 0.16)),
    var(--surface-soft);
}

.provider-mini-card {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.provider-mini-card img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.provider-mini-card span span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nfc-panel {
  padding: 22px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.nfc-orb {
  width: 90px;
  height: 90px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  box-shadow: 0 18px 34px rgba(0, 120, 212, 0.22);
  animation: pulse-nfc 1800ms ease-in-out infinite;
}

.qr-fallback {
  display: grid;
  gap: 12px;
}

.qr-preview {
  width: 132px;
  height: 132px;
  justify-self: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

.qr-preview span {
  border-radius: 3px;
  background: #edf1f7;
}

.qr-preview span.on {
  background: var(--text);
}

.qr-token {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--brand-blue-dark);
  background: rgba(0, 120, 212, 0.08);
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.booking-date-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.date-btn,
.time-btn {
  min-height: 58px;
  padding: 8px 5px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 3px;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.date-btn:hover,
.time-btn:hover {
  transform: translateY(-1px);
}

.date-btn strong,
.time-btn strong {
  font-size: 0.95rem;
}

.date-btn span {
  color: var(--muted);
  font-size: 0.72rem;
}

.date-btn.active,
.time-btn.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  animation: soft-pop 220ms var(--ease-snap) both;
}

.date-btn.active span {
  color: rgba(255, 255, 255, 0.82);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row strong,
.summary-row span:last-child {
  text-align: right;
}

.success-state {
  min-height: 100dvh;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-mark {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #72d8b8);
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.24);
  margin-bottom: 24px;
  animation: success-pop 520ms var(--ease-snap) both;
}

.list-card {
  padding: 15px;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.job-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.provider-dashboard-hero {
  padding: 28px 22px 20px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(0, 120, 212, 0.96), rgba(255, 140, 0, 0.88)),
    var(--brand-blue);
}

.provider-dashboard-hero h1 {
  margin: 5px 0 0;
  font-size: 2rem;
  line-height: 1.1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  min-height: 112px;
  padding: 15px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  line-height: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-action {
  min-height: 86px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 118px;
  padding: 12px 4px 4px;
}

.bar {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--brand-yellow), var(--brand-orange));
  min-height: 18px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.mode-switch button {
  min-height: 46px;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.mode-switch button.active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-soft);
}

.profile-card {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(255, 215, 0, 0.14)),
    var(--surface);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-item {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.menu-item span {
  display: grid;
  gap: 3px;
}

.menu-item small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.settings-toggle {
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.settings-toggle span {
  display: grid;
  gap: 4px;
}

.settings-toggle small {
  color: var(--muted);
  line-height: 1.3;
}

.settings-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-blue);
}

.message-layout {
  display: grid;
  gap: 12px;
}

.ai-search-row {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  align-items: center;
}

.ai-search-row .input-wrap {
  min-height: 48px;
}

.ai-submit {
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--brand-blue);
}

.ai-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-soft);
  line-height: 1.35;
  font-size: 0.88rem;
}

.support-panel {
  padding: 15px;
  display: grid;
  gap: 12px;
}

.support-panel .section-title {
  margin-bottom: 0;
}

.support-mini {
  display: flex;
  justify-content: flex-end;
}

.support-mini .icon-btn {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-blue);
}

.floating-help {
  position: absolute;
  right: 18px;
  bottom: 88px;
  z-index: 12;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(0, 120, 212, 0.24);
  animation: soft-pop 320ms var(--ease-snap) both;
}

.mini-ai-chat {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 146px;
  z-index: 13;
  padding: 14px;
  display: grid;
  gap: 10px;
  animation: rise-in 220ms var(--ease-out) both;
}

.mini-close {
  width: 34px;
  height: 34px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

.message-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.message-card:hover {
  transform: translateX(2px);
  border-color: rgba(0, 120, 212, 0.24);
}

.chat-scroll {
  padding-bottom: 120px;
}

.chat-safety {
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  color: #7c2d12;
  background:
    linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 99, 71, 0.08)),
    #fff7ed;
  font-size: 0.86rem;
  line-height: 1.4;
}

.chat-safety strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-safety p {
  margin: 6px 0 0;
}

.chat-thread {
  display: grid;
  gap: 10px;
}

.chat-bubble {
  width: min(88%, 330px);
  padding: 12px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-soft);
  display: grid;
  gap: 5px;
}

.chat-bubble.mine {
  justify-self: end;
  color: #fff;
  background: var(--brand-blue);
  border-radius: 18px 18px 6px 18px;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.4;
}

.chat-bubble small {
  color: inherit;
  opacity: 0.7;
}

.chat-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 44px 1fr 46px;
  gap: 8px;
  align-items: end;
}

.chat-composer textarea {
  min-height: 46px;
  max-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  resize: none;
  outline: 0;
  background: var(--surface-soft);
}

.attach-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--brand-blue);
}

.attach-btn input {
  display: none;
}

.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--danger);
  animation: pulse-dot 1500ms ease-in-out infinite;
}

.service-status-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  animation: rise-in 320ms var(--ease-out) both;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-status-main {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-status-main .photo-tile {
  width: 56px;
  border-radius: 16px;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  background: #d7dce5;
}

.toggle span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: block;
  background: #fff;
  transition: transform 160ms ease;
}

.toggle.on {
  background: var(--success);
}

.toggle.on span {
  transform: translateX(20px);
}

.commission-box {
  padding: 15px;
  border-radius: 18px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.commission-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.commission-line:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.progress-preview,
.progress-compact {
  display: grid;
  gap: 8px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.progress-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
}

.progress-compact small {
  color: var(--muted);
  font-weight: 800;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 72px;
  padding: 8px 6px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  animation: nav-in 300ms var(--ease-out) both;
}

.nav-btn {
  min-width: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.nav-btn.active {
  color: var(--brand-blue);
  background: rgba(0, 120, 212, 0.08);
}

.nav-btn.active .icon {
  animation: soft-pop 240ms var(--ease-snap) both;
}

.nav-btn .icon {
  width: 21px;
  height: 21px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.empty-state .icon-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 26px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.spacer-sm {
  height: 8px;
}

.spacer {
  height: 16px;
}

.spacer-lg {
  height: 26px;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  70% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes soft-pop {
  0% {
    transform: scale(0.94);
  }
  70% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cursor-tap {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  48% {
    transform: translate(5px, 5px) scale(0.94);
  }
}

@keyframes tour-ring {
  0% {
    opacity: 0.62;
    transform: scale(0.55);
  }
  70% {
    opacity: 0;
    transform: scale(1.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.78) rotate(-4deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes banner-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.admin-screen {
  background: var(--surface-soft);
}

.admin-view {
  padding-top: 18px;
}

.admin-hero {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.96), rgba(255, 140, 0, 0.9)),
    var(--brand-blue);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  box-shadow: var(--shadow-soft);
}

.admin-brand-logo {
  width: 150px;
  aspect-ratio: 4 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 14px;
}

.admin-hero h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
}

.admin-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  font-size: 0.9rem;
}

.admin-hero .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 4px;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-tabs button.active {
  color: #fff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  box-shadow: var(--shadow-soft);
}

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

.admin-kpi,
.admin-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-kpi {
  min-height: 128px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-kpi > span {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--brand-blue);
  background: rgba(0, 120, 212, 0.1);
  display: grid;
  place-items: center;
}

.admin-kpi small,
.admin-kpi p {
  color: var(--muted);
}

.admin-kpi small {
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-kpi strong {
  display: block;
  margin-top: 5px;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-kpi p {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-split,
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  padding: 14px;
}

.admin-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.admin-card-head > div:nth-child(2),
.admin-card-head > div:first-child:last-child {
  min-width: 0;
}

.admin-card-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.admin-card-head .photo-tile {
  width: 52px;
  border-radius: 15px;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-meta-grid span {
  min-height: 58px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-soft);
  display: grid;
  align-content: center;
  gap: 4px;
  overflow: hidden;
}

.admin-meta-grid strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-meta-grid small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.15;
}

.admin-detail-line,
.admin-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-detail-line {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-note {
  margin: 12px 0 0;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-action-row .btn {
  flex: 1 1 auto;
  min-width: 84px;
}

.danger-action {
  color: var(--danger);
}

.admin-money {
  color: var(--success);
  font-size: 1.1rem;
  white-space: nowrap;
}

.admin-empty {
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.admin-empty strong {
  color: var(--text);
}

.admin-resolution {
  margin-top: 12px;
}

.admin-resolution textarea {
  min-height: 74px;
}

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

.admin-permission,
.permission-tags span {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.admin-permission {
  min-height: 42px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-permission input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-blue);
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.permission-tags span {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-desktop-app {
  max-width: none;
  height: 100dvh;
  background: #07111f;
}

.admin-desktop-screen {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  color: #d9e5f5;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.14), transparent 30%),
    linear-gradient(300deg, rgba(255, 140, 0, 0.1), transparent 32%),
    #07111f;
}

.admin-sidebar {
  min-height: 0;
  padding: 22px 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(5, 13, 27, 0.88);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  overflow: hidden;
}

.admin-sidebar-brand {
  display: grid;
  gap: 10px;
  color: #8fb8e8;
  font-weight: 900;
}

.admin-sidebar-brand .admin-brand-logo {
  width: 166px;
}

.admin-sidebar-nav {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  scrollbar-width: none;
}

.admin-sidebar-nav::-webkit-scrollbar {
  display: none;
}

.admin-sidebar-nav button {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 12px;
  color: #93a4ba;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-sidebar-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.9), rgba(25, 167, 206, 0.58));
  box-shadow: 0 12px 30px rgba(0, 120, 212, 0.22);
}

.admin-sidebar-status {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 5px;
}

.admin-sidebar-status span,
.admin-sidebar-status small {
  color: #93a4ba;
}

.admin-sidebar-status strong {
  font-size: 2.3rem;
  line-height: 1;
  color: #fff;
}

.admin-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.admin-commandbar {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.2), rgba(255, 140, 0, 0.1)),
    rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.admin-commandbar h1 {
  max-width: 740px;
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.06;
}

.admin-commandbar span,
.admin-commandbar-metrics span,
.admin-section-head p,
.admin-command-card p,
.admin-draft-card p,
.admin-draft-card small,
.admin-feed-row small,
.admin-signal span {
  color: #93a4ba;
}

.admin-commandbar-metrics {
  min-width: 190px;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-commandbar-metrics strong {
  color: #fff;
  font-size: 1.8rem;
}

.admin-workspace {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.admin-security-strip {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-security-strip strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

.admin-security-strip span {
  display: block;
  margin-top: 3px;
  color: #93a4ba;
  font-size: 0.78rem;
}

.admin-security-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-security-actions input {
  width: 260px;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #e5edf7;
  background: rgba(15, 23, 42, 0.72);
  padding: 0 12px;
}

.admin-toast {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
}

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

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

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

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

.admin-hero-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.admin-command-card,
.admin-health-card,
.admin-draft-card,
.admin-intel-tile {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.admin-command-card {
  min-width: 0;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head h3,
.admin-command-card h3,
.admin-draft-card h3,
.admin-intel-tile strong {
  margin: 0;
  color: #fff;
}

.admin-section-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.admin-desktop-screen .admin-kpi,
.admin-desktop-screen .admin-card,
.admin-desktop-screen .panel,
.admin-desktop-screen .admin-empty {
  color: #d9e5f5;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.admin-desktop-screen .admin-kpi {
  min-height: 132px;
}

.admin-desktop-screen .admin-kpi strong,
.admin-desktop-screen .admin-card h3,
.admin-desktop-screen .section-title h2,
.admin-health-card strong,
.forecast-value {
  color: #fff;
}

.admin-health-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 116px;
  align-items: center;
  gap: 14px;
}

.admin-health-card span,
.admin-health-card small {
  color: #93a4ba;
}

.admin-health-card strong {
  display: block;
  margin: 8px 0;
  font-size: 4rem;
  line-height: 0.9;
}

.admin-score-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #07111f 55%, transparent 57%),
    conic-gradient(#10b981 var(--score), rgba(148, 163, 184, 0.18) 0);
  display: grid;
  place-items: center;
}

.admin-score-ring span {
  color: #fff;
  font-weight: 900;
}

.admin-signal,
.risk-row,
.provider-dna-row,
.admin-feed-row {
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(5, 13, 27, 0.44);
}

.admin-signal {
  display: grid;
  gap: 4px;
  color: #d9e5f5;
  font-size: 0.86rem;
}

.admin-signal.good {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
}

.admin-signal.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.admin-signal.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table div,
.admin-doc-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  color: #d9e5f5;
}

.admin-table div small,
.admin-doc-grid span,
.admin-card p,
.admin-detail-line,
.admin-note {
  color: #93a4ba;
}

.admin-feed {
  display: grid;
  gap: 8px;
}

.admin-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-feed-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-feed-row strong {
  color: #fff;
}

.admin-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.admin-pulse.good {
  background: #10b981;
}

.admin-pulse.warning {
  background: #f59e0b;
}

.admin-pulse.danger {
  background: #ef4444;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-desktop-screen .chip {
  color: #93a4ba;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.admin-desktop-screen .chip.active {
  color: #fff;
  background: var(--brand-blue);
}

.admin-doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  font-size: 0.78rem;
}

.admin-affiliate-account-card {
  display: grid;
  gap: 12px;
}

.admin-affiliate-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-payout-engine,
.admin-payout-batch-summary,
.admin-payout-recipient-list {
  display: grid;
  gap: 12px;
}

.admin-payout-engine .admin-signal {
  margin: 0;
}

.admin-payout-batch-summary {
  border-color: rgba(56, 189, 248, 0.26);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08)),
    rgba(5, 13, 27, 0.72);
}

.admin-desktop-screen .input-wrap {
  color: #d9e5f5;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(5, 13, 27, 0.55);
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.verification-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.verification-box strong {
  color: var(--text);
}

.verification-box small {
  color: var(--muted);
  line-height: 1.25;
}

.admin-desktop-screen input,
.admin-desktop-screen textarea,
.admin-desktop-screen select {
  color: #fff;
}

.admin-desktop-screen input::placeholder,
.admin-desktop-screen textarea::placeholder {
  color: #64748b;
}

.admin-ai-console {
  min-height: 250px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.2), rgba(16, 185, 129, 0.09)),
    rgba(5, 13, 27, 0.58);
  display: grid;
  align-content: center;
  gap: 12px;
}

.admin-ai-console strong {
  color: #fff;
  font-size: 1.2rem;
}

.admin-draft-card,
.admin-intel-tile {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.admin-intel-tile {
  min-height: 118px;
  align-content: center;
}

.admin-intel-tile .icon {
  color: #38bdf8;
}

.admin-approval-banner {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 17px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.opportunity-radar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opportunity-radar div {
  min-height: 128px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.22), transparent 36%),
    rgba(5, 13, 27, 0.56);
  display: grid;
  align-content: end;
  gap: 4px;
}

.opportunity-radar strong {
  color: #38bdf8;
  font-size: 2rem;
}

.opportunity-radar span {
  color: #fff;
  font-weight: 900;
}

.opportunity-radar small {
  color: #93a4ba;
}

.admin-outreach-form {
  gap: 10px;
}

.madeira-map,
.affiliate-network {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 46% 44%, rgba(16, 185, 129, 0.24), transparent 22%),
    radial-gradient(circle at 58% 56%, rgba(0, 120, 212, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(5, 13, 27, 0.9), rgba(15, 23, 42, 0.86));
}

.madeira-map::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 24%;
  width: 72%;
  height: 44%;
  border-radius: 62% 38% 56% 44% / 42% 54% 46% 58%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.66);
  transform: rotate(-12deg);
}

.madeira-map .zone,
.madeira-map .heat {
  position: absolute;
  z-index: 2;
}

.madeira-map .zone {
  min-width: 126px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(5, 13, 27, 0.7);
  display: grid;
  gap: 2px;
}

.madeira-map .zone strong {
  color: #fff;
}

.madeira-map .zone small {
  color: #93a4ba;
}

.madeira-map .z1 { left: 44%; top: 58%; }
.madeira-map .z2 { left: 25%; top: 48%; }
.madeira-map .z3 { right: 11%; top: 34%; }
.madeira-map .z4 { left: 12%; top: 30%; }

.madeira-map .heat {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.78;
}

.madeira-map .h1 { left: 46%; top: 50%; background: rgba(239, 68, 68, 0.4); }
.madeira-map .h2 { left: 23%; top: 42%; background: rgba(245, 158, 11, 0.38); }
.madeira-map .h3 { right: 18%; top: 28%; background: rgba(16, 185, 129, 0.34); }

.risk-row {
  display: grid;
  gap: 4px;
}

.risk-row strong {
  color: #f59e0b;
}

.risk-row span {
  color: #fff;
}

.risk-row small {
  color: #93a4ba;
}

.provider-dna-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.provider-dna-row strong {
  color: #fff;
}

.provider-dna-row small {
  color: #93a4ba;
}

.affiliate-network .node,
.affiliate-network .line {
  position: absolute;
}

.affiliate-network .node {
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 120, 212, 0.26);
  font-weight: 900;
}

.affiliate-network .core {
  left: 42%;
  top: 42%;
  background: rgba(16, 185, 129, 0.28);
}

.affiliate-network .n1 { left: 14%; top: 18%; }
.affiliate-network .n2 { right: 10%; top: 20%; }
.affiliate-network .n3 { left: 12%; bottom: 18%; }
.affiliate-network .n4 { right: 13%; bottom: 17%; }

.affiliate-network .line {
  left: 25%;
  top: 50%;
  width: 50%;
  height: 1px;
  background: rgba(56, 189, 248, 0.36);
  transform-origin: center;
}

.affiliate-network .l1 { transform: rotate(24deg); }
.affiliate-network .l2 { transform: rotate(-24deg); }
.affiliate-network .l3 { transform: rotate(145deg); }
.affiliate-network .l4 { transform: rotate(-145deg); }

.forecast-value {
  font-size: 2.4rem;
  font-weight: 900;
}

.financial-title-row {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent 38%),
    linear-gradient(300deg, rgba(245, 158, 11, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.financial-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.08;
}

.financial-title-row span,
.financial-pool small,
.financial-goals small,
.dependency-row span,
.expansion-simulator span,
.expansion-simulator small,
.commission-engine small,
.financial-alert span {
  color: #93a4ba;
}

.financial-waterfall,
.financial-pool-grid,
.financial-goals,
.commission-engine,
.dependency-list {
  display: grid;
  gap: 9px;
}

.financial-flow-row {
  display: grid;
  gap: 7px;
}

.financial-flow-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d9e5f5;
  font-size: 0.86rem;
}

.financial-flow-row strong {
  color: #fff;
}

.financial-flow-row i,
.financial-progress,
.dependency-row i {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.15);
}

.financial-flow-row i::before,
.financial-progress i,
.dependency-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar, var(--progress, var(--dependency, 40%)));
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.financial-flow-row.warning i::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.financial-flow-row.tax i::before {
  background: linear-gradient(90deg, #a78bfa, #38bdf8);
}

.real-money-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(5, 13, 27, 0.58);
  display: grid;
  align-content: center;
  gap: 8px;
}

.real-money-card span {
  color: #a7f3d0;
  font-weight: 900;
}

.real-money-card strong {
  color: #fff;
  font-size: 3.2rem;
  line-height: 0.95;
}

.real-money-card small {
  max-width: 560px;
  color: #93a4ba;
}

.payment-split-demo {
  padding: 15px;
  border-radius: 18px;
  background: rgba(5, 13, 27, 0.56);
  display: grid;
  gap: 8px;
}

.payment-split-demo strong {
  color: #fff;
}

.payment-split-demo div,
.allocation-grid span,
.commission-engine div,
.financial-goals div {
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.payment-split-demo div {
  display: flex;
  justify-content: space-between;
  color: #d9e5f5;
}

.payment-split-demo b {
  color: #fff;
}

.allocation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.allocation-grid span {
  display: grid;
  gap: 3px;
  color: #93a4ba;
  font-size: 0.78rem;
}

.allocation-grid strong {
  color: #fff;
}

.financial-alert {
  padding: 11px 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  display: grid;
  gap: 4px;
}

.financial-alert strong {
  color: #fff;
}

.financial-alert.good {
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.1);
}

.financial-alert.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.financial-alert.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

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

.financial-pool {
  min-height: 126px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 48%),
    rgba(5, 13, 27, 0.5);
  display: grid;
  align-content: start;
  gap: 9px;
}

.financial-pool div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9e5f5;
  font-weight: 900;
}

.financial-pool .icon {
  color: #f59e0b;
}

.financial-pool strong {
  color: #fff;
  font-size: 1.35rem;
}

.expansion-simulator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.expansion-simulator div {
  min-height: 132px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 16%, rgba(16, 185, 129, 0.24), transparent 34%),
    rgba(5, 13, 27, 0.5);
  display: grid;
  align-content: end;
  gap: 5px;
}

.expansion-simulator strong {
  color: #fff;
}

.runway-chart {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.runway-chart div {
  min-height: 150px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
}

.runway-chart i {
  align-self: end;
  min-height: 12px;
  height: var(--runway, 30%);
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #10b981, #38bdf8);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.runway-chart span,
.runway-chart strong {
  text-align: center;
}

.runway-chart span {
  color: #93a4ba;
  font-size: 0.78rem;
}

.runway-chart strong {
  color: #fff;
  font-size: 0.72rem;
}

.dependency-map {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 13, 27, 0.88), rgba(15, 23, 42, 0.82)),
    rgba(255, 255, 255, 0.04);
}

.dependency-map::before,
.dependency-map::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 1px;
  background: rgba(56, 189, 248, 0.28);
}

.dependency-map::after {
  transform: rotate(90deg);
}

.dependency-core,
.dependency-node {
  position: absolute;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(5, 13, 27, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.dependency-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.2);
  font-weight: 900;
}

.dependency-node {
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
}

.dependency-node strong {
  color: #38bdf8;
}

.dependency-node.n1 { left: 10%; top: 16%; }
.dependency-node.n2 { right: 9%; top: 17%; }
.dependency-node.n3 { left: 12%; bottom: 14%; }
.dependency-node.n4 { right: 12%; bottom: 14%; }

.dependency-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  color: #d9e5f5;
}

.dependency-row i {
  grid-column: 1 / -1;
}

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

.commission-engine div {
  display: grid;
  gap: 5px;
}

.commission-engine span {
  color: #d9e5f5;
  font-weight: 900;
}

.commission-engine strong {
  color: #10b981;
  font-size: 1.6rem;
}

.economy-view {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.15), transparent 40%),
    linear-gradient(300deg, rgba(245, 158, 11, 0.14), transparent 42%),
    rgba(5, 13, 27, 0.62);
}

.economy-view::before,
.economy-view::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.economy-view::after {
  transform: rotate(54deg);
}

.economy-node {
  position: absolute;
  z-index: 2;
  min-width: 128px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(5, 13, 27, 0.76);
  display: grid;
  gap: 4px;
  text-align: center;
}

.economy-node strong {
  color: #fff;
}

.economy-node span {
  color: #93a4ba;
  font-size: 0.78rem;
}

.economy-node.core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.18);
}

.economy-node.a { left: 8%; top: 14%; }
.economy-node.b { right: 8%; top: 16%; }
.economy-node.c { left: 11%; bottom: 14%; }
.economy-node.d { right: 10%; bottom: 14%; }

.financial-goals {
  gap: 10px;
}

.financial-goals span {
  color: #d9e5f5;
  font-weight: 900;
}

.financial-goals strong {
  color: #fff;
  font-size: 1.2rem;
}

@media (max-width: 980px) {
  .admin-desktop-screen {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    overflow: visible;
  }

  .admin-sidebar-status {
    display: none;
  }

  .admin-sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .admin-commandbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-commandbar h1 {
    font-size: 1.45rem;
  }

  .admin-commandbar-metrics {
    justify-items: start;
  }

  .admin-grid-2,
  .admin-grid-3,
  .admin-grid-4,
  .admin-hero-grid,
  .financial-pool-grid,
  .expansion-simulator,
  .commission-engine {
    grid-template-columns: 1fr;
  }

  .financial-title-row {
    flex-direction: column;
  }

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

  .admin-affiliate-controls {
    grid-template-columns: 1fr;
  }
}

.affiliate-mobile-app {
  background: #070b14;
  color: #e8f2ff;
}

.affiliate-screen {
  color: #e8f2ff;
  background:
    linear-gradient(160deg, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(24deg, rgba(245, 158, 11, 0.1), transparent 34%),
    #070b14;
}

.affiliate-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 28px;
  scrollbar-width: none;
}

.affiliate-scroll::-webkit-scrollbar {
  display: none;
}

.affiliate-hero,
.affiliate-panel,
.affiliate-metric,
.affiliate-campaign-card,
.affiliate-feed-row {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.affiliate-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), transparent 42%),
    linear-gradient(310deg, rgba(245, 158, 11, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.07);
  display: grid;
  align-content: start;
  gap: 14px;
}

.affiliate-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: affiliate-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

.affiliate-hero > * {
  position: relative;
  z-index: 1;
}

.affiliate-hero-top,
.affiliate-role-row,
.affiliate-action-row,
.badge-row,
.affiliate-insight-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliate-hero-top {
  justify-content: space-between;
}

.affiliate-brand-logo {
  width: 138px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(56, 189, 248, 0.16));
}

.affiliate-status {
  max-width: 158px;
  padding: 7px 9px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
}

.affiliate-status.warning {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
}

.affiliate-status.danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
}

.affiliate-hero h1 {
  max-width: 330px;
  margin: 0;
  color: #fff;
  font-size: 2.38rem;
  line-height: 0.98;
}

.affiliate-hero p {
  max-width: 350px;
  margin: 0;
  color: #9fb0c7;
  line-height: 1.45;
}

.affiliate-hero-value {
  min-height: 132px;
  padding: 15px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(5, 13, 27, 0.54);
  display: grid;
  gap: 5px;
}

.affiliate-hero-value span,
.affiliate-hero-value small {
  color: #9fb0c7;
  font-weight: 800;
}

.affiliate-hero-value strong {
  color: #fff;
  font-size: 3.6rem;
  line-height: 0.92;
}

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

.affiliate-role-row button,
.affiliate-role-row span,
.affiliate-tab-rail button {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #9fb0c7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 900;
}

.affiliate-role-row button.active,
.affiliate-role-row span.active,
.affiliate-tab-rail button.active {
  color: #06121d;
  background: linear-gradient(135deg, #a7f3d0, #38bdf8);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18);
}

.affiliate-role-row span {
  display: grid;
  place-items: center;
}

.affiliate-admin-note {
  color: #9fb0c7;
  font-weight: 800;
}

.affiliate-toast {
  margin: 12px 2px 0;
  padding: 11px 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 16px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  font-weight: 800;
  font-size: 0.82rem;
}

.affiliate-tab-rail {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 12px -14px 12px;
  padding: 8px 14px;
  overflow-x: auto;
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 8px;
  scrollbar-width: none;
}

.affiliate-tab-rail::-webkit-scrollbar {
  display: none;
}

.affiliate-tab-rail button {
  flex: 0 0 auto;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.affiliate-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

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

.affiliate-metric {
  min-height: 142px;
  padding: 13px;
  border-radius: 20px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.affiliate-metric div {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #06121d;
  background: linear-gradient(135deg, #fcd34d, #38bdf8);
  display: grid;
  place-items: center;
}

.affiliate-metric .icon {
  width: 18px;
  height: 18px;
}

.affiliate-metric span,
.affiliate-panel-head p,
.affiliate-panel p,
.affiliate-table small,
.affiliate-referral-list small,
.affiliate-leaderboard small,
.affiliate-feed-row small,
.affiliate-tier-card small,
.affiliate-link-card strong,
.affiliate-payout-vault span,
.affiliate-payout-vault small,
.affiliate-ai-card p,
.affiliate-challenge-list span {
  color: #9fb0c7;
}

.affiliate-metric strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.affiliate-metric small {
  color: #7dd3fc;
  font-weight: 800;
}

.affiliate-panel {
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 22px;
  display: grid;
  gap: 12px;
}

.affiliate-panel-head h3 {
  margin: 0;
  color: #fff;
}

.affiliate-panel-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.affiliate-chart {
  height: 188px;
  padding: 12px 4px 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.affiliate-chart div {
  min-height: 150px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  align-items: end;
}

.affiliate-chart i {
  height: var(--height);
  min-height: 22px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(180deg, #a7f3d0, #38bdf8 54%, #f59e0b);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.17);
}

.affiliate-chart span {
  color: #9fb0c7;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.affiliate-insight-strip,
.badge-row {
  flex-wrap: wrap;
}

.affiliate-insight-strip span,
.badge-row span {
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  color: #e8f2ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 900;
}

.affiliate-tier-card,
.affiliate-link-card,
.affiliate-payout-vault,
.affiliate-ai-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(5, 13, 27, 0.52);
  display: grid;
  gap: 9px;
}

.affiliate-tier-card span,
.affiliate-link-card span,
.affiliate-payout-vault strong,
.affiliate-ai-card strong {
  color: #fff;
  font-weight: 900;
}

.affiliate-tier-card strong {
  color: #a7f3d0;
}

.affiliate-progress {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.affiliate-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #10b981, #38bdf8);
}

.affiliate-link-card strong {
  min-width: 0;
  word-break: break-all;
  font-size: 0.82rem;
}

.affiliate-action-row {
  flex-wrap: wrap;
}

.affiliate-mobile-app .btn-primary {
  background: linear-gradient(135deg, #10b981, #38bdf8);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.18);
}

.affiliate-mobile-app .btn-light {
  color: #e8f2ff;
  background: rgba(255, 255, 255, 0.08);
}

.affiliate-feed {
  display: grid;
  gap: 8px;
}

.affiliate-feed-row {
  padding: 11px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.affiliate-feed-row > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.1);
}

.affiliate-feed-row.good > span {
  background: #10b981;
}

.affiliate-feed-row.warning > span {
  background: #f59e0b;
}

.affiliate-feed-row strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}

.affiliate-payout-vault {
  min-height: 178px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.17), transparent 50%),
    rgba(5, 13, 27, 0.56);
}

.affiliate-payout-vault strong {
  font-size: 2.9rem;
  line-height: 0.94;
}

.affiliate-table,
.affiliate-referral-list,
.affiliate-value-map,
.affiliate-leaderboard,
.affiliate-challenge-list {
  display: grid;
  gap: 8px;
}

.affiliate-table div,
.affiliate-referral-list div,
.affiliate-value-map div,
.affiliate-leaderboard div,
.affiliate-challenge-list div {
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 15px;
  background: rgba(5, 13, 27, 0.44);
}

.affiliate-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
}

.affiliate-table small {
  grid-column: 1 / -1;
}

.affiliate-table strong,
.affiliate-referral-list strong,
.affiliate-value-map strong,
.affiliate-leaderboard b,
.affiliate-challenge-list strong {
  color: #fff;
}

.affiliate-table span,
.affiliate-referral-list span,
.affiliate-value-map span {
  color: #e8f2ff;
  font-weight: 900;
}

.affiliate-referral-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
}

.affiliate-referral-list small {
  grid-column: 1 / -1;
}

.affiliate-value-map div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.affiliate-value-map i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #a78bfa var(--rank), rgba(148, 163, 184, 0.16) 0);
}

.affiliate-campaign-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.affiliate-campaign-card {
  overflow: hidden;
  padding: 0 0 13px;
  border-radius: 24px;
}

.campaign-banner {
  min-height: 138px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.52), transparent 70%),
    linear-gradient(300deg, rgba(56, 189, 248, 0.42), rgba(245, 158, 11, 0.28));
  display: grid;
  align-content: end;
  gap: 6px;
}

.affiliate-campaign-card.tone-1 .campaign-banner {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.48), transparent 70%),
    linear-gradient(300deg, rgba(167, 139, 250, 0.42), rgba(16, 185, 129, 0.26));
}

.affiliate-campaign-card.tone-2 .campaign-banner {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.38), transparent 70%),
    linear-gradient(300deg, rgba(56, 189, 248, 0.38), rgba(245, 158, 11, 0.22));
}

.campaign-banner span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #07111f;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 900;
}

.campaign-banner strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.affiliate-campaign-card p,
.affiliate-campaign-card .affiliate-table,
.affiliate-campaign-card .affiliate-action-row {
  margin: 12px 13px 0;
}

.affiliate-qr-box {
  min-height: 150px;
  border: 1px dashed rgba(167, 243, 208, 0.38);
  border-radius: 18px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  display: grid;
  place-items: center;
  gap: 4px;
}

.affiliate-qr-box .icon {
  width: 62px;
  height: 62px;
}

.affiliate-leaderboard div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.affiliate-leaderboard strong {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #06121d;
  background: #fcd34d;
  display: grid;
  place-items: center;
}

.affiliate-leaderboard span {
  color: #fff;
  font-weight: 900;
}

.affiliate-leaderboard small {
  display: block;
  margin-top: 2px;
  font-weight: 700;
}

.affiliate-network-map {
  position: relative;
  min-height: 310px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 50%),
    rgba(5, 13, 27, 0.5);
}

.affiliate-network-map::before,
.affiliate-network-map::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(56, 189, 248, 0.28);
}

.affiliate-network-map::after {
  transform: rotate(90deg);
}

.affiliate-network-map .core,
.affiliate-network-map .node {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 13, 27, 0.82);
  font-weight: 900;
}

.affiliate-network-map .core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #06121d;
  background: linear-gradient(135deg, #a7f3d0, #38bdf8);
}

.affiliate-network-map .n1 { left: 9%; top: 16%; }
.affiliate-network-map .n2 { right: 9%; top: 18%; }
.affiliate-network-map .n3 { left: 12%; bottom: 17%; }
.affiliate-network-map .n4 { right: 12%; bottom: 16%; }

.affiliate-ai-card .icon {
  width: 40px;
  height: 40px;
  color: #fcd34d;
}

.affiliate-ai-card strong {
  font-size: 1.25rem;
}

.affiliate-challenge-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.affiliate-challenge-list .affiliate-progress {
  grid-column: 1 / -1;
}

.affiliate-mobile-app .input-wrap {
  color: #e8f2ff;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(5, 13, 27, 0.62);
}

.affiliate-mobile-app .field > span:first-child {
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 900;
}

.affiliate-mobile-app input,
.affiliate-mobile-app textarea,
.affiliate-mobile-app select {
  color: #fff;
}

.affiliate-mobile-app input::placeholder,
.affiliate-mobile-app textarea::placeholder {
  color: #64748b;
}

.affiliate-application-form {
  gap: 10px;
}

.affiliate-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.affiliate-check {
  color: #cbd5e1;
}

@media (max-width: 380px) {
  .affiliate-grid-2,
  .affiliate-two-fields {
    grid-template-columns: 1fr;
  }

  .affiliate-hero h1 {
    font-size: 2rem;
  }

  .affiliate-hero-value strong {
    font-size: 2.8rem;
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes affiliate-sheen {
  0%,
  72% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.62;
  }
}

@keyframes pulse-nfc {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 34px rgba(0, 120, 212, 0.22);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 24px 42px rgba(255, 140, 0, 0.26);
  }
}

@keyframes welcome-gradient {
  0% {
    background-position:
      0% 12%,
      100% 88%,
      50% 0%,
      0 0;
  }
  50% {
    background-position:
      58% 36%,
      38% 62%,
      78% 48%,
      0 0;
  }
  100% {
    background-position:
      100% 22%,
      0% 78%,
      42% 100%,
      0 0;
  }
}

@keyframes welcome-glow {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(1%, -2%, 0) scale(1.01);
  }
}

@keyframes slogan-gradient {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes slogan-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 370px) {
  .scroll-view,
  .section,
  .home-header,
  .topbar,
  .form-screen,
  .profile-hero,
  .provider-dashboard-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .two-cards,
  .grid-2,
  .form-grid.two,
  .metric-grid,
  .admin-grid,
  .admin-meta-grid,
  .verification-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

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

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

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