@font-face {
    font-family: 'Starborn';
    src: url('font/Starborn.ttf') format('truetype'),
         url('font/Starborn.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ResolideSerif';
    src: url('font/ResolideSerif_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #1a1a2e;
    color: white;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: url('cursor/customcursor.png'), auto;
}

/* Cursor customizado para diferentes elementos */
button, .menu-btn, .action-btn, .plot, .login-button, 
.shop-item, .login-option, .pause-btn, .widget-card,
.credit-card, .user-menu-item, .profile-btn {
    cursor: url('cursor/customcursor_hand.png'), pointer !important;
}

input[type="range"], .slider {
    cursor: url('cursor/customcursor_hand_grab.png'), grab !important;
}

input[type="range"]:active, .slider:active {
    cursor: url('cursor/customcursor_hand_grab.png'), grabbing !important;
}

input[type="text"], input[type="email"], textarea, select {
    cursor: url('cursor/customcursor_beam.png'), text !important;
}

/* ── START SCREEN ── */
#start-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0d2b0d 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

#start-screen.unlocked {
    opacity: 0;
    pointer-events: none;
}

.lockIcon {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px #4ade80);
    animation: pulse 2s infinite;
}

.lockShackle {
    animation: shackleOpen 0.4s ease forwards;
    animation-play-state: paused;
}

#start-screen.unlocked .lockShackle {
    animation-play-state: running;
}

@keyframes shackleOpen {
    to { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px #4ade80); }
    50%       { filter: drop-shadow(0 0 30px #4ade80); }
}

/* ── INTRO SCREEN ── */
#intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-text1,
#intro-text2 {
    position: absolute;
    font-size: 1.4rem;
    color: #ccc;
    letter-spacing: 2px;
    opacity: 0;
    font-family: 'Segoe UI', sans-serif;
}

#intro-text1 { top: 35%; }
#intro-text2 { bottom: 35%; }

#intro-kai {
    position: absolute;
    width: 160px;
    opacity: 0;
    border-radius: 50%;
}

#intro-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 220px;
    opacity: 0;
    display: none;
}

/* ── MAIN MENU ── */
#main-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: url('images/background.png') center/cover no-repeat;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-menu.show {
    opacity: 1;
}

.login-button.menu-login {
    position: absolute;
    top: 20px;
    right: 20px;
}

#menu-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 20px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

#menu-sidebar img {
    width: 180px;
    margin-bottom: 10px;
}

.menu-btn {
    width: 200px;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 1px;
    font-family: 'Segoe UI', sans-serif;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.menu-btn.primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #064e3b;
}

.menu-btn.secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ── GAME CONTAINER ── */
#game-container {
    display: none !important;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 15px;
    min-height: 100vh;
    overflow-y: auto;
}

#game-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: -1;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

#game-container.active {
    display: flex !important;
}

/* ── HEADER / STATS ── */
#game-header {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
}

#stats-panel {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 18px;
    border: 2px solid rgba(74,222,128,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 7px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 9px;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.stat-item span {
    font-family: 'Segoe UI', monospace;
    font-variant-numeric: tabular-nums;
}

.stat-item:hover {
    background: rgba(74,222,128,0.15);
    transform: translateY(-2px);
}

.icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ── ACTION PANEL ── */
#action-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', sans-serif;
}

.action-btn:hover {
    background: rgba(74,222,128,0.25);
    border-color: #4ade80;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74,222,128,0.4);
}

.action-btn.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #064e3b;
    border-color: #4ade80;
    box-shadow: 0 4px 20px rgba(74,222,128,0.6);
    transform: translateY(-2px);
}

.action-btn .icon {
    width: 20px;
    height: 20px;
}

/* ── FARM AREA ── */
#farm-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 25px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 2px solid rgba(74,222,128,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    width: fit-content;
    margin: 0 auto;
}

.plot {
    width: 85px;
    height: 85px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    font-size: 2.3rem;
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.7), rgba(139, 90, 43, 0.6));
    border: 3px solid rgba(160, 110, 60, 0.6);
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.3);
}

.plot:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.4), 0 8px 25px rgba(74,222,128,0.4);
    border-color: rgba(74,222,128,0.7);
}

.plot.empty {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.5), rgba(80, 50, 20, 0.5));
    border: 3px dashed rgba(160, 120, 60, 0.7);
}

.plot.empty:hover {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.8), rgba(80, 50, 20, 0.7));
    border-color: #4ade80;
    border-style: solid;
}

.plot.ready {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.3));
    border-color: #4ade80;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.3), 0 0 25px rgba(74,222,128,0.6);
    animation: readyPulse 2s infinite;
}

@keyframes readyPulse {
    0%, 100% { 
        box-shadow: inset 0 3px 10px rgba(0,0,0,0.3), 0 0 20px rgba(74,222,128,0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: inset 0 3px 10px rgba(0,0,0,0.3), 0 0 35px rgba(74,222,128,0.9);
        transform: scale(1.06);
    }
}

.plant {
    font-size: inherit;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
}

.plant-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
    pointer-events: none;
}

/* ── PROGRESS BAR ── */
.stage-bar {
    position: absolute;
    bottom: 6px;
    left: 7px;
    right: 7px;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.stage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.5s linear;
    box-shadow: 0 0 12px rgba(74,222,128,0.7);
}

/* ── GAME INFO ── */
#game-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(74,222,128,0.3);
    max-width: 700px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
}

/* ── ALEX CHARACTER ── */
/* Removido */

/* ── INTRO STORY MODAL ── */
#intro-story-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    align-items: flex-end;
    justify-content: center;
    z-index: 300;
    padding: 0;
}

#intro-story-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 35px 60px 35px 60px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.9);
    position: relative;
    min-height: 220px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-character {
    width: 130px;
    height: 130px;
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    object-fit: cover;
    flex-shrink: 0;
    pointer-events: none;
}

.story-name {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    font-family: 'Starborn', 'Segoe UI', sans-serif;
}

.story-step {
    display: none;
    width: 100%;
}

.story-step.active {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-step-content {
    flex: 1;
}

.story-step h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    position: relative;
    z-index: 5;
    font-family: 'Starborn', 'Segoe UI', sans-serif;
}

.story-continue-hint {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    animation: blink 2s infinite;
    font-style: italic;
}

@keyframes blink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.8; }
}

.story-text {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: left;
    font-family: 'ResolideSerif', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
}

.story-content-wrapper {
    margin: 0;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

.story-input {
    width: 100%;
    max-width: 500px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    text-align: left;
    margin: 20px 0;
    outline: none;
    transition: all 0.3s;
    display: block;
    pointer-events: auto;
    cursor: text;
    z-index: 10;
    position: relative;
}

.story-input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.story-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.story-btn {
    display: none;
}

.story-btn.primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #064e3b;
}

.story-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74,222,128,0.4);
}

.gender-options {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 25px 0;
}

.gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 30px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 130px;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.gender-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.gender-icon {
    font-size: 2.5rem;
}

.story-stats {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    margin: 25px 0;
    flex-wrap: wrap;
}

.story-stat {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 14px 22px;
    color: rgba(255,255,255,0.95);
    font-weight: bold;
    font-size: 1.05rem;
    font-family: 'Segoe UI', monospace;
    font-variant-numeric: tabular-nums;
}

.start-game-btn {
    display: inline-block;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #064e3b;
    box-shadow: 0 6px 20px rgba(74,222,128,0.3);
    pointer-events: auto;
    z-index: 10;
    position: relative;
    font-family: 'Starborn', 'Segoe UI', sans-serif;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74,222,128,0.5);
}

.story-continue-hint {
    position: absolute;
    bottom: 20px;
    right: 40px;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    animation: blink 2s infinite;
    font-style: italic;
}

@keyframes blink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.8; }
}

/* ── MODALS ── */
#shop-modal,
#travel-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 50;
}

#shop-content,
#travel-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 16px;
    padding: 28px;
    min-width: 300px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#shop-content h2,
#travel-content h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: #4ade80;
    letter-spacing: 2px;
    font-family: 'Segoe UI', sans-serif;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: white;
    font-size: 0.9rem;
}

.shop-item:hover {
    background: rgba(74,222,128,0.15);
    border-color: #4ade80;
}

.shop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 8px;
    color: white;
}

.price {
    color: #fbbf24;
    font-weight: bold;
}

#close-shop,
#close-travel {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

#close-shop:hover,
#close-travel:hover {
    background: rgba(255,255,255,0.2);
}

/* ── LOGIN BUTTON ── */
.login-button {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.login-button:hover {
    background: rgba(74,222,128,0.2);
    border-color: #4ade80;
    transform: translateY(-2px);
}

.login-button.logged-in {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #064e3b;
}

.login-button .icon.user {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* ── LOGIN MODAL ── */
#login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 250;
}

#login-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 16px;
    padding: 32px;
    min-width: 320px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#login-content h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #4ade80;
    letter-spacing: 2px;
}

.login-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.login-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.login-option.google:hover {
    background: rgba(234, 67, 53, 0.2);
    border-color: #ea4335;
}

.login-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#close-login {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

#close-login:hover {
    background: rgba(255,255,255,0.2);
}

/* ── PROFILE MODAL ── */
#profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 250;
}

#profile-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 20px;
    padding: 0;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(34,197,94,0.1));
    border-bottom: 1px solid rgba(74,222,128,0.2);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4ade80;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    color: white;
}

.profile-info p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.profile-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74,222,128,0.2);
    border: 1px solid rgba(74,222,128,0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: bold;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4ade80;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.profile-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn.logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.profile-btn.logout:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.profile-btn.close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.profile-btn.close:hover {
    background: rgba(255,255,255,0.15);
}

/* ── CREDITS MODAL ── */
#credits-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 250;
}

#credits-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 16px;
    padding: 32px;
    min-width: 400px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#credits-content h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
    color: #4ade80;
    letter-spacing: 2px;
    font-family: 'Segoe UI', sans-serif;
}

.credits-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.credit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.credit-card:hover {
    background: rgba(74,222,128,0.1);
    border-color: rgba(74,222,128,0.3);
    transform: translateX(4px);
}

.credit-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.credit-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: white;
}

.credit-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.credits-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.credits-footer p {
    margin: 4px 0;
    color: white;
}

#close-credits {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#close-credits:hover {
    background: rgba(255,255,255,0.2);
}

/* ── SETTINGS MODAL ── */
#settings-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 250;
}

#settings-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 16px;
    padding: 20px;
    width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Scrollbar moderno */
#settings-content::-webkit-scrollbar {
    width: 8px;
}

#settings-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin: 10px 0;
}

#settings-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4ade80, #22c55e);
    border-radius: 10px;
    transition: background 0.3s;
}

#settings-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

/* Firefox */
#settings-content {
    scrollbar-width: thin;
    scrollbar-color: #4ade80 rgba(255,255,255,0.05);
}

#settings-content h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #4ade80;
    letter-spacing: 2px;
    font-family: 'Segoe UI', sans-serif;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.setting-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
}

.setting-info h3 {
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    color: white;
}

.setting-info p {
    margin: 0 0 6px 0;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.2;
}

.slider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74,222,128,0.4);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(74,222,128,0.4);
}

.select-box {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.select-box:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(74,222,128,0.4);
}

.select-box option {
    background: #1a2e1a;
    color: white;
}

.volume-value {
    display: block;
    text-align: right;
    margin-top: 2px;
    color: #4ade80;
    font-weight: bold;
    font-size: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4ade80;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.settings-footer {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.settings-footer p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
}

#close-settings {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#close-settings:hover {
    background: rgba(255,255,255,0.2);
}

/* ── PAUSE MODAL ── */
#pause-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#pause-content {
    background: linear-gradient(135deg, #1a2e1a, #0d1f0d);
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 20px;
    padding: 40px;
    min-width: 350px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#pause-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #4ade80;
    letter-spacing: 2px;
    font-family: 'Segoe UI', sans-serif;
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pause-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.pause-btn:hover {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.4);
    transform: translateX(4px);
}

.pause-btn.primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    color: #064e3b;
}

.pause-btn.primary:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: scale(1.02);
}

.pause-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pause-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.pause-icon {
    font-size: 1.3rem;
    line-height: 1;
}
