/* DataVend professional interface layer — 2026-09-08
   Keeps legacy component behaviour while establishing one restrained visual system. */
:root {
  --ink: #10233f;
  --ink-soft: #53657b;
  --teal: #0a8178;
  --teal-dark: #076860;
  --teal-pale: #e7f6f4;
  --gold: #f0b93b;
  --canvas: #f6f8fc;
  --surface: #ffffff;
  --line: #dce3e9;
  --danger: #b42318;
  --success: #147a50;
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --accent-primary: var(--teal);
  --accent-secondary: var(--teal-dark);
  --accent-success: var(--success);
  --accent-danger: var(--danger);
  --bg-light: var(--canvas);
  --bg-dark: var(--ink);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-nav: var(--font-body);
  --font-heading: var(--font-body);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .05);
  --shadow-md: 0 10px 28px rgba(16, 35, 63, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before, body::after { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-heading); letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: 1.08rem; }
p { color: var(--ink-soft); }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.text-gradient-accent { color: var(--teal) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }

.skip-link { position: fixed; z-index: 10000; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(8, 122, 112, .34) !important; outline-offset: 3px; }

.btn-primary, .btn-secondary, button.btn-primary, button.btn-secondary {
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; box-shadow: none !important;
  font-weight: 750; font-size: .91rem; letter-spacing: 0; text-transform: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-primary, button.btn-primary { color: #fff; background: var(--teal); }
.btn-primary:hover, button.btn-primary:hover { color: #fff; background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary, button.btn-secondary { color: var(--ink); background: #fff; border-color: #cbd5df; }
.btn-secondary:hover, button.btn-secondary:hover { color: var(--ink); background: #f8fafb; border-color: #9babbc; transform: translateY(-1px); }
.btn-large { min-height: 48px; padding: 12px 21px; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }

/* Header */
.site-announcement { position: relative; z-index: 2; padding: 8px 20px; color: #fff; background: var(--teal-dark); font-size: .82rem; font-weight: 650; text-align: center; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 100; min-height: 70px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(10px); }
.header-container { width: min(1240px, calc(100% - 40px)); min-height: 70px; margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.logo { flex: 0 0 auto; gap: 9px; text-decoration: none; }
.logo-text { color: var(--ink); font-size: 1.22rem; font-weight: 820; letter-spacing: -.035em; }
.deedata-logo { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: linear-gradient(145deg, #087b73, #13a496); box-shadow: none; }
.deedata-logo i { background: #fff !important; border-radius: 1px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.nav-link { position: relative; padding: 8px 10px; color: #53657b; font-size: .88rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--teal-dark); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; right: 10px; bottom: 2px; left: 10px; height: 2px; background: var(--teal); }
.auth-buttons { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.auth-buttons .btn-primary, .auth-buttons .btn-secondary { min-height: 38px; padding: 8px 13px; font-size: .82rem; }
.account-header-wallet { order: 2; min-height: 36px; padding: 7px 11px; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #c5e5e1; border-radius: 8px; font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hamburger { margin-left: auto; width: 42px; height: 42px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.hamburger span { background: var(--ink); }

/* Announcement and homepage */
.announcement-banner { position: sticky; top: 70px; z-index: 90; width: 100%; min-height: 39px; padding: 9px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #3c2b04; background: #fff6dc; border-bottom: 1px solid #f0d889; font-size: .84rem; text-decoration: none; }
.announcement-banner span:first-child { font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero { position: relative; min-height: 0; padding: clamp(64px, 9vw, 108px) 0; color: var(--ink); background: #fff; overflow: hidden; }
.hero::before, .hero::after, .hero-content::before, .hero-content::after { display: none !important; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr); align-items: center; gap: clamp(44px, 7vw, 92px); }
.hero-content { max-width: 690px; text-align: left; }
.hero-content .eyebrow { color: var(--teal); }
.hero h1, .hero-title { max-width: 750px; margin: 0 0 22px; color: var(--ink); font-size: clamp(2.65rem, 5vw, 4.7rem); font-weight: 830; letter-spacing: -.055em; line-height: .99; }
.hero-subtitle { max-width: 650px; margin: 0; color: #53657b; font-size: clamp(1rem, 2vw, 1.17rem); line-height: 1.65; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-assurances { margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #66768a; font-size: .81rem; list-style: none; }
.hero-assurances li { position: relative; padding-left: 15px; }
.hero-assurances li::before { content: ""; position: absolute; top: .53em; left: 0; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.hero-order-card { padding: 30px; background: var(--ink); border: 1px solid #243a58; border-radius: 14px; box-shadow: 0 20px 54px rgba(16, 35, 63, .16); }
.hero-order-card .eyebrow { color: #aebdff; }
.hero-order-card h2 { margin: 0 0 22px; color: #fff; font-size: 1.55rem; }
.hero-order-card ol { margin: 0; padding: 0; list-style: none; }
.hero-order-card li { padding: 16px 0; display: flex; gap: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-order-card li > span { color: #aebdff; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.hero-order-card li div { display: grid; gap: 2px; }
.hero-order-card strong { color: #fff; font-size: .94rem; }
.hero-order-card small { color: #aebace; font-size: .8rem; }
.hero-order-card > a { margin-top: 18px; display: inline-flex; gap: 8px; color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; }

.home-page .hero { padding: clamp(72px, 9vw, 118px) 0; color: #fff; background: linear-gradient(112deg, #061523 0%, #092434 52%, #175f59 100%); }
.home-page .hero-layout { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.home-page .hero-badge { width: max-content; max-width: 100%; margin: 0 0 28px; padding: 8px 14px; display: flex; align-items: center; gap: 9px; color: #f2f7f7; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.home-page .hero-badge .badge-dot { width: 8px; height: 8px; background: #5ee7d8; border-radius: 50%; box-shadow: 0 0 12px rgba(94,231,216,.7); }
.home-page .hero h1 { max-width: 850px; margin-bottom: 24px; color: #fff; font-size: clamp(2.75rem, 5.4vw, 5rem); font-weight: 840; letter-spacing: -.06em; line-height: .98; }
.home-page .hero h1 span { display: block; color: #5ee7d8; }
.home-page .hero-subtitle { color: #bdcbd1; }
.home-page .hero .btn-primary { color: #071725; background: #fff; border-color: #fff; }
.home-page .hero .btn-primary:hover { color: #071725; background: #edf7f6; }
.home-page .hero .btn-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.34); }
.home-page .hero .btn-secondary:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.home-page .hero-assurances { color: #b8c8ce; }
.home-page .hero-assurances li::before { background: #5ee7d8; }
.hero-phone { width: min(100%, 410px); aspect-ratio: .78; justify-self: end; position: relative; border: 1px solid rgba(255,255,255,.18); border-radius: 38px; background: rgba(255,255,255,.055); transform: rotate(12deg); box-shadow: inset 0 0 0 18px rgba(255,255,255,.025); }
.hero-phone::before { content: ""; position: absolute; inset: 70px 34px; border-radius: 12px; background: rgba(2,20,29,.18); border: 1px solid rgba(255,255,255,.06); }
.hero-phone span { position: absolute; top: 25px; left: 50%; width: 70px; height: 7px; background: rgba(255,255,255,.12); border-radius: 999px; transform: translateX(-50%); }

.steps-section, .network-section, .faq-section { padding-block: clamp(68px, 9vw, 108px); }
.steps-section { padding-bottom: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step-card { min-height: 260px; padding: 32px 28px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 7px 22px rgba(16,35,63,.06); }
.step-num { width: 56px; height: 56px; margin-bottom: 30px; display: grid; place-items: center; color: var(--teal-dark) !important; background: var(--teal-pale) !important; border-radius: 14px !important; font-size: 1.15rem; font-weight: 850; }
.step-card h3 { margin: 0 0 12px; font-size: 1.12rem; }
.step-card p { margin: 0; line-height: 1.65; }
.section-heading-row { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading-row h2 { margin: 0; }
.text-link { color: var(--teal-dark); font-size: .88rem; font-weight: 750; text-decoration: none; }
.service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-link { min-height: 96px; padding: 18px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; text-decoration: none; }
.service-link:hover { border-color: #9fcfc9; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-mark { width: 54px; height: 54px; padding: 9px; display: grid; place-items: center; background: #f7f9fa; border: 1px solid #e7ecef; border-radius: 9px; }
.service-mark img { width: 38px; height: 38px; object-fit: contain; }
.service-link > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.service-link strong { font-size: .97rem; }
.service-link small { color: #6b7a8d; font-size: .78rem; }
.service-link b { color: var(--teal); font-size: 1.1rem; }

.how-section { padding: clamp(64px, 8vw, 96px) 0; background: var(--ink); }
.how-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 100px); align-items: start; }
.how-intro h2 { margin: 0 0 18px; color: #fff; }
.how-intro p:last-child { max-width: 440px; color: #aebace; }
.how-section .eyebrow { color: #aebdff; }
.order-checklist { border-top: 1px solid rgba(255,255,255,.16); }
.order-checklist > div { padding: 20px 0; display: grid; grid-template-columns: 35px 1fr; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.order-checklist span { color: #aebdff; font-size: .78rem; font-weight: 800; }
.order-checklist p { margin: 0; color: #aebace; }
.order-checklist strong { color: #fff; }

.account-value { margin-block: clamp(68px, 9vw, 108px); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 44px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; }
.account-value h2 { max-width: 720px; margin: 0 0 14px; }
.account-value p:last-child { max-width: 700px; margin: 0; }
.account-value-actions { display: grid; gap: 9px; }
.account-value-actions > * { justify-content: center; text-align: center; }
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.faq-item summary { padding: 20px 4px; color: var(--ink); font-size: 1rem; font-weight: 730; }
.faq-item p { margin: 0; padding: 0 4px 22px; }

/* Catalogue and checkout */
.price-catalog { padding-bottom: 90px; }
.catalog-heading { max-width: 680px; padding-top: 56px; margin-bottom: 26px; }
.catalog-heading h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.catalog-intro { margin: 0; font-size: 1.02rem; }
.catalog-notice { margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: none; }
.catalog-notice summary { padding: 15px 18px; color: var(--ink); font-size: .9rem; font-weight: 730; }
.catalog-notice > div { padding: 0 18px 16px; color: var(--ink-soft); font-size: .88rem; }
.agent-promo-banner { margin-bottom: 24px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; color: var(--ink); background: #edf7f5; border: 1px solid #cbe7e2; border-radius: 10px; }
.agent-promo-banner .eyebrow { margin-bottom: 5px; }
.agent-promo-banner h3 { margin: 0 0 4px; font-size: 1.08rem; }
.agent-promo-banner p:last-child { margin: 0; font-size: .88rem; }
.catalog-tabs { margin: 0 0 24px; padding: 5px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #e9eef2; border: 0; border-radius: 10px; overflow: visible; }
.catalog-tabs button { min-height: 48px; padding: 9px 12px; color: #5c6d81; background: transparent; border: 0; border-radius: 7px; font-size: .8rem; font-weight: 770; }
.catalog-tabs button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(16,35,63,.11); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.catalog-card, .package-card, .simple-bundle-card { min-height: 118px; padding: 20px; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; background: #fff !important; }
.catalog-card:hover, .package-card:hover, .simple-bundle-card:hover { border-color: #91c9c2 !important; transform: translateY(-2px) !important; }
.simple-bundle-card h3 { margin: 0; color: var(--ink); font-size: 1.65rem; }
.simple-bundle-card .price { color: var(--teal-dark); font-size: .9rem; font-weight: 780; }
.simple-bundle-card button { min-height: 40px; padding: 8px 13px; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #c5e4df; border-radius: 7px; font-size: .78rem; font-weight: 780; }
.simple-bundle-card button:hover { color: #fff; background: var(--teal); }
.buy-section { margin-top: 36px; padding: 34px 0 0; border-top: 1px solid var(--line); }
.form-container, .glass-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); backdrop-filter: none; }
.form-container { width: min(100%, 620px); padding: clamp(22px, 4vw, 34px); }
.form-group { margin-bottom: 17px; }
.form-group label, fieldset legend { margin-bottom: 7px; display: block; color: #33485f; font-size: .79rem; font-weight: 750; letter-spacing: .01em; text-transform: none; }
.form-group input, .form-group select, .form-group textarea, .price-input { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cbd5df; border-radius: 7px; box-shadow: none; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: #9babbc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,122,112,.12); }
.result-message { border-radius: 8px; font-size: .88rem; }
.payment-recovery-message { color: #5e470d; background: #fff8e5; border: 1px solid #efd48a; }
.payment-verify-link { margin-top: 9px; display: inline-flex; color: var(--teal-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Account pages */
.account-main, .wallet-main { padding: 32px 0 72px; background: var(--canvas); }
.account-layout, .wallet-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-sidebar { position: sticky; top: 102px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.account-avatar { width: 42px; height: 42px; margin: 0 0 10px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px; font-size: .86rem; font-weight: 800; }
.account-welcome { margin: 0 0 17px; color: var(--ink-soft); font-size: .83rem; }
.account-menu { display: grid; gap: 3px; }
.account-menu a { min-height: 40px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #53657b; border: 0; border-radius: 7px; font-size: .84rem; font-weight: 680; text-decoration: none; }
.account-menu a:hover { color: var(--ink); background: #f3f6f8; }
.account-menu a.active { color: var(--teal-dark); background: var(--teal-pale); }
.account-menu a > span:last-child:not(:first-child) { font-size: .67rem; font-weight: 800; }
.agent-upgrade-card { margin-top: 18px; padding: 16px; color: var(--ink); background: #fff8e7; border: 1px solid #efdb9e; border-radius: 8px; box-shadow: none; }
.agent-upgrade-card h2 { margin: 8px 0 6px; font-size: 1rem; }
.agent-upgrade-card p { margin: 0 0 12px; font-size: .78rem; }
.agent-upgrade-card .btn-secondary { width: 100%; white-space: normal; }
.account-tier { color: #765507; font-size: .66rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.account-content, .wallet-content { min-width: 0; }
.account-page-heading, .wallet-page-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.account-page-heading h1, .wallet-page-heading h1 { margin: 0 0 7px; font-size: clamp(2rem, 4vw, 3rem); }
.account-page-heading p:last-child, .wallet-page-heading p:last-child { margin: 0; }
.account-stats, .wallet-stat-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.account-stat, .wallet-stat { min-height: 112px; padding: 20px; color: var(--ink); background: #fff !important; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 9px; box-shadow: none; }
.account-stat span { color: var(--ink-soft); font-size: .76rem; font-weight: 720; }
.account-stat strong { margin-top: 12px; display: block; color: var(--ink); font-size: 1.55rem; }
.account-shortcuts { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shortcut-card { min-height: 84px; padding: 15px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: none; text-decoration: none; }
.shortcut-card:hover { border-color: #a8cfc9; transform: translateY(-1px); }
.shortcut-icon { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal-dark) !important; background: var(--teal-pale) !important; border-radius: 7px; font-size: .62rem; font-weight: 850; }
.shortcut-card strong { font-size: .88rem; }
.shortcut-card p { margin: 2px 0 0; font-size: .74rem; }
.shortcut-logout { font: inherit; cursor: pointer; }
.account-details-panel, .orders-panel, .wallet-transactions, .wallet-balance-panel, .wallet-help { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.account-details-panel, .orders-panel, .wallet-transactions { margin-bottom: 18px; padding: 22px; }
.panel-heading, .transaction-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading h2, .transaction-heading h2 { margin: 0; font-size: 1.22rem; }
.panel-heading p { margin: 3px 0 0; font-size: .82rem; }
.account-details-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.account-details-form button, .account-details-form p { grid-column: 1 / -1; }
.wallet-balance-panel { margin-bottom: 14px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--ink); border-color: var(--ink); }
.wallet-card { color: #fff; background: none; border: 0; box-shadow: none; }
.wallet-label { margin: 0 0 7px; color: #afbed0; font-size: .75rem; font-weight: 700; }
.wallet-card .balance { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 820; letter-spacing: -.045em; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-actions button, .wallet-actions a { min-height: 42px; padding: 9px 14px; color: var(--ink); background: #fff; border: 1px solid #fff; border-radius: 7px; font-size: .82rem; font-weight: 750; text-decoration: none; }
.wallet-stat { min-height: 92px; display: flex; align-items: center; gap: 12px; }
.wallet-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal-dark) !important; background: var(--teal-pale) !important; border-radius: 7px; }
.wallet-stat strong { color: var(--ink); }
.wallet-stat p { margin: 2px 0 0; font-size: .72rem; }
.wallet-help { margin-bottom: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 11px; background: #f8fafb; }
.wallet-help > span { width: 25px; height: 25px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-pale); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.wallet-help p { margin: 0; font-size: .8rem; }

/* Tables and status */
.table-responsive, .admin-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: #63748a; background: #f5f7f9; border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 820; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; color: #33485f; border-bottom: 1px solid #e7ecef; font-size: .82rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.status-badge { padding: 5px 8px; border-radius: 999px; font-size: .66rem; font-weight: 820; letter-spacing: .025em; text-transform: uppercase; }

/* Utility pages and modals */
.utility-page { min-height: calc(100vh - 70px); padding: 60px 0 86px; }
.utility-section, .status-section, .terms-section { max-width: 820px; }
.section-header { margin-bottom: 24px; }
.section-header h1, .section-header h2 { margin: 0 0 10px; }
.utility-card, .terms-card { padding: clamp(24px, 5vw, 42px); }
.modal-overlay { padding: 18px; background: rgba(10, 24, 43, .6); backdrop-filter: blur(3px); }
.modal-content { width: min(100%, 480px); max-height: calc(100vh - 36px); padding: 30px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(10,24,43,.22); }
.modal-content h3 { margin: 0 0 8px; font-size: 1.45rem; }
.close-btn { top: 14px; right: 14px; width: 36px; height: 36px; color: #586a80; background: #f3f6f8; border: 0; border-radius: 7px; }
.floating-actions { right: 18px; bottom: 18px; gap: 9px; }
.floating-action { box-shadow: 0 8px 24px rgba(16,35,63,.16); }
.floating-bell { background: var(--ink); }
.floating-whatsapp { background: #168c55; }

/* Footer */
.footer { padding: 54px 0 0; color: #b6c2d1; background: #0d1d32; border: 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1fr; gap: 42px; }
.footer .logo-text { color: #fff; }
.footer .text-gradient-accent { color: #5ee7d8 !important; }
.footer-brand p, .footer-links-group p { max-width: 330px; color: #9eacbd; font-size: .82rem; }
.footer-links-group h4 { margin: 2px 0 14px; color: #fff; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-links-group a { margin-bottom: 8px; color: #b6c2d1; font-size: .82rem; text-decoration: none; }
.footer-links-group a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: #8190a3; font-size: .75rem; }

/* Admin refinements */
.admin-page { background: #f3f5fb; }
.admin-login-card { border-radius: 12px; }
.admin-shell { background: #f3f5fb; }
.admin-sidebar { background: #0d1d32; }
.admin-sidebar-brand > span { background: var(--teal); border-radius: 8px; }
.sidebar-btn { border-radius: 7px; }
.sidebar-btn.active { color: #fff; background: #123d4d; }
.admin-workspace { min-width: 0; }
.admin-topbar { padding-bottom: 20px; }
.admin-topbar h1 { margin: 3px 0 0; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.admin-live { color: var(--teal-dark); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.admin-stat-grid { gap: 12px; }
.admin-stat-card, .admin-panel { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.admin-stat-card { min-height: 112px; padding: 20px; }
.admin-stat-icon { border-radius: 7px; }
.admin-panel-heading { border-bottom: 1px solid var(--line); }
.admin-panel-heading h2 { font-size: 1.2rem; }
.admin-danger-btn { color: var(--danger) !important; border-color: #e8b8b3 !important; }

@media (max-width: 980px) {
  .header-container { width: min(100% - 28px, 1240px); }
  .hamburger { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .hamburger span { display: block; width: 18px; height: 2px; flex: 0 0 2px; background: var(--ink); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links, .auth-buttons { display: none; }
  .header-container { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .nav-links.active { position: static; grid-column: 1 / -1; z-index: 10; padding: 10px; display: flex !important; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; box-shadow: var(--shadow-md); }
  .auth-buttons.active { position: static; grid-column: 1 / -1; z-index: 11; margin-top: -22px; padding: 10px; display: flex !important; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; transform: none; }
  .nav-link { min-height: 43px; padding: 11px 12px; }
  .nav-link[aria-current="page"] { background: var(--teal-pale); border-radius: 7px; }
  .nav-link[aria-current="page"]::after { display: none; }
  .account-header-wallet { margin-left: auto; order: initial; }
  .hamburger { margin-left: 0; }
  .hero-layout, .home-page .hero-layout { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-order-card { max-width: 620px; }
  .service-links { grid-template-columns: 1fr; }
  .how-layout, .account-value { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .account-layout, .wallet-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; padding: 12px; }
  .account-avatar, .account-welcome { display: none; }
  .account-menu { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
  .account-menu a { flex: 0 0 auto; }
  .agent-upgrade-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; }
  .agent-upgrade-card .account-tier, .agent-upgrade-card p { grid-column: 1; }
  .agent-upgrade-card h2 { grid-column: 1; }
  .agent-upgrade-card button { grid-column: 2; grid-row: 1 / 4; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .header, .header-container { min-height: 62px; }
  .deedata-logo { width: 31px; height: 31px; }
  .logo-text { font-size: 1.1rem; }
  .account-header-wallet { min-height: 34px; padding: 6px 9px; font-size: .75rem; }
  .nav-links.active { top: 62px; }
  .announcement-banner { top: 62px; padding-inline: 14px; align-items: flex-start; text-align: left; }
  .hero { padding: 58px 0 64px; }
  .hero h1, .hero-title { font-size: clamp(2.45rem, 13vw, 3.35rem); }
  .hero-subtitle { font-size: .98rem; }
  .hero-actions { display: grid; }
  .hero-actions > * { justify-content: center; text-align: center; }
  .hero-assurances { display: grid; gap: 7px; }
  .hero-order-card { padding: 23px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; padding: 28px 24px; }
  .step-num { margin-bottom: 24px; }
  .network-section, .faq-section { padding-block: 64px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .service-link { min-height: 88px; grid-template-columns: 48px 1fr auto; }
  .service-mark { width: 48px; height: 48px; }
  .how-layout { gap: 32px; }
  .account-value { margin-block: 64px; padding: 28px 22px; }
  .catalog-heading { padding-top: 40px; }
  .catalog-tabs { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .agent-promo-banner { align-items: stretch; }
  .agent-promo-banner .btn-secondary { width: 100%; justify-content: center; }
  .account-main, .wallet-main { padding: 18px 0 56px; }
  .account-layout, .wallet-layout { gap: 18px; }
  .account-page-heading, .wallet-page-heading { align-items: stretch; flex-direction: column; }
  .account-page-heading .btn-primary { justify-content: center; }
  .account-stats, .wallet-stat-grid { grid-template-columns: 1fr; }
  .account-stat, .wallet-stat { min-height: 82px; }
  .account-shortcuts { grid-template-columns: 1fr; }
  .account-details-form { grid-template-columns: 1fr; }
  .account-details-form button, .account-details-form p { grid-column: auto; }
  .wallet-balance-panel { align-items: stretch; flex-direction: column; }
  .wallet-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .wallet-actions > * { text-align: center; }
  .orders-panel, .wallet-transactions, .account-details-panel { padding: 16px 0; }
  .orders-panel > :not(.table-responsive), .wallet-transactions > :not(.table-responsive), .account-details-panel > * { margin-inline: 16px; }
  .modal-content { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; }
  .admin-topbar { align-items: start; flex-direction: column; }
}

@media (max-width: 460px) {
  .header-container { width: calc(100% - 20px); gap: 8px; }
  .header-container .logo { min-width: 103px; overflow: visible; }
  .logo-text { display: inline !important; font-size: .98rem; }
  .account-header-wallet { padding-inline: 7px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .catalog-tabs button { padding-inline: 6px; font-size: .7rem; }
  .catalog-tabs img { width: 20px !important; height: 20px !important; margin-right: 4px !important; }
  .account-menu a { min-height: 38px; padding: 8px 9px; font-size: .77rem; }
  .agent-upgrade-card { display: block; }
  .agent-upgrade-card button { margin-top: 5px; }
  .wallet-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > :last-child { grid-column: auto; }
  .floating-label { display: none; }
}

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