/* ── Base ── */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.balance-card {
    border-left: 4px solid #0d6efd;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.copy-btn {
    cursor: pointer;
}

/* ── Transaction type colors ── */
.tx-type-api_usage      { color: #dc3545; }
.tx-type-admin_topup    { color: #198754; }
.tx-type-crypto_deposit { color: #198754; }
.tx-type-manual_topup   { color: #198754; }

/* ── Footer ── */
.portal-footer {
    margin-top: 3rem;
    padding: 1rem 0;
    background: #e9ecef;
    border-top: 2px solid #ced4da;
    font-size: .78rem;
    color: #6c757d;
    text-align: center;
}

/* ── Docs ── */
#docs-view pre {
    margin-bottom: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

#docs-view .card-header {
    background: #f8f9fa;
    font-size: .9rem;
}

#codeTabs .nav-link,
#embedTabs .nav-link {
    font-size: .85rem;
    padding: .3rem .75rem;
}

/* ════════════════════════════════
   LANDING PAGE
════════════════════════════════ */

/* Navbar */
.landing-nav {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #0d6efd;
}

/* Hero */
.landing-hero {
    padding: 2.5rem 0 1.5rem;
}

.landing-headline {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .landing-headline { font-size: 1.8rem; }
}

.landing-sub {
    font-size: 1.05rem;
    color: #495057;
    max-width: 540px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Feature cards */
.landing-feature {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    height: 100%;
    transition: box-shadow .15s;
}

.landing-feature:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.landing-feature-icon {
    font-size: 1.4rem;
    margin-bottom: .4rem;
}

/* How it works steps */
.landing-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.landing-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Auth card sticky on desktop */
.landing-auth-wrap {
    position: sticky;
    top: 80px;
}

/* ── Language switcher ── */
.lang-switcher {
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: 1px solid #ced4da;
    color: #6c757d;
    padding: 2px 7px;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: .04em;
    line-height: 1.5;
    transition: all .15s;
}

.lang-btn:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
}

.lang-btn.active {
    background: #0d6efd;
    color: #fff !important;
    border-color: #0d6efd;
}

/* Dark variant (dashboard navbar bg-primary) */
.lang-switcher-dark .lang-btn {
    border-color: rgba(255,255,255,.35);
    color: rgba(255,255,255,.75);
}

.lang-switcher-dark .lang-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.6);
}

.lang-switcher-dark .lang-btn.active {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.8);
    color: #fff !important;
}

/* Landing footer */
.landing-footer {
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    padding: .75rem 0;
    font-size: .78rem;
    color: #6c757d;
}
