:root {
  --blue-950: #071a61;
  --blue-900: #082487;
  --blue-800: #0B36C9;
  --deep-blue: #09279F;
  --bg-primary: #F5F7FC;
  --text-main: #0B163F;
  --text-sec: #7180A0;
  --success: #16C99A;
  --blue-700: #1648df;
  --blue-600: #2b67f6;
  --cyan: #08b9e9;
  --teal: #11c7a4;
  --green: #16b83e;
  --red: #d9285e;
  --amber: #e6a91a;
  --ink: #0c173b;
  --muted: #6d7894;
  --line: #e2e8f4;
  --surface: #ffffff;
  --soft: #f4f7fd;
  --soft-blue: #eef4ff;
  --shadow: 0 14px 34px rgba(13, 36, 98, 0.08);
  --shadow-sm: 0 6px 18px rgba(13, 36, 98, 0.07);
  --radius: 22px;
  --radius-sm: 15px;
  --sidebar: 236px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Poppins",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 auto;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--blue-900);
  font-size: 24px;
}
.brand-mark {
  position: relative;
  width: 39px;
  height: 30px;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  transform: skewX(-27deg);
}
.brand-mark::before {
  width: 25px;
  height: 11px;
  left: 1px;
  top: 9px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 10px -7px 0 -1px #06c7aa;
}
.brand-mark::after {
  width: 12px;
  height: 24px;
  left: 14px;
  top: 2px;
  background: var(--blue-800);
  transform: skewX(27deg);
}

.btn {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 7px 18px rgba(22, 72, 223, 0.2);
}
.btn-secondary {
  color: var(--blue-800);
  background: var(--bg-primary);
  border: 1px solid #b8c8ef;
}
.btn-ghost {
  color: var(--blue-800);
  background: transparent;
}
.btn-danger {
  color: #fff;
  background: var(--red);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.btn-small {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
}

/* Landing */
.landing {
  min-height: 100vh;
  background: var(--bg-primary);
}
.public-nav {
  height: 76px;
  max-width: 1320px;
  padding: 0 30px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.public-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 650;
}
.public-nav .nav-links a.active {
  color: var(--blue-800);
}
.public-actions {
  display: flex;
  gap: 10px;
}
.landing-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 30px 34px;
}
.hero {
  min-height: 390px;
  border-radius: 26px;
  overflow: hidden;
  padding: 58px 62px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 60px;
  align-items: center;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(33, 219, 255, 0.7),
      transparent 25%
    ),
    radial-gradient(
      circle at 61% 100%,
      rgba(9, 185, 234, 0.5),
      transparent 35%
    ),
    linear-gradient(118deg, #082895 0%, #0b43d5 56%, #08b7dd 100%);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 650px;
  height: 280px;
  right: -120px;
  bottom: -180px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.04),
    0 0 0 75px rgba(255, 255, 255, 0.035),
    0 0 0 120px rgba(255, 255, 255, 0.03);
  transform: rotate(-8deg);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.hero-copy h1 {
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.hero-copy p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 530px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.hero .btn-primary {
  color: var(--blue-800);
  background: var(--bg-primary);
  box-shadow: none;
}
.hero .btn-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}
.hero-preview {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  box-shadow: 0 25px 70px rgba(3, 22, 85, 0.2);
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.preview-number {
  font-weight: 800;
  font-size: 14px;
}
.preview-balance {
  text-align: right;
}
.preview-label {
  font-size: 11px;
  color: var(--muted);
}
.preview-package {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.preview-package-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: #e4f8f2;
  color: #078b6c;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.preview-stat {
  background: var(--soft);
  padding: 12px;
  border-radius: 12px;
}
.preview-stat strong {
  display: block;
  font-size: 17px;
  margin-top: 3px;
}
.mini-progress {
  height: 5px;
  border-radius: 999px;
  background: #dfe6f2;
  overflow: hidden;
  margin-top: 8px;
}
.mini-progress > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan));
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 6%;
}
.feature-card {
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 15px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--soft-blue);
  flex: 0 0 auto;
}
.feature-card h3 {
  font-size: 15px;
  margin: 1px 0 7px;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}
.section-title {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 36px 6% 16px;
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0 6%;
}
.cap-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-primary);
  min-height: 142px;
}
.cap-card .feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.cap-card h4 {
  margin: 0 0 7px;
  font-size: 14px;
}
.cap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.landing-strip {
  margin: 20px 6% 0;
  background: var(--soft-blue);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-radius: 17px;
}
.strip-card {
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan));
}
.strip-card strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}
.public-footer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 28px 6% 8px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 28px;
  font-size: 12px;
}
.public-footer h5 {
  margin: 0 0 10px;
  font-size: 12px;
}
.public-footer a {
  display: block;
  color: var(--muted);
  margin: 7px 0;
}
.footer-note {
  grid-column: 1/-1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Auth */
.auth-page {
  min-height: 100vh;
  background: var(--soft);
  display: grid;
  place-items: center;
  padding: 32px;
}
.auth-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-art {
  padding: 50px;
  color: #fff;
  background: linear-gradient(155deg, #071f87, #0c4ddf 58%, #0bb8dd);
  position: relative;
  overflow: hidden;
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -190px;
  bottom: -310px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 36px rgba(255, 255, 255, 0.04),
    0 0 0 78px rgba(255, 255, 255, 0.03);
}
.auth-art .brand {
  color: #fff;
}
.auth-art h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 70px 0 18px;
  letter-spacing: -0.04em;
}
.auth-art p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}
.auth-points {
  margin-top: 42px;
  display: grid;
  gap: 22px;
}
.auth-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.auth-point .feature-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.auth-point strong {
  display: block;
  margin-bottom: 4px;
}
.auth-form {
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h2 {
  margin: 0 0 8px;
  font-size: 31px;
  letter-spacing: -0.03em;
}
.auth-form > p {
  margin: 0 0 28px;
  color: var(--muted);
}
.field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.field label {
  font-size: 13px;
  font-weight: 750;
}
.input {
  width: 100%;
  height: 52px;
  border: 1px solid #bfc9df;
  border-radius: 13px;
  padding: 0 16px;
  outline: none;
  color: var(--text-main);
  background: var(--bg-primary);
}
.input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(43, 103, 246, 0.1);
}
.account-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-primary);
}
.account-row.active {
  border-color: var(--blue-600);
  background: var(--soft-blue);
}
.account-number {
  font-weight: 800;
}
.account-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 6px 0 12px;
}
.otp-box {
  min-width: 0;
  height: 58px;
  text-align: center;
  font-size: 23px;
  border: 1px solid #c7d0e3;
  border-radius: 12px;
  outline: none;
}
.otp-box:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(43, 103, 246, 0.1);
}
.auth-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.auth-submit {
  width: 100%;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.auth-mobile-brand {
  display: none;
  margin-bottom: 26px;
}
.auth-alternate {
  text-align: center;
  margin: 22px 0 0 !important;
  font-size: 13px;
}
.auth-alternate a {
  color: var(--blue-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.form-error {
  padding: 11px 13px;
  border-left: 3px solid var(--red);
  color: #a31742;
  background: #fff0f4;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.auth-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.phone-link-form {
  margin-top: 20px;
}
.account-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.account-row-actions .btn-ghost {
  padding: 0 8px;
}
.otp-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.field-label {
  font-size: 13px;
  font-weight: 750;
}
.session-status {
  width: min(470px, 100%);
  text-align: center;
}
.session-status > .brand {
  margin-bottom: 24px;
}
.session-status > p {
  color: var(--muted);
  font-size: 13px;
}
.session-status .empty .btn {
  margin-top: 18px;
}
:where(a, button, input, select):focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* App shell */
.app-shell {
  min-height: 100vh;
  background: var(--soft);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}
.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 16px;
  background: var(--bg-primary);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 12px 25px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 45px;
  padding: 0 13px;
  border-radius: 12px;
  color: #53617e;
  font-size: 13px;
  font-weight: 650;
  transition: 0.15s;
}
.side-link:hover {
  background: #f5f7fc;
  color: var(--text-main);
}
.side-link.active {
  color: var(--blue-800);
  background: #eaf1ff;
}
.side-link .count {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
}
.side-footer {
  margin-top: auto;
  padding: 16px 12px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.workspace {
  min-width: 0;
  padding: 18px 0 34px;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 0 32px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.page-title h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-main);
}
.page-title p {
  color: var(--text-sec);
  margin: 4px 0 0;
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  min-width: 185px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-primary);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #7280a1, #263c78);
}
.switch-text {
  min-width: 0;
  flex: 1;
}
.switch-number {
  display: block;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.switch-type {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}
.section-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.link {
  border: 0;
  background: none;
  color: var(--blue-700);
  font-weight: 750;
  font-size: 12px;
  padding: 6px;
}

.dashboard-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 24px 32px;
}
.summary-user {
  display: flex;
  gap: 14px;
  align-items: center;
}
.summary-user .avatar {
  width: 52px;
  height: 52px;
}
.summary-user strong {
  font-size: 16px;
}
.summary-user small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.stat-block {
  padding-left: 0;
  border-left: none;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
}
.stat-value {
  margin-top: 5px;
  font-weight: 850;
  font-size: 18px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}
.package-hero {
  min-height: 285px;
  padding: 32px;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #0829A9 0%, #064DDA 55%, #10B8DB 100%);
  box-shadow: var(--shadow);
}
.package-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 500px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.04),
    0 0 0 70px rgba(255, 255, 255, 0.03);
}
.package-hero-content {
  position: relative;
  z-index: 1;
}
.package-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}
.package-hero h2 {
  font-size: 29px;
  margin: 13px 0 5px;
}
.package-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.quota-main {
  margin: 28px 0 20px;
}
.quota-main strong {
  font-size: 34px;
  display: block;
}
.quota-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  margin-top: 10px;
  max-width: 560px;
}
.quota-bar i {
  display: block;
  height: 100%;
  background: #19d482;
  border-radius: 999px;
}
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 21px 0;
  max-width: 660px;
}
.benefit {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.benefit-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.b-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
}
.b-icon-circle svg { width: 16px; height: 16px; }
.b-text { display: flex; flex-direction: column; }
.b-name { font-size: 12px; opacity: 0.9; }
.b-val { font-size: 13px; font-weight: 700; margin-top: 2px; }
.benefit-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.25); overflow: hidden; }
.benefit-bar i { display: block; height: 100%; border-radius: 999px; background: #16C99A; }
.package-hero .btn {
  background: var(--bg-primary);
  color: var(--blue-800);
}
.side-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}
.side-stat {
  padding: 20px;
  min-height: 126px;
}
.side-stat .feature-icon {
  width: 41px;
  height: 41px;
  margin-bottom: 12px;
}
.side-stat strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.quick-actions {
  grid-column: 1/-1;
  padding: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-action {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-primary);
  color: var(--text-main);
}
.quick-action:hover {
  border-color: var(--line);
  background: var(--soft);
}
.quick-action .feature-icon {
  width: 38px;
  height: 38px;
}
.quick-action span:last-child {
  font-size: 12px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.list-card {
  padding: 8px 18px;
}
.list-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--soft-blue);
}
.list-main {
  flex: 1;
  min-width: 0;
}
.list-title {
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-right {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.status-success {
  color: #0e9d54;
  font-weight: 750;
}
.status-failed {
  color: var(--red);
  font-weight: 750;
}
.status-pending {
  color: var(--amber);
  font-weight: 750;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.package-card {
  overflow: hidden;
}
.package-card-top {
  min-height: 80px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0b37c3, #079ecf);
  position: relative;
}
.package-card-top h3 {
  margin: 22px 0 0;
  font-size: 15px;
}
.package-card-top .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--blue-800);
  font-size: 9px;
  font-weight: 800;
}
.package-card-body {
  padding: 15px;
}
.package-card-body .family {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.package-name {
  font-weight: 800;
  margin: 6px 0 8px;
  line-height: 1.3;
  min-height: 34px;
}
.package-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}
.package-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 850;
  color: var(--blue-800);
}
.round-action {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-800);
  display: grid;
  place-items: center;
}

.empty {
  min-height: 180px;
  padding: 35px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.empty .feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
}
.empty h3 {
  color: var(--text-main);
  margin: 0 0 6px;
}
.empty p {
  margin: 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.5;
}
.loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.loading .spinner {
  margin: 0 auto 12px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe4f6;
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Generic feature pages */
.page-card {
  padding: 22px;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 18px;
}
.tab {
  border: 0;
  background: none;
  padding: 12px 8px;
  font-weight: 750;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--blue-800);
  border-bottom-color: var(--blue-800);
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.search-input {
  flex: 1;
  position: relative;
}
.search-input .input {
  padding-left: 42px;
}
.search-input .icon {
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--muted);
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.info-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.info-card h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.info-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.progress-row {
  margin-top: 12px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: #e2e7f0;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
}

.family-header {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.family-main h2 {
  margin: 0 0 5px;
  font-size: 22px;
}
.family-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.family-quota {
  margin-top: 20px;
  max-width: 500px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.member-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-card .avatar {
  width: 42px;
  height: 42px;
}
.member-main {
  flex: 1;
  min-width: 0;
}
.member-main strong {
  display: block;
  font-size: 13px;
}
.member-main small {
  color: var(--muted);
}
.member-quota {
  text-align: right;
  font-size: 11px;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.reward-card {
  padding: 18px;
  min-height: 145px;
  display: flex;
  flex-direction: column;
}
.reward-card .mini-badge {
  align-self: flex-start;
}
.reward-card h3 {
  font-size: 15px;
  margin: 14px 0 6px;
}
.reward-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  flex: 1;
}
.reward-card .link {
  text-align: left;
  padding: 12px 0 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 16, 52, 0.48);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--bg-primary);
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 21px;
}
.close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--text-main);
  display: grid;
  place-items: center;
}
.modal-body {
  padding: 22px 24px 26px;
}
.detail-hero {
  padding: 22px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #082896, #0b52db 65%, #05badc);
}
.detail-hero .family {
  font-size: 11px;
  opacity: 0.75;
}
.detail-hero h3 {
  font-size: 25px;
  margin: 7px 0;
}
.detail-price {
  font-size: 27px;
  font-weight: 850;
  margin-top: 18px;
}
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.benefit-light {
  padding: 14px;
  background: var(--soft);
  border-radius: 13px;
}
.benefit-light strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}
.benefit-light small {
  color: var(--muted);
}
.payment-methods {
  display: grid;
  gap: 9px;
}
.payment-method {
  min-height: 55px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-method input {
  accent-color: var(--blue-700);
}
.payment-method strong {
  flex: 1;
  font-size: 13px;
}
.qr-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
}
.qr-wrap img {
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.25s;
  background: #0c173b;
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  max-width: 360px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.error {
  background: #a61f45;
}
.toast.success {
  background: #087f59;
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 208px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px;
  }
  .hero-preview {
    max-width: 700px;
  }
  .landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .capabilities {
    grid-template-columns: repeat(3, 1fr);
  }
  .public-nav .nav-links {
    display: none;
  }
  .dashboard-summary {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .package-grid,
  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .public-nav {
    padding: 0 16px;
  }
  .landing-main {
    padding: 0 12px 20px;
  }
  .hero {
    padding: 34px 24px;
    border-radius: 20px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .landing-features,
  .capabilities,
  .landing-strip,
  .public-footer {
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: 1fr;
  }
  .section-title {
    margin-left: 0;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    padding: 36px 24px;
  }
  .auth-page {
    padding: 16px;
  }
  .auth-shell {
    min-height: auto;
  }
  .auth-mobile-brand {
    display: block;
  }
  .auth-form h2 {
    font-size: 27px;
  }
  .account-row {
    flex-wrap: wrap;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 12px;
  }
  .topbar {
    height: auto;
    align-items: flex-start;
  }
  .top-actions .btn-secondary {
    display: none;
  }
  .dashboard-summary,
  .side-stats,
  .quick-grid,
  .package-grid,
  .rewards-grid,
  .cards-4,
  .member-grid {
    grid-template-columns: 1fr;
  }
  .benefit-row {
    grid-template-columns: 1fr;
  }
  .family-header {
    grid-template-columns: 1fr;
  }
  .package-hero {
    padding: 22px;
  }
  .otp-boxes {
    gap: 6px;
  }
  .otp-box {
    height: 50px;
  }
}

/* NEW CLASSES */
.btn-outline {
  border: 1px solid var(--blue-800);
  background: var(--bg-primary);
  color: var(--blue-800);
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.account-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #E6EAF3;
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  background: var(--bg-primary);
  cursor: pointer;
}
.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.summary-user { display: flex; align-items: center; gap: 16px; }
.avatar-large { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-800); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.sum-text { display: flex; flex-direction: column; }
.sum-num { font-size: 18px; color: var(--text-main); font-weight: 700; }
.sum-type { font-size: 12px; color: var(--text-sec); text-transform: uppercase; margin-top: 4px;}
.summary-divider { width: 1px; height: 40px; background: #E6EAF3; }
.stat-block .stat-label { font-size: 12px; color: var(--text-sec); margin-bottom: 4px; display: block; }
.stat-block .stat-value { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.link-blue { color: var(--blue-800); font-size: 13px; font-weight: 600; text-decoration: none; }

.pkg-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; margin-bottom: 24px; }
.main-quota-wrap { margin-bottom: 24px; }
.main-quota-title { font-size: 14px; font-weight: 500; }
.main-quota-val { font-size: 38px; font-weight: 700; margin-top: 4px; margin-bottom: 12px; letter-spacing: -1px; }
.main-progress { width: 80%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.25); overflow: hidden; }
.main-progress-bar { height: 100%; border-radius: 999px; background: #16C99A; }

.btn-white-pill {
  background: var(--bg-primary);
  color: var(--blue-800);
  border: 0;
  border-radius: 10px;
  height: 40px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  margin-top: 24px;
}

.widget-quick-actions, .widget-rewards, .widget-notifications {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E6EAF3;
  display: flex;
}
.widget-quick-actions { flex-direction: column; }
.widget-rewards, .widget-notifications { align-items: center; justify-content: space-between; }

.widget-head-qa {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}
.widget-head-qa svg { width: 18px; height: 18px; color: var(--blue-800); }

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qa-btn {
  border: 1px solid #F0F2F7;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}
.qa-btn:hover { border-color: var(--blue-800); background: #F8FAFF; }
.qa-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F4FF;
  color: var(--blue-800);
  display: grid;
  place-items: center;
}
.qa-icon-wrap svg { width: 16px; height: 16px; }

.w-rev-points {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.w-rev-ill {
  color: var(--blue-800);
  opacity: 0.15;
}
.w-rev-ill svg { width: 80px; height: 80px; }
.ill-bell { color: var(--cyan); }

/* NEW CLASSES */
.btn-outline {
  border: 1px solid var(--blue-800);
  background: #fff;
  color: var(--blue-800);
  border-radius: 12px;
  height: 44px;
  padding: 0 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.account-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #E6EAF3;
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  background: #fff;
  cursor: pointer;
}
.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.summary-user { display: flex; align-items: center; gap: 16px; }
.avatar-large { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-800); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.sum-text { display: flex; flex-direction: column; }
.sum-num { font-size: 18px; color: var(--text-main); font-weight: 700; }
.sum-type { font-size: 12px; color: var(--text-sec); text-transform: uppercase; margin-top: 4px;}
.summary-divider { width: 1px; height: 40px; background: #E6EAF3; }
.stat-block .stat-label { font-size: 12px; color: var(--text-sec); margin-bottom: 4px; display: block; }
.stat-block .stat-value { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.link-blue { color: var(--blue-800); font-size: 13px; font-weight: 600; text-decoration: none; }

.pkg-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; margin-bottom: 24px; }
.main-quota-wrap { margin-bottom: 24px; }
.main-quota-title { font-size: 14px; font-weight: 500; }
.main-quota-val { font-size: 38px; font-weight: 700; margin-top: 4px; margin-bottom: 12px; letter-spacing: -1px; }
.main-progress { width: 80%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.25); overflow: hidden; }
.main-progress-bar { height: 100%; border-radius: 999px; background: #16C99A; }

.btn-white-pill {
  background: #fff;
  color: var(--blue-800);
  border: 0;
  border-radius: 10px;
  height: 40px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  margin-top: 24px;
}

.widget-quick-actions, .widget-rewards, .widget-notifications {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E6EAF3;
  display: flex;
}
.widget-quick-actions { flex-direction: column; }
.widget-rewards, .widget-notifications { align-items: center; justify-content: space-between; }

.widget-head-qa {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}
.widget-head-qa svg { width: 18px; height: 18px; color: var(--blue-800); }

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qa-btn {
  border: 1px solid #F0F2F7;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}
.qa-btn:hover { border-color: var(--blue-800); background: #F8FAFF; }
.qa-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F4FF;
  color: var(--blue-800);
  display: grid;
  place-items: center;
}
.qa-icon-wrap svg { width: 16px; height: 16px; }

.w-rev-points {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.w-rev-ill {
  color: var(--blue-800);
  opacity: 0.15;
}
.w-rev-ill svg { width: 80px; height: 80px; }
.ill-bell { color: var(--cyan); }
