/* TrustBitTrade Master Design System - 100% Pixel-Perfect Security, Withdrawal, KYC, Support & Admin Live Chat System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #07090E;
    --bg-card: #0E121B;
    --bg-card-hover: #131A29;
    --bg-input: #121724;
    --border-color: #1A2336;
    --border-bright: #243048;
    
    --primary-cyan: #00E5FF;
    --primary-cyan-glow: rgba(0, 229, 255, 0.45);
    
    --accent-green: #00E676;
    --accent-red: #FF5252;
    --accent-orange: #FF6D00;
    --accent-gold: #F59E0B;
    --accent-orange-glow: rgba(255, 109, 0, 0.45);
    --accent-purple: #7C4DFF;
    --accent-pink: #EC4899;
    --accent-indigo: #6366F1;
    --accent-blue: #2979FF;
    
    --text-main: #FFFFFF;
    --text-muted: #6B7B95;
    
    --shadow-cyan: 0 0 24px rgba(0, 229, 255, 0.5);
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Utility Colors */
.text-cyan { color: var(--primary-cyan); }
.text-cyan-glow { color: var(--primary-cyan); text-shadow: 0 0 16px var(--primary-cyan-glow); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-orange { color: var(--accent-orange); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }

/* 21ST & 22ND SCREENSHOT ADMIN LIVE CHATS PANEL & THREAD (100% REPLICA) */
.admin-chat-layout {
    display: flex; flex-direction: column; height: 100vh; background: #07090E;
}

.admin-chat-top-bar {
    height: 56px; background: #0A0E17; border-bottom: 1px solid #161F30; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
}
.admin-chat-top-title {
    font-size: 1.15rem; font-weight: 800; color: #FFF; display: flex; align-items: center; gap: 10px;
}
.admin-chat-top-title i { color: #F59E0B; font-size: 1.2rem; }
.back-portal-link {
    color: #6B7B95; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: var(--transition);
}
.back-portal-link:hover { color: #00E5FF; }

.admin-chat-main-grid {
    display: flex; flex: 1; overflow: hidden;
}

/* Left Message List Sidebar */
.admin-chat-msg-sidebar {
    width: 320px; background: #080C14; border-right: 1px solid #141C2D; display: flex; flex-direction: column;
}
.msg-sidebar-header {
    font-size: 0.68rem; font-weight: 800; color: #5C6B82; text-transform: uppercase; letter-spacing: 1px;
    padding: 16px 20px 10px; border-bottom: 1px solid #121929;
}

.chat-user-item-row {
    padding: 14px 20px; border-bottom: 1px solid #101624; cursor: pointer; transition: var(--transition);
}
.chat-user-item-row:hover, .chat-user-item-row.active {
    background: #111827; border-left: 3px solid #F59E0B;
}
.user-item-top {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.user-item-name { font-weight: 800; font-size: 0.9rem; color: #FFF; }
.user-item-time { font-size: 0.72rem; color: #5C6B82; font-weight: 500; }
.user-item-snippet {
    font-size: 0.78rem; color: #6B7B95; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Right Chat Display Area */
.admin-chat-display-area {
    flex: 1; background: #07090E; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;
}

.empty-chat-placeholder {
    text-align: center; color: #5C6B82;
}
.empty-chat-icon { font-size: 2.5rem; margin-bottom: 12px; color: #202C44; }
.empty-chat-text { font-size: 0.9rem; font-weight: 600; }

/* Active Chat Thread Window (22nd Screenshot Exact Match) */
.active-admin-chat-window {
    width: 100%; height: 100%; display: none; flex-direction: column; background: #07090E;
}
.active-admin-chat-window.active { display: flex; }

.active-chat-header {
    padding: 14px 24px; background: #0A0E17; border-bottom: 1px solid #141C2D; display: flex; justify-content: space-between; align-items: center;
}
.active-chat-user-group { display: flex; align-items: center; gap: 10px; }
.active-user-avatar-cloud {
    width: 32px; height: 32px; background: #00E676; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: 900; font-size: 0.85rem;
}

.active-chat-body {
    flex: 1; overflow-y: auto; padding: 24px 32px; display: flex; flex-direction: column; gap: 18px; background: #07090E;
}

/* Message Bubble with Timestamp Below (Exact 22nd Screenshot) */
.chat-msg-wrapper {
    display: flex; flex-direction: column; max-width: 65%;
}
.chat-msg-wrapper.user-msg { align-self: flex-start; }
.chat-msg-wrapper.admin-msg { align-self: flex-end; align-items: flex-end; }

.chat-bubble-exact {
    padding: 12px 20px; border-radius: 20px; font-size: 0.88rem; font-weight: 600; line-height: 1.4;
}
.user-msg .chat-bubble-exact {
    background: #1D263B; color: #FFF; border-bottom-left-radius: 4px;
}
.admin-msg .chat-bubble-exact {
    background: #F59E0B; color: #000; font-weight: 700; border-bottom-right-radius: 4px;
}

.msg-timestamp-sub {
    font-size: 0.65rem; color: #5C6B82; font-weight: 600; margin-top: 4px; padding: 0 4px;
}

/* 22nd Screenshot Full-Width Gold Pill Input Bar */
.active-chat-footer-gold {
    padding: 16px 24px 20px; background: #07090E; display: flex; gap: 12px; align-items: center;
}
.chat-pill-input-box {
    flex: 1; background: #0B0F19; border: 1px solid #F59E0B; border-radius: 30px;
    padding: 12px 20px 12px 45px; color: #FFF; font-size: 0.88rem; outline: none; position: relative;
}
.input-left-mic-btn {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #5C6B82; font-size: 1rem; cursor: pointer;
}

.btn-send-gold-circle {
    width: 44px; height: 44px; background: #F59E0B; border: none; border-radius: 50%;
    color: #000; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); transition: var(--transition);
}
.btn-send-gold-circle:hover { transform: scale(1.05); background: #FFB300; }

/* Shared Site Shell */
body {
    padding-bottom: 86px;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
}

.nav-content {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.logo-badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
    color: #020617;
    box-shadow: var(--shadow-cyan);
}

.logo-cyan {
    color: var(--primary-cyan);
}

.logo-white {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.form-group,
.form-group-exact {
    margin-bottom: 16px;
}

.form-label-exact {
    display: block;
    margin-bottom: 7px;
    color: #8A99AD;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-input-exact,
.form-input-exact,
.form-control,
.security-input-field,
.sheet-input-quantity,
.lang-select-dropdown {
    width: 100%;
    min-height: 46px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    color: #fff;
    outline: none;
    padding: 12px 15px;
    transition: var(--transition);
}

.auth-input-exact:focus,
.form-input-exact:focus,
.form-control:focus,
.security-input-field:focus,
.sheet-input-quantity:focus,
.lang-select-dropdown:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.btn-cyan,
.btn-outline,
.btn-signup-exact,
.btn-login-submit,
.btn-update-security-orange {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cyan,
.btn-signup-exact {
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    color: #020617;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
}

.btn-cyan:hover,
.btn-signup-exact:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.45);
}

.email-row-group,
.email-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.btn-send-code {
    background: #192338;
    border: 1px solid #243454;
    color: #00E5FF;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0 16px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send-code:hover {
    background: #00E5FF;
    color: #000;
}

.auth-footer-text,
.login-footer-text {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: #6B7B95;
}

.auth-footer-text a,
.login-footer-text a {
    color: #00E5FF;
    text-decoration: none;
    font-weight: 700;
}

.btn-outline {
    min-height: 46px;
    padding: 12px 18px;
    background: transparent;
    border: 1px solid var(--border-bright);
    color: #D0D7E3;
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.close-modal {
    background: transparent;
    border: 0;
    color: #8A99AD;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

/* Home / Markets */
.hero-exact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
    gap: 36px;
    align-items: center;
    margin: 34px 0 40px;
    padding: 48px;
    background: radial-gradient(circle at 82% 18%, rgba(255, 179, 0, 0.12), transparent 32%),
        linear-gradient(135deg, #0A0E17, #0E1524);
    border: 1px solid #141C2D;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.hero-title-exact {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(2.35rem, 6vw, 4rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-sub-exact {
    max-width: 520px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.65;
}

.btn-pill-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 34px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    border: 0;
    border-radius: var(--radius-full);
    color: #020617;
    cursor: pointer;
    font-weight: 950;
    text-decoration: none;
    box-shadow: var(--shadow-cyan);
    transition: var(--transition);
}

.btn-pill-cyan:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.7);
}

.hero-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 14px;
    row-gap: 0;
    margin-bottom: 20px;
}

.hero-title-row .hero-title-exact {
    margin-bottom: 0;
    min-width: 0;
}

.hero-trade-timer {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    flex-shrink: 0;
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(41, 121, 255, 0.18));
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
    text-align: center;
}

.hero-trade-timer-label {
    color: #8FDFFF;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.hero-trade-timer-value {
    margin: 6px 0 2px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hero-trade-timer-sub {
    color: #6B7B95;
    font-size: 0.68rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .hero-title-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hero-trade-timer {
        min-width: 112px;
        padding: 10px 12px;
    }

    .hero-trade-timer-value {
        font-size: 1.35rem;
    }

    .hero-title-row .hero-title-exact {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
}

.btc-gold-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btc-gold-svg {
    width: min(100%, 330px);
    filter: drop-shadow(0 18px 34px rgba(255, 179, 0, 0.35));
}

.live-trends-section {
    margin-bottom: 34px;
}

.live-trends-title {
    margin-bottom: 22px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 950;
}

.live-trends-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.trend-card-exact {
    display: block;
    min-height: 152px;
    padding: 22px;
    background: #0A0E17;
    border: 1px solid #141C2D;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.trend-card-exact:hover {
    background: #111827;
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
}

.trend-coin-header,
.live-market-left,
.record-coin-group {
    display: flex;
    align-items: center;
    gap: 13px;
}

.trend-coin-header {
    margin-bottom: 20px;
}

.trend-coin-icon,
.live-market-icon,
.record-coin-icon,
.coin-dot {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.trend-coin-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.35rem;
}

.trend-coin-name,
.live-coin-title,
.record-pair-title {
    color: #fff;
    font-weight: 900;
}

.trend-coin-symbol,
.live-coin-sub,
.record-sub-date {
    color: #5C6B82;
    font-size: 0.78rem;
    font-weight: 700;
}

.trend-price-container,
.live-market-item,
.card-top-row,
.assets-balance-val-row,
.menu-item-row,
.account-detail-field,
.record-header-row,
.history-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.trend-coin-price {
    font-size: 1.3rem;
    font-weight: 950;
}

.trend-coin-change {
    font-size: 0.86rem;
    font-weight: 900;
}

.trend-coin-change.positive,
.profit {
    color: var(--accent-green);
}

.trend-coin-change.negative,
.loss,
.record-pct-badge.negative {
    color: var(--accent-red);
}

/* Trade Terminal */
.trade-terminal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 14px;
}

.coin-pills-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
}

.coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 14px;
    background: #0A0E17;
    border: 1px solid #141C2D;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.coin-pill.active,
.coin-pill:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.45);
    color: var(--primary-cyan);
}

.coin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.78rem;
}

.top-right-balance-badge,
.tf-row-exact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-right-balance-badge {
    min-height: 34px;
    padding: 7px 14px;
    background: #0D131F;
    border: 1px solid #1A2438;
    border-radius: 999px;
    color: var(--accent-green);
    font-size: 0.82rem;
    font-weight: 900;
}

.tf-btn-exact {
    padding: 6px 12px;
    background: #0A0E17;
    border: 1px solid #141C2D;
    border-radius: 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.tf-btn-exact.active,
.tf-btn-exact:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.45);
    color: var(--primary-cyan);
}

.chart-window-exact {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: #07090E;
    border: 1px solid #141C2D;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.chart-window-exact canvas {
    display: block;
    min-height: 420px;
}

.chart-overlay-info {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    pointer-events: none;
}

.live-price-big {
    color: #E91E63;
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    font-weight: 950;
    text-shadow: 0 0 22px rgba(233, 30, 99, 0.45);
}

.live-price-sub {
    margin-bottom: 8px;
    color: var(--accent-red);
    font-size: 0.86rem;
    font-weight: 800;
}

.ohlc-info-row,
.ma-badges-row {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.btn-contract-fullwidth {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary-cyan), #00B0FF);
    border: 0;
    border-radius: 15px;
    color: #020617;
    cursor: pointer;
    font-weight: 950;
    box-shadow: var(--shadow-cyan);
    transition: var(--transition);
}

.btn-contract-fullwidth:hover {
    transform: translateY(-2px);
}

.contract-bottom-sheet-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(9px);
}

.contract-bottom-sheet-overlay.active,
.modal-overlay.active {
    display: flex;
}

.contract-bottom-sheet-overlay {
    align-items: flex-end;
}

.contract-sheet-card,
.auth-card-exact,
.security-profile-card {
    position: relative;
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #0A0E17;
    border: 1px solid #1A2438;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.contract-sheet-card {
    border-radius: 28px 28px 0 0;
}

.sheet-handle-bar {
    width: 48px;
    height: 5px;
    margin: 0 auto 20px;
    border-radius: 999px;
    background: #263247;
}

.sheet-title-text {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
}

.sheet-sub-text {
    margin: 18px 0 10px;
    color: #6B7B95;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.leverage-track-container {
    position: relative;
    margin: 14px 0 24px;
    padding: 22px 16px 14px;
    background: #101725;
    border: 1px solid #1A2438;
    border-radius: 16px;
    user-select: none;
    touch-action: none;
}

.leverage-track-rail {
    position: relative;
    height: 36px;
    margin: 0 4px 4px;
}

.leverage-track-rail::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #1F293D;
}

.leverage-track-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #00B0FF, var(--primary-cyan));
    pointer-events: none;
}

.leverage-slider-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-cyan);
    color: #020617;
    box-shadow: var(--shadow-cyan);
    cursor: grab;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.15s ease;
}

.leverage-slider-thumb:active,
.leverage-slider-thumb.is-dragging {
    cursor: grabbing;
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.7);
}

.leverage-ticks-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
    color: #8A99AD;
    font-size: 0.72rem;
    font-weight: 800;
}

.leverage-ticks-row span.active-tick {
    color: var(--primary-cyan);
}

.sheet-duration-grid,
.sheet-amount-grid {
    display: grid;
    gap: 10px;
}

.sheet-duration-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sheet-amount-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sheet-btn-duration,
.sheet-btn-amount {
    min-height: 42px;
    background: #111724;
    border: 1px solid #1A2438;
    border-radius: 11px;
    color: #D0D7E3;
    cursor: pointer;
    font-weight: 850;
}

.sheet-btn-duration.active,
.sheet-btn-amount.active,
.sheet-btn-duration:hover,
.sheet-btn-amount:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
}

.btn-sheet-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    background: var(--accent-green);
    border: 0;
    border-radius: 13px;
    color: #02140A;
    cursor: pointer;
    font-weight: 950;
}

/* Assets / Settings */
.assets-digital-card,
.quick-actions-card,
.live-market-card,
.menu-settings-card,
.history-stat-card,
.trade-record-card {
    background: #0A0E17;
    border: 1px solid #141C2D;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.35);
}

.assets-digital-card {
    position: relative;
    overflow: hidden;
    margin: 30px 0 24px;
    padding: 30px;
    border-radius: 26px;
    background: radial-gradient(circle at 88% 10%, rgba(0, 229, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #0B101D, #151D30);
}

.gold-chip-icon {
    width: 42px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFE082, #F59E0B);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.32);
}

.card-brand-logo {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
}

.card-brand-logo span {
    color: var(--primary-cyan);
}

.user-holder-name {
    margin: 22px 0 18px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.assets-label-muted {
    margin-bottom: 5px;
    color: #5C6B82;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.assets-balance-val,
.credit-amount-val {
    color: var(--accent-green);
    font-size: clamp(1.85rem, 6vw, 2.7rem);
    font-weight: 950;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
}

.eye-toggle-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #243048;
    border-radius: 50%;
    color: #8A99AD;
    cursor: pointer;
}

.track-id-digits {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: 0.18em;
}

.card-divider-line {
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, transparent, #243048, transparent);
}

.quick-actions-card,
.live-market-card,
.menu-settings-card {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
}

.quick-actions-title,
.live-market-card-title,
.menu-settings-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
}

.green-accent-bar {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.55);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.btn-action-gradient {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 15px 10px;
    border: 1px solid #1A2438;
    border-radius: 17px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-action-gradient i {
    font-size: 1.3rem;
}

.btn-action-gradient:hover {
    transform: translateY(-2px);
    border-color: var(--primary-cyan);
}

.btn-action-deposit { background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 229, 255, 0.08)); }
.btn-action-withdraw { background: linear-gradient(135deg, rgba(255, 82, 82, 0.18), rgba(255, 109, 0, 0.08)); }
.btn-action-transfer { background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(0, 229, 255, 0.08)); }
.btn-action-trade { background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(41, 121, 255, 0.08)); }

.live-market-item {
    padding: 15px 0;
    border-top: 1px solid #121929;
}

.live-market-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.live-market-right {
    text-align: right;
}

.live-coin-price-val {
    color: #fff;
    font-weight: 950;
}

.live-coin-pct-sub {
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 900;
}

.menu-item-row {
    padding: 15px 8px;
    border-top: 1px solid #121929;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.menu-item-row:hover {
    background: #111827;
    border-radius: 12px;
    padding-left: 14px;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
}

.menu-item-icon {
    width: 22px;
    color: var(--primary-cyan);
}

.red-icon {
    color: var(--accent-red);
}

.menu-item-right {
    color: #5C6B82;
}

.kyc-not-verified-badge,
.tag-long-green,
.record-pct-badge,
.pill-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
}

.kyc-not-verified-badge {
    padding: 4px 9px;
    background: rgba(255, 82, 82, 0.14);
    border: 1px solid rgba(255, 82, 82, 0.35);
    color: var(--accent-red);
}

.lang-select-dropdown {
    min-height: 36px;
    padding: 7px 30px 7px 10px;
    color: #D0D7E3;
}

.security-profile-card {
    max-width: 430px;
}

.profile-top-shield {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.14);
    color: var(--accent-gold);
    font-size: 1.55rem;
}

.profile-main-title,
.auth-modal-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 950;
    text-align: center;
}

.profile-sub-title {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: center;
}

.section-divider-title {
    margin: 18px 0 10px;
    color: #5C6B82;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.account-detail-field {
    padding: 12px 0;
    border-bottom: 1px solid #141C2D;
}

.detail-field-left {
    color: #8A99AD;
    font-size: 0.84rem;
    font-weight: 800;
}

.detail-field-right {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: right;
}

.update-security-input-box {
    position: relative;
    margin-bottom: 14px;
}

.update-security-input-box .security-input-field {
    padding-left: 42px;
    padding-right: 42px;
}

.input-left-icon,
.input-right-eye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #5C6B82;
}

.input-left-icon {
    left: 14px;
}

.input-right-eye {
    right: 14px;
}

.btn-update-security-orange {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    color: #020617;
}

/* History */
.history-top-header {
    position: relative;
    justify-content: center;
    margin: 28px 0 24px;
}

.back-arrow-btn {
    position: absolute;
    left: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #0A0E17;
    border: 1px solid #141C2D;
    border-radius: 50%;
    color: #D0D7E3;
    text-decoration: none;
}

.history-page-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 950;
}

.history-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.history-stat-card {
    padding: 20px;
    border-radius: 17px;
}

.history-stat-card.cyan-border { border-color: rgba(0, 229, 255, 0.35); }
.history-stat-card.green-border { border-color: rgba(0, 230, 118, 0.35); }
.history-stat-card.red-border { border-color: rgba(255, 82, 82, 0.35); }
.history-stat-card.purple-border { border-color: rgba(124, 77, 255, 0.35); }

.history-stat-label,
.record-field-label {
    margin-bottom: 6px;
    color: #5C6B82;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.history-stat-value {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
}

.history-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    overflow-x: auto;
}

.history-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: #0A0E17;
    border: 1px solid #141C2D;
    border-radius: 999px;
    color: #8A99AD;
    font-weight: 900;
}

.history-filter-pill.active {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.pill-count-badge {
    padding: 2px 7px;
    background: #151D30;
    color: #fff;
}

.trade-record-card {
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 20px;
}

.record-header-row {
    margin-bottom: 18px;
    align-items: flex-start;
}

.record-coin-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #FF9800;
    color: #fff;
}

.tag-long-green {
    padding: 4px 9px;
    background: rgba(0, 230, 118, 0.13);
    color: var(--accent-green);
}

.record-pct-badge {
    padding: 8px 12px;
    background: rgba(0, 230, 118, 0.13);
    color: var(--accent-green);
}

.record-body-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.record-field-val {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 900;
}

.record-arrow-col {
    color: #5C6B82;
}

/* Floating Navigation & Chat */
.floating-bottom-dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: min(92vw, 440px);
    padding: 10px;
    background: rgba(10, 14, 23, 0.96);
    border: 1px solid #1A2438;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 5px;
    border-radius: 16px;
    color: #5C6B82;
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
    transition: var(--transition);
}

.dock-item i {
    font-size: 1.05rem;
}

.dock-item.active,
.dock-item:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
}

.chat-floating-badge,
.floating-red-support {
    position: fixed;
    right: 22px;
    bottom: 94px;
    z-index: 930;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 0 24px rgba(255, 82, 82, 0.45);
}

.chat-floating-badge {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-blue));
    color: #020617;
    box-shadow: var(--shadow-cyan);
}

.floating-red-support {
    background: var(--accent-red);
}

.chat-modal-window {
    position: fixed;
    right: 22px;
    bottom: 158px;
    z-index: 940;
    display: none;
    width: min(92vw, 360px);
    height: 460px;
    overflow: hidden;
    background: #0A0E17;
    border: 1px solid #1A2438;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.62);
}

.chat-modal-window.active {
    display: block;
}

.chat-window-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #0D131F;
    border-bottom: 1px solid #1A2438;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat-input-row {
    display: flex;
    gap: 9px;
    padding: 14px;
    border-top: 1px solid #1A2438;
}

/* Responsive Fixes */
@media (max-width: 980px) {
    .live-trends-grid,
    .history-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-exact {
        grid-template-columns: 1fr;
        padding: 34px;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 96px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-content {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 0.86rem;
    }

    .hero-exact {
        margin-top: 22px;
        padding: 26px;
        border-radius: 22px;
    }

    .btc-gold-svg {
        width: 230px;
    }

    .live-trends-grid,
    .history-stats-grid,
    .quick-actions-grid,
    .sheet-duration-grid,
    .sheet-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-terminal-top > div:last-child {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .chart-window-exact {
        padding: 14px;
    }

    .chart-overlay-info {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 12px;
    }

    .chart-window-exact canvas {
        min-height: 330px;
        height: 360px !important;
    }

    .record-header-row,
    .record-coin-group {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .record-body-grid {
        grid-template-columns: 1fr;
    }

    .record-arrow-col {
        display: none;
    }

    .contract-sheet-card,
    .auth-card-exact,
    .security-profile-card {
        padding: 24px 20px;
    }
}

@media (max-width: 460px) {
    .live-trends-grid,
    .history-stats-grid,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .assets-digital-card,
    .quick-actions-card,
    .live-market-card,
    .menu-settings-card,
    .trade-record-card {
        padding: 18px;
    }

    .floating-bottom-dock {
        bottom: 10px;
        width: calc(100vw - 20px);
        border-radius: 20px;
    }

    .chat-modal-window {
        right: 10px;
        bottom: 148px;
        width: calc(100vw - 20px);
    }

    .chat-floating-badge,
    .floating-red-support {
        right: 16px;
    }
}
