/* ===========================
   CSS VARIABLES & RESET
   =========================== */

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

:root {
    /* Core Colors */
    --red-main: #e53e3e;
    --red-dark: #c53030;
    --red-glow: rgba(229, 62, 62, 0.4);
    --red-soft: rgba(229, 62, 62, 0.12);

    /* Dark surface system */
    --bg: #000000;
    --surface-1: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Role colors */
    --impostor-color: #ff4757;
    --impostor-glow: rgba(255, 71, 87, 0.35);
    --citizen-color: #1dd1a1;
    --citizen-glow: rgba(29, 209, 161, 0.35);

    /* Accent */
    --accent: #e53e3e;
    --accent-2: #ff6b35;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 1.5rem;
    --s-lg: 2rem;
    --s-xl: 3rem;

    /* Radius */
    --r-sm: 0.75rem;
    --r-md: 1rem;
    --r-lg: 1.5rem;
    --r-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   BACKGROUND EFFECTS
   =========================== */

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -2;
}

/* Subtle red ambient glow in top corners */
.background-gradient::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.background-gradient::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(229, 62, 62, 0.4);
    border-radius: 50%;
    animation: float 20s infinite;
}

.particle:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* ===========================
   LAYOUT
   =========================== */

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--s-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===========================
   GLASSMORPHISM CARDS
   =========================== */

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    padding: var(--s-xl) var(--s-lg);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.08);
    width: 100%;
    max-width: 540px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.5), transparent);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e53e3e 60%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--s-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--s-md);
    text-align: center;
    color: #fff;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    line-height: 1.65;
    margin-bottom: var(--s-sm);
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* ===========================
   LOGO & BRANDING
   =========================== */

.logo-container {
    text-align: center;
    margin-bottom: var(--s-md);
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(229, 62, 62, 0.25));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--s-md);
    letter-spacing: 0.01em;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.btn:active {
    transform: scale(0.96);
}

/* Primary — red gradient */
.btn-primary {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,100,100,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fc4f4f 0%, #d63939 100%);
    box-shadow: 0 8px 30px rgba(229, 62, 62, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Secondary - subtle white glass */
.btn-secondary {
    background: var(--surface-2);
    color: #fff;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--surface-3);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--surface-1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* Danger */
.btn-danger {
    background: linear-gradient(135deg, rgba(255,71,87,0.2), rgba(255,71,87,0.1));
    color: #ff6b7a;
    border: 1px solid rgba(255,71,87,0.3);
    box-shadow: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(255,71,87,0.35), rgba(255,71,87,0.2));
    box-shadow: 0 4px 16px rgba(255,71,87,0.2);
    transform: translateY(-1px);
}

/* Success */
.btn-success {
    background: linear-gradient(135deg, rgba(29,209,161,0.2), rgba(29,209,161,0.1));
    color: #1dd1a1;
    border: 1px solid rgba(29,209,161,0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(29,209,161,0.35), rgba(29,209,161,0.2));
    box-shadow: 0 4px 16px rgba(29,209,161,0.2);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--r-sm);
}

/* ===========================
   FORMS
   =========================== */

.form-group {
    margin-bottom: var(--s-md);
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface-1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--red-main);
    background: rgba(229, 62, 62, 0.05);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ===========================
   PLAYER LIST
   =========================== */

.player-list {
    list-style: none;
    margin-bottom: var(--s-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.2s ease;
    animation: slideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.player-item:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

.player-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.player-number {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

/* ===========================
   ROLE CARD
   =========================== */

.role-card {
    padding: var(--s-xl) var(--s-lg);
    border-radius: var(--r-xl);
    text-align: center;
    animation: cardFlip 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes cardFlip {
    0% { transform: scale(0.85) rotateY(20deg); opacity: 0; }
    100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.role-card.impostor {
    background: linear-gradient(145deg, rgba(255,71,87,0.15) 0%, rgba(229,62,62,0.05) 100%);
    border: 1px solid rgba(255,71,87,0.4);
    box-shadow: 0 0 50px rgba(255,71,87,0.2), inset 0 1px 0 rgba(255,80,100,0.1);
}

.role-card.citizen {
    background: linear-gradient(145deg, rgba(29,209,161,0.15) 0%, rgba(16,172,132,0.05) 100%);
    border: 1px solid rgba(29,209,161,0.4);
    box-shadow: 0 0 50px rgba(29,209,161,0.2), inset 0 1px 0 rgba(29,209,161,0.1);
}

.role-icon {
    font-size: 3.5rem;
    margin-bottom: var(--s-md);
    animation: pulse 2s ease-in-out infinite;
}

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

.role-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: var(--s-md);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-card.impostor .role-title { color: #ff6b7a; }
.role-card.citizen .role-title { color: #1dd1a1; }

.secret-word {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--r-md);
    margin-top: var(--s-md);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

/* ===========================
   IMPOSTOR CONFIGURATION
   =========================== */

.impostor-config {
    margin-bottom: var(--s-md);
    padding: var(--s-md);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.impostor-config label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--s-sm);
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.impostor-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.impostor-btn {
    padding: 0.6rem 1.1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 52px;
    font-family: var(--font-body);
}

.impostor-btn:hover {
    background: var(--surface-3);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-1px);
}

.impostor-btn.active {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border-color: #e53e3e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 62, 62, 0.4);
}

.impostor-config .hint {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.category-hint {
    margin-top: var(--s-md);
}

/* ===========================
   INSTRUCTIONS
   =========================== */

.instructions {
    background: var(--surface-1);
    border: 1px solid var(--border);
    padding: var(--s-md);
    border-radius: var(--r-lg);
    margin-bottom: var(--s-lg);
}

.instructions h3 {
    font-size: 0.8rem;
    color: var(--red-main);
    margin-bottom: var(--s-sm);
}

.instructions ol {
    margin-left: var(--s-md);
    line-height: 1.9;
}

.instructions li {
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
}

.instructions li strong {
    color: rgba(255,255,255,0.95);
}

/* ===========================
   GAME SCREEN
   =========================== */

.game-header {
    text-align: center;
    margin-bottom: var(--s-lg);
}

.current-player {
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    background: var(--red-soft);
    border: 1px solid rgba(229,62,62,0.25);
    border-radius: var(--r-md);
    margin-bottom: var(--s-sm);
    color: #fff;
}

.round-info {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: var(--s-lg);
}

/* ===========================
   VOTING SCREEN
   =========================== */

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: var(--s-lg);
}

.vote-btn {
    padding: 1rem;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.vote-btn:hover {
    background: var(--red-soft);
    border-color: rgba(229,62,62,0.4);
    color: #ff8080;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229,62,62,0.15);
}

/* ===========================
   RESULTS SCREEN
   =========================== */

.results-card {
    text-align: center;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.victory-icon {
    font-size: 4.5rem;
    margin-bottom: var(--s-md);
    animation: bounce 1.2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.victory-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--s-md);
    letter-spacing: -0.01em;
}

.results-info {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-md);
    margin-bottom: var(--s-md);
    text-align: left;
}

.results-info p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.75);
}

.results-info p:last-child { margin-bottom: 0; }

.results-info strong {
    color: rgba(255,255,255,0.95);
}

/* ===========================
   UTILITIES
   =========================== */

.mt-1 { margin-top: var(--s-sm); }
.mt-2 { margin-top: var(--s-md); }
.mt-3 { margin-top: var(--s-lg); }
.mb-1 { margin-bottom: var(--s-sm); }
.mb-2 { margin-bottom: var(--s-md); }
.mb-3 { margin-bottom: var(--s-lg); }

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   DIVIDER
   =========================== */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: var(--s-md) 0;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    html { font-size: 15px; }

    .container {
        padding: var(--s-sm);
    }

    .glass-card {
        padding: var(--s-lg) var(--s-md);
        border-radius: var(--r-lg);
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.5rem; }

    .vote-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 400px) {
    .glass-card {
        padding: var(--s-md) var(--s-sm);
    }

    h1 { font-size: 2rem; }

    .vote-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================
   PWA INSTALL BUTTON
   =========================== */

.pwa-install-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInUp 0.5s ease;
}

.pwa-install-container.hidden {
    display: none;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-install-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    padding: var(--s-md);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    max-width: 300px;
    position: relative;
}

.pwa-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--surface-2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
    z-index: 10;
}

.pwa-close-btn:hover {
    background: var(--surface-3);
    color: #fff;
    transform: rotate(90deg);
}

.pwa-install-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.pwa-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pwa-icon img {
    border-radius: var(--r-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pwa-text { text-align: center; }

.pwa-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.pwa-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.pwa-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    border: none;
    border-radius: var(--r-md);
    color: white;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35);
    width: 100%;
}

.pwa-install-btn:hover {
    background: linear-gradient(135deg, #fc4f4f, #d63939);
    box-shadow: 0 6px 24px rgba(229, 62, 62, 0.5);
    transform: translateY(-1px);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-ios-instructions {
    margin-top: var(--s-sm);
    padding: var(--s-sm);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: var(--r-sm);
}

.pwa-ios-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.pwa-ios-text strong { color: #ffc107; }

@media (max-width: 480px) {
    .pwa-install-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .pwa-install-card {
        max-width: 100%;
    }
}

/* ===========================
   PROMO POPUP BANNER
   =========================== */

#promoPopupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(4px);
}

#promoPopupOverlay.active {
    display: flex;
}

.promo-popup-card {
    position: relative;
    max-width: 380px;
    width: 90%;
    background: #111;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.07);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-popup-card img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.25s ease;
    line-height: 1;
}

.promo-close-btn:hover {
    background: rgba(229, 62, 62, 0.9);
    border-color: #e53e3e;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* ===========================
   VISIT COUNTER
   =========================== */

.visit-counter {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-top: 0.6rem;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

.visit-count {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--red-main);
    text-shadow: 0 0 12px rgba(229, 62, 62, 0.6);
    letter-spacing: 0.01em;
}
