:root {
    --primary: #0c0c0c;
    --secondary: #d32f2f;
    --accent: #ff6659;
    --bg: #0a0a0f;
    --sidebar-bg: rgba(14, 14, 20, 0.97);
    --card-bg: rgba(22, 22, 30, 0.85);
    --card-border: rgba(255, 255, 255, 0.06);
    --text: #f8f8fa;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.07);
    --gradient: linear-gradient(135deg, #d32f2f, #8b1a1a);
    --gradient-warm: linear-gradient(135deg, #d32f2f, #ff6659);
    --gradient-subtle: linear-gradient(135deg, rgba(211,47,47,0.15), rgba(255,102,89,0.05));
    --glow: 0 8px 32px rgba(211, 47, 47, 0.12);
    --glow-strong: 0 12px 48px rgba(211, 47, 47, 0.25);
    --radius: 16px;
    --sidebar-width: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); animation: float 30s infinite ease-in-out; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(211,47,47,0.18), transparent 70%); top: -200px; right: -150px; }
.orb-2 { width: 450px; height: 450px; background: radial-gradient(circle, rgba(139,26,26,0.12), transparent 70%); bottom: -150px; left: 10%; animation-delay: -10s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,102,89,0.1), transparent 70%); top: 50%; left: 50%; animation-delay: -20s; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(50px,-40px) scale(1.08); }
    66% { transform: translate(-40px,30px) scale(0.92); }
}

/* Lock Screen */
.lock-screen {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
}
.lock-screen.hidden { display: none; }
.lock-card {
    text-align: center; padding: 3rem 2.5rem;
    background: var(--card-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--card-border); border-radius: 20px;
    box-shadow: var(--glow-strong);
    width: min(400px, 90vw);
}
.lock-logo { height: 60px; margin-bottom: 1.5rem; }
.lock-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.lock-card > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.lock-input-group { display: flex; flex-direction: column; gap: 0.75rem; }
.lock-input-group input {
    width: 100%; padding: 0.9rem 1.2rem; text-align: center;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); font-size: 1rem; font-family: inherit;
    letter-spacing: 0.1em;
}
.lock-input-group input:focus { outline: none; border-color: rgba(211,47,47,0.5); box-shadow: 0 0 0 3px rgba(211,47,47,0.08); }
.lock-error { color: var(--secondary); font-size: 0.82rem; margin-top: 0.75rem; font-weight: 500; }
.lock-error.hidden { display: none; }

/* Layout */
.app-container { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--card-border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 10;
}

.sidebar-header {
    padding: 1.75rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo { height: 56px; width: auto; }
.sidebar-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 1.25rem 0.75rem; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.75rem 1rem; border: none; background: transparent;
    color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
    font-family: inherit; border-radius: 12px; cursor: pointer;
    transition: all 0.2s ease; text-align: left; width: 100%;
    position: relative; overflow: hidden;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); transform: translateX(2px); }
.nav-item.active {
    background: var(--gradient-subtle);
    color: var(--accent);
    border: 1px solid rgba(211,47,47,0.2);
    box-shadow: 0 2px 12px rgba(211,47,47,0.08);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); font-size: 0.72rem; color: var(--text-muted); }

/* Main */
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 3rem 3.5rem; max-width: 920px; }

/* Tabs */
.tab-panel { display: none; animation: fadeIn 0.35s cubic-bezier(0.16,1,0.3,1); }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.panel-header { margin-bottom: 2.5rem; }
.panel-header h1 {
    font-size: 2rem; font-weight: 800; letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.6));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.panel-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

/* Form Card */
.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(211,47,47,0.3), transparent);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.6rem; color: var(--text-muted);
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

input[type="text"], input[type="number"], textarea {
    width: 100%; padding: 0.85rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); font-size: 0.9rem; font-family: inherit;
    transition: all 0.2s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: rgba(211,47,47,0.5);
    box-shadow: 0 0 0 3px rgba(211,47,47,0.08), 0 4px 16px rgba(211,47,47,0.06);
    background: rgba(255,255,255,0.04);
}
textarea { resize: vertical; line-height: 1.6; }
::placeholder { color: rgba(255,255,255,0.2); }

select {
    width: 100%; padding: 0.85rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); font-size: 0.9rem; font-family: inherit;
    cursor: pointer; transition: all 0.2s; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
select:focus { outline: none; border-color: rgba(211,47,47,0.5); }

/* Checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.checkbox-label {
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer; font-size: 0.88rem; color: rgba(255,255,255,0.7);
    padding: 0.6rem 0.85rem; border-radius: 10px; transition: all 0.15s;
}
.checkbox-label:hover { background: rgba(255,255,255,0.03); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.15); border-radius: 6px;
    position: relative; transition: all 0.2s; flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
    background: var(--gradient-warm); border-color: transparent;
    box-shadow: 0 2px 8px rgba(211,47,47,0.3);
}
.checkbox-label input:checked + .checkmark::after {
    content: ''; position: absolute; left: 6px; top: 3px;
    width: 5px; height: 9px; border: solid #fff;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Range */
.range-wrapper { padding: 0.5rem 0; }
input[type="range"] {
    width: 100%; -webkit-appearance: none; height: 4px;
    background: rgba(255,255,255,0.08); border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    background: var(--gradient-warm); border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 10px rgba(211,47,47,0.4);
}
.range-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-muted); }

/* Import */
.import-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.file-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12); border-radius: 10px;
    cursor: pointer; color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    transition: all 0.2s;
}
.file-btn:hover { border-color: var(--secondary); color: var(--accent); background: rgba(211,47,47,0.04); }
.file-info { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* Stats */
.stats-bar {
    display: flex; gap: 1.5rem; padding: 0.85rem 1.2rem;
    background: var(--gradient-subtle); border-radius: 12px;
    border: 1px solid rgba(211,47,47,0.1);
}
.stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
.stat span { font-weight: 700; color: var(--text); }

/* Prizes */
.prizes-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.prize-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: 12px; transition: all 0.2s;
}
.prize-item:hover { border-color: rgba(211,47,47,0.25); box-shadow: 0 4px 16px rgba(211,47,47,0.06); }
.prize-number {
    width: 34px; height: 34px;
    background: var(--gradient); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem; color: #fff; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(211,47,47,0.25);
}
.prize-item input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 0.95rem; font-family: inherit; outline: none; }
.prize-item input::placeholder { color: rgba(255,255,255,0.2); }
.prize-remove { background: none; border: none; color: rgba(255,255,255,0.15); cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.15s; display: flex; }
.prize-remove:hover { color: var(--secondary); background: rgba(211,47,47,0.1); }
/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--gradient-warm); border: none; border-radius: 12px;
    color: #fff; font-size: 0.95rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(211,47,47,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
.btn-large { padding: 1.15rem 2.5rem; font-size: 1.1rem; width: 100%; border-radius: 14px; }
.btn-large:not(:disabled) { animation: btnPulse 3s infinite ease-in-out; }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(211,47,47,0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
    50% { box-shadow: 0 6px 40px rgba(211,47,47,0.45), 0 0 80px rgba(211,47,47,0.1), inset 0 1px 0 rgba(255,255,255,0.15); }
}

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: var(--text); font-size: 0.9rem; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.2rem; background: transparent;
    border: 1px dashed rgba(255,255,255,0.12); border-radius: 10px;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem; background: transparent; border: none;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.btn-ghost:hover { color: var(--accent); }

.actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.actions .btn-primary, .actions .btn-secondary { flex: 1; width: auto; }

/* Draw Panel */
.draw-panel { display: flex; flex-direction: column; align-items: center; }
.draw-state { width: 100%; }
.draw-state.hidden { display: none; }

.draw-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.summary-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 1.3rem 1.2rem;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 14px; position: relative; overflow: hidden;
    transition: all 0.2s;
}
.summary-item::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-warm); opacity: 0.5;
}
.summary-item:hover { border-color: rgba(211,47,47,0.2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(211,47,47,0.08); }
.summary-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.summary-value { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.summary-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }

/* Slot Machine */
.draw-round-info { text-align: center; margin-bottom: 1.5rem; }
.draw-round-info span { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.slot-machine { position: relative; width: 100%; max-width: 460px; margin: 0 auto 2rem; }
.slot-glow {
    position: absolute; inset: -6px; border-radius: 22px;
    background: var(--gradient-warm); opacity: 0.4; filter: blur(18px);
    animation: glowPulse 2.5s infinite ease-in-out;
}
@keyframes glowPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.55; } }

.slot-window {
    position: relative; width: 100%; height: 100px;
    overflow: hidden; border-radius: 18px;
    border: 2px solid rgba(211,47,47,0.35);
    background: rgba(6,6,10,0.95);
    box-shadow: inset 0 2px 20px rgba(0,0,0,0.5);
}
.slot-window::before, .slot-window::after {
    content: ''; position: absolute; left: 0; right: 0; height: 30px; z-index: 2; pointer-events: none;
}
.slot-window::before { top: 0; background: linear-gradient(to bottom, rgba(6,6,10,0.95), transparent); }
.slot-window::after { bottom: 0; background: linear-gradient(to top, rgba(6,6,10,0.95), transparent); }

.slot-reel { display: flex; flex-direction: column; align-items: center; }
.slot-reel .slot-item {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; white-space: nowrap; padding: 0 2rem;
    letter-spacing: -0.01em;
}

.sorting-indicator { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(211,47,47,0.15); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sorting-indicator p { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }

/* Results */
.result-round-label { text-align: center; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.winners-display { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.winner-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.3rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(211,47,47,0.15);
    border-radius: 14px;
    animation: winnerIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
    position: relative; overflow: hidden;
}
.winner-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211,47,47,0.06), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }
.winner-card:nth-child(2) { animation-delay: 0.15s; }
.winner-card:nth-child(3) { animation-delay: 0.3s; }
.winner-card .position {
    width: 46px; height: 46px;
    background: var(--gradient-warm); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 1.1rem; flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(211,47,47,0.35);
}
.winner-card .winner-info { flex: 1; }
.winner-card .winner-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.winner-card .winner-prize { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
@keyframes winnerIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.result-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* History */
.history-list { display: flex; flex-direction: column; gap: 0.75rem; }
.history-item {
    padding: 1.1rem 1.3rem;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; transition: all 0.2s;
}
.history-item:hover { border-color: rgba(211,47,47,0.15); }
.history-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.history-item-header strong { font-size: 0.9rem; font-weight: 700; }
.history-item-header span { font-size: 0.75rem; color: var(--text-muted); }
.history-item-winners { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.empty-state { text-align: center; padding: 3.5rem; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.25; }
.empty-state p { font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(12px); }
.modal-content {
    position: relative; max-width: 650px; width: 100%; max-height: 90vh; overflow-y: auto;
    background: #111114; border-radius: 20px; padding: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(211,47,47,0.08);
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.06); border: none; color: var(--text);
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s; z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-actions { display: flex; justify-content: center; margin-top: 1.5rem; }

/* Certificate */
.certificate { background: #fefefe; border-radius: 14px; padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.cert-border { border: 3px solid; border-image: var(--gradient-warm) 1; border-radius: 10px; padding: 0.75rem; }
.cert-inner {
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 3rem 2.5rem; text-align: center; color: #1a1a1a;
    position: relative; overflow: hidden;
}
.cert-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-warm); }
.cert-header { margin-bottom: 2.5rem; }
.cert-logo { max-width: 100px; margin-bottom: 1.2rem; filter: invert(1); }
.cert-header h2 { color: #1a1a1a; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 4px; font-weight: 800; margin-bottom: 1rem; }
.cert-ornament { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cert-ornament span { display: block; height: 3px; border-radius: 2px; background: #d32f2f; }
.cert-ornament span:nth-child(1), .cert-ornament span:nth-child(3) { width: 30px; opacity: 0.4; }
.cert-ornament span:nth-child(2) { width: 60px; }
.cert-body { margin: 2.5rem 0; }
.cert-label { font-size: 1rem; color: #666; margin-bottom: 1rem; font-style: italic; }
.cert-winners { margin: 1.2rem 0; }
.cert-winner-name { font-size: 1.8rem; font-weight: 800; color: #1a1a1a; margin: 0.5rem 0; font-family: 'Georgia', serif; }
.cert-prize { font-size: 1.1rem; color: #d32f2f; font-weight: 600; margin-top: 0.5rem; }
.cert-description { font-size: 0.95rem; color: #555; margin-top: 1.2rem; line-height: 1.7; }
.cert-footer { margin-top: 3rem; }
.cert-date { color: #888; font-size: 0.85rem; margin-bottom: 2rem; }
.cert-signature { display: inline-block; }
.cert-line { width: 180px; height: 1px; background: #333; margin: 0 auto 0.5rem; }
.cert-signature p { font-size: 0.85rem; color: #333; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Confetti */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 99; }

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* Kiosk Mode */
.panel-header-row { display: flex; justify-content: space-between; align-items: flex-start; }

body.kiosk-mode .sidebar { display: none; }
body.kiosk-mode .main-content {
    margin-left: 0; padding: 2vh 2vw; max-width: 100%;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
}
body.kiosk-mode .panel-header { display: none; }
body.kiosk-mode #tab-draw { width: 100%; max-width: min(800px, 90vw); padding: 2vh 2vw; }
body.kiosk-mode .draw-summary { grid-template-columns: repeat(4, 1fr); gap: clamp(0.5rem, 1.5vw, 1.5rem); margin-bottom: clamp(1.5rem, 4vh, 3rem); }
body.kiosk-mode .summary-item { padding: clamp(0.8rem, 2vh, 1.8rem) clamp(0.6rem, 1.5vw, 1.5rem); }
body.kiosk-mode .summary-value { font-size: clamp(1.2rem, 3vw, 2rem); }
body.kiosk-mode .slot-machine { max-width: min(560px, 80vw); }
body.kiosk-mode .slot-window { height: min(130px, 15vh); border-radius: 20px; }
body.kiosk-mode .slot-reel .slot-item { font-size: clamp(1.4rem, 3vw, 2.4rem); }
body.kiosk-mode .btn-large { padding: clamp(0.9rem, 2vh, 1.4rem) 3rem; font-size: clamp(1rem, 2vw, 1.3rem); border-radius: 16px; }
body.kiosk-mode .winner-card { padding: clamp(1rem, 2vh, 1.6rem) clamp(1rem, 2vw, 2rem); }
body.kiosk-mode .winner-card .winner-name { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
body.kiosk-mode .winner-card .position { width: clamp(40px, 6vw, 54px); height: clamp(40px, 6vw, 54px); font-size: clamp(1rem, 2vw, 1.3rem); border-radius: 14px; }
body.kiosk-mode .kiosk-logo { display: block; text-align: center; margin-bottom: clamp(1rem, 3vh, 2.5rem); }
body.kiosk-mode .kiosk-logo img { height: clamp(40px, 8vh, 80px); }

.kiosk-logo { display: none; }
.kiosk-exit { display: none; }
body.kiosk-mode .kiosk-exit {
    display: flex; position: fixed; top: 1.5rem; right: 1.5rem; z-index: 50;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 0.6rem 1rem; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; align-items: center; font-family: inherit;
    transition: all 0.2s;
}
body.kiosk-mode .kiosk-exit:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* Print */
@media print {
    body { background: #fff; }
    .bg-effects, .sidebar, .modal-close, .modal-actions, .modal-backdrop { display: none !important; }
    .modal { position: static; padding: 0; }
    .modal-content { max-width: 100%; background: #fff; border: none; box-shadow: none; }
    .certificate { box-shadow: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 100%; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0.5rem; gap: 2px; }
    .nav-item span { display: none; }
    .nav-item { padding: 0.6rem; justify-content: center; }
    .nav-item.active { border-left: none; padding-left: 0.6rem; }
    .main-content { margin-left: 0; padding: 1.5rem 1rem; }
    .draw-summary { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .app-container { flex-direction: column; }
}
