:root,
[data-theme="midnight"] {
    --bg-color: #0a0b1e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-gold: #FFD700;
    --accent-gold-dim: rgba(255, 215, 0, 0.2);
    --success: #00e676;
    --danger: #ff1744;
    --glass-blur: 10px;
    --font-family: 'Outfit', sans-serif;
}

[data-theme="royal"] {
    --bg-color: #1a0b2e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-gold: #9D00FF;
    --accent-gold-dim: rgba(157, 0, 255, 0.2);
}

[data-theme="cyber"] {
    --bg-color: #050505;
    --card-bg: rgba(0, 255, 255, 0.05);
    --card-border: rgba(0, 255, 255, 0.2);
    --accent-gold: #00FFFF;
    --accent-gold-dim: rgba(0, 255, 255, 0.2);
}

[data-theme="emerald"] {
    --bg-color: #001a0f;
    --card-bg: rgba(0, 230, 118, 0.05);
    --accent-gold: #00E676;
    --accent-gold-dim: rgba(0, 230, 118, 0.2);
}

[data-theme="crimson"] {
    --bg-color: #1a0505;
    --card-bg: rgba(255, 23, 68, 0.05);
    --accent-gold: #FF1744;
    --accent-gold-dim: rgba(255, 23, 68, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 80px;
    /* Space for bottom nav */
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.05) 0%, transparent 20%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    color: #000;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Text Utilities */
.text-gold {
    color: var(--accent-gold) !important;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tables */
.table-glass {
    width: 100%;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.table-glass td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-glass tr:last-child td {
    border-bottom: none;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Navigation */
.nav-glass {
    background: rgba(10, 11, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    padding: 10px 0;
    z-index: 1000;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-pills .nav-link.active {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.nav-pills .nav-link i {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Header */
.header-glow {
    position: relative;
}

.header-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

/* Price Cards */
.price-card {
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Modal */
.modal-content {
    background: #161829;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-footer {
    border-top: 1px solid var(--card-border);
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-dim);
    color: var(--text-primary);
}

/* FAB */
.fab-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 900;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Tables */
.table-glass {
    width: 100%;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.table-glass td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-glass tr:last-child td {
    border-bottom: none;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Navigation */
.nav-glass {
    background: rgba(10, 11, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    padding: 10px 0;
    z-index: 1000;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-pills .nav-link.active {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.nav-pills .nav-link i {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Header */
.header-glow {
    position: relative;
}

.header-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

/* Price Cards */
.price-card {
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Modal */
.modal-content {
    background: #161829;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-footer {
    border-top: 1px solid var(--card-border);
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-dim);
    color: var(--text-primary);
}

/* FAB */
.fab-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 900;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Badge */
.badge-status {
    padding: 6px 12px;
}

.table-glass th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.table-glass td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-glass tr:last-child td {
    border-bottom: none;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Navigation */
.nav-glass {
    background: rgba(10, 11, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    padding: 10px 0;
    z-index: 1000;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-pills .nav-link.active {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.nav-pills .nav-link i {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Header */
.header-glow {
    position: relative;
}

.header-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

/* Price Cards */
.price-card {
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Modal */
.modal-content {
    background: #161829;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-footer {
    border-top: 1px solid var(--card-border);
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-dim);
    color: var(--text-primary);
}

/* FAB */
.fab-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 900;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Badge */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Header Updates */
.logo-container {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.tracking-tight {
    letter-spacing: -0.5px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}