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

:root {
  --ink: #07111f;
  --muted: #5d6b78;
  --dark-blue: #0c2438;
  --green: #20b26b;
  --green-dark: #087443;
  --canvas: #f3f7f4;
  --line: #d9e5de;
  --success: #087443;
  --danger: #bd3d3d;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
a { text-decoration: none; }
button, input { font: inherit; }
[x-cloak] { display: none !important; }

.app-shell { background: #edf3ef; }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--dark-blue);
  color: var(--white);
}
.app-menu-toggle { display: grid; gap: 4px; width: 40px; height: 40px; padding: 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: transparent; cursor: pointer; }
.app-menu-toggle span { height: 2px; background: var(--white); }
.app-brand { position: absolute; left: 50%; display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; transform: translateX(-50%); }
.app-brand .brand-mark { width: 38px; height: 38px; }
.app-brand-name { display: none; }
.app-profile { position: relative; margin-left: auto; }
.profile-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.profile-name { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.profile-chevron { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.avatar-placeholder { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 2px solid rgba(255,255,255,0.7); border-radius: 50%; background: #d7eee2; color: var(--green-dark); }
.avatar-placeholder svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu { position: absolute; top: calc(100% + 12px); right: 0; display: grid; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 16px 36px rgba(7,17,31,0.16); }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
.profile-menu a:hover { background: #edf5ef; color: var(--green-dark); }
.profile-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.app-content { min-height: calc(100vh - 72px); }
.app-nav-backdrop { position: fixed; inset: 72px 0 0; z-index: 39; border: 0; background: rgba(7,17,31,0.45); cursor: pointer; }
.app-mobile-nav { position: fixed; top: 72px; bottom: 0; left: 0; z-index: 40; width: min(290px, 86vw); padding: 24px 16px; background: var(--dark-blue); box-shadow: 18px 0 35px rgba(7,17,31,0.18); transform: translateX(-100%); transition: transform 0.25s ease; }
.app-mobile-nav.is-open { transform: translateX(0); }
.app-mobile-nav .sidebar-nav { display: grid; gap: 8px; }
.app-mobile-nav .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #dfe5fa; font-size: 14px; white-space: nowrap; }
.app-mobile-nav .sidebar-nav a:hover { background: rgba(255,255,255,0.09); }
.app-mobile-nav .sidebar-nav svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.settings-page { width: min(1120px, 100%); margin: 0 auto; padding: 30px 16px 54px; }
.settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.settings-heading h1 { margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.05em; }
.settings-heading p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.6; }
.settings-back { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--green-dark); font-size: 14px; font-weight: 700; }
.settings-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.settings-grid { display: grid; gap: 18px; }
.settings-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 30px rgba(7,17,31,0.04); }
.profile-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.profile-card-heading h2, .bank-intro h2 { margin: 0 0 7px; font-family: 'Space Grotesk', sans-serif; font-size: 22px; }
.profile-card-heading p, .bank-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.settings-card-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #e1f3e8; color: var(--green-dark); }
.settings-card-icon.large { width: 52px; height: 52px; margin-bottom: 22px; }
.settings-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.settings-card-icon.large svg { width: 27px; height: 27px; }
.profile-preview { display: grid; place-items: center; width: 156px; height: 156px; margin: 18px auto 14px; overflow: hidden; border: 8px solid #e1f3e8; border-radius: 50%; background: #d7eee2; color: var(--green-dark); }
.profile-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-preview svg { width: 112px; height: 112px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.profile-upload-note { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.settings-form { display: grid; gap: 4px; }
.settings-form .field-group { margin-bottom: 12px; }
.settings-form .btn { width: 100%; margin-top: 8px; }
.settings-form input[type="file"] { padding: 10px; background: #fbfcff; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.bank-intro { background: linear-gradient(145deg, #0c2438 0%, #123d54 100%); color: var(--white); }
.bank-intro p { color: #c5d9e5; }
.bank-intro .settings-card-icon { background: rgba(109,224,164,0.16); color: #6de0a4; }
.secure-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.16); color: #dcebe5; font-size: 13px; line-height: 1.5; }
.secure-note svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #6de0a4; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--dark-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name { display: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.9);
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.menu-toggle {
  display: grid;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { height: 2px; background: var(--white); }
.nav-panel { position: fixed; top: 0; right: 0; z-index: 12; display: grid; align-content: start; gap: 28px; width: min(360px, calc(100vw - 48px)); height: 100dvh; padding: 22px 20px 28px; background: var(--dark-blue); box-shadow: -18px 0 40px rgba(7,17,31,0.24); transform: translateX(100%); transition: transform 0.25s ease; }
.nav-panel.is-open { transform: translateX(0); }
.nav-backdrop { position: fixed; inset: 0; z-index: 11; border: 0; background: rgba(7,17,31,0.55); cursor: pointer; }
.nav-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--white); }
.nav-panel-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; }
.nav-close { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; background: transparent; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.nav-close span:first-child { font-size: 25px; font-weight: 400; }
.nav-close:hover { background: rgba(255,255,255,0.08); }
.nav { display: grid; align-content: start; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; color: #e7eef3; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,0.08); }
.nav-icon, .btn-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-actions { display: grid; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.7); background: transparent; color: white; }
.btn-green, .btn-orange { background: var(--green); color: white; }
.btn-indigo { background: var(--dark-blue); color: white; }

.flash-wrap { max-width: 1100px; margin: 16px auto 0; padding: 0 16px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}
.flash-success { background: rgba(32,178,107,0.12); color: var(--success); }
.flash-danger { background: rgba(189,61,61,0.12); color: var(--danger); }
.flash-info { background: rgba(12,36,56,0.09); color: var(--dark-blue); }
.flash-close { border: 0; padding: 0; background: transparent; color: currentColor; font-size: 24px; line-height: 1; cursor: pointer; }

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
  padding: 34px 16px 42px;
  background: var(--dark-blue);
  color: var(--white);
}
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-section .eyebrow { color: #6de0a4; }
.hero-copy h1, .page-banner h1, .dashboard-top h1, .auth-card h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.06em; }
.hero-copy h1 { max-width: 620px; font-size: clamp(42px, 12vw, 72px); line-height: 0.96; }
.hero-copy h1 { color: var(--white); }
.lead { max-width: 560px; margin-top: 18px; color: #c5d9e5; font-size: 16px; line-height: 1.65; }
.cta-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.cta-row .btn { width: 100%; }
.hero-section .btn-indigo { background: var(--white); color: var(--dark-blue); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 278px; margin: 4px 0 8px; border: 1px solid rgba(109,224,164,0.22); border-radius: 24px; background: rgba(255,255,255,0.04); }
.orbit-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(248px, 72vw);
  height: min(248px, 72vw);
  border: 1px solid rgba(32,178,107,0.35);
  border-radius: 50%;
  background: var(--dark-blue);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.05), 0 20px 45px rgba(0,0,0,0.18);
}
.orbit-card::before, .orbit-card::after { content: ''; position: absolute; border: 1px solid rgba(32,178,107,0.28); border-radius: 50%; }
.orbit-card::before { width: 78%; height: 78%; }
.orbit-card::after { width: 56%; height: 56%; }
.orbit-card small { color: #c5d9d0; font-weight: 700; }
.orbit-card strong { display: block; margin: 14px 0 20px; color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 36px; }
.sparkline { display: flex; align-items: end; justify-content: center; width: 150px; height: 42px; gap: 5px; }
.sparkline span { display: block; width: 9px; border-radius: 4px 4px 0 0; background: var(--green); }
.floating-stat { position: absolute; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,0.97); box-shadow: 0 12px 30px rgba(7,17,31,0.12); }
.floating-stat span { color: var(--muted); font-size: 11px; }
.floating-stat strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.stat-one { top: 14px; right: 10px; }
.stat-two { bottom: 14px; left: 10px; }

.section { padding: 46px 16px; background: white; }
.container { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; }
.section-heading { max-width: 560px; margin-bottom: 26px; }
.section-heading h2 { margin: 0 0 12px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 9vw, 46px); letter-spacing: -0.06em; }
.section-heading p, .text-block p, .service-card p, .feature-card p, .footer p { color: var(--muted); line-height: 1.7; }
.feature-grid, .service-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card, .service-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--green); color: white; font-size: 24px; }
.feature-card h3, .service-card h3 { margin-top: 0; margin-bottom: 10px; }
.page-banner { padding: 46px 16px 32px; background: linear-gradient(120deg, #ffffff 0%, #e5f2e9 100%); }
.page-banner h1 { font-size: clamp(34px, 10vw, 56px); }
.text-block { font-size: 1.05rem; }

.footer { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px 16px; background: var(--dark-blue); color: white; }
.footer-brand { font-size: 15px; }
.footer p { margin: 0; color: #c5d9e5; }

.auth-page { display: grid; place-items: center; min-height: calc(100vh - 92px); padding: 32px 16px; }
.auth-card { width: min(500px, 100%); padding: 24px 20px; border-radius: 16px; background: var(--white); box-shadow: 0 22px 50px rgba(7,17,31,0.10); }
.auth-card h1 { margin-bottom: 20px; font-size: clamp(30px, 9vw, 40px); }
.field-group { display: grid; gap: 8px; margin-bottom: 16px; }
.field-group label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.field-icon { width: 18px; height: 18px; fill: none; stroke: var(--green-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.field-group input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.password-input { position: relative; }
.password-input input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover { background: #e8f1ec; color: var(--green-dark); }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.auth-submit { width: 100%; margin-top: 10px; }
.auth-switch { margin-top: 18px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--green-dark); font-weight: 700; }

.dashboard-shell { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.dashboard-sidebar { display: none; }
.sidebar-nav { display: grid; gap: 8px; margin: 0; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #dfe5fa; font-size: 14px; white-space: nowrap; }
.sidebar-nav a svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(255,255,255,0.09); }
.dashboard-main { flex: 1; padding: 26px 16px; }
.dashboard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dashboard-top h1 { font-size: clamp(28px, 9vw, 42px); }
.avatar-pill { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: #d7eee2; color: var(--dark-blue); font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 10px; background: #e1f3e8; color: var(--green-dark); }
.stat-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 12px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 8vw, 34px); }
.account-payments { margin-top: 34px; }
.compact-heading { margin-bottom: 18px; }
.compact-heading h2 { font-size: clamp(26px, 7vw, 36px); }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.select-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.select-all input, .account-row input { width: 18px; height: 18px; accent-color: var(--green); }
.selection-total { color: var(--muted); font-size: 14px; }
.account-list { display: grid; gap: 8px; }
.account-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.account-row:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(32,178,107,0.12); }
.account-row-main, .account-row-amount { display: grid; gap: 4px; min-width: 0; }
.account-row-main { flex: 1; }
.account-row-amount { text-align: right; }
.account-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row small { color: var(--muted); font-size: 12px; }
.payment-submit { width: 100%; margin-top: 16px; }
.payment-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.payment-review h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 9vw, 52px); letter-spacing: -0.06em; }
.review-list { display: grid; gap: 8px; margin-top: 28px; }
.review-row, .review-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.review-row span { display: grid; gap: 4px; }
.review-row small { color: var(--muted); }
.review-total { margin-top: 12px; border-color: var(--dark-blue); background: var(--dark-blue); color: var(--white); font-size: 18px; }
.payment-note { color: var(--muted); font-size: 14px; }

.admin-shell { min-height: 100vh; background: #edf3ef; }
.admin-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 14px 18px; background: var(--dark-blue); color: white; }
.admin-brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.admin-brand .brand-mark { width: 38px; height: 38px; }
.admin-user { display: flex; align-items: center; gap: 16px; color: #c5d9e5; font-size: 14px; }
.admin-user a { color: white; font-weight: 700; }
.admin-menu-toggle { display: grid; gap: 4px; width: 40px; height: 40px; padding: 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: transparent; cursor: pointer; }
.admin-menu-toggle span { height: 2px; background: white; }
.admin-sidebar { position: fixed; top: 72px; bottom: 0; left: 0; z-index: 45; width: 250px; padding: 28px 16px; background: var(--dark-blue); color: white; transform: translateX(-100%); transition: transform .25s ease; }
.admin-sidebar.is-open { transform: translateX(0); }
.admin-backdrop { position: fixed; inset: 72px 0 0; z-index: 44; border: 0; background: rgba(7,17,31,.45); }
.admin-nav-label { margin: 0 10px 12px; color: #7da0b3; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px; color: #dfe8ed; font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.09); color: white; }
.admin-nav-icon { display: grid; place-items: center; width: 22px; color: #6de0a4; font-size: 18px; }
.admin-main { width: min(1280px, 100%); margin: 0 auto; padding: 30px 16px 60px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-heading h1 { margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 6vw, 50px); letter-spacing: -.05em; }
.admin-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.admin-stat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-stat span, .admin-stat small { display: block; color: var(--muted); font-size: 13px; }
.admin-stat strong { display: block; margin: 10px 0 6px; color: var(--dark-blue); font-family: 'Space Grotesk', sans-serif; font-size: 28px; }
.admin-columns { display: grid; gap: 18px; margin-bottom: 18px; }
.admin-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-card-header h2 { margin: 0 0 5px; font-family: 'Space Grotesk', sans-serif; font-size: 21px; }
.admin-card-header p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-link { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.admin-list { display: grid; gap: 4px; }
.admin-list-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 0; color: var(--ink); }
.admin-list-row > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.admin-list-row strong, .admin-list-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-row small, .table-user + small { color: var(--muted); font-size: 12px; }
.admin-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #d7eee2; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.admin-ticket-mark { display: grid; place-items: center; width: 38px; height: 30px; flex: 0 0 auto; border-radius: 7px; background: #e9f1f5; color: var(--dark-blue); font-size: 12px; font-weight: 800; }
.admin-empty { color: var(--muted); font-size: 14px; }
.status-chip, .priority-label { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.is-good, .status-approved, .status-active { background: #e0f4e8; color: var(--green-dark); }
.is-blocked, .status-rejected, .status-cancelled { background: #fbe7e7; color: #a12d2d; }
.is-admin { margin-left: 5px; background: #e8eef7; color: #355b87; }
.status-pending, .status-paused, .status-waiting_user { background: #fff2d8; color: #8a5b00; }
.status-completed, .status-closed { background: #e9edf0; color: #53636c; }
.priority-high { color: #b23a3a; }.priority-normal { color: #7a6200; }.priority-low { color: var(--green-dark); }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4a11a; }.priority-high { background: #c24b4b; }.priority-low { background: var(--green); }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; }.admin-search input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.admin-button, .table-action { border: 0; border-radius: 7px; background: var(--dark-blue); color: white; padding: 10px 14px; font-weight: 700; cursor: pointer; }.table-action { padding: 7px 9px; font-size: 12px; }.table-action.approve { background: var(--green-dark); }.table-action.reject { background: #a12d2d; margin-left: 4px; }
.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }.admin-table th { padding: 0 12px 12px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }.admin-table td { padding: 14px 12px; border-top: 1px solid #edf1ef; white-space: nowrap; vertical-align: middle; }.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }.table-user { display: flex; align-items: center; gap: 10px; color: var(--ink); }.table-user strong { white-space: nowrap; }
.admin-form { display: grid; gap: 13px; }.admin-form label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; }.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.check-label { display: flex !important; align-items: center; grid-template-columns: none; }.check-label input { width: auto; }.balance-callout { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }.balance-callout strong { color: var(--green-dark); font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.detail-list { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin: 0; font-size: 14px; }.detail-list dt { color: var(--muted); }.detail-list dd { margin: 0; font-weight: 700; text-align: right; }.back-link { display: inline-block; margin-bottom: 18px; }.user-heading { align-items: center; }.admin-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #e1f3e8; color: var(--green-dark); font-weight: 800; }.inline-form { display: flex; align-items: center; gap: 5px; }.inline-form select { padding: 6px; border: 1px solid var(--line); border-radius: 6px; }.package-list { display: grid; gap: 4px; }.package-admin-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf1ef; }.package-admin-row strong, .package-admin-row small { display: block; }.package-admin-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }.ticket-thread { display: grid; gap: 12px; margin-bottom: 18px; }.ticket-message { max-width: 760px; padding: 14px; border-radius: 9px; background: #edf3f6; }.ticket-message.from-admin { margin-left: auto; background: #e0f4e8; }.message-meta { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }.message-meta small { color: var(--muted); }.ticket-message p { margin: 8px 0 0; line-height: 1.6; }

@media (max-width: 899px) {
  .nav-panel-header { display: flex !important; }
  .nav-close { visibility: visible; opacity: 1; }
  .nav-icon, .btn-icon { visibility: visible; opacity: 1; }
}

@media (min-width: 900px) {
  .app-topbar { padding: 14px 28px; }
  .admin-menu-toggle { display: none; }
  .admin-sidebar { transform: none; }
  .admin-backdrop { display: none !important; }
  .admin-main { margin-left: 250px; width: auto; padding: 42px 34px 70px; }
  .admin-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .admin-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .detail-columns { align-items: start; }
  .app-nav-backdrop, .app-mobile-nav { display: none !important; }
  .app-menu-toggle { display: none; }
  .app-brand { position: static; transform: none; }
  .app-brand .brand-mark { display: grid; }
  .app-brand-name { display: inline; }
  .profile-name, .profile-chevron { display: inline; }
  .topbar { display: flex; padding: 18px 5vw; }
  .brand { gap: 10px; font-size: 18px; letter-spacing: -0.04em; }
  .brand-name { display: inline; }
  .brand-mark { width: 44px; height: 44px; }
  .menu-toggle { display: none; }
  .nav-panel { position: static; z-index: auto; display: flex; align-items: center; width: auto; height: auto; margin-left: auto; padding: 0; background: transparent; box-shadow: none; transform: none; transition: none; }
  .nav-panel-header { display: none; }
  .nav { display: flex; flex-direction: row; gap: 26px; }
  .nav a { padding: 0; }
  .nav-actions { display: flex; flex-direction: row; align-items: center; gap: 12px; }
  .nav-actions .btn { width: auto; }
  .nav-backdrop { display: none !important; }
  .hero-section { grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 72px 5vw 92px; background: linear-gradient(120deg, #ffffff 0%, #e5f2e9 100%); color: var(--ink); }
  .hero-section .eyebrow { color: var(--green-dark); }
  .hero-copy h1 { color: var(--ink); }
  .hero-section .lead { color: var(--muted); }
  .hero-copy h1 { font-size: clamp(46px, 6vw, 72px); }
  .lead { font-size: 18px; }
  .cta-row { display: flex; }
  .cta-row .btn { width: auto; }
  .hero-visual { min-height: 420px; margin: 0; border: 0; border-radius: 0; background: transparent; }
  .orbit-card { width: 320px; height: 320px; }
  .orbit-card strong { font-size: 42px; }
  .floating-stat { padding: 14px 16px; }
  .stat-one { top: 40px; right: 20px; }
  .stat-two { bottom: 20px; left: 20px; }
  .section { padding: 84px 5vw; }
  .feature-grid, .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .feature-card, .service-card { padding: 24px; }
  .page-banner { padding: 78px 5vw 40px; }
  .footer { flex-direction: row; align-items: center; padding: 36px 5vw; }
  .auth-card { padding: 32px; }
  .dashboard-shell { flex-direction: row; }
  .dashboard-sidebar { display: block; position: static; width: 240px; min-height: calc(100vh - 72px); padding: 28px 18px; box-shadow: none; }
  .sidebar-nav { display: grid; gap: 8px; overflow: visible; }
  .sidebar-nav a { text-align: left; }
  .dashboard-main { padding: 36px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .settings-page { padding: 46px 28px 70px; }
  .settings-grid { grid-template-columns: minmax(230px, 0.8fr) minmax(420px, 1.2fr); align-items: start; gap: 22px; }
}

@media (min-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
