/* ==================== ROUE DE HANOUKA - SINGLE PAGE ====================  */

/* Variables */
:root {
    --primary: #1a1a1a;
    --secondary: #c9a86c;
    --gold: #b8956e;
    --gold-light: #d4b896;
    --cream: #fffdf9;
    --cream-dark: #f8f5f0;
    --text: #1a1a1a;
    --text-light: #3a3a3a;
    --text-muted: #6a6a6a;
    --border: #e8e4df;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Lato', -apple-system, sans-serif;
    --font-hebrew: 'Heebo', -apple-system, sans-serif;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    touch-action: manipulation;
}

body {
    font-family: var(--font-body);
    background: url('../assets/hanouka-bg.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
    color: var(--text);
    position: relative;
}

body.rtl {
    font-family: var(--font-hebrew);
    direction: rtl;
}

/* ==================== LANGUAGE SELECTOR ==================== */
.language-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

body.rtl .language-selector {
    right: auto;
    left: 10px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--gold);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--cream-dark);
    transform: scale(1.05);
}

.lang-arrow {
    font-size: 0.7rem;
    color: var(--gold);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 140px;
}

body.rtl .lang-menu {
    right: auto;
    left: 0;
}

.lang-menu.hidden {
    display: none;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.2s ease;
}

body.rtl .lang-option {
    text-align: right;
}

.lang-option:hover {
    background: var(--cream-dark);
}

.lang-option:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

/* ==================== SINGLE PAGE LAYOUT ==================== */
.single-page {
    max-width: 500px;
    margin: 0 auto;
    background: transparent;
}

/* ==================== HEADER ==================== */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-top-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-container {
    padding: 15px;
    text-align: center;
}

.main-logo {
    max-width: 160px;
    height: auto;
}

/* ==================== EVENT SECTION ==================== */
.event-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer effect */
.event-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 149, 110, 0.03) 25%,
        rgba(184, 149, 110, 0.08) 50%,
        rgba(184, 149, 110, 0.03) 75%,
        transparent 100%
    );
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-25%); }
    50% { transform: translateX(25%); }
}

.event-inner {
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

/* Luxurious double frame */
.event-inner::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(184, 149, 110, 0.4);
    pointer-events: none;
}

.event-inner::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(184, 149, 110, 0.2);
    pointer-events: none;
}

/* Corner ornaments */
.event-inner .corner-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
}

.event-pretitle {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(184, 149, 110, 0.3);
    position: relative;
    display: inline-block;
}

/* Ornamental stars */
.event-pretitle::before,
.event-pretitle::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--gold);
    opacity: 0.6;
}

.event-pretitle::before {
    left: -25px;
}

.event-pretitle::after {
    right: -25px;
}

.event-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Luxurious divider with ornament */
.event-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 8px;
    position: relative;
}

.event-divider::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: var(--gold);
    background: #0d0d0d;
    padding: 0 10px;
}

.event-divider::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 149, 110, 0.5), transparent);
}

.event-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 25px;
    margin-top: 15px;
    opacity: 0.9;
}

.event-description {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 360px;
    margin: 0 auto 35px;
    position: relative;
    padding: 0 15px;
}

/* Quote marks */
.event-description::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 0;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 320px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 149, 110, 0.25);
    position: relative;
}

/* Gold corner accents on details box */
.event-details::before,
.event-details::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
}

.event-details::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.event-details::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(184, 149, 110, 0.15);
    transition: background 0.3s ease;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background: rgba(184, 149, 110, 0.05);
}

.detail-icon {
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 149, 110, 0.15), rgba(184, 149, 110, 0.05));
    border: 1px solid rgba(184, 149, 110, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 3px;
}

body.rtl .detail-text {
    text-align: right;
}

.detail-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.detail-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==================== WHEEL SECTION ==================== */
.wheel-section {
    background: transparent;
    padding: 0;
}

.wheel-inner {
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Header box avec fond blanc */
.wheel-header-box {
    background: #fff;
    padding: 25px 20px 15px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--gold);
}

.wheel-header-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(184, 149, 110, 0.3);
    pointer-events: none;
}

.wheel-pretitle {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.wheel-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.wheel-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 12px;
}

.wheel-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

/* Prizes Counter */
.prizes-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary);
    margin-bottom: 0;
}

.prizes-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.prizes-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

/* Prizes Bar */
.prizes-bar {
    height: 6px;
    background: var(--border);
    margin-bottom: 0;
}

.prizes-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transition: width 0.5s ease-out;
}

/* Prizes Grid */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.progress-prize-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(184, 149, 110, 0.5);
}

.progress-prize-row.available {
    border: 2px solid var(--gold);
    animation: pulse-available 2s ease-in-out infinite;
}

@keyframes pulse-available {
    0%, 100% { box-shadow: 0 2px 8px rgba(184, 149, 110, 0.2); }
    50% { box-shadow: 0 2px 15px rgba(184, 149, 110, 0.4); }
}

.progress-prize-row.won {
    opacity: 0.45;
    filter: grayscale(60%);
    animation: none;
}

.progress-prize-row.won::after {
    content: '✓';
    position: absolute;
    top: 3px;
    right: 3px;
    background: #4CAF50;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.progress-prize-row .prize-status {
    position: absolute;
    top: 3px;
    left: 3px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #d4a84b);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
}

.progress-prize-row.won .prize-status {
    background: linear-gradient(135deg, #888, #666);
}

.progress-prize-row .prize-icon {
    font-size: 1.8rem;
    margin-top: 5px;
}

.progress-prize-row .prize-name {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--primary);
    line-height: 1.2;
}

/* Wheel Container */
.wheel-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.wheel-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 35px solid var(--primary);
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid var(--gold);
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow:
        0 0 0 8px var(--gold),
        0 0 0 12px var(--primary),
        0 0 0 14px var(--gold),
        0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Spin Button */
.btn-spin-main {
    width: 100%;
    max-width: 260px;
    padding: 18px 30px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-spin-main:hover {
    background: var(--gold);
    color: var(--primary);
}

.btn-spin-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #888;
}

/* Code Button */
.btn-code {
    width: 100%;
    max-width: 260px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid var(--gold);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-code::before {
    content: '🎟️';
    font-size: 1.1rem;
}

.btn-code:hover {
    background: var(--gold);
    color: #fff;
}

/* My Prizes */
.my-prizes {
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    margin-top: 10px;
    border: 1px solid rgba(184, 149, 110, 0.5);
    border-radius: 8px;
}

.my-prizes-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.my-prizes-list {
    min-height: 50px;
}

.no-prizes-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--gold);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.prize-item-icon {
    font-size: 2rem;
}

.prize-item-info {
    flex: 1;
}

.prize-item-name {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--primary);
}

.prize-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== RESERVATION SECTION ==================== */
.reservation-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0;
}

.reservation-inner {
    padding: 35px 25px;
    text-align: center;
    position: relative;
}

.reservation-inner::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.reservation-pretitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.reservation-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    margin-bottom: 15px;
}

.reservation-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 25px;
}

/* Places Counter */
.places-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 25px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 149, 110, 0.3);
}

.places-urgency {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
}

.places-urgency.pulse {
    animation: pulse-urgency 1.5s ease-in-out infinite;
}

@keyframes pulse-urgency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.places-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.places-big-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.places-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Price Display */
.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
}

/* Reserve Button */
.btn-reserve-main {
    width: 100%;
    max-width: 280px;
    padding: 18px 30px;
    background: var(--gold);
    border: none;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-reserve-main:hover {
    background: var(--gold-light);
}

.btn-reserve-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reservation-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--primary);
    padding: 30px 15px 20px;
    text-align: center;
}

.menorah-title {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-blessing {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 15px;
}

.current-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* ==================== MENORAH ==================== */
.hanukkah-menorah {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 320px;
}

.menorah-candles {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
}

.candle-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.candle-holder .candle {
    width: 12px;
    height: 45px;
    background: linear-gradient(to right, #f5e6d3, #fff8e7, #f5e6d3);
    border-radius: 3px 3px 0 0;
    position: relative;
    box-shadow: 0 0 5px rgba(255, 248, 231, 0.3);
}

.candle-holder .candle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #333;
    border-radius: 1px;
}

.candle-holder.shamash {
    margin: 0 8px;
}

.candle-holder.shamash .candle {
    height: 60px;
    width: 14px;
    background: linear-gradient(to right, #d4af37, #ffd700, #d4af37);
}

.candle-holder .flame {
    width: 14px;
    height: 28px;
    background: linear-gradient(to top, #ff6b35, #ffa500, #ffdb58, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.5s ease;
    filter: blur(1px);
}

.candle-holder .flame::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: linear-gradient(to top, #fff, #fffacd, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.candle-holder.lit .flame {
    opacity: 1;
    transform: scaleY(1);
    animation: flicker 0.5s ease-in-out infinite alternate, glow 1s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1) rotate(-1deg); }
    25% { transform: scaleY(1.05) scaleX(0.95) rotate(1deg); }
    50% { transform: scaleY(0.95) scaleX(1.02) rotate(-0.5deg); }
    75% { transform: scaleY(1.02) scaleX(0.98) rotate(0.5deg); }
    100% { transform: scaleY(1) scaleX(1) rotate(1deg); }
}

@keyframes glow {
    0% { filter: blur(1px) drop-shadow(0 0 5px #ffa500); }
    100% { filter: blur(1.5px) drop-shadow(0 0 15px #ffa500) drop-shadow(0 0 25px #ff6b35); }
}

.menorah-base {
    width: 280px;
    height: 12px;
    background: linear-gradient(to bottom, #d4af37, #b8860b, #8b7355);
    border-radius: 0 0 6px 6px;
    margin-top: -2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.menorah-base::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    border-radius: 5px 5px 0 0;
}

.hanukkah-day-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    margin-top: 20px;
    font-style: italic;
}

/* ==================== POPUPS ==================== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
}

.popup-content {
    position: relative;
    background: var(--cream);
    width: calc(100% - 30px);
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 25px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.popup.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--primary);
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: var(--gold);
    color: var(--primary);
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.popup-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.popup-header p {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==================== FORMS ==================== */
#playerForm input,
#reservationForm input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

#playerForm input::placeholder,
#reservationForm input::placeholder {
    color: var(--text-muted);
}

#playerForm input:focus,
#reservationForm input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ==================== RESULT POPUP ==================== */
.popup-result {
    text-align: center;
    padding: 30px 20px;
}

.result-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    animation: popBounce 0.6s ease;
}

@keyframes popBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.result-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.result-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

/* ==================== ALREADY PLAYED POPUP ==================== */
#alreadyPlayedPopup .popup-content {
    text-align: center;
    padding: 30px 20px;
}

#alreadyPlayedPopup h2 {
    font-family: var(--font-display);
    color: var(--primary);
    margin: 10px 0;
    font-weight: 400;
}

.next-time {
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 500;
    margin-top: 12px;
}

/* ==================== ERROR POPUP ==================== */
#errorPopup .popup-content {
    text-align: center;
    padding: 25px 15px;
}

/* ==================== RESERVATION POPUP ==================== */
.reservation-content {
    max-width: 380px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 15px;
    margin-bottom: 15px;
}

.quantity-selector label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--gold);
    color: var(--primary);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
}

.reservation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(201, 168, 108, 0.1);
    border: 1px solid var(--gold);
    padding: 15px;
    margin-bottom: 15px;
}

.reservation-total span:first-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

.total-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.btn-reserve-submit {
    background: var(--primary);
    color: #fff;
}

.btn-reserve-submit:hover {
    background: var(--gold);
    color: var(--primary);
}

/* ==================== POPUP PROMO SECTION ==================== */
.popup-promo-section {
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
}

.popup-promo-section.hidden {
    display: none;
}

.popup-promo-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 20px;
}

.popup-promo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 15px;
}

.popup-promo-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.popup-promo-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.popup-promo-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.btn-popup-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 14px 20px;
    background: var(--gold);
    color: var(--primary);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-popup-reserve:hover {
    background: var(--primary);
    color: #fff;
}

.btn-popup-reserve .btn-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 15px;
    border-left: 1px solid rgba(26, 26, 26, 0.3);
}

.btn-close-result {
    margin-top: 15px;
}

/* ==================== LOADING ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    font-family: var(--font-display);
    margin-top: 15px;
    color: var(--gold);
    font-style: italic;
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
    z-index: 3000;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 360px) {
    .event-title {
        font-size: 1.8rem;
    }

    .wheel-title,
    .reservation-title {
        font-size: 1.5rem;
    }

    .places-big-number {
        font-size: 3rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .wheel-wrapper {
        width: 240px;
        height: 240px;
    }

    .menorah-candles {
        gap: 5px;
    }

    .candle-holder .candle {
        width: 10px;
        height: 35px;
    }

    .candle-holder.shamash .candle {
        height: 50px;
        width: 12px;
    }

    .menorah-base {
        width: 240px;
    }

    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 500px) {
    .prizes-grid {
        gap: 12px;
    }

    .progress-prize-row {
        padding: 12px 8px;
    }

    .progress-prize-row .prize-icon {
        font-size: 2rem;
    }

    .progress-prize-row .prize-name {
        font-size: 0.75rem;
    }
}

/* ==================== QR SCANNER ==================== */
.code-popup-content {
    max-width: 400px;
}

.qr-scanner-section {
    margin-bottom: 15px;
}

#qrReader {
    width: 100%;
    min-height: 200px;
    background: #f5f5f5;
    border: 2px dashed var(--gold);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

#qrReader video {
    width: 100% !important;
    border-radius: 6px;
}

#qrReader__scan_region {
    background: transparent !important;
}

#qrReader__dashboard_section_csr button {
    background: var(--gold) !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 2px solid var(--gold);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--gold);
    color: #fff;
}

.btn-start-scan::before {
    content: '📷';
    font-size: 1.2rem;
}

.btn-stop-scan {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-stop-scan:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-stop-scan::before {
    content: '⬛';
    font-size: 1rem;
}

.code-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.code-divider::before,
.code-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.code-divider span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.manual-code-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
    text-align: center;
    letter-spacing: 0.2em;
}

.manual-code-form input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

.manual-code-form input:focus {
    outline: none;
    border-color: var(--gold);
}

/* QR Scanner scanning animation */
.qr-scanning #qrReader {
    border-color: #28a745;
    border-style: solid;
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

/* Scanner status message */
.scanner-status {
    text-align: center;
    padding: 10px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}
