:root {
  --bg-start: #4450d8;
  --bg-mid: #7230dd;
  --bg-end: #ca25be;
  --text-main: #fbf9ff;
  --text-soft: #f1ebff;
  --text-dim: rgba(245, 240, 255, 0.84);
  --card-bg: rgba(22, 16, 66, 0.72);
  --card-strong: rgba(52, 29, 112, 0.82);
  --card-border: rgba(232, 224, 255, 0.28);
  --line-soft: rgba(232, 224, 255, 0.24);
  --accent-hot: #bf6f40;
  --accent-warm: #de9866;
  --accent-gold: #e6e1ec;
  --ok: #b8e2ff;
  --warn: #efc18c;
  --danger: #ffc5d4;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 42px rgba(25, 17, 73, 0.3);
  --shadow-pop: 0 20px 36px rgba(56, 22, 110, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background: linear-gradient(90deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#spa-root {
  min-height: 100dvh;
  opacity: 1;
  transition: opacity 0.2s ease;
}

#spa-root.is-transitioning {
  opacity: 0.12;
}

@media (prefers-reduced-motion: reduce) {
  #spa-root {
    transition: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

p {
  margin: 0;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a,
button,
input,
select,
textarea,
[role="button"] {
  outline: none;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.ambient-one {
  width: 500px;
  height: 500px;
  background: rgba(202, 37, 190, 0.24);
  top: -180px;
  right: -80px;
}

.ambient-two {
  width: 390px;
  height: 390px;
  background: rgba(197, 149, 103, 0.16);
  bottom: -130px;
  left: -120px;
}

.ambient-three {
  width: 280px;
  height: 280px;
  background: rgba(101, 118, 255, 0.2);
  top: 24%;
  left: -110px;
}

.glass-card,
.card,
.panel,
.sidebar,
.topbar,
.auth-card,
.auth-side,
.modal-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(1420px, 94vw);
  margin: 28px auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.sidebar {
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(145deg, #f2af7f, #9a552d);
  color: #24123f;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 223, 0.45),
    inset 0 -3px 0 rgba(73, 35, 11, 0.22);
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-text p + p {
  margin-top: 4px;
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  width: 100%;
  text-align: left;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.nav-label {
  min-width: 0;
}

.menu-item:hover,
.menu-item.active {
  background: linear-gradient(90deg, rgba(78, 62, 197, 0.42), rgba(191, 111, 64, 0.26));
  transform: translateX(2px);
}

.sidebar-card {
  margin-top: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  padding: 16px;
  background: linear-gradient(135deg, rgba(38, 30, 103, 0.82), rgba(107, 59, 130, 0.72));
}

.sidebar-card h4 {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.sidebar-card .tier {
  color: #fff9d8;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.topbar {
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
}

.topbar p {
  margin-top: 6px;
  color: var(--text-soft);
  max-width: 58ch;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  padding: 7px 12px;
  background: linear-gradient(90deg, rgba(68, 80, 216, 0.3), rgba(191, 111, 64, 0.18));
  font-weight: 600;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1dceb;
  box-shadow: 0 0 0 6px rgba(225, 220, 235, 0.16);
}

.card,
.panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease,
    background 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(18, 12, 67, 0.42);
    border-color: rgba(255, 255, 255, 0.32);
  }
}

.hero {
  padding: 24px;
  display: grid;
  gap: 18px;
  background: linear-gradient(115deg, rgba(52, 63, 187, 0.84), rgba(116, 48, 221, 0.76) 52%, rgba(191, 111, 64, 0.44));
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.section-label {
  letter-spacing: 0.45px;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #efe6ff;
}

.hero h2 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: var(--text-soft);
  opacity: 0.96;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-history {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 3px solid rgba(220, 208, 255, 0.18);
}

.hero-history-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.hero-history-compact h3 {
  margin: 0;
}

.hero-history .table-wrap {
  margin-top: 10px;
}

.glow-btn,
.outline-btn,
.ghost-btn,
.danger-btn {
  border-radius: var(--radius-sm);
  border: 0;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.glow-btn {
  background: linear-gradient(135deg, #f0b385, #a85d32);
  color: #24123f;
  box-shadow: 0 12px 24px rgba(74, 39, 17, 0.24);
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.outline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--line-soft);
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ghost-btn {
  background: linear-gradient(90deg, rgba(68, 80, 216, 0.24), rgba(202, 37, 190, 0.12));
  color: #f4f1ff;
  border: 1px solid var(--line-soft);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.danger-btn {
  background: rgba(255, 177, 177, 0.24);
  border: 1px solid rgba(255, 177, 177, 0.7);
  color: #fff9fb;
}

.full {
  width: 100%;
}

.small {
  padding: 9px 13px;
  font-size: 0.86rem;
}

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

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

.kpi-card,
.metric {
  padding: 18px;
}

.kpi-card p,
.metric p {
  color: var(--text-soft);
  font-weight: 500;
}

.kpi-card h3,
.metric h3 {
  margin-top: 9px;
  margin-bottom: 5px;
  font-size: 1.52rem;
}

.kpi-card span,
.metric span {
  font-size: 0.88rem;
  color: #ffe2c7;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}

.kpi-stack {
  display: grid;
  gap: 12px;
}

.bottom-grid {
  grid-template-columns: 1.35fr 1fr;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 {
  font-size: 1.06rem;
}

.panel-head a {
  color: #ffd7b7;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.badge,
.chip,
.tag {
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge {
  background: rgba(191, 111, 64, 0.18);
  color: #ffd9bc;
  border-color: rgba(191, 111, 64, 0.42);
}

.chip {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: var(--line-soft);
}

.tag.warn {
  background: rgba(239, 193, 140, 0.16);
  color: #ffe7c8;
  border-color: rgba(239, 193, 140, 0.38);
}

.tag.ok {
  background: rgba(184, 226, 255, 0.16);
  color: #e2f3ff;
  border-color: rgba(184, 226, 255, 0.38);
}

.tag.hot {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.ref-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input,
.select,
.textarea,
.ref-box input,
.auth-form input,
.auth-form select {
  width: 100%;
  background: rgba(15, 11, 49, 0.62);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: #fff;
}

.input:focus,
.select:focus,
.textarea:focus,
.ref-box input:focus,
.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(240, 189, 141, 0.6);
  box-shadow: 0 0 0 3px rgba(240, 189, 141, 0.16);
}

.input::placeholder,
.textarea::placeholder,
.auth-form input::placeholder {
  color: rgba(241, 235, 255, 0.78);
}

.select option,
.auth-form option {
  color: #3e1124;
}

.settings-lead {
  color: var(--text-soft);
  line-height: 1.55;
}

.security-note {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(42, 48, 118, 0.9), rgba(100, 55, 118, 0.76));
  display: grid;
  gap: 4px;
}

.security-note span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.security-note strong {
  font-size: 1rem;
}

.security-note small {
  color: var(--text-dim);
}

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

.upi-summary-card {
  max-width: 860px;
}

.upi-summary-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.upi-form-actions {
  align-items: center;
  margin-top: 0;
}

.upi-flow-note {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.upi-flow-note span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.upi-flow-note strong {
  font-size: 0.98rem;
}

.upi-flow-note small {
  color: var(--text-dim);
}

.otp-panel {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 8px;
}

.linked-upi-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.upi-list-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(36, 42, 108, 0.88), rgba(88, 49, 111, 0.74));
}

.upi-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.upi-mask {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.upi-inline-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upi-primary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.upi-summary-actions {
  margin-top: 0;
}

.table-action-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credit-history-card {
  max-width: 920px;
}

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

.credit-history-stats .list-item {
  min-height: 82px;
}

.credit-history-link-meta {
  margin-bottom: 16px;
  gap: 12px;
}

.credit-history-link-meta small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
}

.outline-btn.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
}

.empty-state small {
  color: var(--text-soft);
}

.quick-actions,
.actions-row {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.steps {
  margin-top: 18px;
}

.steps h4,
.chart-wrap h4,
.tiers h4,
.section-title {
  margin-bottom: 12px;
  font-size: 1rem;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
}

.step p {
  color: var(--text-soft);
}

.chart-wrap {
  margin-top: 18px;
}

.chart-wrap-large {
  margin-top: 0;
}

.chart-wrap-large .bar-chart {
  height: 280px;
  padding: 42px 18px 42px;
  gap: 12px;
}

.bar-chart {
  height: 180px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  padding: 38px 14px 34px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  overflow: hidden;
}

.bar {
  position: relative;
  min-height: 8px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(180deg, var(--accent-gold), #ffe2a5 15%, var(--accent-hot));
  box-shadow: 0 9px 14px rgba(53, 8, 25, 0.25);
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar.is-empty {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: none;
}

.bar-amount {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffe6c2;
  white-space: nowrap;
}

.bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.wallet-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.wallet-list > div,
.tile {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.1);
}

.wallet-list p,
.tile p {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.wallet-list strong,
.tile strong {
  margin-top: 6px;
  display: block;
  font-size: 1.05rem;
}

.progress-block {
  margin-top: 16px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.progress-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 76%;
  background: linear-gradient(90deg, #ffdca9, #ffe9c8, #9affab);
}

.tiers {
  margin-top: 17px;
}

.tier-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.tier-card span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.active-tier {
  border-color: rgba(255, 235, 171, 0.65);
  background: linear-gradient(120deg, rgba(255, 220, 160, 0.2), rgba(255, 255, 255, 0.09));
}

.next-payout {
  margin-top: 10px;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.11);
}

.next-payout h4 {
  margin-top: 5px;
  font-size: 1.38rem;
}

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

.campaign-table td:first-child {
  min-width: 280px;
}

.campaign-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-cell strong {
  display: block;
}

.campaign-cell small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
}

.campaign-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff9f4;
  background: linear-gradient(145deg, var(--accent-warm), var(--accent-hot));
  box-shadow: 0 10px 24px rgba(74, 10, 30, 0.2);
}

.campaign-logo-image {
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
}

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

th,
td {
  padding: 11px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  white-space: normal;
}

.table-action-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.links-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.links-search {
  width: min(340px, 100%);
}

.links-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.links-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.links-page-label {
  color: var(--text-soft);
  font-size: 0.88rem;
}

th {
  color: #fff9d8;
  font-size: 0.86rem;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.2s ease;
}

.status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status.success {
  background: rgba(138, 244, 177, 0.19);
  color: #d0ffdf;
}

.status.pending {
  background: rgba(255, 208, 111, 0.2);
  color: #fff1c2;
}

.status.review {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}

.timeline li span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  background: linear-gradient(145deg, #ffe8b2, #ffffff);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.timeline strong {
  font-size: 0.95rem;
}

.timeline p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.list-item small {
  color: var(--text-dim);
}

.campaign-steps-summary {
  align-items: center;
}

.campaign-step-list {
  margin-top: 4px;
}

.campaign-step-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
}

.campaign-step-item span {
  background: linear-gradient(135deg, #ffe2cf, #ffd2bb);
  color: #d23868;
  box-shadow: 0 8px 16px rgba(79, 16, 42, 0.16);
}

.campaign-step-item p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.campaign-steps-footer {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 226, 207, 0.18);
  background: rgba(255, 244, 232, 0.08);
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rank-row .medal {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
}

.rank-row p {
  margin-bottom: 4px;
}

.rank-row small {
  color: var(--text-soft);
}

@media (hover: hover) and (pointer: fine) {
  .list-item:hover,
  .rank-row:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }

  tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
  }
}

.stat-line {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

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

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

.field label {
  font-size: 0.88rem;
  color: #fff9d8;
}

.textarea {
  resize: vertical;
  min-height: 110px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--line-soft);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.switch.on {
  background: rgba(138, 244, 177, 0.45);
}

.switch.on::after {
  left: 20px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

.tab.active {
  background: rgba(255, 255, 255, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 7, 19, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal.open::before,
.modal.closing::before {
  opacity: 1;
}

.modal.closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  border-radius: 20px;
  padding: 18px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.modal.open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal.closing .modal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.bottom-sheet-modal {
  align-items: end;
  padding: 18px;
}

.bottom-sheet-modal .modal-card {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 24px 24px 18px 18px;
  transform: translateY(34px) scale(0.99);
}

.bottom-sheet-modal.open .modal-card {
  transform: translateY(0) scale(1);
}

.bottom-sheet-modal.closing .modal-card {
  transform: translateY(34px) scale(0.99);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-head h3 {
  font-size: 1.08rem;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 10px;
}

.modal-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-note {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.modal-note[data-state="error"] {
  color: #ffd4d4;
}

.modal-note[data-state="ok"] {
  color: #bbffd2;
}

.share-sheet-body {
  gap: 14px;
}

.share-sheet-preview {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  color: #fff5f4;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

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

.share-option {
  min-height: 46px;
  display: grid;
  place-items: center;
  text-decoration: none;
  text-align: center;
  gap: 7px;
  padding: 12px 10px;
}

.share-option-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.share-option span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.toast {
  --toast-duration: 2400ms;
  position: fixed;
  top: 20px;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 120;
  width: min(520px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 225, 232, 0.14);
  background:
    linear-gradient(140deg, rgba(133, 34, 68, 0.72), rgba(64, 16, 37, 0.72)),
    rgba(57, 14, 30, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(12, 18, 30, 0.28);
  color: #fff5f4;
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(0.98);
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.toast[data-tone="success"] {
  background:
    linear-gradient(140deg, rgba(25, 103, 63, 0.78), rgba(14, 53, 35, 0.72)),
    rgba(11, 41, 28, 0.84);
  border-color: rgba(162, 255, 206, 0.16);
}

.toast[data-tone="error"] {
  background:
    linear-gradient(140deg, rgba(156, 40, 55, 0.78), rgba(71, 18, 29, 0.72)),
    rgba(68, 17, 26, 0.84);
  border-color: rgba(255, 193, 193, 0.16);
}

.toast-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toast-icon::before {
  content: "i";
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.toast[data-tone="success"] .toast-icon::before {
  content: "✓";
}

.toast[data-tone="success"] .toast-icon {
  background: rgba(170, 255, 214, 0.12);
  border-color: rgba(170, 255, 214, 0.1);
}

.toast[data-tone="error"] .toast-icon::before {
  content: "!";
}

.toast[data-tone="error"] .toast-icon {
  background: rgba(255, 202, 202, 0.12);
  border-color: rgba(255, 202, 202, 0.1);
}

.toast-copy {
  min-width: 0;
  padding-top: 2px;
}

.toast-title {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: #fff7f4;
}

.toast-message {
  margin-top: 4px;
  color: rgba(255, 237, 240, 0.84);
  font-size: 0.95rem;
  line-height: 1.45;
}

.toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 237, 240, 0.8);
  font-size: 1.2rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.toast-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, #ffd29d, #fff0d8);
  animation: toastProgress var(--toast-duration) linear forwards;
}

.toast[data-tone="success"] .toast-progress::after {
  background: linear-gradient(90deg, #73efab, #d5ffe8);
}

.toast[data-tone="error"] .toast-progress::after {
  background: linear-gradient(90deg, #ff9b9b, #ffd7d7);
}

.toast.show .toast-progress::after {
  animation: toastProgress var(--toast-duration) linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Auth */

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1040px, 94vw);
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 16px;
}

.auth-side,
.auth-card {
  border-radius: 24px;
  padding: 26px;
}

.auth-side {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  display: grid;
  align-content: space-between;
}

.auth-side h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-top: 10px;
}

.auth-side p {
  margin-top: 8px;
  color: var(--text-soft);
}

.auth-highlights {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.auth-highlight {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  padding: 10px 12px;
}

.auth-highlight strong {
  display: block;
  margin-bottom: 4px;
}

.auth-card h1 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.auth-card > p {
  margin-top: 8px;
  color: var(--text-soft);
}

.auth-form {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.auth-inline a,
.auth-alt a {
  color: #fffbd0;
  text-decoration: none;
}

.auth-alt {
  margin-top: 12px;
  color: var(--text-soft);
  text-align: center;
}

.social-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-btn {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

/* Responsive */

.mobile-nav {
  display: none;
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 80;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(54, 10, 25, 0.56);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  touch-action: pan-y;
}

.mobile-nav-item {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 5px;
  text-decoration: none;
  color: #ffe5ea;
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 12px;
  padding: 11px 4px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.mobile-nav-item .nav-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.mobile-nav-item .nav-label {
  display: block;
}

.menu-item:focus,
.menu-item:focus-visible,
.mobile-nav-item:focus,
.mobile-nav-item:focus-visible {
  outline: none;
  box-shadow: none;
}

.mobile-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mobile-nav-item:active {
  transform: translateY(1px);
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 84px 1fr;
  }

  .brand-text,
  .sidebar-card {
    display: none;
  }

  .brand {
    justify-content: center;
    margin-bottom: 10px;
  }

  .menu-item {
    justify-content: center;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .menu-item .nav-label {
    display: none;
  }
}

@media (max-width: 980px) {
  body.has-mobile-nav {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .app-shell {
    grid-template-columns: 1fr;
    width: min(100vw, 100%);
    margin: 0;
    padding: 12px;
    gap: 12px;
  }

  .sidebar {
    display: none;
  }

  .dashboard {
    gap: 12px;
  }

  .mobile-nav {
    display: grid;
  }

  .credit-history-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: 8px;
    z-index: 20;
    padding: 14px;
    border-radius: 16px;
  }

  .topbar h1 {
    font-size: 1.2rem;
  }

  .topbar p {
    margin-top: 4px;
    font-size: 0.88rem;
  }

  .hero,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .card,
  .panel {
    padding: 14px;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-actions > * {
    flex: 1 1 calc(50% - 5px);
  }

  .hero-history-compact h3 {
    font-size: 0.98rem;
  }

  .layout-grid,
  .dashboard-insights,
  .bottom-grid,
  .split-grid,
  .metric-grid,
  .kpi-grid,
  .wallet-list,
  .form-grid,
  .triple-grid,
  .auth-shell,
  .auth-row,
  .social-row {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ref-box {
    grid-template-columns: 1fr;
  }

  .ref-box > * {
    width: 100%;
  }

  .input,
  .select,
  .textarea,
  .ref-box input,
  .auth-form input,
  .auth-form select {
    font-size: 16px;
  }

  .quick-actions,
  .actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions > *,
  .actions-row > * {
    width: 100%;
  }

  .auth-shell {
    margin: 0;
    width: min(100vw, 100%);
    padding: 12px;
    gap: 12px;
  }

  .auth-side {
    display: none;
  }

  .auth-side,
  .auth-card {
    padding: 18px;
    border-radius: 18px;
  }

  .auth-inline {
    flex-wrap: wrap;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 92px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 0.92fr 1fr;
    margin: 24px auto;
    width: min(1040px, 96vw);
    padding: 0;
  }

  .auth-side {
    display: grid;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
  }

  .campaign-table td:first-child {
    min-width: 0;
  }

  .campaign-table tbody td:first-child {
    align-items: center;
  }

  .campaign-table tbody td:first-child::before {
    margin-top: 2px;
  }

  .campaign-cell {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .campaign-table .campaign-cell {
    align-items: center;
    margin-left: auto;
    width: auto;
    max-width: calc(100% - 82px);
    justify-content: flex-end;
  }

  .campaign-cell > div:last-child {
    min-width: 0;
  }

  .campaign-table .campaign-cell > div:last-child {
    text-align: right;
  }

  .campaign-cell strong,
  .campaign-cell small {
    word-break: break-word;
  }

  .campaign-table .campaign-cell small {
    display: none;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  table thead {
    display: none;
  }

  table tbody {
    display: grid;
    gap: 10px;
  }

  table tbody tr {
    display: block;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 10px 10px 8px;
    background: rgba(255, 255, 255, 0.1);
  }

  table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    white-space: normal;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
    padding: 8px 2px;
    font-size: 0.9rem;
  }

  table tbody td::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    flex-shrink: 0;
    flex: 0 0 72px;
    white-space: nowrap;
  }

  table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  #createdLinksBody td:first-child {
    align-items: center;
  }

  #createdLinksBody td:first-child .campaign-cell {
    margin-left: auto;
    width: auto;
    max-width: calc(100% - 82px);
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
  }

  #createdLinksBody .campaign-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .links-campaign-copy {
    min-width: 0;
    flex: 1 1 auto;
    text-align: right;
  }

  .links-campaign-copy strong {
    display: block;
    line-height: 1.2;
    word-break: break-word;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-row {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .rank-row > span:last-child {
    grid-column: 1 / -1;
    justify-self: flex-end;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions > * {
    flex: 1 1 100%;
  }

  .links-toolbar {
    align-items: stretch;
  }

  .links-search {
    width: 100%;
  }

  .links-meta {
    width: 100%;
    font-size: 0.82rem;
  }

  .links-pagination {
    justify-content: stretch;
  }

  .links-pagination > * {
    flex: 1 1 100%;
    text-align: center;
  }

  .upi-form-actions {
    align-items: stretch;
  }

  .upi-form-actions > * {
    width: 100%;
  }

  .upi-list-item {
    padding: 12px 14px;
  }

  .upi-primary-item {
    align-items: flex-start;
  }

  .upi-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .bottom-sheet-modal {
    padding: 12px 10px;
  }

  .bottom-sheet-modal .modal-card {
    width: 100%;
    border-radius: 22px 22px 16px 16px;
  }

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

  .share-option {
    min-height: 42px;
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .campaign-table tbody td:first-child {
    flex-direction: row;
    align-items: center;
  }

  .campaign-table tbody td:first-child::before {
    margin-bottom: 0;
    margin-top: 2px;
  }

  .campaign-cell {
    gap: 10px;
  }

  .app-shell,
  .auth-shell {
    padding: 10px;
  }

  .card,
  .panel,
  .topbar,
  .auth-side,
  .auth-card,
  .modal-card {
    border-radius: 14px;
  }

  .hero h2 {
    font-size: 1.7rem;
    line-height: 1.12;
  }

  .bar-chart {
    height: 158px;
    padding: 10px 10px 30px;
    gap: 6px;
  }

  .chart-wrap-large .bar-chart {
    height: 230px;
    padding: 14px 14px 38px;
    gap: 8px;
  }

  .chip,
  .tag,
  .badge {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .quick-actions,
  .actions-row {
    grid-template-columns: 1fr;
  }

  .hero-actions > * {
    flex: 1 1 100%;
  }

  .mobile-nav {
    padding: 8px 6px;
    gap: 5px;
  }

  .mobile-nav-item {
    font-size: 0.72rem;
    padding: 10px 3px;
  }

  .toast {
    top: calc(12px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    bottom: auto;
    width: auto;
    max-width: none;
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 7px;
    padding: 9px 9px 10px;
    border-radius: 13px;
    box-shadow: 0 14px 28px rgba(12, 18, 30, 0.22);
    transform: translateY(-12px) scale(0.98);
  }

  .toast.show {
    transform: translateY(0) scale(1);
  }

  .toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .toast-icon::before {
    font-size: 0.82rem;
  }

  .toast-copy {
    padding-top: 0;
  }

  .toast-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .toast-message {
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .toast-close {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
    align-self: start;
  }

  .toast-progress {
    height: 2px;
  }

  .ambient {
    filter: blur(18px);
  }
}

@media (max-width: 420px) {
  .hero h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 420px) {
  .toast {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 6px;
    padding: 8px 8px 9px;
  }

  .toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .toast-title {
    font-size: 0.77rem;
  }

  .toast-message {
    font-size: 0.69rem;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(37, 6, 18, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-loader.show {
  opacity: 1;
  pointer-events: none;
}

.page-loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffe1be;
  border-right-color: #ffd4ba;
  animation: pageSpin 0.8s linear infinite;
}

@keyframes pageSpin {
  to {
    transform: rotate(360deg);
  }
}

.contact-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.96), rgba(255, 216, 195, 0.96));
  color: #4b1824;
  box-shadow: 0 18px 40px rgba(18, 2, 11, 0.26);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(18, 2, 11, 0.32);
}

.contact-fab:focus,
.contact-fab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.contact-fab-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: #ff537f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.contact-fab-label {
  white-space: nowrap;
}

body.has-mobile-nav .contact-fab {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
  .contact-fab {
    right: 14px;
    bottom: 14px;
    padding: 11px 14px;
    gap: 8px;
  }

  .contact-fab-icon {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }

  .contact-fab-label {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition: none;
  }

  .page-loader-spinner {
    animation: none;
  }

  .reveal,
  .modal,
  .modal::before,
  .modal-card,
  .card,
  .panel,
  .list-item,
  .rank-row,
  .menu-item,
  .toast,
  .contact-fab {
    animation: none !important;
    transition: none !important;
  }
}
