/* ==========================================================
   VoucherHub - Premium Modern Dark Theme & Color Grading
   ========================================================== */

:root {
    --bg-main: #070a13;
    --bg-card: #0f172a;
    --bg-card-hover: #152238;
    --bg-surface: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glass Navbar */
.navbar-custom {
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #a5b4fc, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Cards & Surface */
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Glow Badges */
.badge-neon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-neon-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-neon-rose {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-emerald-custom {
    background: linear-gradient(135deg, #059669, var(--accent-emerald));
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-emerald-custom:hover {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Hero Section */
.hero-gradient {
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.08) 35%, transparent 70%);
    padding: 60px 0 35px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Policy Warning Box */
.policy-banner {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Category Filter Pills */
.filter-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Revealed Code Display Box */
.secret-code-box {
    background: #020617;
    border: 1px dashed var(--accent-cyan);
    border-radius: 10px;
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.15rem;
    color: #38bdf8;
    position: relative;
    user-select: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Form Styles */
.form-custom {
    background: #111827;
    border: 1px solid #374151;
    color: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
}

.form-custom:focus {
    background: #111827;
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Table styling */
.table-custom {
    color: var(--text-primary);
    vertical-align: middle;
}

.table-custom thead th {
    background: #111827;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.table-custom tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer */
footer {
    margin-top: auto;
    background: #050811;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
