:root {
    --primary: #0d1b3d;
    --secondary: #1b2d5c;
    --accent: #21b573;
    --gold: #f5c76e;
    --gold-soft: #fff1c5;
    --bg: #f4f7fb;
    --text: #16315c;
    --muted: #5f6f87;
    --danger: #e2545b;
    --navy-900: #071a38;
    --navy-800: #102b59;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(11, 25, 52, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

* {
    box-sizing: border-box;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(13, 27, 61, .2);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(13, 27, 61, .18);
}

.btn-outline-light {
    border-color: rgba(255,255,255,.35);
    color: #fff;
    background: rgba(255,255,255,.04);
}

.auth-bg {
    background: linear-gradient(135deg, #0d1b3d 0%, #173c7a 100%);
    min-height: 100vh;
}

.brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold), #f7e9b4);
    color: var(--primary);
    font-size: 2rem;
    box-shadow: 0 14px 30px rgba(245, 199, 110, 0.35);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #fce9a7);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(245, 199, 110, 0.35);
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.1em;
}

.dashboard-body {
    background: linear-gradient(180deg, #eef4fb 0%, #f5f7fb 100%);
    color: var(--text);
}

.dashboard-shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 20px;
    min-height: calc(100vh - 48px);
    background: linear-gradient(180deg, var(--primary) 0%, #112a5b 100%);
    color: #fff;
    border-radius: 28px;
    padding: 22px 18px;
    box-shadow: 0 18px 38px rgba(16, 28, 54, 0.18);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--gold), #fce7a8);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(245,199,110,0.2);
}

.sidebar-brand strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: #fff;
}

.sidebar-brand small {
    color: rgba(255,255,255,0.72);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 1.02rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.logout-link {
    margin-top: 8px;
}

.sidebar-plan {
    margin-top: auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-plan span {
    color: rgba(255,255,255,0.72);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-plan strong {
    color: #fff;
    font-size: 0.96rem;
}

.sidebar-plan small {
    color: rgba(255,255,255,0.8);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 4px 0;
}

.topbar-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5c6d8d;
}

.dashboard-topbar h1 {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-button {
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(13, 27, 61, 0.08);
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(13,27,61,0.08);
    border-radius: 18px;
    padding: 8px 12px 8px 8px;
    box-shadow: 0 10px 24px rgba(13,27,61,0.04);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #183c75, #234d9a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-meta strong {
    color: var(--primary);
    font-size: 0.9rem;
}

.user-meta small {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(10, 31, 62, 0.06);
    box-shadow: 0 14px 26px rgba(17, 35, 60, 0.05);
}

.stats-card .stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.stats-card .label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.stats-card h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
}

.stats-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.stats-card-primary .icon { background: linear-gradient(135deg, #143d7d, #1f5fc8); }
.stats-card-warning .icon { background: linear-gradient(135deg, #efb117, #f5cc66); }
.stats-card-success .icon { background: linear-gradient(135deg, #1eb980, #4ecb97); }
.stats-card-info .icon { background: linear-gradient(135deg, #1f6fe8, #4aa6ff); }
.stats-card-purple .icon { background: linear-gradient(135deg, #5d4ae4, #8d7af0); }
.stats-card-danger .icon { background: linear-gradient(135deg, #e85757, #f5948b); }

.stats-foot {
    color: var(--muted);
    margin-top: 14px;
    font-size: 0.82rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.panel-card {
    grid-column: span 4;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(13,27,61,0.06);
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(13,27,61,0.04);
    padding: 20px 18px;
}

.panel-span-2 { grid-column: span 8; }
.panel-span-3 { grid-column: span 12; }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-kicker {
    display: block;
    color: #5d6f92;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.panel-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.panel-actions .btn {
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.sales-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 220px;
    padding-top: 10px;
}

.chart-bar-wrap {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 8px;
    height: 200px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    height: 40px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #5a7ae6 0%, #7db2ff 100%);
    box-shadow: inset 0 -8px 12px rgba(32,58,120,0.12);
    display: block;
}

.chart-bar-wrap small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.chart-bar-wrap strong {
    color: var(--primary);
    font-size: 0.7rem;
}

.empty-chart-state {
    color: var(--muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 18px;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(13,27,61,0.06);
}

.quick-action i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.action-primary { background: rgba(20, 61, 125, 0.08); }
.action-primary i { background: linear-gradient(135deg, #143d7d, #1f5fc8); }
.action-success { background: rgba(30,185,128,0.08); }
.action-success i { background: linear-gradient(135deg, #1eb980, #4ecb97); }
.action-info { background: rgba(31,111,232,0.08); }
.action-info i { background: linear-gradient(135deg, #1f6fe8, #4aa6ff); }
.action-warning { background: rgba(239,177,23,0.08); }
.action-warning i { background: linear-gradient(135deg, #efb117, #f5cc66); }
.action-dark { background: rgba(16,37,63,0.08); }
.action-dark i { background: linear-gradient(135deg, #0c1d3a, #1c2e5b); }

.product-list,
.product-table-list,
.stock-alert-list,
.legend-list,
.summary-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-row-item,
.mini-product,
.stock-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(13,27,61,0.03);
    border: 1px solid rgba(13,27,61,0.04);
}

.product-thumb,
.mini-product-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(58,96,164,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.product-info,
.mini-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.product-info strong,
.mini-product-meta strong,
.stock-alert-item strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.product-info small,
.mini-product-meta small,
.stock-alert-item small {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modern-table th,
.modern-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(13,27,61,0.08);
    font-size: 0.92rem;
}

.modern-table th {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(30,185,128,0.12);
    color: #1d9d70;
}

.donut-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.donut-chart {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        #4f6ef6 0 34%,
        #3ecf8e 34% 60%,
        #e7b850 60% 82%,
        #ef6d73 82% 100%
    );
    position: relative;
}

.donut-center {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(13,27,61,0.05);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(13,27,61,0.06);
    color: var(--primary);
}

.legend-item:last-child {
    border-bottom: 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f6ef6;
    display: inline-block;
    margin-right: 8px;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(13,27,61,0.06);
    color: var(--text);
}

.summary-line:last-child {
    border-bottom: 0;
}

.summary-line strong {
    color: var(--primary);
    font-weight: 800;
}

.stock-alert-item {
    justify-content: space-between;
}

.alert-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239,177,23,0.12);
    color: #a56b00;
    font-size: 0.68rem;
    padding: 0.32rem 0.62rem;
    font-weight: 700;
}

.tip-box {
    background: linear-gradient(135deg, rgba(20,61,125,0.06), rgba(30,185,128,0.04));
    border: 1px solid rgba(20,61,125,0.08);
    border-radius: 18px;
    padding: 18px 16px;
}

.tip-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(20,61,125,0.12);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tip-box p {
    margin: 0 0 12px;
    color: var(--text);
}

.tip-box a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(13,27,61,0.08);
    background: rgba(255,255,255,0.9);
    color: var(--primary);
}

.sidebar-open {
    transform: translateX(0);
}

.mobile-bottom-nav {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid rgba(13,27,61,0.08);
    backdrop-filter: blur(12px);
    padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
    box-shadow: 0 -12px 24px rgba(13,27,61,0.08);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 14px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 700;
}

.mobile-link i {
    font-size: 1.2rem;
}

.mobile-link.active,
.mobile-link.sell-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        min-height: auto;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-shell {
        padding: 14px;
        gap: 18px;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .user-pill {
        flex: 1;
        min-width: 0;
    }

    .stats-grid,
    .dashboard-grid,
    .summary-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }

    .panel-card,
    .panel-span-2,
    .panel-span-3 {
        grid-column: span 1;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .dashboard-main {
        padding-bottom: 16px;
    }

    .donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.qty-controls input {
    width: 55px;
    text-align: center;
}

.landing-body {
    background: linear-gradient(180deg, var(--navy-900) 0%, #0f214d 18%, #f4f7fb 18%, #f4f7fb 100%);
    color: var(--text);
}

.container {
    max-width: 1180px;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(7, 26, 56, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a,
.landing-footer a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: opacity .2s ease;
}

.nav-links a:hover,
.landing-footer a:hover {
    opacity: 1;
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-section {
    padding: 72px 0 50px;
    color: #fff;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 610px;
}

.hero-copy p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 590px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
}

.hero-actions .btn {
    min-width: 180px;
    min-height: 52px;
    padding-inline: 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-meta strong {
    font-size: 1.4rem;
    color: #fff;
}

.hero-meta span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.76);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.mock-window {
    width: min(100%, 540px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.24);
}

.window-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    background: rgba(255,255,255,0.7);
}

.window-body {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
    border-radius: 20px;
    padding: 18px;
    color: var(--text);
}

.window-top-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mini-stat {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 18px rgba(17, 34, 59, 0.06);
}

.mini-stat small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.mini-stat strong {
    font-size: 1.02rem;
}

.mini-stat.green strong { color: #0e9d5f; }
.mini-stat.gold strong { color: #b77a06; }

.pos-panel {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(20, 48, 92, 0.06);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33,181,115,0.12);
    color: #0d8c5a;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    background: #f6faff;
    padding: 12px 12px;
    margin-bottom: 10px;
}

.product-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-row small {
    color: var(--muted);
}

.product-row span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 42, 87, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(17,32,56,0.08);
    color: var(--primary);
    font-weight: 700;
}

.chart-strip {
    height: 92px;
    display: flex;
    align-items: end;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 8px 0;
}

.chart-strip span {
    display: block;
    flex: 1;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #7bb1ff 0%, #1c4ec8 100%);
}

.feature-section,
.pricing-section,
.benefits-section,
.cta-section {
    padding: 96px 0;
}

.section-heading {
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    max-width: 760px;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(17,33,65,0.06);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 18px 38px rgba(15, 36, 71, 0.05);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,27,61,0.1), rgba(33,181,115,0.12));
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(17,33,65,0.08);
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 16px 34px rgba(15,35,69,0.06);
}

.pricing-card .plan-name {
    color: var(--primary);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.pricing-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
    margin-right: 8px;
}

.pricing-card .btn {
    width: 100%;
    min-height: 48px;
}

.featured-plan {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.02);
}

.featured-plan .plan-name,
.featured-plan .plan-price,
.featured-plan li,
.featured-plan .btn {
    color: #fff;
}

.featured-plan .plan-price span,
.featured-plan li {
    color: rgba(255,255,255,0.8);
}

.featured-plan .btn {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 7px 10px;
    border-radius: 999px;
}

.benefit-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.benefit-copy h2 {
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 14px;
    font-weight: 800;
}

.benefit-copy p {
    color: var(--muted);
    max-width: 560px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.benefit-item {
    background: #fff;
    border: 1px solid rgba(17,33,65,0.08);
    border-radius: 16px;
    padding: 18px 18px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 14px 28px rgba(15,35,69,0.04);
}

.benefit-item i {
    color: var(--accent);
    margin-right: 8px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), #183e7a 85%);
    color: #fff;
    border-radius: 28px;
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-soft);
}

.cta-box h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    margin: 0;
}

.landing-footer {
    padding: 40px 0 60px;
    background: var(--primary);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
    color: #fff;
}

.landing-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.landing-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #081a35, #123b77 60%, #184889);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-shell {
    width: min(100%, 440px);
}

.auth-shell-wide {
    width: min(100%, 760px);
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(2, 11, 24, 0.25);
    padding: 30px 24px 24px;
}

.auth-card-login {
    padding-top: 28px;
}

.auth-brand {
    margin-bottom: 18px;
}

.auth-brand .brand-text {
    color: var(--primary);
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.auth-brand p {
    color: var(--muted);
    margin: 0;
    font-size: 0.92rem;
}

.auth-header-block {
    margin-bottom: 22px;
}

.auth-header-block h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.12;
    color: var(--primary);
    font-weight: 800;
}

.auth-header-block p {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-grid .full-width {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    border: 1px solid rgba(16, 34, 69, 0.12);
    background: #f5f8ff;
    border-radius: 14px;
    min-height: 52px;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus {
    border-color: rgba(20, 70, 154, 0.6);
    box-shadow: 0 0 0 4px rgba(20, 70, 154, 0.08);
    background: #fff;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.15rem;
    padding: 4px;
}

.form-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.check-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-inline a,
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.auth-footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-footer a {
    margin-left: 8px;
}

.alert {
    border-radius: 14px;
    border: none;
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.strength-meter {
    width: 100%;
    height: 8px;
    background: #ecf1f7;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 2px;
}

.strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--danger);
    transition: width .2s ease, background .2s ease;
}

.strength-text {
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .pos-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrap,
    .benefit-layout,
    .feature-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .landing-header {
        position: static;
    }

    .landing-nav {
        min-height: 72px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding-top: 42px;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hello-cs {
        display: none;
    }

    .feature-grid,
    .pricing-grid,
    .benefit-grid,
    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell,
    .auth-shell-wide {
        width: min(100%, 100%);
    }

    .auth-card {
        padding: 24px 18px 18px;
        border-radius: 22px;
    }

    .form-inline {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0;
    }

    .auth-footer {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .auth-footer a {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-meta {
        gap: 14px;
        justify-content: space-between;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions .btn,
    .auth-submit {
        width: 100%;
    }

    .pricing-card,
    .feature-card,
    .benefit-item {
        padding-left: 18px;
        padding-right: 18px;
    }
}
