:root {
    --bg: #07100f;
    --panel: #0d1d1e;
    --panel-2: #10282b;
    --text: #ecfff9;
    --muted: #91aaa6;
    --green: #24f29a;
    --blue: #28b7ff;
    --gold: #f4c85b;
    --danger: #ff5c7a;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(36, 242, 154, .13), transparent 28rem),
        linear-gradient(135deg, #06100f, #09191b 55%, #0b121a);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
.text-muted { color: var(--muted) !important; }

:where(h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0;
    line-height: 1.08;
    font-weight: 850;
}

:where(p, li, td, th, label, input, select, textarea, button, .btn) {
    font-size: .94rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(255,255,255,.09);
    font-size: .9rem;
}

.table th {
    font-size: .82rem;
    font-weight: 850;
}

.table td {
    vertical-align: middle;
}

.form-control, .form-select {
    background: #0a1718;
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
    font-size: .92rem;
}
.form-control:focus, .form-select:focus {
    background: #0a1718;
    color: var(--text);
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(36, 242, 154, .12);
}
.form-label { color: #d7eee8; font-size: .88rem; font-weight: 750; }
.btn-lido {
    border: 0;
    color: #04110d;
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-weight: 800;
    font-size: .9rem;
}
.btn-lido:hover { color: #04110d; filter: brightness(1.08); }
.btn-outline-light, .btn-outline-warning { font-weight: 750; font-size: .9rem; }

.front-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(7, 16, 15, .74);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 12px;
    z-index: 5;
}
.front-brand {
    color: var(--text);
    font-size: 24px;
    font-weight: 950;
}
.front-brand span { color: var(--green); }
.front-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.front-links a {
    color: #d4e9e4;
    font-weight: 800;
}
.front-links a:hover { color: var(--green); }
.front-links .front-login {
    color: #06100f;
    background: var(--gold);
    padding: 9px 14px;
    border-radius: 8px;
}

.front-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.front-hero {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: clamp(26px, 5vw, 70px);
    padding: 56px 0 36px;
}
.front-copy h1 {
    font-size: clamp(64px, 12vw, 138px);
    line-height: .86;
    font-weight: 950;
    letter-spacing: 0;
    margin-bottom: 24px;
}
.front-copy .lead {
    color: #cfe3df;
    font-size: clamp(18px, 2.2vw, 23px);
    max-width: 720px;
}
.front-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.front-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}
.front-card-preview {
    width: min(470px, 100%);
    transform: rotate(-5deg);
}
.balance-tile {
    position: absolute;
    right: 0;
    bottom: 38px;
    width: min(260px, 75%);
    padding: 18px;
    border-radius: 8px;
    background: rgba(13, 29, 30, .94);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 50px rgba(0,0,0,.32);
}
.balance-tile span,
.balance-tile small {
    color: var(--muted);
    display: block;
}
.balance-tile strong {
    display: block;
    color: var(--green);
    font-size: 30px;
    margin: 4px 0;
}

.front-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    margin-bottom: 74px;
    background: rgba(255,255,255,.1);
}
.front-strip div {
    padding: 20px;
    background: rgba(13, 29, 30, .88);
}
.front-strip strong,
.front-strip span {
    display: block;
}
.front-strip strong { color: var(--gold); font-size: 18px; }
.front-strip span { color: var(--muted); margin-top: 4px; }

.front-section {
    padding: 28px 0 76px;
}
.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}
.section-heading h2,
.security-section h2,
.front-cta h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 920;
    letter-spacing: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-grid article {
    min-height: 255px;
    padding: 22px;
    border-radius: 8px;
    background: rgba(13, 29, 30, .9);
    border: 1px solid rgba(255,255,255,.09);
}
.feature-grid article span {
    color: var(--green);
    font-weight: 950;
}
.feature-grid article h3 {
    margin: 38px 0 12px;
    font-size: 22px;
}
.feature-grid article p,
.security-section p,
.front-cta p {
    color: #c5dad5;
}

.process-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 32px;
}
.process-list {
    display: grid;
    gap: 12px;
}
.process-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    background: rgba(16, 40, 43, .78);
    border: 1px solid rgba(255,255,255,.09);
}
.process-list b {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #06100f;
    background: var(--green);
}

.security-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}
.security-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.security-panel div {
    padding: 20px;
    min-height: 120px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(36,242,154,.12), rgba(244,200,91,.09));
    border: 1px solid rgba(255,255,255,.1);
}
.security-panel strong {
    display: block;
    color: var(--gold);
    font-size: 24px;
}
.security-panel span {
    display: block;
    color: var(--muted);
    margin-top: 10px;
}

.front-cta {
    text-align: center;
    padding: 58px 22px;
    margin: 0 0 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(36,242,154,.13), rgba(40,183,255,.11));
    border: 1px solid rgba(255,255,255,.1);
}
.front-cta p {
    max-width: 760px;
    margin: 14px auto 0;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-card, .hero-panel, .panel {
    background: rgba(13, 29, 30, .92);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    border-radius: 8px;
}
.auth-card { width: min(520px, 100%); padding: 28px; }
.hero-panel { width: min(820px, 100%); padding: clamp(28px, 6vw, 72px); }
.hero-panel h1 { font-size: clamp(56px, 11vw, 112px); line-height: .9; font-weight: 900; letter-spacing: 0; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-weight: 800; letter-spacing: .14em; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    flex: 0 0 260px;
    padding: 22px 16px;
    background: rgba(6, 18, 18, .98);
    border-right: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(36,242,154,.55) rgba(255,255,255,.04);
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.sidebar::-webkit-scrollbar-thumb { background: rgba(36,242,154,.5); border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(36,242,154,.78); }
.brand { font-weight: 900; font-size: 24px; margin: 4px 10px 22px; }
.brand span { color: var(--green); }
.sidebar a {
    display: block;
    color: #cfe4df;
    padding: 11px 12px;
    margin: 4px 0;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 750;
}
.sidebar a:hover { background: rgba(36,242,154,.11); color: #fff; }
.content { flex: 1; padding: 28px; max-width: 100%; }
.panel { padding: 22px; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 16px; }
.stat {
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(36,242,154,.12), rgba(40,183,255,.08));
    border: 1px solid rgba(255,255,255,.08);
}
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 26px; margin-top: 6px; }

.atm-card {
    width: min(420px, 100%);
    aspect-ratio: 1.58;
    padding: 24px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(36,242,154,.9), rgba(40,183,255,.75) 45%, rgba(244,200,91,.9)),
        linear-gradient(45deg, #14342d, #061214);
    color: #061214;
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.atm-top { display: flex; justify-content: space-between; font-weight: 900; }
.chip { width: 48px; height: 36px; border-radius: 8px; background: rgba(244,200,91,.9); border: 2px solid rgba(0,0,0,.25); }
.card-number { font-size: clamp(20px, 5vw, 28px); letter-spacing: .12em; font-weight: 900; }
.atm-meta { display: flex; justify-content: space-between; gap: 18px; font-weight: 800; }

.thumb {
    max-width: 110px;
    max-height: 110px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
}

@media (max-width: 900px) {
    .layout { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .brand { grid-column: 1 / -1; }
    .content { padding: 18px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .front-nav { position: static; }
    .front-hero,
    .process-section,
    .security-section {
        grid-template-columns: 1fr;
    }
    .front-hero {
        min-height: auto;
        padding-top: 44px;
    }
    .front-strip,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sidebar { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .auth-card, .panel { padding: 18px; }
    .front-nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .front-links {
        gap: 12px;
    }
    .front-strip,
    .feature-grid,
    .security-panel {
        grid-template-columns: 1fr;
    }
    .front-visual {
        min-height: 330px;
    }
    .balance-tile {
        left: 18px;
        right: auto;
        bottom: 0;
    }
}
