* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1e293b;
    background: #f6f8fb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #123c69;
    color: #ffffff;
    font-weight: 800;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header nav a {
    text-decoration: none;
    font-weight: 700;
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.primary,
.nav-button {
    background: #0f8b8d;
    color: #ffffff;
}

.secondary {
    background: #e7f5f5;
    color: #0b6668;
}

.full {
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
    gap: 36px;
    align-items: center;
    min-height: 620px;
    padding: 72px clamp(18px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(18, 60, 105, 0.92), rgba(15, 139, 141, 0.84)),
        url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 10px;
    color: #f4b942;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero h1,
.dashboard-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.hero-text {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
}

.features,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 42px clamp(18px, 5vw, 72px);
}

.features article,
.dashboard-card,
.auth-card {
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 60, 105, 0.08);
}

.features article,
.dashboard-card {
    padding: 24px;
}

.features h2,
.dashboard-card h2 {
    margin-top: 0;
    color: #123c69;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 72vh;
    padding: 42px 18px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 30px;
}

.auth-card h1 {
    margin: 0 0 8px;
    color: #123c69;
}

.auth-card form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-card label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.auth-card input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.auth-card small,
.auth-card .errorlist {
    color: #64748b;
    font-size: 0.82rem;
}

.errorlist {
    margin: 0;
    padding-left: 18px;
    color: #b42318;
}

.auth-link {
    margin-bottom: 0;
    text-align: center;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 56px clamp(18px, 5vw, 72px);
    background: #123c69;
    color: #ffffff;
}

.dashboard-hero p:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.record-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.record-list li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.record-list span {
    color: #64748b;
}

.messages {
    padding: 12px clamp(18px, 5vw, 72px);
    background: #e7f5f5;
    color: #0b6668;
    font-weight: 800;
}

.messages p {
    margin: 0;
}

.site-footer {
    padding: 28px clamp(18px, 5vw, 72px);
    color: #64748b;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 78px);
}

.app-sidebar {
    padding: 24px;
    background: #0f2f4f;
    color: #ffffff;
}

.level-card {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.level-card strong {
    font-size: 2rem;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-weight: 800;
}

.side-nav a.active,
.side-nav a:hover {
    background: #0f8b8d;
    color: #ffffff;
}

.app-main {
    padding: 28px clamp(18px, 4vw, 48px);
}

.app-title-row,
.panel-head,
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #ffffff;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #123c69;
    color: #ffffff;
    font-weight: 900;
}

.profile-chip small {
    display: block;
    color: #64748b;
}

.wallet-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 24px 0;
    padding: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #123c69, #0f8b8d);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(18, 60, 105, 0.18);
}

.wallet-card span,
.wallet-card small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.wallet-card strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.promo-grid,
.service-grid,
.status-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.promo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-grid article {
    min-height: 90px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f4b942;
    color: #123c69;
    font-weight: 900;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid a,
.status-grid article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #ffffff;
    color: #123c69;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(18, 60, 105, 0.07);
}

.service-grid small,
.service-grid span,
.status-grid span,
.status-grid a {
    display: block;
    margin-top: 6px;
    color: #0f8b8d;
    font-size: 0.82rem;
}

.status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-grid strong {
    display: block;
    margin-top: 6px;
    color: #123c69;
    font-size: 1.35rem;
}

.transactions-panel {
    padding: 22px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 60, 105, 0.08);
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head h2,
.panel-head p {
    margin: 0;
}

.panel-head p {
    color: #64748b;
}

.panel-head a {
    color: #0f8b8d;
    font-weight: 900;
}

.transaction-table {
    display: grid;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 1fr 1fr 0.8fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.table-head {
    background: #eef4f8;
    color: #123c69;
    font-weight: 900;
}

.table-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.credit {
    color: #148f4f;
    font-weight: 900;
}

.debit {
    color: #b42318;
    font-weight: 900;
}

mark {
    padding: 5px 9px;
    border-radius: 999px;
    background: #e5f7ed;
    color: #148f4f;
    font-weight: 900;
}

.pagination-row {
    margin-top: 16px;
}

.pagination-row button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe5ef;
    border-radius: 6px;
    background: #ffffff;
    color: #123c69;
    font-weight: 800;
}

.content-page {
    padding: 42px clamp(18px, 5vw, 72px);
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    color: #123c69;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.dashboard-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 20px;
}

.big-status {
    color: #123c69;
    font-size: 2rem;
    font-weight: 900;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.stack-form input,
.stack-form select {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .features,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
    }

    .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-title-row,
    .wallet-card,
    .panel-head,
    .pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .promo-grid,
    .service-grid,
    .status-grid,
    .dashboard-grid.two {
        grid-template-columns: 1fr;
    }

    .table-row {
        grid-template-columns: 1fr;
    }
}

.console {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
    background: #eef3f8;
}

.console-sidebar {
    padding: 22px;
    background: #071a2f;
    color: #ffffff;
}

.console-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 24px;
}

.console-brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #16a1a3;
    font-weight: 900;
}

.user-level {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22, 161, 163, 0.22), rgba(244, 185, 66, 0.14));
    margin-bottom: 20px;
}

.user-level small,
.user-level span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.user-level strong {
    display: block;
    margin: 5px 0;
    font-size: 2.4rem;
}

.console-nav {
    display: grid;
    gap: 6px;
}

.console-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 800;
}

.console-nav a.active,
.console-nav a:hover {
    background: #16a1a3;
    color: #ffffff;
}

.console-main {
    padding: 30px clamp(18px, 4vw, 52px);
}

.console-topbar,
.table-title,
.table-footer,
.wallet-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-kicker {
    margin: 0 0 7px;
    color: #16a1a3;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.console-topbar h1,
.flow-heading h1,
.wallet-hero h1 {
    margin: 0;
    color: #071a2f;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
    padding: 12px;
    border: 1px solid #d8e4ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 26, 47, 0.08);
}

.account-pill span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #071a2f;
    color: #ffffff;
    font-weight: 900;
}

.account-pill small {
    display: block;
    color: #64748b;
}

.balance-panel,
.wallet-hero {
    margin: 26px 0;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(7, 26, 47, 0.96), rgba(13, 96, 112, 0.92)),
        url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(7, 26, 47, 0.22);
}

.balance-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.balance-panel span,
.balance-panel small,
.wallet-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.balance-panel strong,
.wallet-hero h1 {
    display: block;
    margin: 6px 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.solid-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #16a1a3;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.quick-actions,
.verification-strip,
.feature-panels,
.wallet-actions {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-actions a,
.verification-strip article,
.feature-panels article {
    min-height: 120px;
    padding: 20px;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    background: #ffffff;
    color: #071a2f;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(7, 26, 47, 0.07);
}

.quick-actions strong,
.verification-strip strong {
    display: block;
    font-size: 1.12rem;
}

.quick-actions span,
.verification-strip span,
.verification-strip a,
.feature-panels p {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

.verification-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verification-strip a {
    color: #16a1a3;
    font-weight: 900;
}

.table-card,
.flow-page .transactions-panel {
    padding: 22px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 26, 47, 0.07);
}

.table-title {
    margin-bottom: 16px;
}

.table-title h2 {
    margin: 0;
    color: #071a2f;
}

.table-title a {
    color: #16a1a3;
    font-weight: 900;
}

.responsive-table {
    display: grid;
    gap: 8px;
}

.transaction-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.6fr) 1fr 1fr 0.8fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.transaction-head {
    background: #eaf1f7;
    color: #071a2f;
    font-weight: 900;
}

.transaction-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.positive {
    color: #12824c;
    font-weight: 900;
}

.negative {
    color: #b42318;
    font-weight: 900;
}

mark {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e5f8ef;
    color: #12824c;
    font-weight: 900;
}

.table-footer {
    margin-top: 14px;
}

.table-footer button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    background: #ffffff;
    color: #071a2f;
    font-weight: 800;
}

.flow-page {
    min-height: 72vh;
    padding: 52px clamp(18px, 5vw, 72px);
    background: #eef3f8;
}

.flow-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.flow-heading p:last-child {
    color: #64748b;
    font-size: 1.08rem;
    line-height: 1.7;
}

.flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 22px;
    align-items: start;
}

.pro-form,
.trust-panel,
.result-card,
.leaderboard {
    padding: 24px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 26, 47, 0.07);
}

.pro-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pro-form.narrow {
    max-width: 720px;
}

.pro-form label,
.stack-form label {
    display: grid;
    gap: 7px;
    color: #071a2f;
    font-weight: 900;
}

.pro-form input,
.pro-form select,
.pro-form textarea,
.stack-form input,
.stack-form select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cbd8e4;
    border-radius: 10px;
    background: #fbfdff;
    color: #071a2f;
}

.wide {
    grid-column: 1 / -1;
}

.trust-panel h2 {
    margin-top: 0;
    color: #071a2f;
}

.trust-panel li {
    margin-bottom: 10px;
}

.result-card {
    max-width: 720px;
    margin-top: 18px;
    color: #071a2f;
    font-size: 1.3rem;
}

.feature-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leaderboard {
    display: grid;
    gap: 12px;
    max-width: 820px;
}

.leaderboard div {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.leaderboard span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #16a1a3;
    color: #ffffff;
    font-weight: 900;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-tabs span {
    color: #64748b;
    font-weight: 900;
}

.filter-tabs a {
    padding: 10px 14px;
    border: 1px solid #cbd8e4;
    border-radius: 999px;
    background: #ffffff;
    color: #071a2f;
    text-decoration: none;
    font-weight: 900;
}

.rate-list {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(7, 26, 47, 0.07);
}

.rate-list h2 {
    margin: 0 0 6px;
    color: #071a2f;
}

.rate-list article {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.rate-list span {
    color: #64748b;
}

.rate-list b {
    color: #16a1a3;
    font-size: 1.15rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px dashed #b8c8d8;
    border-radius: 14px;
    background: #fbfdff;
    text-align: center;
}

.empty-state strong {
    display: block;
    color: #071a2f;
    font-size: 1.2rem;
}

.empty-state p {
    color: #64748b;
}

@media (max-width: 940px) {
    .console,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        position: static;
    }

    .console-nav,
    .quick-actions,
    .verification-strip,
    .feature-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .balance-panel,
    .console-topbar,
    .table-title,
    .table-footer,
    .wallet-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .transaction-row,
    .pro-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .console-nav,
    .quick-actions,
    .verification-strip,
    .feature-panels {
        grid-template-columns: 1fr;
    }
}
