@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --forest:        #143E32;
    --forest-deep:   #0E2E25;
    --forest-soft:   #1E5A47;
    --honey:         #D98A2B;
    --honey-deep:    #B86F1C;
    --honey-soft:    #F6E6CC;
    --sage:          #7FA593;
    --mint:          #E7F0EA;
    --paper:         #F6F4EE;
    --surface:       #FFFFFF;
    --ink:           #16201B;
    --ink-soft:      #5A6A61;
    --line:          #E1E6E0;

    --primary:       var(--forest);
    --primary-light: var(--forest-soft);
    --primary-dark:  var(--forest-deep);
    --secondary:     var(--honey);
    --bg:            var(--paper);
    --text:          var(--ink);
    --text-muted:    var(--ink-soft);
    --border:        var(--line);
    --radius:        14px;
    --shadow:        0 12px 32px -16px rgba(20,62,50,0.28);

    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--honey);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }


.header {
    background: rgba(246,244,238,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--forest);
}
.logo i { font-size: 22px; color: var(--honey); }
.logo.white { color: #fff; }
.logo.white i { color: var(--honey); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color .2s;
}
.nav a:hover { color: var(--forest); }
.btn-nav {
    background: var(--forest) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 9px;
    font-weight: 600 !important;
    transition: background .2s, transform .2s !important;
}
.btn-nav:hover { background: var(--forest-deep) !important; transform: translateY(-1px); }


.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 11px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-primary { background: var(--honey); color: #1c1205; box-shadow: 0 8px 20px -8px rgba(217,138,43,0.6); }
.btn-primary:hover { background: var(--honey-deep); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-green {
    background: var(--forest);
    color: #fff;
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 15px;
    border-radius: 11px;
    margin-top: 8px;
}
.btn-green:hover { background: var(--forest-deep); transform: translateY(-1px); }


.hero {
    position: relative;
    background: radial-gradient(120% 140% at 80% -10%, var(--forest-soft) 0%, var(--forest) 45%, var(--forest-deep) 100%);
    padding: 104px 0;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    opacity: .9;
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-content { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217,138,43,0.16);
    color: var(--honey-soft);
    padding: 7px 15px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 22px;
    border: 1px solid rgba(217,138,43,0.4);
}
.hero-text h1 { font-size: clamp(2.6rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.04; margin-bottom: 20px; }
.hero-text h1 span { position: relative; color: var(--honey); white-space: nowrap; }
.hero-text h1 span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
    height: 0.1em; background: var(--honey); opacity: .5; border-radius: 3px;
}
.hero-text p { font-size: 16px; opacity: .82; line-height: 1.75; margin-bottom: 34px; max-width: 30em; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.hero-card i { font-size: 26px; color: var(--honey); }
.hero-card strong { display: block; font-family: var(--font-mono); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hero-card span { font-size: 12px; opacity: .72; letter-spacing: 0.02em; }
.hero-card.large { grid-column: span 2; flex-direction: row; align-items: center; gap: 16px; }
.hero-card.large i { font-size: 32px; }


.section { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.section-header h2::before {
    content: "+"; display: block;
    font-family: var(--font-mono); color: var(--honey);
    font-size: 22px; font-weight: 600; margin-bottom: 6px; letter-spacing: 0;
}
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 40em; margin: 0 auto; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(20,62,50,0.4); border-color: var(--sage); }
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.card-icon.green  { background: var(--mint); color: var(--forest); }
.card-icon.blue   { background: var(--mint); color: var(--forest-soft); }
.card-icon.orange { background: var(--honey-soft); color: var(--honey-deep); }
.card-icon.purple { background: var(--honey-soft); color: var(--honey-deep); }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 9px; }
.service-card p  { color: var(--text-muted); font-size: 14px; line-height: 1.6; }


.features-section { background: var(--forest); padding: 44px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { display: flex; align-items: center; gap: 14px; color: #fff; }
.feature i { font-size: 24px; color: var(--honey); flex-shrink: 0; }
.feature h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.feature p  { font-size: 12px; opacity: .72; }


.footer { background: var(--forest-deep); color: #fff; padding: 64px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 34em; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; color: var(--honey);
}
.footer-links a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,.6); font-size: 14px; display: flex; align-items: center; gap: 9px; }
.footer-contact i { color: var(--honey); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.34); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }


.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-panel-left {
    position: relative;
    background: radial-gradient(130% 130% at 15% 0%, var(--forest-soft) 0%, var(--forest) 50%, var(--forest-deep) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
    overflow: hidden;
}
.auth-panel-left::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    pointer-events: none;
}
.auth-panel-left > * { position: relative; }
.auth-panel-left .tagline { margin-top: auto; }
.auth-panel-left .tagline h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.18; margin-bottom: 14px; }
.auth-panel-left .tagline p { font-size: 15px; opacity: .78; line-height: 1.7; max-width: 32em; }
.auth-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.pill {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    padding: 7px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 7px;
}
.pill i { color: var(--honey); }
.auth-panel-right { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 46px 42px;
    width: 100%;
    max-width: 410px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.auth-card-icon {
    width: 56px;
    height: 56px;
    background: var(--mint);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 23px;
    color: var(--forest);
}
.auth-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; line-height: 1.55; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}
.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: #FCFBF8;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(20,62,50,0.12);
    background: #fff;
}
.otp-input {
    text-align: center !important;
    letter-spacing: 12px !important;
    font-family: var(--font-mono) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    padding: 17px !important;
    text-indent: 12px;
}


.dashboard-body { background: var(--bg); }
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 256px;
    background: var(--forest);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-header { padding: 26px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-header .logo { color: #fff; font-size: 19px; }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 22px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: var(--honey);
}
.sidebar-nav a i { width: 18px; font-size: 15px; }
.sidebar-section-label {
    padding: 20px 22px 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}
.sidebar-footer { padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    transition: color .2s;
}
.sidebar-footer a:hover { color: #fff; }

.dashboard-main { margin-left: 256px; flex: 1; padding: 32px 40px; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.topbar-left h1 { font-size: 26px; font-weight: 700; }
.topbar-left p  { color: var(--text-muted); font-size: 14px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-avatar {
    width: 44px;
    height: 44px;
    background: var(--forest);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}
.topbar-info { text-align: right; }
.topbar-info strong { display: block; font-size: 14px; }
.topbar-info span   { font-size: 12px; color: var(--text-muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 16px;
}
.stat-icon.green  { background: var(--mint); color: var(--forest); }
.stat-icon.blue   { background: var(--mint); color: var(--forest-soft); }
.stat-icon.orange { background: var(--honey-soft); color: var(--honey-deep); }
.stat-icon.red    { background: #FBE3DC; color: #B23C1E; }
.stat-value { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-header .badge-sm {
    background: var(--mint);
    color: var(--forest);
    padding: 4px 11px;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card-body { padding: 22px; }

.info-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mint);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.info-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.info-value { font-size: 14px; font-weight: 500; }

.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border);
    color: var(--text);
    background: var(--surface);
    transition: all .2s;
    width: 100%;
    text-align: left;
}
.action-btn:hover { border-color: var(--forest); color: var(--forest); background: var(--mint); transform: translateY(-1px); }
.action-btn i { font-size: 15px; width: 18px; color: var(--forest); }


#rxInput {
    font-family: var(--font-mono) !important;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: #FCFBF8;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
#rxInput:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20,62,50,0.12); background: #fff; outline: none; }
#rxSend {
    background: var(--honey);
    color: #1c1205;
    border-color: var(--honey);
    font-weight: 600;
}
#rxSend:hover:not(:disabled) { background: var(--honey-deep); color: #fff; border-color: var(--honey-deep); }
#rxSend:disabled { opacity: .55; cursor: progress; }
#rxReply {
    position: relative;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.7;
    color: var(--ink) !important;
    background:
        repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px) top/100% 2px no-repeat,
        #FBFAF5 !important;
    border: 1px solid var(--line) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    padding: 22px 18px 18px !important;
}
#rxReply::before {
    content: "Rx";
    position: absolute;
    top: -1px; left: 16px;
    transform: translateY(-50%);
    background: var(--forest);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}


.mfa-icon {
    width: 70px;
    height: 70px;
    background: var(--mint);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 30px;
    color: var(--forest);
}
.mfa-card { text-align: center; max-width: 390px; }
.code-hint {
    background: var(--honey-soft);
    border: 1px solid rgba(217,138,43,0.4);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--honey-deep);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.steps { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.step { display: flex; align-items: center; gap: 11px; font-size: 13px; color: rgba(255,255,255,.8); }
.step-num {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


@media (max-width: 980px) {
    .hero-content { grid-template-columns: 1fr; gap: 44px; }
    .cards-grid, .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .auth-body { grid-template-columns: 1fr; }
    .auth-panel-left { display: none; }
    .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .sidebar-nav { display: flex; flex-wrap: wrap; padding: 8px; }
    .sidebar-nav a { border-left: none; border-bottom: 3px solid transparent; }
    .sidebar-nav a:hover, .sidebar-nav a.active { border-left-color: transparent; border-bottom-color: var(--honey); }
    .sidebar-section-label, .sidebar-footer { display: none; }
    .dashboard-main { margin-left: 0; padding: 24px; }
}
@media (max-width: 560px) {
    .cards-grid, .features-grid, .stats-grid, .footer-content { grid-template-columns: 1fr; }
    .nav { gap: 16px; }
    .nav a:not(.btn-nav) { display: none; }
    .section { padding: 60px 0; }
    .hero { padding: 72px 0; }
    .auth-card { padding: 34px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}



@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes aurora { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes textShimmer { to { background-position: 200% center; } }
@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes dotPulse { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes printLine { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,138,43,0); } 50% { box-shadow: 0 0 0 4px rgba(217,138,43,.18); } }

.js .hero { background-size: 170% 170%; animation: aurora 22s ease-in-out infinite alternate; }
.js .auth-panel-left { background-size: 170% 170%; animation: aurora 26s ease-in-out infinite alternate; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-text h1 span {
        background: linear-gradient(100deg, var(--honey) 20%, #F2C982 50%, var(--honey) 80%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: textShimmer 5s linear infinite;
    }
}

.btn { position: relative; overflow: hidden; }
.btn::after {
    content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 160%; }

.service-card { position: relative; overflow: hidden; }
.service-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(217,138,43,.14), transparent 60%);
    opacity: 0; transition: opacity .3s;
}
.service-card:hover::after { opacity: 1; }

.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--honey));
    transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(20,62,50,.45); transition: transform .25s, box-shadow .25s; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stat-top .stat-icon { margin-bottom: 0; }
.stat-delta {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    padding: 4px 9px; border-radius: 8px;
}
.stat-delta i { font-size: 9px; }
.stat-delta.up { background: var(--mint); color: var(--forest); }
.stat-delta.down { background: #FBE3DC; color: #B23C1E; }

.welcome-banner {
    position: relative; overflow: hidden;
    background: radial-gradient(130% 180% at 88% -30%, var(--forest-soft) 0%, var(--forest) 52%, var(--forest-deep) 100%);
    background-size: 170% 170%;
    color: #fff; border-radius: 20px; padding: 36px 38px; margin-bottom: 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.js .welcome-banner { animation: aurora 24s ease-in-out infinite alternate; }
.welcome-banner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
}
.welcome-banner > * { position: relative; }
.welcome-eyebrow {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--honey); display: inline-block; margin-bottom: 12px;
}
.welcome-copy h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 8px; }
.welcome-copy p { opacity: .78; font-size: 15px; margin-bottom: 22px; }
.welcome-meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.welcome-meta .topbar-info strong { color: #fff; }
.welcome-meta .topbar-info span { color: rgba(255,255,255,.68); }
.welcome-meta .topbar-avatar { background: var(--honey); color: #1c1205; }

.action-feature { background: var(--forest); color: #fff; border-color: var(--forest); }
.action-feature i { color: var(--honey) !important; }
.action-feature:hover { background: var(--forest-deep); color: #fff; border-color: var(--forest-deep); transform: translateY(-1px); }

.rx-console { max-width: 900px; }
.rx-intro { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; max-width: 58ch; }
#rxInput {
    width: 100%; padding: 15px 16px; border: 1.5px solid var(--border); border-radius: 12px;
    resize: vertical; box-sizing: border-box; outline: none;
}
#rxInput.is-scanning { border-color: var(--honey); animation: pulseGlow 1.2s ease-in-out infinite; }
.rx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.rx-chip {
    font-family: var(--font-mono); font-size: 12px; padding: 7px 13px;
    border: 1px solid var(--border); background: var(--surface); border-radius: 100px;
    color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.rx-chip:hover { border-color: var(--forest); color: var(--forest); background: var(--mint); transform: translateY(-1px); }
.btn-rx { background: var(--honey); color: #1c1205; box-shadow: 0 8px 20px -8px rgba(217,138,43,.6); }
.btn-rx:hover { background: var(--honey-deep); color: #fff; transform: translateY(-2px); }
.btn-rx:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-rx.is-loading { animation: pulseGlow 1.1s ease-in-out infinite; }

#rxReply { display: none; margin-top: 20px; }
#rxReply.printing::after {
    content: "\2588"; margin-left: 1px; color: var(--forest);
    animation: caretBlink 1s step-end infinite;
}
.rx-line { display: block; animation: printLine .25s ease both; }
.rx-analyzing { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); color: var(--ink-soft); }
.rx-dots { display: inline-flex; gap: 4px; }
.rx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--honey); display: inline-block; animation: dotPulse 1s infinite; }
.rx-dots i:nth-child(2) { animation-delay: .16s; }
.rx-dots i:nth-child(3) { animation-delay: .32s; }

@media (prefers-reduced-motion: no-preference) {
    .js .hero-text > * { opacity: 0; }
    .is-loaded .hero-text > *:nth-child(1) { animation: heroIn .6s .05s both; }
    .is-loaded .hero-text > *:nth-child(2) { animation: heroIn .6s .15s both; }
    .is-loaded .hero-text > *:nth-child(3) { animation: heroIn .6s .25s both; }
    .is-loaded .hero-text > *:nth-child(4) { animation: heroIn .6s .35s both; }
    .js .hero-card { opacity: 0; }
    .is-loaded .hero-card:nth-child(1) { animation: heroIn .6s .3s both; }
    .is-loaded .hero-card:nth-child(2) { animation: heroIn .6s .42s both; }
    .is-loaded .hero-card:nth-child(3) { animation: heroIn .6s .54s both; }

    .js .welcome-banner, .js .auth-card, .js .rx-console { opacity: 0; }
    .is-loaded .welcome-banner { animation: heroIn .7s both; }
    .is-loaded .auth-card { animation: heroIn .6s .05s both; }
    .is-loaded .rx-console { animation: heroIn .6s .05s both; }

    .js .service-card, .js .features-section .feature, .js .footer-content > div,
    .js .section-header, .js .stat-card, .js .content-grid > .card {
        opacity: 0; transform: translateY(22px); filter: blur(3px);
    }
    .service-card.in, .features-section .feature.in, .footer-content > div.in,
    .section-header.in, .stat-card.in, .content-grid > .card.in {
        opacity: 1; transform: none; filter: none;
        transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1), filter .65s;
        transition-delay: calc(var(--ri, 0) * 70ms);
    }
}

.hero { box-shadow: inset 0 -90px 140px -60px rgba(0,0,0,.45); }
.welcome-banner { box-shadow: inset 0 -60px 100px -50px rgba(0,0,0,.4); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.js .hero-card i { animation: float 5s ease-in-out infinite; }
.js .hero-card:nth-child(2) i { animation-duration: 6s; animation-delay: .4s; }
.js .hero-card.large i { animation-duration: 7s; animation-delay: .2s; }

.service-card .card-icon { transition: transform .25s ease, background .25s; }
.service-card:hover .card-icon { transform: translateY(-2px) scale(1.06); }
.service-card::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
    background: linear-gradient(90deg, var(--forest), var(--honey));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover::before { transform: scaleX(1); }


:root {
    --shadow-sm: 0 4px 16px -10px rgba(20,62,50,.30);
    --shadow-lg: 0 30px 64px -30px rgba(20,62,50,.55);
}

.hero { padding: 96px 0 88px; }
.hero-text h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: .98; letter-spacing: -0.04em; }
.section { padding: 74px 0; }
.section-header h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.03em; }

.service-card, .stat-card, .card { box-shadow: var(--shadow-sm); }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rx-console, .stat-card.is-alert, .orders-card { box-shadow: var(--shadow-lg); }

.hero-visual { display: block; position: relative; min-height: 340px; }
.hero-stack { position: absolute; inset: 0; }
.hero-tile {
    position: absolute; width: 210px; padding: 18px; border-radius: 16px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px); color: #fff; transform: scale(.92); opacity: .82;
}
.hero-tile i { color: var(--honey); font-size: 22px; }
.hero-tile strong { display: block; font-family: var(--font-mono); font-size: 18px; margin-top: 8px; }
.hero-tile span { font-size: 12px; opacity: .7; }
.hero-tile.t1 { top: 0; right: 6px; }
.hero-tile.t2 { bottom: 10px; left: 0; }
.hero-feature {
    position: relative; z-index: 2; margin: 34px auto 0; max-width: 350px;
    background: linear-gradient(165deg, rgba(255,255,255,.17), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.24); border-radius: 22px; padding: 30px;
    box-shadow: 0 44px 80px -34px rgba(0,0,0,.65); backdrop-filter: blur(12px); color: #fff;
}
.js .hero-feature { opacity: 0; }
.is-loaded .hero-feature { animation: heroIn .7s .35s both; }
.rx-badge {
    width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 33px; color: #1c1205;
    background: radial-gradient(circle at 30% 25%, #F4D08F, var(--honey));
    box-shadow: 0 14px 28px -8px rgba(217,138,43,.7); margin-bottom: 20px;
}
.hero-feature-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.hero-feature-num { display: block; font-family: var(--font-mono); font-size: 42px; font-weight: 600; letter-spacing: -.02em; margin: 5px 0 3px; }
.hero-feature-sub { font-size: 13px; opacity: .78; }
.hero-feature-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; opacity: .82; display: flex; align-items: center; gap: 9px; }
.hero-feature-row i { color: var(--honey); }
.js .hero-tile i { animation: float 5s ease-in-out infinite; }

.spark { display: block; width: 100%; height: 26px; margin-top: 12px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: rgba(20,62,50,.08); stroke: none; }
.stat-card.is-alert { background: linear-gradient(180deg, #FCEEE8, #fff); border-color: #F3C9BC; }
.stat-card.is-alert .spark polyline { stroke: #B23C1E; }
.stat-card.is-alert .spark .area { fill: rgba(178,60,30,.08); }

.orders-card .card-body { padding: 6px 0 8px; }
.rx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rx-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 6px 22px 10px; }
.rx-table td { padding: 13px 22px; border-top: 1px solid var(--line); }
.rx-table tbody tr { transition: background .15s; }
.rx-table tbody tr:hover { background: var(--mint); }
.rx-cust { font-weight: 500; }
.rx-id { font-family: var(--font-mono); color: var(--ink-soft); }
.rx-amount { font-family: var(--font-mono); text-align: right; }
.rx-status { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.rx-status.ok { background: var(--mint); color: var(--forest); }
.rx-status.pending { background: var(--honey-soft); color: var(--honey-deep); }
.rx-status.proc { background: #E6EEF6; color: #2C5A86; }

.rx-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.rx-console { max-width: none; }
.rx-aside { display: flex; flex-direction: column; gap: 18px; }
.rx-steps { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.rx-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.rx-steps .n { flex: 0 0 24px; height: 24px; border-radius: 7px; background: var(--mint); color: var(--forest); font-family: var(--font-mono); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.rx-note { display: flex; gap: 10px; align-items: flex-start; background: var(--honey-soft); border: 1px solid rgba(217,138,43,.4); border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--honey-deep); line-height: 1.55; }
.rx-note i { margin-top: 2px; }

.rx-receipt-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px dashed var(--line); padding-bottom: 9px; margin-bottom: 11px; }
.rx-line.rx-section { font-weight: 600; color: var(--forest); margin-top: 10px; }
#rxReply.printing .rx-body::after { content: "\2588"; margin-left: 1px; color: var(--forest); animation: caretBlink 1s step-end infinite; }
.rx-barcode { height: 40px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 15px); opacity: .82; border-radius: 2px; }
.rx-barcode-code { font-family: var(--font-mono); font-size: 10px; letter-spacing: .34em; text-align: center; color: var(--ink-soft); margin-top: 6px; }

.auth-panel-left::after {
    content: "Rx"; position: absolute; right: -4%; bottom: -14%; z-index: 0;
    font-family: var(--font-display); font-weight: 800; font-size: clamp(220px, 34vw, 430px);
    line-height: 1; color: rgba(255,255,255,.05); pointer-events: none;
}

.hero-content { align-items: start; }
.hero-search {
    display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px;
    padding: 7px 7px 7px 16px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.55);
    max-width: 460px; margin-bottom: 18px;
}
.hero-search i { color: var(--ink-soft); }
.hero-search input { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: transparent; padding: 9px 4px; }
.hero-search .btn { padding: 12px 20px; border-radius: 10px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-tags a { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.2); padding: 6px 13px; border-radius: 100px; transition: all .2s; }
.hero-tags a:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.42); }
.hero-trust { display: flex; gap: 30px; }
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-mono); font-size: 22px; color: #fff; letter-spacing: -.02em; }
.hero-trust span { font-size: 12px; color: rgba(255,255,255,.6); }

.hero-visual { display: block; position: relative; min-height: 0; }
.hero-feature {
    position: relative; z-index: 2; max-width: 360px; margin: 0 0 0 auto; padding: 24px;
    background: #fff; color: var(--ink); border: 1px solid rgba(255,255,255,.5); border-radius: 22px;
    box-shadow: 0 48px 90px -34px rgba(0,0,0,.62);
}
.js .hero-feature { opacity: 0; }
.is-loaded .hero-feature { animation: heroIn .7s .4s both; }
.hf-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hf-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--mint); color: var(--forest); padding: 5px 10px; border-radius: 7px; }
.hf-rx { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F4D08F, var(--honey)); color: #1c1205; font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.hf-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hf-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }
.hf-rows > div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hf-rows span { color: var(--ink-soft); }
.hf-rows strong { font-weight: 600; }
.hf-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.hf-price { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--forest); }
.hf-price span { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--ink-soft); margin-right: 5px; }
.hf-price sup { font-size: 13px; }
.hf-foot .btn { padding: 11px 22px; }
.hero-chip { position: absolute; z-index: 3; left: -16px; bottom: -16px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 500; padding: 12px 16px; border-radius: 12px; box-shadow: 0 22px 44px -18px rgba(0,0,0,.6); display: flex; align-items: center; gap: 9px; }
.hero-chip i { color: var(--honey); }

.section-header { text-align: left; max-width: none; margin-bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-header h2::before { display: inline-block; margin: 0 12px 0 0; vertical-align: baseline; }
.section-header p { margin: 0; text-align: left; max-width: 32em; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; position: relative; overflow: hidden; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sage); }
.bento-card h3 { font-size: 17px; font-weight: 600; margin: 16px 0 8px; }
.bento-card p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
.bento-arrow { margin-top: 14px; color: var(--forest); font-size: 12px; opacity: 0; transform: translateX(-6px); transition: all .25s; display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-mono); }
.bento-card:hover .bento-arrow { opacity: 1; transform: none; }
.bento-feature { grid-row: span 2; background: radial-gradient(130% 130% at 80% 0%, var(--forest-soft), var(--forest) 58%, var(--forest-deep)); color: #fff; border: none; display: flex; flex-direction: column; justify-content: space-between; }
.bento-feature .card-icon { background: rgba(255,255,255,.12); color: var(--honey); }
.bento-feature h3 { font-size: 25px; margin: 20px 0 10px; }
.bento-feature p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; }
.bento-cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--honey); }

@media (prefers-reduced-motion: no-preference) {
    .is-loaded .hero-text > *:nth-child(5) { animation: heroIn .6s .45s both; }
    .is-loaded .hero-text > *:nth-child(6) { animation: heroIn .6s .55s both; }
    .js .bento-card { opacity: 0; transform: translateY(22px); filter: blur(3px); }
    .bento-card.in { opacity: 1; transform: none; filter: none; transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1), filter .65s; transition-delay: calc(var(--ri, 0) * 70ms); }
}

@media (max-width: 980px) {
    .rx-layout { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-feature { grid-row: span 1; grid-column: span 2; }
    .hero-feature { max-width: none; margin: 0; }
    .hero-chip { display: none; }
    .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .bento-feature { grid-column: span 1; }
    .hero-trust { gap: 20px; flex-wrap: wrap; }
}

@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(95,191,138,.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(95,191,138,0); } }

.spark { height: 42px; }
.spark polyline { stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.spark .area { fill: rgba(20,62,50,.12); }
.stat-card.is-alert .spark .area { fill: rgba(178,60,30,.12); }

.auth-panel-left::after { display: none; }
.auth-status { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.auth-status-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.72); }
.auth-status-row .dot, .bento-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #5FBF8A; flex-shrink: 0; animation: livePulse 2s ease-out infinite; }

.bento-card { display: flex; flex-direction: column; }
.bento-card .bento-arrow { margin-top: auto; }
.bento-feature .bento-cta { margin-top: 0; }
.bento-live { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.82); margin: 18px 0; }

.bento-card .bento-arrow { opacity: 1; transform: none; color: var(--ink-soft); }
.bento-card:hover .bento-arrow { color: var(--forest); transform: translateX(3px); }
.rx-barcode { opacity: .7; }
.rx-recent { display: flex; flex-direction: column; gap: 12px; }
.rx-recent-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.rx-recent-row strong { color: var(--ink); font-weight: 600; }
.rx-recent-row .ok { color: var(--forest); }
