/* Modern CSS with Glassmorphism and Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --dark-card: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --correct: #00ff88;
    --close: #ffb84d;
    --wrong: #ff4757;
    --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f172a;
    background-image:
        radial-gradient(at 20% 10%, rgba(16, 185, 129, 0.18) 0px, transparent 50%),
        radial-gradient(at 80% 90%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.08) 0px, transparent 60%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-glow);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

header nav ul li a:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

header nav ul li strong {
    font-size: 1.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Logo Container */
.logo-container {
    margin: 1rem 0 0.5rem;
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

.logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Welcome Message */
.welcome-message {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.6s ease;
}

.welcome-message p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.welcome-message p b {
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Search Container */
.search-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

#form-recherche {
    position: relative;
    margin-bottom: 2rem;
}

#search-player {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-image: linear-gradient(rgba(15,23,42,0.9), rgba(15,23,42,0.9)), linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    animation: borderGradient 8s linear infinite;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), 0 4px 15px rgba(0,0,0,0.3);
}

@keyframes borderGradient {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 0% 0%, 300% 0%; }
}

#search-player:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 0 30px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

#search-player::placeholder {
    color: var(--text-secondary);
}

/* Autocomplete */
#autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-glow);
    animation: slideDown 0.3s ease;
}

.autocomplete-items div {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background: var(--glass-bg);
    padding-left: 2rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.8s ease;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Indices Section */
#indices {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease;
}

#player-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#player_thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease;
}

#player_thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
}

#nom {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.indice-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.indice-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease;
    animation-fill-mode: both;
}

.indice-box:nth-child(1) { animation-delay: 0.1s; }
.indice-box:nth-child(2) { animation-delay: 0.2s; }
.indice-box:nth-child(3) { animation-delay: 0.3s; }
.indice-box:nth-child(4) { animation-delay: 0.4s; }
.indice-box:nth-child(5) { animation-delay: 0.5s; }
.indice-box:nth-child(6) { animation-delay: 0.6s; }
.indice-box:nth-child(7) { animation-delay: 0.7s; }
.indice-box:nth-child(8) { animation-delay: 0.8s; }

.indice-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.indice-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.indice-box span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

/* Color States */
.correct {
    color: var(--correct) !important;
    font-weight: 700;
}

.correct-value {
    color: var(--correct);
    font-weight: 700;
}

.close {
    color: var(--close) !important;
    font-weight: 600;
}

.range-value {
    color: var(--close);
    font-weight: 600;
}

.wrong {
    color: var(--wrong) !important;
    font-weight: 600;
}

.higher, .lower {
    color: var(--close);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Evolution Phrase */
#evolution-phrase-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.6s ease;
}

#evolution-phrase {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Congratulations Message */
#congratulations-message {
    background: var(--success-gradient);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
    animation: bounceIn 0.8s ease;
}

#congratulations-message p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

#congratulations-message button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#congratulations-message button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* YouTube Video */
#youtube-video {
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.6s ease;
}

#youtube-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* History Container */
#history-container {
    margin-top: 2rem;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

#history-container h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

#history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#history-list li {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease;
    animation-fill-mode: both;
}

#history-list li:nth-child(1) { animation-delay: 0.1s; }
#history-list li:nth-child(2) { animation-delay: 0.2s; }
#history-list li:nth-child(3) { animation-delay: 0.3s; }
#history-list li:nth-child(4) { animation-delay: 0.4s; }
#history-list li:nth-child(5) { animation-delay: 0.5s; }

#history-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

#history-list li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
}

#history-list li div {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

#history-list li strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

#essai-numero {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--correct);
    animation: confetti-fall 3s ease-out forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Header compact — horizontal */
    header { padding: 8px 12px !important; }
    header nav ul {
        flex-direction: row !important;
        gap: 12px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
    }
    header nav ul li { margin: 0 !important; }
    header nav ul li strong {
        font-size: 1.1rem !important;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
    }
    header nav ul li a {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
    }

    /* Stats en grille 4 colonnes compactes */
    
        gap: 8px !important;
        padding: 0 !important;
        margin: 12px 12px 18px !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box;
    }
    .stat-card {
        width: auto !important;
        padding: 10px 6px !important;
        min-height: auto !important;
        min-width: 0 !important;
        overflow: hidden;
    }
    .stat-value {
        font-size: 1.3rem !important;
        margin-bottom: 2px !important;
    }
    .stat-label {
        font-size: 0.65rem !important;
        text-transform: uppercase;
    }

    /* Indices 2 colonnes */
    .indice-row { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .indice-box { padding: 8px !important; font-size: 0.85rem !important; }

    /* Container plus compact */
    main { padding: 8px 12px !important; }
    .search-container { padding: 0 4px !important; max-width: 100%; box-sizing: border-box; }
    .logo { max-width: 240px !important; }
    .logo-container { margin: 4px 0 !important; padding: 0 !important; }

    #player_thumbnail { width: 120px !important; height: 120px !important; }
    #nom { font-size: 1.2rem !important; }

    .welcome-message { padding: 12px !important; font-size: 0.9rem !important; }
    .welcome-message p { font-size: 0.9rem !important; margin: 4px 0 !important; }
}

@media (max-width: 400px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
    .indice-row { grid-template-columns: 1fr !important; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ============================================
   VICTORY POPIN — Panini card reveal + CTA
   ============================================ */
.victory-popin-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(7, 9, 26, .85);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity .3s ease;
}
.victory-popin-overlay.visible { opacity: 1; }
.victory-popin-card {
    position: relative;
    width: 100%; max-width: 440px;
    max-height: 95vh; overflow-y: auto;
    background: linear-gradient(160deg, #1a1f3a 0%, #0a0e27 100%);
    border-radius: 20px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    text-align: center;
    transform: scale(.95);
    transition: transform .3s ease;
}
.victory-popin-overlay.visible .victory-popin-card { transform: scale(1); }

.popin-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
    border: none; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.popin-close:hover { background: rgba(255,255,255,.15); color: #fff; }

.popin-reveal {
    margin: 8px 0 22px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.popin-rarity-badge {
    padding: 5px 14px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

.popin-card-mini {
    width: 180px; aspect-ratio: 2/3;
    padding: 3px; border-radius: 16px;
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    animation: card-pop .6s cubic-bezier(.34,1.56,.64,1) .2s both;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.popin-card-mini.legendary {
    background: linear-gradient(135deg, #fde047, #f59e0b, #ea580c, #fde047);
    background-size: 300% 300%;
    animation: card-pop .6s cubic-bezier(.34,1.56,.64,1) .2s both, shimmer-pop 3s ease infinite .8s;
    box-shadow: 0 10px 40px rgba(245,158,11,.5);
}
.popin-card-mini.epic {
    background: linear-gradient(135deg, #c084fc, #a855f7, #7c3aed);
    box-shadow: 0 10px 30px rgba(168,85,247,.4);
}
.popin-card-mini.rare {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 30px rgba(59,130,246,.4);
}
.popin-card-mini img {
    width: 100%; height: 70%;
    object-fit: cover; object-position: top center;
    border-radius: 13px 13px 0 0;
    background: #0a0e27;
}
.popin-card-name {
    color: #fff; font-weight: 700; font-size: .95rem;
    padding: 8px 10px 0; line-height: 1.1;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.popin-card-country {
    color: rgba(255,255,255,.75); font-size: .7rem;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 2px 10px 8px;
}

@keyframes card-pop {
    from { transform: scale(.3) rotate(-15deg); opacity: 0; }
    to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes shimmer-pop {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.popin-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem; color: #fff; margin-bottom: 4px;
    background: linear-gradient(135deg,#10b981,#3b82f6,#f59e0b);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.popin-subtitle { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 4px; }
.popin-count { color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: 18px; }
.popin-count strong { color: #f59e0b; }

.popin-cta-block {
    padding: 16px; border-radius: 14px;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.2);
}
.popin-warn { color: rgba(255,255,255,.85); font-size: .82rem; line-height: 1.5; margin-bottom: 14px; }
.popin-warn strong { color: #fde047; }
.popin-success { color: #86efac; font-size: .9rem; margin-bottom: 12px; font-weight: 600; }

.popin-actions {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}
.popin-btn {
    display: block; width: 100%;
    padding: 13px 18px; border-radius: 12px;
    font-size: .95rem; font-weight: 700;
    text-decoration: none; text-align: center;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer; border: none;
}
.popin-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16,185,129,.3);
}
.popin-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,185,129,.4); }
.popin-btn-secondary {
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.15);
}
.popin-btn-secondary:hover { background: rgba(255,255,255,.14); }

.popin-skip {
    background: none; border: none; color: rgba(255,255,255,.45);
    font-size: .8rem; cursor: pointer; margin-top: 4px;
    text-decoration: underline; font-family: inherit;
}
.popin-skip:hover { color: rgba(255,255,255,.7); }

@media (max-width: 480px) {
    .victory-popin-card { padding: 20px 16px 18px; }
    .popin-card-mini { width: 150px; }
    .popin-title { font-size: 1.2rem; }
}
