/* ===== CSS VARIABLES ===== */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-blue: #2d4a8c;
    --accent-gold: #ffd700;
    --accent-gold-dark: #b8941f;
    --text-light: #ffffff;
    --text-muted: #a0a0b0;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --gradient-primary: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #b8941f 100%);
    --gradient-button: linear-gradient(180deg, #2d4a8c 0%, #1a2d5a 100%);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-button: 0 4px 8px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== START SCREEN / HERO ===== */
#start-screen {
    position: relative;
    background: radial-gradient(ellipse at center, var(--secondary-dark) 0%, var(--primary-dark) 70%);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.spotlight {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    animation: spotlightPulse 4s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 70%; animation-delay: 2s; }
.particle:nth-child(6) { left: 80%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 90%; animation-delay: 3s; }
.particle:nth-child(8) { left: 60%; animation-delay: 3.5s; }

@keyframes float {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

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

.diamond-icon {
    font-size: 4rem;
    animation: rotate 10s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-gold);
}

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

.logo-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-weight: 600;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.logo-title {
    font-size: 4.5rem;
    margin: 0;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
}

.question-mark {
    color: var(--accent-gold);
    font-size: 5rem;
    font-weight: 900;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(26, 31, 58, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease 0.3s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-divider {
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.5;
}

.hero-actions {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

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

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 60px;
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-gold), 0 10px 30px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: scale(1.2);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    animation: fadeIn 1s ease 0.7s backwards;
}

/* ===== QUIZ SCREEN ===== */
#quiz-screen {
    justify-content: flex-start;
    padding: 0;
}

.quiz-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.quiz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quiz-header {
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.question-counter {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.question-counter span {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.5rem;
}

.prize-display {
    text-align: right;
}

.prize-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#current-prize {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.quiz-content {
    flex: 1;
    width: 100%;
    max-width: 900px;
    padding: 20px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-container {
    background: var(--secondary-dark);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-blue);
    text-align: center;
    box-shadow: var(--shadow-button);
}

#question-text {
    font-size: 1.3rem;
    line-height: 1.5;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.answer-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-button);
}

.answer-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: linear-gradient(180deg, #f0a500 0%, #b8941f 100%);
    border-color: var(--accent-gold);
}

.answer-btn.correct {
    background: linear-gradient(180deg, #28a745 0%, #1e7e34 100%);
    border-color: var(--success-green);
    animation: pulse 0.5s ease;
}

.answer-btn.wrong {
    background: linear-gradient(180deg, #dc3545 0%, #a71d2a 100%);
    border-color: var(--danger-red);
    animation: shake 0.5s ease;
}

.answer-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.answer-btn.hidden {
    visibility: hidden;
}

.answer-label {
    font-weight: bold;
    color: var(--accent-gold);
    margin-right: 15px;
}

.answer-text {
    flex: 1;
}

/* ===== QUIZ FOOTER ===== */
.quiz-footer {
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--accent-blue);
}

.lifelines {
    display: flex;
    gap: 15px;
}

.lifeline-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifeline-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.lifeline-btn:hover:not(.used) {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.lifeline-btn.used {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
}

.timer {
    position: relative;
}

.timer-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

#timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
}

/* ===== SOUND TOGGLE BUTTON ===== */
.sound-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sound-toggle svg {
    color: var(--accent-gold);
    transition: var(--transition);
}

.sound-toggle:hover {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.sound-toggle.muted svg {
    color: var(--danger-red);
    opacity: 0.6;
}

.sound-toggle.muted {
    border-color: var(--danger-red);
}

/* ===== PRIZE LADDER ===== */
.prize-ladder {
    width: 280px;
    min-width: 280px;
    background: var(--secondary-dark);
    padding: 20px;
    border-left: 3px solid var(--accent-gold);
    overflow-y: auto;
    z-index: 100;
}

.prize-ladder h3 {
    text-align: center;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prize-ladder h3 svg {
    color: var(--accent-gold);
}

#prize-list {
    list-style: none;
}

#prize-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

#prize-list li .level {
    color: var(--text-muted);
}

#prize-list li .prize {
    color: var(--text-light);
    font-weight: bold;
}

#prize-list li.active {
    background: var(--gradient-gold);
}

#prize-list li.active .level,
#prize-list li.active .prize {
    color: var(--primary-dark);
}

#prize-list li.milestone {
    border: 2px solid var(--accent-gold);
}

#prize-list li.completed {
    opacity: 0.5;
    background: var(--success-green);
}

/* ===== RESULT SCREEN ===== */
#result-screen {
    background: radial-gradient(ellipse at center, var(--secondary-dark) 0%, var(--primary-dark) 70%);
    text-align: center;
}

.result-content {
    max-width: 600px;
}

#result-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-gold);
}

.result-prize {
    margin-bottom: 40px;
}

.result-prize .prize-label {
    font-size: 1.2rem;
    color: var(--text-muted);
}

#won-prize {
    font-size: 4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 10px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-gold);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-content h3 svg {
    color: var(--accent-gold);
}

.close-modal {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.close-modal:hover {
    border-color: var(--accent-gold);
}

/* ===== POLL RESULTS ===== */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-label {
    font-weight: bold;
    color: var(--accent-gold);
    min-width: 30px;
}

.bar-container {
    flex: 1;
    height: 30px;
    background: var(--primary-dark);
    border-radius: 15px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.5s ease;
}

.poll-percent {
    min-width: 50px;
    color: var(--text-light);
    font-weight: bold;
}

.phone-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    padding: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

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

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

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .diamond-icon {
        font-size: 3rem;
    }

    .diamond-icon svg {
        width: 100%;
        height: 100%;
    }

    .logo-subtitle {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .logo h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .logo-title {
        font-size: 3rem;
    }

    .question-mark {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 20px;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-divider {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 18px 50px;
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .quiz-header {
        padding: 15px 20px;
    }

    .question-counter {
        font-size: 1rem;
    }

    .question-counter span {
        font-size: 1.2rem;
    }

    #current-prize {
        font-size: 1.4rem;
    }

    .quiz-content {
        padding: 30px 15px;
    }

    #question-text {
        font-size: 1.2rem;
    }

    .question-container {
        padding: 20px;
    }

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

    .answer-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .quiz-footer {
        padding: 15px 20px;
    }

    .lifeline-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .lifeline-btn svg {
        width: 24px;
        height: 24px;
    }

    .timer-circle {
        width: 60px;
        height: 60px;
    }

    #timer-text {
        font-size: 1.2rem;
    }

    #result-title {
        font-size: 2rem;
    }

    #won-prize {
        font-size: 3rem;
    }

    .prize-ladder {
        width: 240px;
        min-width: 240px;
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 30px 15px;
    }

    .diamond-icon {
        font-size: 2.5rem;
    }

    .diamond-icon svg {
        width: 100%;
        height: 100%;
    }

    .logo-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .logo h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .logo-title {
        font-size: 2.2rem;
    }

    .question-mark {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-divider {
        display: none;
    }

    .btn-primary {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .btn-icon {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .quiz-layout {
        flex-direction: column;
    }

    .quiz-main {
        flex: none;
    }

    .prize-ladder {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 3px solid var(--accent-gold);
        max-height: 300px;
        padding: 15px;
    }

    .prize-ladder h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    #prize-list li {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .quiz-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

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

    #question-text {
        font-size: 1.1rem;
    }

    .lifelines {
        gap: 10px;
    }

    .lifeline-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .lifeline-btn svg {
        width: 20px;
        height: 20px;
    }

    .timer-circle {
        width: 50px;
        height: 50px;
    }

    #timer-text {
        font-size: 1rem;
    }
}

/* ===== SHOP SCREEN ===== */
#shop-screen {
    background: radial-gradient(ellipse at center, var(--secondary-dark) 0%, var(--primary-dark) 70%);
    justify-content: flex-start;
    padding: 0;
}

.shop-content {
    width: 100%;
    max-width: 1200px;
    padding: 30px 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 30px;
}

.shop-header h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.shop-header h2 svg {
    color: var(--accent-gold);
}

.shop-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: var(--border-radius);
    display: inline-flex;
}

.balance-label {
    font-size: 1rem;
    color: var(--text-muted);
}

#shop-balance-amount {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SHOP CATEGORIES ===== */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 25px;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== SHOP GRID ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.shop-item {
    background: var(--secondary-dark);
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.shop-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.shop-item.owned {
    border-color: var(--success-green);
    opacity: 0.7;
}

.shop-item.owned::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-green);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.item-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.item-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.buy-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.buy-btn.owned-btn {
    background: var(--success-green);
    cursor: default;
}

/* ===== RESULT ACTIONS ===== */
.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-shop {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 60px;
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--gradient-button);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-button);
    overflow: hidden;
}

.btn-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-shop:hover::before {
    left: 100%;
}

.btn-shop:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* ===== BACK BUTTON ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ===== PURCHASE MODAL ===== */
.purchase-modal .purchase-details {
    margin: 30px 0;
}

.purchase-modal .item-preview {
    text-align: center;
    margin-bottom: 20px;
}

.purchase-modal .item-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 15px;
}

.purchase-modal .item-preview h4 {
    font-size: 1.5rem;
    color: var(--text-light);
}

.purchase-modal .purchase-price {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.price-label {
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purchase-modal .purchase-balance {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary-dark);
    border-radius: var(--border-radius);
}

.balance-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.purchase-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-confirm {
    padding: 15px 40px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.btn-cancel {
    padding: 15px 40px;
    background: var(--gradient-button);
    border: 2px solid var(--accent-blue);
    color: var(--text-light);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    border-color: var(--danger-red);
}

/* ===== SUCCESS MODAL ===== */
.success-modal .success-icon {
    font-size: 5rem;
    color: var(--success-green);
    margin-bottom: 20px;
    animation: successPulse 0.5s ease;
}

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

.success-modal h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-close-success {
    padding: 15px 40px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-success:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* ===== SHOP RESPONSIVE ===== */
@media (max-width: 768px) {
    .shop-header h2 {
        font-size: 1.8rem;
    }
    
    #shop-balance-amount {
        font-size: 1.5rem;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-shop {
        padding: 18px 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .shop-content {
        padding: 20px 15px;
    }
    
    .shop-header h2 {
        font-size: 1.5rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .purchase-actions {
        flex-direction: column;
    }
}
