:root {
    --primary: #070d18;
    --secondary: rgba(14, 28, 48, 0.72);
    --accent: #c9a227;
    --accent-2: #7eb6d9;
    --success: #3dd68c;
    --warning: #e8c36a;
    --danger: #e85d6c;
    --card-bg: rgba(10, 22, 40, 0.72);
    --text-light: #f3efe6;
    --text-muted: #b7c0ce;
    --glass: rgba(8, 18, 34, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { min-height: 100%; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #050910;
    background-image:
        linear-gradient(180deg, rgba(5, 9, 16, 0.55) 0%, rgba(5, 9, 16, 0.82) 100%),
        url('../img/texture-navy.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    opacity: 0.07;
}

body > * { position: relative; z-index: 1; }

.body-home {
    background-image:
        linear-gradient(180deg, rgba(5,10,18,0.35) 0%, rgba(5,10,18,0.78) 55%, #050910 100%),
        url('../img/hero-skyline.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.body-auth {
    background-image:
        linear-gradient(180deg, rgba(5,10,18,0.45) 0%, rgba(5,10,18,0.82) 100%),
        url('../img/auth-lobby.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.body-app {
    background-image:
        linear-gradient(180deg, rgba(5,10,18,0.62) 0%, rgba(5,10,18,0.88) 100%),
        url('../img/dashboard-office.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.navbar {
    background: rgba(8, 14, 26, 0.72) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.18);
    padding: 14px 0;
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.55rem;
    color: white !important;
    letter-spacing: 0.04em;
}

.navbar-brand span { color: var(--accent); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    padding: 8px 16px !important;
    border-radius: 8px;
}

.nav-link:hover { color: white !important; }

.nav-link.active {
    color: white !important;
    background: rgba(201, 162, 39, 0.12);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-accent {
    background: linear-gradient(135deg, #d4b45a, #a8841f);
    color: #1a1406;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #e2c56e, #c9a227);
    color: #1a1406;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.28);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.28);
    color: var(--text-light);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

.balance-card {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.55) 0%, rgba(18, 32, 56, 0.7) 100%),
        url('../img/card-metal.png');
    background-size: cover;
    background-position: right center;
    border: 1px solid rgba(201, 162, 39, 0.28);
}

.balance-display {
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

.balance-display small {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 20px;
    backdrop-filter: blur(10px);
}

.stat-card:hover { background: rgba(255,255,255,0.07); }

.border-accent { border-color: var(--accent) !important; }

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
}

.status-active {
    font-size: 1rem !important;
    color: var(--success) !important;
}

.badge-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-pending { background: #e8c36a; color: #1a1a2e; }
.badge-processing { background: #7eb6d9; color: #071018; }
.badge-completed { background: #3dd68c; color: #062014; }
.badge-failed { background: #e85d6c; color: white; }
.badge-cancelled { background: #666; color: white; }

.form-control, .form-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.09);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
    color: white;
}

.form-control::placeholder { color: #8b97ab; }
.form-label { color: var(--text-muted); font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; }

.input-group-text {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
}

.input-group .form-control { border-radius: 0 10px 10px 0; }

select.form-control option, select.form-select option {
    background: #0e1c30;
    color: white;
}

.alert { border-radius: 12px; border: none; }
.alert-success { background: rgba(61, 214, 140, 0.14); color: #3dd68c; border: 1px solid rgba(61, 214, 140, 0.25); }
.alert-danger, .alert-error { background: rgba(232, 93, 108, 0.14); color: #ff8a96; border: 1px solid rgba(232, 93, 108, 0.25); }
.alert-warning { background: rgba(232, 195, 106, 0.14); color: #e8c36a; border: 1px solid rgba(232, 195, 106, 0.25); }
.alert-info { background: rgba(126, 182, 217, 0.14); color: #9ccae6; border: 1px solid rgba(126, 182, 217, 0.25); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.table {
    color: var(--text-light);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.04);
}

.table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table td { border-color: rgba(255,255,255,0.05); vertical-align: middle; }

code {
    color: #e2c56e;
    background: rgba(201, 162, 39, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

a { color: #e2c56e; text-decoration: none; }
a:hover { color: #f0dc9a; }

.sidebar, .admin-sidebar {
    background: rgba(10, 18, 32, 0.72);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
}

.sidebar-divider { border-color: rgba(255,255,255,0.08); margin: 16px 0; }

.sidebar-link, .admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-link:hover, .admin-sidebar-link:hover,
.sidebar-link.active, .admin-sidebar-link.active {
    background: rgba(201, 162, 39, 0.12);
    color: white;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.admin-panel {
    background: rgba(10, 18, 32, 0.72);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
}

.auth-card {
    background: rgba(8, 16, 30, 0.78);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
}

.auth-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--accent);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.hero-section { padding: 70px 0 90px; }
.min-vh-75 { min-height: 75vh; display: flex; align-items: center; }

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.28);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 20px;
}

.text-accent { color: var(--accent); }

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: white; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.04em; }

.hero-card {
    background:
        linear-gradient(160deg, rgba(8,16,30,0.55) 20%, rgba(8,16,30,0.78) 100%),
        url('../img/card-metal.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-card-header {
    background: rgba(0, 0, 0, 0.28);
    padding: 16px 24px;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid rgba(201, 162, 39, 0.18);
    letter-spacing: 0.04em;
}

.hero-card-body { padding: 28px; }

.hero-balance {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
}

.hero-balance-masked {
    letter-spacing: 8px;
    color: rgba(243, 239, 230, 0.7);
}

.hero-mini-stat {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-mini-stat i { display: block; font-size: 1.3rem; margin-bottom: 6px; }

.features-section {
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(5,9,16,0.86), rgba(5,9,16,0.92)),
        url('../img/texture-navy.png');
    background-size: cover;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.feature-card {
    background:
        linear-gradient(180deg, rgba(12,22,40,0.78), rgba(8,16,30,0.88)),
        url('../img/texture-navy.png');
    background-size: cover;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.35);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(201, 162, 39, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h5 { font-weight: 600; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

.cta-section { padding-bottom: 80px; }

.cta-card {
    background:
        linear-gradient(135deg, rgba(5,10,18,0.55), rgba(5,10,18,0.78)),
        url('../img/cta-city.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 22px;
    padding: 72px 40px;
}

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 18px 0 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-bar span {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
}

.method-btn {
    border-radius: 12px !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: var(--text-muted) !important;
}

.method-icon { font-size: 1.5rem; }

.btn-check:checked + .method-btn {
    background: rgba(201, 162, 39, 0.16) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}

.status-icon-pending { background: rgba(232, 195, 106, 0.15); color: #e8c36a; }
.status-icon-processing { background: rgba(126, 182, 217, 0.15); color: #7eb6d9; }
.status-icon-completed { background: rgba(61, 214, 140, 0.15); color: #3dd68c; }
.status-icon-failed { background: rgba(232, 93, 108, 0.15); color: #e85d6c; }
.status-icon-cancelled { background: rgba(102, 102, 102, 0.15); color: #999; }

.footer {
    background:
        linear-gradient(180deg, rgba(5,9,16,0.4), rgba(5,9,16,0.92)),
        url('../img/texture-navy.png');
    background-size: cover;
    color: var(--text-muted);
    padding: 32px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.page-link {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #1a1406; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .balance-display { font-size: 2rem; }
    .auth-card { padding: 28px 20px; }
    body, .body-home, .body-auth, .body-app { background-attachment: scroll; }
}
