:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7fbfd;
  --text: #182836;
  --text-soft: #537083;
  --line: rgba(24, 40, 54, 0.08);
  --teal: #5bbcac;
  --teal-deep: #3ca999;
  --orange: #ff9a2a;
  --orange-deep: #ef8817;
  --navy: #182836;
  --navy-2: #21384c;
  --shadow: 0 24px 60px rgba(24, 40, 54, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

@font-face {
  font-family: "BenchGrinderTitling";
  src: url("assets/fonts/BenchGrinderTitling.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Partner dashboard + auth pages (aligned with IPJumper style) */
.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.7;
}

.orb-orange {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 154, 42, 0.35), transparent 70%);
  top: -80px;
  right: -80px;
}

.orb-navy {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(24, 40, 54, 0.25), transparent 70%);
  bottom: -140px;
  left: -140px;
}

.orb-mint {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(91, 188, 172, 0.3), transparent 70%);
  top: 18%;
  left: -80px;
}

.orb-sunset {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 154, 42, 0.28), transparent 72%);
  bottom: 10%;
  right: -120px;
}

.brand {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 999px;
  background: #73d8cb;
  padding: 10px;
  box-shadow: 0 18px 30px rgba(24, 40, 54, 0.12);
}

.brand-text {
  font-family: "BenchGrinderTitling", "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 800;
  border: none;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 154, 42, 0.28);
  cursor: pointer;
  gap: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0 22px;
}

.cta > span {
  display: inline-flex;
  align-items: center;
}

.cta:disabled {
  opacity: 0.7;
  cursor: wait;
  box-shadow: none;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.hint {
  margin: 18px 0 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.sidebar {
  padding: 32px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 40, 54, 0.98), rgba(24, 40, 54, 0.92));
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
}

.sidebar-brand {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.sidebar-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #73d8cb;
  padding: 6px;
}

.sidebar-title {
  font-family: "BenchGrinderTitling", "Manrope", sans-serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link.is-active {
  background: rgba(255, 154, 42, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 154, 42, 0.45);
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-card-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.sidebar-card-text {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.ghost-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
}

.content {
  padding: 32px 40px 48px;
  background: linear-gradient(180deg, #f5f7fb 0%, #edf4f8 100%);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.pill.primary {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  border: none;
}

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

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

.card-lg {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.balance-main,
.metric-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.metric-sub,
.balance-sub {
  color: var(--text-soft);
  margin-top: 6px;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91, 188, 172, 0.18);
  color: var(--navy);
}

.chip.ghost {
  background: rgba(24, 40, 54, 0.08);
  color: var(--text-soft);
}

.spark {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.spark-bar {
  height: 36px;
  width: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 154, 42, 0.9), rgba(91, 188, 172, 0.4));
}

.income-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.chart-grid {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.chart-card {
  min-height: 280px;
}

.chart {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.chart-line {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.chart-line span {
  height: 1px;
  background: rgba(24, 40, 54, 0.1);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 140px;
}

.chart-bar {
  height: var(--h);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 154, 42, 0.9), rgba(255, 154, 42, 0.3));
}

.chart-bar.alt {
  background: linear-gradient(180deg, rgba(91, 188, 172, 0.9), rgba(91, 188, 172, 0.2));
}

.chart-period {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

.link-grid {
  margin-top: 24px;
}

.link-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(24, 40, 54, 0.05);
  border: 1px solid rgba(24, 40, 54, 0.08);
  gap: 12px;
  font-size: 0.95rem;
}

.link-sub {
  margin-top: 12px;
  color: var(--text-soft);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.filter-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.filter-card label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-card input,
.filter-card select {
  background: #fff;
  border: 1px solid rgba(24, 40, 54, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}

.table-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

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

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.table-scroll th,
.table-scroll td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(24, 40, 54, 0.08);
  font-size: 0.95rem;
}

.table-scroll th {
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary {
  font-weight: 700;
}

.secondary {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-top: 4px;
}

.traffic-line {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status.active {
  background: rgba(91, 188, 172, 0.2);
  color: var(--navy);
}

.status.pending {
  background: rgba(255, 154, 42, 0.2);
  color: var(--navy);
}

.status.paid {
  background: rgba(53, 199, 123, 0.18);
  color: #2fa86b;
}

.status.rejected {
  background: rgba(255, 90, 90, 0.18);
  color: #ff5b5b;
}

.status.churned {
  background: rgba(239, 77, 77, 0.2);
  color: #b33b3b;
}

.payout-methods {
  display: grid;
  gap: 12px;
}

.method {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 40, 54, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.method-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.method-sub {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.traffic {
  display: grid;
  gap: 10px;
}

.traffic-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(24, 40, 54, 0.05);
}

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

.device {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 40, 54, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.device-title {
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.device-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
}

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

.support-faq {
  grid-column: 1 / -1;
}

.card-text {
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.support-chat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  grid-column: span 6;
}

.support-chat .card-text {
  margin-bottom: 6px;
}

.support-chat .pill {
  width: fit-content;
}

.support-socials {
  display: grid;
  gap: 12px;
  padding: 18px;
  grid-column: span 6;
}

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

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 40, 54, 0.08);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.social-item:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 26px rgba(10, 18, 28, 0.08);
}

.social-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
}

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

.faq-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(24, 40, 54, 0.05);
  border: 1px solid rgba(24, 40, 54, 0.08);
}

.faq-q {
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-a {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.modal[aria-hidden="false"] {
  display: grid;
  opacity: 1;
  pointer-events: all;
}

.modal.is-open {
  display: grid;
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: min(480px, 92vw);
  margin: 0 auto;
  position: relative;
  transform: scale(0.98);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  background: #233042;
  color: #f1f5fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(5, 10, 18, 0.55);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.modal[aria-hidden="false"] .modal-card,
.modal.is-open .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f7ff;
}

.modal-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.modal-field label {
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.modal-field input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 21, 0.9);
  color: #f5f7ff;
  padding: 0 12px;
}

.modal-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.modal-balance .pill-soft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f7ff;
  padding: 6px 12px;
}

.modal-hint {
  font-size: 0.85rem;
  color: #ff8d8d;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(17, 24, 34, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px rgba(8, 12, 18, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100000;
}

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

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

  .sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .sidebar-brand {
    grid-auto-flow: column;
    justify-items: start;
    text-align: left;
  }

  .sidebar-logo {
    width: 48px;
    height: 48px;
  }

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

  .nav-link {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .sidebar-card {
    width: 100%;
  }

  .content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 18px 16px;
  }

  .sidebar-brand {
    width: 100%;
    justify-items: center;
    text-align: center;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav-link {
    white-space: nowrap;
  }

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

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .header-actions .pill {
    width: 100%;
    text-align: center;
  }

  .link-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding: 20px 16px 32px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .stats-grid,
  .payout-grid {
    grid-template-columns: 1fr;
  }

  .card-lg {
    padding: 18px;
  }

  .table-card {
    padding: 16px;
  }

  .table-scroll {
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table {
    min-width: 520px;
  }

  .table-scroll th,
  .table-scroll td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }

  .table-scroll th {
    font-size: 0.65rem;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5f7fb 0%, #edf4f8 100%);
}

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

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

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

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(24, 40, 54, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(24, 40, 54, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__logo {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  overflow: hidden;
  background: #73d8cb;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.brand__name {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav a {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255,255,255,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  box-shadow: 0 12px 24px rgba(255, 154, 42, 0.28);
}

.btn--ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn--soft {
  color: var(--navy);
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 18px;
}

.btn--full {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: 54px 0 24px;
}

.hero__blob {
  position: absolute;
  inset: 24px 0 auto;
  height: 540px;
  background: radial-gradient(circle at 25% 20%, #72d6c8 0%, var(--teal) 48%, #4cb5a6 100%);
  border-bottom-left-radius: 120px;
  border-bottom-right-radius: 180px;
  border-top-right-radius: 120px;
  transform: skewY(-3deg);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 32px;
  min-height: 560px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hero__text h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 680px;
}

.hero__text p {
  margin: 0;
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(24,40,54,0.9);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__stats div {
  min-width: 122px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(24, 40, 54, 0.08);
}

.hero__stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero__stats span {
  color: rgba(24,40,54,0.82);
}

.hero__visual {
  position: relative;
  padding: 10px 0;
}

.map-card {
  position: relative;
  height: 520px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 72% 26%, rgba(255,255,255,0.55) 0 10%, transparent 10.5%),
    radial-gradient(circle at 74% 44%, rgba(255,255,255,0.33) 0 12%, transparent 12.5%),
    radial-gradient(circle at 44% 56%, rgba(255,166,57,0.14) 0 18%, transparent 18.5%),
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06));
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 78px 12px 34px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 25% 44%, rgba(255,255,255,0.55) 0 16%, transparent 16.5%),
    radial-gradient(circle at 72% 40%, rgba(255,255,255,0.52) 0 14%, transparent 14.5%),
    radial-gradient(circle at 52% 58%, rgba(255,255,255,0.58) 0 18%, transparent 18.5%),
    radial-gradient(circle at 38% 68%, rgba(255,255,255,0.44) 0 10%, transparent 10.5%);
  opacity: 0.8;
}

.map-card__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,154,42,0.55) 0%, rgba(255,154,42,0.12) 52%, transparent 70%);
  left: 46%;
  top: 44%;
  transform: translate(-50%, -50%);
}

.pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--orange);
  transform: rotate(-45deg);
  box-shadow: 0 8px 16px rgba(255,154,42,0.28);
}

.pin::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 999px;
  inset: 7px;
}

.pin--one { left: 10%; top: 36%; }
.pin--two { right: 12%; top: 32%; }
.pin--three { right: 20%; bottom: 24%; }

.phone-card {
  position: absolute;
  right: 7%;
  top: 6%;
  width: 320px;
  border-radius: 42px;
  background: linear-gradient(180deg, #27445a 0%, #182836 100%);
  padding: 14px;
  box-shadow: 0 30px 60px rgba(24, 40, 54, 0.35);
  border: 4px solid rgba(24,40,54,0.22);
}

.phone-card__top {
  width: 110px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto 14px;
}

.phone-card__body {
  min-height: 448px;
  border-radius: 30px;
  padding: 22px 22px 28px;
  background:
    radial-gradient(circle at center, rgba(91,188,172,0.16) 0 20%, transparent 20.5%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 34px;
}

.signal-row span {
  width: 5px;
  border-radius: 999px;
  background: #fff;
}
.signal-row span:nth-child(1) { height: 8px; opacity: 0.45; }
.signal-row span:nth-child(2) { height: 12px; opacity: 0.68; }
.signal-row span:nth-child(3) { height: 16px; }
.signal-row em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.95;
}

.shield {
  width: 176px;
  height: 192px;
  margin: 0 auto 24px;
  clip-path: polygon(50% 0%, 94% 18%, 88% 77%, 50% 100%, 12% 77%, 6% 18%);
  background: linear-gradient(180deg, #7ce1d1 0%, #44b3a3 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 32px rgba(91,188,172,0.24);
}

.shield__inner {
  width: 126px;
  height: 144px;
  clip-path: inherit;
  background: linear-gradient(180deg, #4cbfac 0%, #2f9588 100%);
  display: grid;
  place-items: center;
  color: #eafffb;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.location-pill,
.disconnect-btn {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 999px;
  font-weight: 800;
}

.location-pill {
  color: #fff;
  background: rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.disconnect-btn {
  border: none;
  color: #fff;
  background: linear-gradient(180deg, #66d7c6 0%, #49b9aa 100%);
  box-shadow: 0 14px 24px rgba(91,188,172,0.24);
}

.hero__dots {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(24,40,54,0.88);
  z-index: 1;
  box-shadow: inset -8px -8px 0 rgba(255,255,255,0.06);
}

.hero__dots--left { left: 32px; top: 280px; }
.hero__dots--right { right: 48px; top: 120px; }

.features,
.pricing,
.about {
  position: relative;
  z-index: 1;
}

.feature-grid,
.pricing-grid,
.about-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.feature-card,
.price-card,
.about-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 30px;
  border-radius: 28px;
}

.feature-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(180deg, rgba(91,188,172,0.24), rgba(91,188,172,0.14));
  margin-bottom: 18px;
}

.feature-card h3,
.about-box strong {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.about-box span,
.section-heading p,
.price-card p,
.price-card li,
.about-grid p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.pricing {
  padding: 88px 0;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.section-heading h2,
.about-grid h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-card {
  position: relative;
  border-radius: 32px;
  padding: 28px;
  text-align: center;
}

.price-card--featured {
  transform: translateY(-10px);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,251,253,0.94));
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(255,154,42,0.24);
}

.price-card__logo {
  width: 82px;
  height: 82px;
  margin: 8px auto 20px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(24,40,54,0.12);
}

.price-card h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.price {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}

.price span {
  font-size: 1.5rem;
  vertical-align: top;
}

.price small {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 12px;
}

.price-card li::before {
  content: "✓";
  color: var(--teal-deep);
  font-weight: 800;
  margin-right: 8px;
}

.about {
  padding: 0 0 90px;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about-grid p {
  font-size: 1.05rem;
}

.about-boxes {
  display: grid;
  gap: 16px;
}

.about-box {
  border-radius: 24px;
  padding: 24px;
}

.site-footer {
  padding: 36px 0 46px;
  background: linear-gradient(180deg, #233b51 0%, #182836 100%);
  color: rgba(255,255,255,0.92);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-links,
.footer-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-links a,
.footer-meta a {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1080px) {
  .hero__content,
  .about-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding-top: 34px;
  }

  .hero__visual {
    order: -1;
  }

  .map-card {
    height: 480px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .price-card--featured {
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-wrap.is-open .main-nav,
  .nav-wrap.is-open .header-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0 18px;
  }

  .main-nav a,
  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .brand__name {
    font-size: 1.7rem;
  }

  .hero__blob {
    inset: 10px 0 auto;
    height: 640px;
    transform: none;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .hero__text h1 {
    font-size: 2.8rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .phone-card {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;
    width: min(100%, 320px);
  }

  .map-card {
    padding: 20px 10px;
    height: auto;
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1160px);
  }

  .brand__logo {
    width: 60px;
    height: 60px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__text h1,
  .section-heading h2,
  .about-grid h2 {
    font-size: 2.2rem;
  }

  .feature-card,
  .price-card,
  .about-box {
    padding: 22px;
    border-radius: 24px;
  }

  .price {
    font-size: 2.7rem;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__dots {
    display: none;
  }
}

/* Auth page */
.btn--ghost-soft {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.auth-main {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 46px 0 80px;
}

.auth-background {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
}

.auth-background--one {
  width: 560px;
  height: 560px;
  left: -120px;
  top: 20px;
  background: radial-gradient(circle, rgba(91,188,172,0.42) 0%, rgba(91,188,172,0.04) 68%, transparent 72%);
}

.auth-background--two {
  width: 480px;
  height: 480px;
  right: -100px;
  top: 100px;
  background: radial-gradient(circle, rgba(255,154,42,0.18) 0%, rgba(255,154,42,0.03) 70%, transparent 74%);
}

.auth-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 470px);
  gap: 34px;
  align-items: center;
}

.auth-side h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 560px;
}

.auth-side p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  max-width: 620px;
}

.auth-benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow: 0 18px 45px rgba(24, 40, 54, 0.08);
}

.auth-benefit__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(91,188,172,0.22) 0%, rgba(91,188,172,0.12) 100%);
  font-size: 1.6rem;
}

.auth-benefit strong {
  display: block;
  font-size: 1.03rem;
  margin-bottom: 6px;
}

.auth-benefit span {
  color: var(--text-soft);
  line-height: 1.55;
}

.auth-card {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 28px 70px rgba(24, 40, 54, 0.14);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91,188,172,0.35), rgba(255,154,42,0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.auth-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: #73d8cb;
  box-shadow: 0 16px 26px rgba(24,40,54,0.12);
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--teal-deep);
  font-weight: 800;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.auth-form {
  display: grid;
  gap: 16px;
}

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

.field span {
  font-weight: 700;
  font-size: 0.96rem;
}

.field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(24,40,54,0.12);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus {
  border-color: rgba(91,188,172,0.8);
  box-shadow: 0 0 0 4px rgba(91,188,172,0.14);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(24,40,54,0.06);
  cursor: pointer;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.auth-link,
.auth-bottom a {
  color: var(--teal-deep);
  font-weight: 700;
}

.auth-divider {
  position: relative;
  margin: 22px 0 16px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(24,40,54,0.1);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: rgba(255,255,255,0.9);
  color: var(--text-soft);
}

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

.social-btn {
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(24,40,54,0.1);
  background: rgba(24,40,54,0.03);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.auth-bottom {
  margin: 18px 0 4px;
  color: var(--text-soft);
  text-align: center;
}

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

  .auth-side {
    order: 2;
  }

  .auth-card {
    order: 1;
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .auth-main {
    padding: 26px 0 58px;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-socials {
    grid-template-columns: 1fr;
  }

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

.btn--ghost-soft {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-main {
  padding: 32px 0 72px;
}

.dashboard-hero {
  padding: 28px 0 18px;
}

.dashboard-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(91,188,172,0.95), rgba(114,214,200,0.92));
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.dashboard-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(24, 40, 54, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dashboard-user-card {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.45);
}

.dashboard-user-card__avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
}

.dashboard-user-card strong,
.dashboard-user-card span {
  display: block;
}

.dashboard-user-card span {
  color: var(--text-soft);
  margin-top: 4px;
}

.dashboard-section {
  padding-top: 18px;
}

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

.dashboard-card {
  grid-column: span 4;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(24, 40, 54, 0.06);
  box-shadow: var(--shadow);
}

.dashboard-card--wide {
  grid-column: span 8;
}

.dashboard-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-card__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-card h2,
.dashboard-card h3 {
  margin: 0;
}

.dashboard-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(91,188,172,0.16);
  color: var(--teal-deep);
  font-weight: 800;
}

.link-box {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.link-box__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  outline: none;
}

.link-box__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hint-text {
  font-size: 0.96rem;
}

.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(24, 40, 54, 0.08);
  overflow: hidden;
  margin-top: 16px;
}

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

.usage-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.usage-card__top strong {
  font-size: 1.2rem;
}

.copy-btn.is-copied {
  background: rgba(91,188,172,0.22);
  color: var(--teal-deep);
}

@media (max-width: 980px) {
  .dashboard-hero__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-user-card {
    width: 100%;
    min-width: 0;
  }

  .dashboard-card,
  .dashboard-card--wide {
    grid-column: span 12;
  }

  .link-box {
    flex-direction: column;
    align-items: stretch;
  }

  .link-box__actions {
    width: 100%;
  }

  .link-box__actions .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .dashboard-main {
    padding-bottom: 44px;
  }

  .dashboard-hero__content,
  .dashboard-card {
    padding: 20px;
    border-radius: 22px;
  }

  .usage-card__top {
    flex-direction: column;
    align-items: flex-start;
  }
}


.country-rotator-fade {
  animation: countryFade .35s ease;
}

@keyframes countryFade {
  from { opacity: .25; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.balance-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,251,253,0.96));
}

.purchase-main {
  padding: 32px 0 72px;
}

.purchase-top {
  padding: 28px 0 18px;
}

.purchase-top__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(91,188,172,0.95), rgba(114,214,200,0.92));
  box-shadow: var(--shadow);
}

.purchase-top h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.purchase-top p {
  margin: 0;
  color: rgba(24,40,54,0.84);
  line-height: 1.7;
}

.purchase-balance-box {
  min-width: 230px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.45);
}

.purchase-balance-box span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.purchase-balance-box strong {
  font-size: 2rem;
}

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

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

.purchase-card .price {
  margin: 18px 0 6px;
}

.purchase-card--featured {
  transform: translateY(-8px);
  border: 1px solid rgba(255,154,42,0.22);
}

.topup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 14px;
}

@media (max-width: 980px) {
  .purchase-top__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .purchase-balance-box {
    width: 100%;
    min-width: 0;
  }

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

  .purchase-card--featured {
    transform: none;
  }
}

@media (max-width: 860px) {
  .link-box__input {
    width: 100%;
    font-size: .92rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .link-box__actions {
    flex-direction: column;
  }

  .link-box__actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero__content,
  .auth-grid,
  .dashboard-grid,
  .purchase-grid,
  .about-grid,
  .feature-grid,
  .pricing-grid {
    gap: 16px;
  }

  .dashboard-grid,
  .purchase-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .dashboard-card--wide,
  .purchase-card {
    grid-column: span 1;
  }

  .dashboard-hero__content,
  .purchase-top__content {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-user-card {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .link-box {
    padding: 12px;
    border-radius: 18px;
  }

  .link-box__input {
    font-size: .88rem;
  }

  .topup-actions {
    grid-template-columns: 1fr;
  }
}


/* Compact purchase updates */
.purchase-stack {
  display: grid;
  gap: 18px;
}

.purchase-row {
  display: grid;
  gap: 18px;
}

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

.purchase-compact-card {
  text-align: left;
  padding: 22px;
}

.purchase-compact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.purchase-compact-card h3,
.purchase-topup-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.purchase-compact-price {
  margin: 12px 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.purchase-compact-card p,
.purchase-topup-card p {
  margin: 10px 0 18px;
}

.purchase-compact-card--featured {
  border: 1px solid rgba(255, 154, 42, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(252,248,244,0.96));
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,154,42,0.14);
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-badge--soft {
  background: rgba(91,188,172,0.15);
  color: var(--teal-deep);
}

.purchase-topup-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

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

/* Dashboard instructions */
.instruction-shortcut-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,251,253,0.98));
}

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

.instruction-shortcut-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.instruction-shortcut-item:hover,
.instruction-shortcut-item:focus-visible,
.guide-platform-card:hover,
.guide-platform-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91,188,172,0.42);
  box-shadow: 0 18px 36px rgba(24,40,54,0.08);
}

.instruction-shortcut-item strong,
.guide-platform-card strong {
  font-size: 1.05rem;
}

.instruction-shortcut-item span,
.guide-platform-card span,
.guide-side-note span {
  color: var(--text-soft);
  line-height: 1.5;
}

/* Guides */
.guide-main {
  padding: 32px 0 72px;
}

.guide-hero {
  padding: 28px 0 18px;
}

.guide-hero__content {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(91,188,172,0.95), rgba(114,214,200,0.92));
  box-shadow: var(--shadow);
}

.guide-hero__content--article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.guide-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.guide-hero p {
  margin: 0;
  max-width: 780px;
  line-height: 1.7;
  color: rgba(24,40,54,0.86);
}

.guide-side-note {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.45);
}

.guide-side-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.guide-section {
  padding-top: 18px;
}

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

.guide-platform-card,
.guide-article-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(24, 40, 54, 0.06);
  box-shadow: var(--shadow);
}

.guide-platform-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
}

.guide-article {
  display: grid;
  gap: 18px;
}

.guide-article-card {
  padding: 24px;
  border-radius: 26px;
}

.guide-article-card h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.guide-article-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.guide-article-card--media {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: center;
}

.guide-image-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 2px dashed rgba(24,40,54,0.14);
  background: linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
  color: var(--text-soft);
  font-weight: 700;
}

.guide-note-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .purchase-row--plans,
  .guide-platform-grid,
  .instruction-shortcut-list,
  .guide-hero__content--article,
  .guide-article-card--media {
    grid-template-columns: 1fr;
  }

  .purchase-topup-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .purchase-compact-card,
  .purchase-topup-card,
  .guide-platform-card,
  .guide-article-card,
  .guide-hero__content {
    padding: 20px;
    border-radius: 22px;
  }

  .topup-actions--compact,
  .instruction-shortcut-list,
  .guide-platform-grid {
    grid-template-columns: 1fr;
  }

  .purchase-compact-price {
    font-size: 1.8rem;
  }

  .guide-image-placeholder {
    min-height: 180px;
  }
}
