/* BitInvest auth — Hiver Web3 */
body.bitinvest-auth {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: #0a0e14 url('../bitinvest/images/background/bg-9.jpg') center center / cover no-repeat fixed;
}

body.bitinvest-auth::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.92) 0%, rgba(20, 12, 5, 0.88) 50%, rgba(10, 14, 20, 0.94) 100%);
    z-index: 0;
}

.bitinvest-auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bitinvest-auth-top {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bitinvest-auth-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.bitinvest-auth-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bitinvest-auth-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.bitinvest-auth-nav__link.is-active {
    color: #fff;
    background: rgba(255, 152, 0, 0.22);
    border-color: rgba(255, 152, 0, 0.45);
}

.bitinvest-auth-nav__link--cta {
    background: linear-gradient(90deg, #ff9800, #f57c00);
    color: #fff;
    border-color: #ff9800;
}

.bitinvest-auth-nav__link--cta:hover,
.bitinvest-auth-nav__link--cta.is-active {
    background: linear-gradient(90deg, #ffb74d, #ff9800);
    color: #fff;
    border-color: #ffb74d;
}

@media (max-width: 520px) {
    .bitinvest-auth-top {
        justify-content: center;
        text-align: center;
    }

    .bitinvest-auth-nav {
        width: 100%;
        justify-content: center;
    }
}

.bitinvest-auth-top a.logo-link img {
    max-height: 64px;
    width: auto;
    max-width: 280px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.bitinvest-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 2.5rem;
}

.bitinvest-auth-shell {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.bitinvest-auth-hero {
    background: linear-gradient(160deg, #ff9800 0%, #e65100 55%, #bf360c 100%);
    padding: 2.5rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bitinvest-auth-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -80px;
    right: -80px;
}

.bitinvest-auth-hero h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.bitinvest-auth-hero p {
    font-size: 0.92rem;
    opacity: 0.92;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.auth-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.auth-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    opacity: 0.95;
}

.auth-steps .step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-steps li.is-done .step-num {
    background: #fff;
    color: #e65100;
}

.bitinvest-auth-card {
    background: #fff;
    padding: 2rem 1.75rem 1.75rem;
}

.bitinvest-auth-card .card-header {
    margin: -2rem -1.75rem 1.5rem;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    color: #fff;
    padding: 1.15rem 1.75rem;
    border: none;
}

.bitinvest-auth-card .card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bitinvest-auth-lead {
    font-size: 0.88rem;
    color: #666;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.bitinvest-auth-card .input-group-addon {
    background: #fff8f0;
    border-color: #ffe0b2;
    color: #e65100;
    min-width: 44px;
    text-align: center;
}

.bitinvest-auth .fa-solid,
.bitinvest-auth .fas {
    display: inline-block;
    line-height: 1;
}

.bitinvest-auth-card .form-control {
    height: 48px;
    border-color: #e8e8e8;
    box-shadow: none;
    font-size: 0.9rem;
}

.bitinvest-auth-card .form-control:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.15);
}

.bitinvest-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.45rem;
}

.bitinvest-wallet-row {
    display: flex;
    gap: 0.5rem;
}

.bitinvest-wallet-row .form-control {
    flex: 1;
    min-width: 0;
    background: #fafafa;
    font-family: monospace;
    font-size: 0.82rem;
    color: #222;
}

.bitinvest-wallet-row .form-control.is-connected {
    color: #1b5e20;
    background: #e8f5e9;
    border-color: #66bb6a;
    font-weight: 600;
}

.bitinvest-wallet-connected-addr {
    display: none;
    margin-top: 0.4rem;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    font-family: monospace;
    font-size: 0.76rem;
    color: #1b5e20;
    word-break: break-all;
    line-height: 1.45;
}

.bitinvest-wallet-connected-addr.is-visible {
    display: block;
}

.bitinvest-wallet-row .site-button-secondry {
    width: auto;
    min-width: 50px;
    padding: 0 16px;
}

.bitinvest-wallet-row .site-button-secondry.is-connected {
    background: #2e7d32;
    border-color: #2e7d32;
}

.bitinvest-auth-check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #555;
    margin: 0.75rem 0 1rem;
}

.bitinvest-auth-check input[type="checkbox"] {
    opacity: 1 !important;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 !important;
    accent-color: #ff9800;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.bitinvest-auth-check label {
    display: block;
    padding-left: 0 !important;
    position: static !important;
    margin: 0;
    line-height: 1.45;
    cursor: pointer;
}

.bitinvest-auth-check label::before,
.bitinvest-auth-check label::after {
    display: none !important;
    content: none !important;
}

.bitinvest-auth-check a { color: #ff9800; }

.bitinvest-auth-card .site-button-secondry {
    width: 100%;
    padding: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.bitinvest-auth-card .site-button-secondry:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.35);
}

.bitinvest-auth-card .site-button-secondry:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bitinvest-auth-card .btn-approve {
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    border-color: #0d47a1;
    color: #fff;
}

.bitinvest-auth-card .btn-approve.is-done {
    background: #2e7d32;
    border-color: #2e7d32;
}

.bitinvest-auth-links {
    text-align: center;
    margin-top: 1.15rem;
    font-size: 0.88rem;
    color: #777;
}

.bitinvest-auth-links a {
    color: #ff9800;
    font-weight: 700;
    text-decoration: none;
}

.bitinvest-auth-links a:hover { text-decoration: underline; }

.bitinvest-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.25rem;
}

.bitinvest-auth-back:hover { color: #ff9800; }

.bitinvest-wallet-status {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
}

.bitinvest-wallet-status.hidden { display: none; }
.bitinvest-wallet-status--loading { background: #fff8e1; color: #e65100; border-color: #ff9800; }
.bitinvest-wallet-status--success { background: #e8f5e9; color: #1b5e20; border-color: #43a047; }
.bitinvest-wallet-status--error { background: #ffebee; color: #b71c1c; border-color: #e53935; }
.bitinvest-wallet-status--info { background: #e3f2fd; color: #0d47a1; border-color: #1976d2; }

.bitinvest-wallet-apps {
    margin: 1rem 0 0.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.bitinvest-wallet-apps__label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
    text-align: center;
}

.bitinvest-wallet-apps__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.bitinvest-wallet-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.bitinvest-wallet-app img {
    width: 40px;
    height: 40px;
    display: block;
}

.bitinvest-wallet-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #111;
}

.bitinvest-wallet-app--metamask:hover {
    border-color: #f6851b;
    background: #fff8f0;
}

.bitinvest-wallet-app--trust:hover {
    border-color: #0500ff;
    background: #f0f0ff;
}

.bitinvest-wallet-apps__hint {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 420px) {
    .bitinvest-wallet-apps__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-spender-note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
    color: #5d4037;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.auth-spender-note strong { color: #e65100; }

.auth-progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.auth-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    border-radius: 4px;
    transition: width 0.35s ease;
}

@media (max-width: 768px) {
    .bitinvest-auth-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .bitinvest-auth-hero {
        padding: 1.5rem 1.25rem;
    }

    .bitinvest-auth-hero h2 { font-size: 1.3rem; }
    .auth-steps { display: none; }

    .bitinvest-auth-card {
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .bitinvest-auth-card .card-header {
        margin: -1.5rem -1.15rem 1.25rem;
        padding: 1rem 1.15rem;
    }
}
