:root {
    --ferro-bg: #060608;
    --ferro-surface: #0d0d12;
    --ferro-surface-2: #14141d;
    --ferro-surface-3: #1c1c28;
    --ferro-border: rgba(212, 175, 55, 0.24);
    --ferro-border-light: rgba(243, 207, 101, 0.48);
    --ferro-gold: #e5b94e;
    --ferro-gold-hover: #f3cf65;
    --ferro-gold-glow: rgba(229, 185, 78, 0.35);
    --ferro-blue: #d4af37;
    --ferro-blue-hover: #f3cf65;
    --ferro-blue-glow: rgba(212, 175, 55, 0.35);
    --ferro-red: #ff3366;
    --ferro-red-hover: #ff4d79;
    --ferro-red-glow: rgba(255, 51, 102, 0.4);
    --ferro-green: #10b981;
    --ferro-cyan: #38bdf8;
    --ferro-text: #f8fafc;
    --ferro-text-muted: #cbd5e1;
    --ferro-text-dim: #94a3b8;
}

body {
    background-color: var(--ferro-bg);
    background-image:
        radial-gradient(circle at 18% 12%, rgba(212, 175, 55, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 82% 28%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #060608 0%, #0b0b10 50%, #060608 100%);
    color: var(--ferro-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

body.user-ui-body {
    background:
        radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.12) 0%, transparent 42%),
        linear-gradient(180deg, #060608 0%, #0c0c13 100%) !important;
}

body.auth-ui-body {
    background:
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 50%),
        linear-gradient(180deg, #050507 0%, #0d0d14 100%) !important;
}

body.auth-ui-body .ferro-card {
    background: rgba(14, 14, 21, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--ferro-border-light);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.12);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--ferro-bg);
}
::-webkit-scrollbar-thumb {
    background: #2a2415;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ferro-gold);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.zeneta-gold-text {
    background: linear-gradient(135deg, #FFF0A8 0%, #E5B94E 45%, #B8871D 80%, #F6D87A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zeneta-script {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    color: #f3cf65;
}

.text-muted {
    color: var(--ferro-text-muted) !important;
}

.text-secondary {
    color: #94a3b8 !important;
}

.form-text {
    color: #cbd5e1 !important;
}

p {
    color: #cbd5e1;
}

.form-label, label {
    color: #f1f5f9 !important;
    font-weight: 600;
}

.small, small {
    color: inherit;
}

.text-gold {
    color: var(--ferro-gold) !important;
}
.text-blue {
    color: #f3cf65 !important;
}
.text-red {
    color: var(--ferro-red) !important;
}
.text-cyan {
    color: var(--ferro-cyan) !important;
}
.text-green {
    color: var(--ferro-green) !important;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #FFF0A8 0%, #E5B94E 45%, #AA7C11 100%);
}
.bg-gradient-blue {
    background: linear-gradient(135deg, #D4AF37 0%, #996515 100%);
}
.bg-gradient-red {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b3d 100%);
}
.bg-gradient-dark {
    background: linear-gradient(180deg, #151520 0%, #0b0b11 100%);
}

.glow-gold {
    box-shadow: 0 0 28px var(--ferro-gold-glow);
}
.glow-blue {
    box-shadow: 0 0 28px var(--ferro-blue-glow);
}
.glow-red {
    box-shadow: 0 0 25px var(--ferro-red-glow);
}

/* Luxury Obsidian & Gold Cards */
.ferro-card {
    background: linear-gradient(165deg, rgba(20, 20, 29, 0.95) 0%, rgba(11, 11, 16, 0.97) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--ferro-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
}

.ferro-card:hover {
    border-color: var(--ferro-border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.12);
}

.ferro-card-gold-border {
    border-top: 3px solid var(--ferro-gold);
}
.ferro-card-blue-border {
    border-top: 3px solid #d4af37;
}
.ferro-card-red-border {
    border-top: 3px solid var(--ferro-red);
}
.ferro-card-green-border {
    border-top: 3px solid var(--ferro-green);
}

.ferro-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--ferro-border);
}

/* Metallic Gold Buttons */
.btn-ferro-gold {
    background: linear-gradient(135deg, #FFF0A8 0%, #E5B94E 45%, #B8871D 100%);
    color: #060608 !important;
    font-weight: 800;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px var(--ferro-gold-glow);
}
.btn-ferro-gold:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f3cf65 50%, #d4af37 100%);
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(243, 207, 101, 0.6);
}

.btn-ferro-blue {
    background: linear-gradient(135deg, #E5B94E 0%, #9E7213 100%);
    color: #060608 !important;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--ferro-gold-glow);
}
.btn-ferro-blue:hover {
    background: linear-gradient(135deg, #f3cf65 0%, #d4af37 100%);
    color: #000 !important;
    transform: translateY(-1px);
}

.btn-ferro-red {
    background: linear-gradient(135deg, #ff3366 0%, #d91b4c 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--ferro-red-glow);
}
.btn-ferro-red:hover {
    background: linear-gradient(135deg, #ff4d79 0%, #ff3366 100%);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ferro-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
}

.btn-ferro-outline {
    background: rgba(20, 20, 29, 0.75);
    border: 1px solid var(--ferro-border-light);
    color: #f8fafc;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
}
.btn-ferro-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--ferro-gold);
    color: #f3cf65;
}

/* Forms */
.form-control, .form-select {
    background-color: var(--ferro-surface-2);
    border: 1px solid var(--ferro-border);
    color: #ffffff !important;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    background-color: var(--ferro-surface-3);
    border-color: var(--ferro-gold);
    color: #ffffff !important;
    box-shadow: 0 0 0 3px var(--ferro-gold-glow);
}
.form-control::placeholder {
    color: var(--ferro-text-dim) !important;
}
.input-group-text {
    background-color: var(--ferro-surface-3);
    border: 1px solid var(--ferro-border);
    color: var(--ferro-gold);
}

/* Tables */
.table-ferro {
    width: 100%;
    color: var(--ferro-text);
    border-collapse: separate;
    border-spacing: 0;
}
.table-ferro th {
    background: var(--ferro-surface-2);
    color: #f3cf65 !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem;
    border-bottom: 1px solid var(--ferro-border);
    font-weight: 700;
}
.table-ferro td {
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(13, 13, 18, 0.88);
    vertical-align: middle;
    color: #f1f5f9;
}
.table-ferro tbody tr:hover td {
    background: var(--ferro-surface-2);
}

/* Badges */
.badge-ferro-gold {
    background: rgba(229, 185, 78, 0.18);
    color: #f3cf65 !important;
    border: 1px solid rgba(229, 185, 78, 0.5);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
}
.badge-ferro-blue {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}
.badge-ferro-green {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}
.badge-ferro-red {
    background: rgba(255, 51, 102, 0.18);
    color: #fb7185 !important;
    border: 1px solid rgba(255, 51, 102, 0.45);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Navigation & Sidebar */
.ferro-navbar {
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ferro-border);
}
.ferro-nav-link {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}
.ferro-nav-link:hover, .ferro-nav-link.active {
    color: var(--ferro-gold) !important;
    border-bottom-color: var(--ferro-gold);
}

.sidebar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--ferro-border);
    min-height: calc(100vh - 72px);
    padding: 1.5rem 1rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: #cbd5e1 !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
    text-decoration: none;
}
.sidebar-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f3cf65 !important;
    transform: translateX(4px);
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.24) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-left: 3px solid var(--ferro-gold);
    color: #f3cf65 !important;
}
.sidebar-link i {
    font-size: 1.15rem;
    width: 24px;
}

/* Poster Rank Tier Rows */
.zeneta-rank-row {
    background: linear-gradient(90deg, rgba(22, 20, 14, 0.95) 0%, rgba(14, 14, 20, 0.95) 55%, rgba(26, 22, 12, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), inset 0 0 18px rgba(212, 175, 55, 0.06);
    transition: all 0.25s ease;
}
.zeneta-rank-row:hover {
    border-color: #f3cf65;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}
.zeneta-rank-row.rank-royal {
    background: linear-gradient(90deg, rgba(46, 16, 78, 0.92) 0%, rgba(24, 12, 44, 0.95) 60%, rgba(58, 20, 96, 0.92) 100%);
    border-color: rgba(192, 132, 252, 0.65);
}

.zeneta-hex-badge {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5b94e;
    background: radial-gradient(circle, rgba(229, 185, 78, 0.22) 0%, rgba(10, 10, 14, 0.95) 100%);
    box-shadow: 0 0 18px rgba(229, 185, 78, 0.25);
}

/* Crypto Live Ticker Header */
.crypto-ticker-bar {
    background: #040406;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    font-size: 0.82rem;
    padding: 6px 0;
    overflow-x: auto;
    white-space: nowrap;
    color: #e2e8f0;
}

/* Progress bar */
.progress-ferro {
    height: 10px;
    background-color: var(--ferro-surface-3);
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar-ferro {
    background: linear-gradient(90deg, #B8871D, #E5B94E, #FFF0A8);
}

/* Floating Telegram Support Button */
.telegram-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}
.telegram-float-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(34, 158, 217, 0.75);
    color: #ffffff !important;
}
