/* ============================================================
   Lucky Spin Give Away — Main Stylesheet
   Tema: Dark Luxury + Gold Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    /* Warna utama */
    --bg-deep:        #07101e;
    --bg-dark:        #0D1321;
    --bg-card:        #111927;
    --bg-card-2:      #16213e;
    --bg-glass:       rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);

    /* Aksen emas */
    --gold-primary:   #F4C430;
    --gold-bright:    #FFD700;
    --gold-dim:       #D4AF37;
    --gold-dark:      #9a7c1a;
    --gold-glow:      rgba(244, 196, 48, 0.3);

    /* Teks */
    --text-primary:   #f0f4ff;
    --text-secondary: #8892a4;
    --text-muted:     #4a5568;
    --text-gold:      #F4C430;

    /* Border */
    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-gold:    rgba(244, 196, 48, 0.3);

    /* Status */
    --color-success:  #22c55e;
    --color-danger:   #ef4444;
    --color-warning:  #f59e0b;
    --color-info:     #3b82f6;

    /* Gradients */
    --grad-bg:        linear-gradient(135deg, #07101e 0%, #0D1321 50%, #111927 100%);
    --grad-gold:      linear-gradient(135deg, #FFD700 0%, #E8A317 50%, #D4AF37 100%);
    --grad-card:      linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

    /* Shadows */
    --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-gold:    0 0 30px rgba(244, 196, 48, 0.2), 0 0 60px rgba(244, 196, 48, 0.1);
    --shadow-btn:     0 4px 20px rgba(244, 196, 48, 0.4);

    /* Transitions */
    --trans-fast:     0.15s ease;
    --trans-med:      0.3s ease;
    --trans-slow:     0.5s ease;

    /* Border radius */
    --radius-sm:      8px;
    --radius-md:      16px;
    --radius-lg:      24px;
    --radius-xl:      32px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Scrollbar custom ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* ── Floating Coins Background ────────────────────────────── */
.coin-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE55C, #D4AF37, #9a7c1a);
    box-shadow: 0 0 8px rgba(244, 196, 48, 0.4);
    opacity: 0;
    animation: floatCoin var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatCoin {
    0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ── Main Layout ──────────────────────────────────────────── */
.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.site-header .tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.site-header h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(244,196,48,0.4));
}

.site-header .subtitle {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 300;
}

.header-divider {
    width: 120px;
    height: 2px;
    background: var(--grad-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ── Main Card ────────────────────────────────────────────── */
.spin-card {
    background: var(--grad-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    position: relative;
}

.spin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(244,196,48,0.2) 0%, transparent 50%, rgba(244,196,48,0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Wheel Section ────────────────────────────────────────── */
.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 1rem;
}

.wheel-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Lingkaran glow di belakang roda */
.wheel-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,196,48,0.15) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1);   opacity: 0.8; }
    50%       { transform: scale(1.05); opacity: 1;   }
}

/* Ring dekoratif luar roda */
.wheel-ring {
    position: absolute;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--grad-gold) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorderSlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBorderSlow {
    to { transform: rotate(360deg); }
}

#spinCanvas {
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 20px rgba(244,196,48,0.3));
    cursor: default;
    transition: filter var(--trans-med);
}

/* Pointer/jarum penunjuk */
.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 32px solid var(--gold-bright);
    filter: drop-shadow(0 4px 8px rgba(244,196,48,0.6));
    z-index: 10;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-bright);
}

/* Center button roda */
.wheel-center {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE55C, #D4AF37, #9a7c1a);
    box-shadow: 0 0 20px rgba(244,196,48,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
    border: 3px solid rgba(255,255,255,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ── Input & Form ─────────────────────────────────────────── */
.input-section {
    padding: 0 2rem 2rem;
}

.ticket-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.ticket-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.ticket-input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--trans-fast);
}

#ticketCode {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Outfit', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--trans-fast);
    outline: none;
}

#ticketCode::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
}

#ticketCode:focus {
    border-color: var(--gold-primary);
    background: rgba(244,196,48,0.05);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

#ticketCode:focus + .input-icon,
.ticket-input-group:focus-within .input-icon {
    color: var(--gold-primary);
}

/* ── Button Spin ──────────────────────────────────────────── */
.btn-spin {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--grad-gold);
    border: none;
    border-radius: var(--radius-md);
    color: #1a1000;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--trans-med);
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.btn-spin::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--trans-fast);
}

.btn-spin:hover::before { opacity: 1; }

.btn-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244,196,48,0.5);
}

.btn-spin:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

.btn-spin:disabled {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spin .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26,16,0,0.3);
    border-top-color: #1a1000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 0.5rem;
}

.btn-spin.loading .spinner { display: inline-block; }
.btn-spin.loading .btn-text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Info Panel (Cara Bermain & Ketentuan) ────────────────── */
.info-section {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
}

.info-section h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #1a1000;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Prize Legend ─────────────────────────────────────────── */
.prize-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.prize-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--trans-fast);
}

.prize-badge .prize-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Error & Status Messages ──────────────────────────────── */
.alert-luxury {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    animation: slideDown 0.3s ease;
}

.alert-luxury.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-luxury.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── Admin Layout ─────────────────────────────────────────── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--trans-med);
}

.admin-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-brand .brand-logo {
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.admin-sidebar-brand .brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section-title {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--trans-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
    border-left-color: var(--gold-dim);
}

.sidebar-nav a.active {
    color: var(--gold-primary);
    background: rgba(244,196,48,0.07);
    border-left-color: var(--gold-primary);
    font-weight: 600;
}

.sidebar-nav a .nav-icon {
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.admin-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
    max-width: calc(100vw - 240px);
}

/* ── Admin Topbar ─────────────────────────────────────────── */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 var(--radius-lg) 0 100%;
    opacity: 0.07;
}

.stat-card.gold::before   { background: var(--gold-primary); }
.stat-card.blue::before   { background: var(--color-info); }
.stat-card.green::before  { background: var(--color-success); }
.stat-card.orange::before { background: var(--color-warning); }
.stat-card.red::before    { background: var(--color-danger); }

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card.gold   .stat-value { color: var(--gold-primary); }
.stat-card.blue   .stat-value { color: var(--color-info); }
.stat-card.green  .stat-value { color: var(--color-success); }
.stat-card.orange .stat-value { color: var(--color-warning); }
.stat-card.red    .stat-value { color: var(--color-danger); }

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── General Cards ────────────────────────────────────────── */
.card-luxury {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card-luxury .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Tables ───────────────────────────────────────────────── */
.table-luxury {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table-luxury thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.table-luxury tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--trans-fast);
}

.table-luxury tbody tr:hover { background: var(--bg-glass); }
.table-luxury tbody tr:last-child { border-bottom: none; }

.table-luxury tbody td {
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.table-luxury .ticket-code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ── Badges / Pills ───────────────────────────────────────── */
.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-luxury.unused   { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-luxury.used     { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-luxury.void     { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.2); }
.badge-luxury.pending  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-luxury.claimed  { background: rgba(244,196,48,0.12); color: var(--gold-primary); border: 1px solid var(--border-gold); }
.badge-luxury.expired  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-luxury.none     { background: rgba(107,114,128,0.1); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.badge-luxury.super_admin { background: rgba(244,196,48,0.15); color: var(--gold-primary); border: 1px solid var(--border-gold); }
.badge-luxury.staff    { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* ── Forms (Admin) ────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control-luxury {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all var(--trans-fast);
    outline: none;
}

.form-control-luxury:focus {
    border-color: var(--gold-primary);
    background: rgba(244,196,48,0.03);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control-luxury option { background: var(--bg-card); }

select.form-control-luxury {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Buttons (Admin) ──────────────────────────────────────── */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-luxury:hover { transform: translateY(-1px); }
.btn-luxury:active { transform: translateY(0); }

.btn-gold {
    background: var(--grad-gold);
    color: #1a1000;
    box-shadow: 0 2px 12px rgba(244,196,48,0.3);
}
.btn-gold:hover { box-shadow: 0 4px 20px rgba(244,196,48,0.4); color: #1a1000; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.btn-danger-soft {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
}
.btn-danger-soft:hover { background: rgba(239,68,68,0.2); }

.btn-success-soft {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
}
.btn-success-soft:hover { background: rgba(34,197,94,0.2); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination-luxury {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    transition: all var(--trans-fast);
}

.page-link:hover {
    color: var(--gold-primary);
    border-color: var(--border-gold);
    background: rgba(244,196,48,0.05);
}

.page-link.active {
    background: var(--grad-gold);
    color: #1a1000;
    border-color: transparent;
    font-weight: 700;
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Search & Filter Bar ──────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-input-wrap input {
    padding-left: 2.25rem;
    width: 100%;
    height: 38px;
}

/* ── Login Page ───────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

/* ── Claim Page ───────────────────────────────────────────── */
.claim-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.claim-card {
    width: 100%;
    max-width: 480px;
}

.prize-display {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.prize-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.prize-title {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(244,196,48,0.4));
}

.claim-code-box {
    background: rgba(244,196,48,0.07);
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.claim-code-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.4rem;
}

.claim-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.1em;
}

.claim-expiry {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-gold   { color: var(--gold-primary); }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.8rem; }
.fw-800      { font-weight: 800; }
.mb-0        { margin-bottom: 0; }
.mt-auto     { margin-top: auto; }
.gap-2       { gap: 0.5rem; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        max-width: 100vw;
    }
}

@media (max-width: 576px) {
    .admin-main { padding: 1rem; }
    .stat-grid  { grid-template-columns: 1fr 1fr; }
}

/* ── SweetAlert2 Override ─────────────────────────────────── */
.swal2-popup {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-gold) !important;
}

.swal2-title { color: var(--text-primary) !important; font-family: 'Outfit', sans-serif !important; }
.swal2-html-container { color: var(--text-secondary) !important; font-family: 'Outfit', sans-serif !important; }

.swal2-confirm {
    background: var(--grad-gold) !important;
    color: #1a1000 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
}

.swal2-cancel {
    background: rgba(255,255,255,0.07) !important;
    color: var(--text-secondary) !important;
    font-family: 'Outfit', sans-serif !important;
    border-radius: var(--radius-sm) !important;
}

/* Prize modal styling */
.prize-modal-icon { font-size: 3.5rem; margin-bottom: 0.5rem; }
.prize-modal-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
