:root {
    --cash-bg: #000000;
    --cash-charcoal: #121212;
    --cash-gold: #ffd700;
    --cash-amber: #ffb300;
    --cash-text: #ffffff;
    --cash-muted: #b7b7b7;
    --cash-soft: #8f8f8f;
    --cash-glass: rgba(20, 20, 20, 0.82);
    --cash-glass-strong: rgba(24, 24, 24, 0.94);
    --cash-line: rgba(255, 215, 0, 0.16);
    --cash-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

body.cashhive-theme {
    background-color: var(--cash-bg);
    color: var(--cash-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.cashhive-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 179, 0, 0.12), transparent 22%),
        rgba(0, 0, 0, 0.86);
    pointer-events: none;
    z-index: 0;
}

.cashhive-page {
    position: relative;
    z-index: 1;
}

.cashhive-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--cash-text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cashhive-logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.16));
}

.cashhive-logo-text {
    font-size: 24px;
}

.cashhive-logo-text span {
    color: var(--cash-gold);
}

.cashhive-glass {
    background: var(--cash-glass);
    border: 1px solid var(--cash-line);
    box-shadow: var(--cash-shadow);
    backdrop-filter: blur(14px);
}

.cashhive-hex-grid {
    position: absolute;
    inset: -12% -8%;
    opacity: 0.34;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='138' viewBox='0 0 160 138' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FFD700' stroke-width='1.15' opacity='0.28'%3E%3Cpath d='M40 4l36 20.5v41L40 86 4 65.5v-41z'/%3E%3Cpath d='M120 4l36 20.5v41L120 86 84 65.5v-41z'/%3E%3Cpath d='M80 52l36 20.5v41L80 134 44 113.5v-41z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 138px;
    animation: cashhive-hex-pan 26s linear infinite;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 82%);
}

@keyframes cashhive-hex-pan {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-18px, 14px, 0); }
    100% { transform: translate3d(-36px, 0, 0); }
}

.cashhive-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cashhive-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cashhive-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--cash-text);
    font-size: 18px;
    cursor: pointer;
}

.cashhive-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.cashhive-auth-card {
    width: min(100%, 540px);
    padding: 38px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cashhive-auth-card::after {
    content: '';
    position: absolute;
    inset: auto -10% 72% 42%;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.16), transparent 68%);
    pointer-events: none;
}

.cashhive-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.cashhive-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.18);
    color: var(--cash-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cashhive-auth-title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 0.98;
    font-weight: 900;
}

.cashhive-auth-copy {
    margin: 0;
    color: var(--cash-muted);
    line-height: 1.7;
}

.cashhive-auth-card .form-label,
.cashhive-auth-card .form-check-label {
    color: #ddd;
    font-weight: 600;
}

.cashhive-auth-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--cash-text);
    border-radius: 16px;
    padding: 14px 16px;
}

.cashhive-auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cash-gold);
    color: var(--cash-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.2);
}

.cashhive-auth-card .form-control::placeholder {
    color: #969696;
}

.cashhive-auth-card .btn-primary {
    background: linear-gradient(135deg, var(--cash-gold) 0%, var(--cash-amber) 100%);
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    color: #140d00;
    width: 100%;
    box-shadow: 0 10px 28px rgba(255, 179, 0, 0.22);
}

.cashhive-auth-card .btn-primary:hover,
.cashhive-auth-card .btn-primary:focus {
    color: #140d00;
    transform: translateY(-1px);
}

.cashhive-auth-links {
    display: grid;
    gap: 10px;
    text-align: center;
    margin-top: 18px;
}

.cashhive-auth-link {
    color: var(--cash-gold);
    text-decoration: none;
    font-weight: 700;
}

.cashhive-auth-link:hover {
    color: #ffe168;
    text-decoration: underline;
}

.cashhive-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--cash-muted);
    text-decoration: none;
    font-size: 14px;
}

.cashhive-home-link:hover {
    color: var(--cash-text);
}

.cashhive-auth-note {
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.14);
    background: rgba(255, 215, 0, 0.08);
    color: #f2e8be;
    padding: 12px 14px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cashhive-menu-toggle {
        display: inline-flex;
    }

    .navbar {
        position: relative;
        align-items: center;
    }

    .nav-links[data-collapsible] {
        display: none !important;
        width: 100%;
        padding: 14px;
        border-radius: 18px;
        background: rgba(12, 12, 12, 0.94);
        border: 1px solid rgba(255, 215, 0, 0.14);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    }

    body.nav-open .nav-links[data-collapsible] {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cashhive-auth-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .cashhive-auth-card .form-control,
    .cashhive-auth-card .btn-primary {
        min-height: 50px;
        font-size: 16px;
    }
}
