:root {
    --bg: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-input: #242424;
    --gold: #d4af37;
    --gold-hover: #f0c14b;
    --text: #f5f5f5;
    --text-muted: #999;
    --error: #e74c3c;
    --success: #2ecc71;
    --border: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #111; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 30px 0; position: fixed; height: 100vh; }
.logo { text-align: center; margin-bottom: 40px; padding: 0 20px; }
.logo .gold { font-size: 32px; font-weight: 700; color: var(--gold); letter-spacing: 3px; }
.logo small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 4px; letter-spacing: 1px; }
.menu { list-style: none; flex: 1; }
.menu li a { display: block; padding: 14px 30px; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent; }
.menu li a:hover, .menu li a.active { color: var(--gold); background: rgba(212, 175, 55, 0.08); border-left-color: var(--gold); }
.sidebar { display: flex; flex-direction: column; } .menu { flex: 1; display: flex; flex-direction: column; } .menu .logout { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.menu .logout a { color: #e74c3c; }
.user-info { padding: 20px 30px; border-top: 1px solid var(--border); }
.user-info .code { font-size: 18px; font-weight: 700; color: var(--gold); }
.user-info .name { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.content { flex: 1; margin-left: 260px; padding: 40px 24px; }
.content.full { margin-left: 0; max-width: 520px; margin: 0 auto; padding: 60px 20px; }
.flash-messages { margin-bottom: 25px; }
.flash { padding: 14px 20px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.flash.error { background: rgba(231, 76, 60, 0.15); border: 1px solid var(--error); color: #ff6b6b; }
.flash.success { background: rgba(46, 204, 113, 0.15); border: 1px solid var(--success); color: #2ecc71; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 25px; }
.card h1, .card h2 { color: var(--gold); margin-bottom: 25px; font-weight: 600; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 14px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-group input[type="file"] { padding: 12px; cursor: pointer; }
.btn { display: inline-block; width: 100%; padding: 16px; background: var(--gold); color: #111; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; text-align: center; text-decoration: none; }
.btn:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #111; }
.auth-header { text-align: center; margin-bottom: 35px; }
.auth-header .logo-big { font-size: 42px; font-weight: 700; color: var(--gold); letter-spacing: 4px; }
.auth-header p { color: var(--text-muted); margin-top: 8px; font-size: 14px; }
.auth-links { text-align: center; margin-top: 25px; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--gold); text-decoration: none; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.pending { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.badge.confirmed { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.balance-big { font-size: 48px; font-weight: 700; color: var(--gold); text-align: center; margin: 20px 0; }
.structure-item { background: var(--bg-input); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.structure-item .info h4 { font-size: 15px; margin-bottom: 4px; }
.structure-item .info span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) { .sidebar { width: 100%; height: auto; position: relative; } .content { margin-left: 0; padding: 20px 12px; } .wrapper { flex-direction: column; } .card { padding: 16px; } }

.hamburger-btn { display: none; }

@media (max-width: 768px) {
    .sidebar { padding: 16px 0 !important; background: #242424 !important; position: fixed !important; top: 0; left: 0; width: 100%; z-index: 999; }
    .content { padding-top: 80px !important; }
    .sidebar .logo { margin-bottom: 0 !important; }
    .hamburger-btn {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 32px; height: 28px; background: none; border: none; cursor: pointer;
        position: absolute; top: 50%; transform: translateY(-50%); right: 20px; z-index: 1001;
    }
    .hamburger-btn span {
        display: block; width: 100%; height: 3px; background: var(--gold); border-radius: 2px; transition: all 0.3s;
    }
    .sidebar .menu {
        display: none; position: absolute; top: 64px; left: 0; width: 100%;
        background: #242424; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
        z-index: 1000; padding: 10px 0; flex-direction: column;
    }
    .sidebar.menu-open .menu { display: flex; }
    .sidebar.menu-open .hamburger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .sidebar.menu-open .hamburger-btn span:nth-child(2) { opacity: 0; }
    .sidebar.menu-open .hamburger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .sidebar .user-info { display: none; }
}

a[href^="tel:"], a[href^="sms:"] { color: #4a9eff !important; text-decoration: none; }

.metal { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 700; background-size: 200% auto; animation: metalShine 3s linear infinite reverse; }
.metal-gold { background-image: linear-gradient(90deg, #a87b1f 0%, #d4af37 25%, #f7e8ab 50%, #d4af37 75%, #a87b1f 100%); }
.metal-silver { background-image: linear-gradient(90deg, #82898f 0%, #c7ccd1 25%, #ffffff 50%, #c7ccd1 75%, #82898f 100%); }
.metal-bronze { background-image: linear-gradient(90deg, #8a4f1d 0%, #cd7f32 25%, #f3d3a7 50%, #cd7f32 75%, #8a4f1d 100%); }
@keyframes metalShine { to { background-position: 200% center; } }

@media (max-width: 600px) {
    .brand-title { font-size: 19px !important; }
    .tx-title { font-size: 20px !important; }
}
