/* =====================================================
   PAVEL CRUSH - PREMIUM DESIGN CSS
   Candy Crush Style com Glassmorphism e Gradientes
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --secondary: #FFD700;
    --bg-dark: #0f0f1e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(229, 9, 20, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    /* Centralizar no PC */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

#loading-screen h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #e50914, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

#loading-screen p {
    font-size: 1.2rem;
    color: var(--text-dim);
    animation: fade 1.5s ease-in-out infinite;
}

/* App Container */
#app {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* Mobile View no PC */
    height: 100vh;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    /* Sombra elegante */
    background: rgba(0, 0, 0, 0.2);
}

/* Canvas Premium */
#gameCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 360/640;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(229, 9, 20, 0.3);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Root */
#modal-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

#modal-root>* {
    pointer-events: auto;
}

/* Telas */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.98), rgba(26, 26, 46, 0.98));
    backdrop-filter: blur(20px);
    z-index: 100;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

/* Login/Menu Screen */
.screen h1,
.screen h2 {
    font-weight: 800;
    background: linear-gradient(45deg, #e50914, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.screen input {
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    transition: all 0.3s ease;
    margin: 10px 0;
}

.screen input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    transform: scale(1.02);
}

.screen button {
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
    position: relative;
    overflow: hidden;
}

.screen button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.screen button:hover::before {
    width: 300px;
    height: 300px;
}

.screen button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.6);
}

.screen button:active {
    transform: translateY(0) scale(1);
}

/* HUD */
#game-hud {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 20px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    min-width: 180px;
    z-index: 200;
}

#game-hud div {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#game-hud strong {
    color: var(--secondary);
    font-size: 18px;
    margin-left: 10px;
}

#game-hud button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#game-hud button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
}

/* Modais */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(229, 9, 20, 0.3);
    text-align: center;
    max-width: 450px;
    z-index: 10000;
    animation: modalEntry 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e50914, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal p {
    font-size: 1.1rem;
    margin: 15px 0;
    color: var(--text-dim);
}

.modal strong {
    color: var(--secondary);
    font-size: 1.3rem;
}

.modal button {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.modal button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fade {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes modalEntry {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #game-hud {
        top: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        padding: 15px;
    }

    .modal {
        margin: 20px;
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }

    .screen h1 {
        font-size: 2rem;
    }

    .screen h2 {
        font-size: 1.5rem;
    }
}

/* Dark/Light Theme Toggle */
[data-theme="light"] {
    --bg-dark: #f5f5f5;
    --bg-card: rgba(0, 0, 0, 0.05);
    --text: #1a1a2e;
    --text-dim: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #d5d5d5 100%);
}

/* ============ REDESIGN SCREENS ============ */

/* Login Card Animation */
@keyframes modalEntry {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============ MAP V3 (MOUNTAIN TRAIL) ============ */
.map-v3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
}

.map-wrapper-v3 {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    /* Gradiente Céu (Noite/Amanhecer) */
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}

/* --- Parallax Mountains --- */
.mountain-parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-repeat: repeat-x;
    background-position: bottom;
}

.mountain-far {
    height: 80%;
    background-image: linear-gradient(to bottom, transparent 60%, rgba(100, 100, 150, 0.2) 100%);
    opacity: 0.5;
}

/* Criar formas de montanha com CSS clip-path ou gradients seria complexo sem imagens.
   Vamos usar gradients angulares para simular picos. */
.mountain-layer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mountain-mid {
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(40, 40, 60, 0.8) 100%);
}

.mountain-near {
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 30, 0.95) 100%);
}

.mountain-snow {
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* --- Altitude Indicator --- */
.altitude-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Layers --- */
.path-layer-v3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decor-layer-v3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.nodes-layer-v3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* --- Nodes --- */
.map-node-v3 {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.map-node-v3:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 20;
}

.node-circle-v3 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #444;
    border: 3px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.node-number-v3 {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Status: Locked */
.map-node-v3.locked .node-circle-v3 {
    background: #2d3436;
    border-color: #636e72;
}

/* Status: Current */
.map-node-v3.current .node-circle-v3 {
    background: linear-gradient(135deg, #e50914, #ff4757);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
    animation: pulseNode 2s infinite;
}

.map-node-v3.current .node-number-v3 {
    color: #fff;
    font-size: 20px;
}

/* Status: Completed */
.map-node-v3.completed .node-circle-v3 {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    border-color: #fff;
}

.map-node-v3.completed .node-number-v3 {
    color: #8a6d3b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Stars */
.node-stars-v3 {
    margin-top: -10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    color: #FFD700;
    pointer-events: none;
}

.empty-star {
    color: #555;
}

/* Player Avatar */
.player-avatar-v3 {
    position: absolute;
    top: -55px;
    width: 60px;
    height: 60px;
    z-index: 30;
    animation: bounceAvatar 2s infinite ease-in-out;
}

.player-avatar-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.avatar-flag {
    position: absolute;
    bottom: 0px;
    right: -5px;
    font-size: 20px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

/* Decorations */
.tree-decor {
    position: absolute;
    font-size: 24px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    transform-origin: bottom center;
}

.rock-decor {
    position: absolute;
    font-size: 20px;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    opacity: 0.8;
}

.trail-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-emoji {
    font-size: 30px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
    animation: floatMarker 3s ease-in-out infinite;
}

.marker-label {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes pulseNode {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
    }
}

@keyframes bounceAvatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatMarker {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes shakeNode {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }

    75% {
        transform: translate(-50%, -50%) rotate(5deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Avatar Grid & Selection */
.avatar-option:hover .avatar-bg {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.check-icon {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* 3D Buttons */
button {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: translateY(4px);
}

/* ============ TERMS MODAL ============ */
#terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    /* Acima do loading e outros modais */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.terms-box {
    background: var(--bg-card);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.terms-header h2 {
    margin: 0;
    font-size: 24px;
    background: linear-gradient(45deg, #e50914, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 5px;
}

.terms-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.terms-scroll h3 {
    color: var(--secondary);
    margin: 20px 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 5px;
}

.terms-scroll h3:first-child {
    margin-top: 0;
}

.terms-scroll ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-scroll li {
    margin-bottom: 5px;
}

.terms-footer {
    text-align: center;
    margin-top: 30px;
    opacity: 0.5;
    font-size: 12px;
}

.terms-form {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-input-group {
    margin-bottom: 15px;
}

.terms-input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-terms-accept {
    flex: 2;
    padding: 12px;
    background: var(--success, #38a169);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-terms-accept:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-terms-accept:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.4);
}

.btn-terms-decline {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-terms-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* ============ TERMS MODAL ============ */
#terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    /* Acima do loading e outros modais */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.terms-box {
    background: var(--bg-card);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.terms-header h2 {
    margin: 0;
    font-size: 24px;
    background: linear-gradient(45deg, #e50914, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 5px;
}

.terms-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.terms-scroll h3 {
    color: var(--secondary);
    margin: 20px 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 5px;
}

.terms-scroll h3:first-child {
    margin-top: 0;
}

.terms-scroll ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-scroll li {
    margin-bottom: 5px;
}

.terms-footer {
    text-align: center;
    margin-top: 30px;
    opacity: 0.5;
    font-size: 12px;
}

.terms-form {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-input-group {
    margin-bottom: 15px;
}

.terms-input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-terms-accept {
    flex: 2;
    padding: 12px;
    background: var(--success, #38a169);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-terms-accept:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-terms-accept:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.4);
}

.btn-terms-decline {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-terms-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}