/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f172a; /* Deep Slate Dark */
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-x: hidden;
}

/* Dynamic container classes based on state */
.hidden {
    display: none !important;
}

/* 1. LOBBY SCREEN STYLING */
.lobby-container {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease-out;
}

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

.glow-title {
    font-size: 38px;
    font-weight: 700;
    color: #0d9488; /* Premium Teal */
    text-shadow: 0 0 15px rgba(13, 148, 136, 0.3);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.lobby-subtitle {
    font-size: 15px;
    color: #94a3b8;
}

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Lobby Game Cards */
.lobby-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lobby-card:hover {
    transform: translateY(-5px);
    border-color: #0d9488;
    box-shadow: 0 12px 20px -5px rgba(13, 148, 136, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
}

/* Special GTA Lobby Card glow */
.gta-card:hover {
    border-color: #ec4899 !important; /* Hot pink */
    box-shadow: 0 12px 20px -5px rgba(236, 72, 153, 0.2) !important;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.badge-easy {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981; /* Green */
}

.badge-medium {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b; /* Amber */
}

.badge-hard {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444; /* Red */
}

.badge-gta {
    background-color: rgba(236, 72, 153, 0.15);
    color: #ec4899; /* Hot Pink */
}

.card-icon {
    font-size: 40px;
    margin-bottom: 4px;
}

.lobby-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f8fafc;
}

.lobby-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 2. UNIFIED ACTIVE GAME CONTAINER */
.game-container {
    width: 100%;
    max-width: 440px; /* Lock active games to phone frame */
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-header {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding-bottom: 8px;
}

.btn-nav {
    position: absolute;
    left: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    color: #0d9488;
    border-color: #0d9488;
}

.game-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0d9488;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 16px;
}

.stats-card {
    flex: 1;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stats-value {
    font-size: 20px;
    font-weight: 600;
    color: #f8fafc;
}

/* Board Card Container */
.board-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 12px;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board-card > div {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 6px;
}

/* Status Banner */
.status-banner {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    min-height: 20px;
    letter-spacing: 0.2px;
}

/* Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    user-select: none;
}

.btn-primary {
    background-color: #0d9488;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0f766e;
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid #0d9488;
    color: #0d9488;
}

.btn-secondary:hover {
    background-color: rgba(13, 148, 136, 0.1);
}

.btn-outline-danger {
    background-color: transparent;
    border: 1px solid #f59e0b; /* Amber */
    color: #f59e0b;
}

.btn-outline-danger:hover {
    background-color: rgba(245, 158, 11, 0.1);
}

/* 3. GAME-SPECIFIC BOARDS & TILES */

/* SLIDING PUZZLE */
.grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.grid-4x4 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.tile {
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.tile:hover {
    background-color: #334155;
    border-color: #0d9488;
}

.tile:active {
    transform: scale(0.95);
}

.tile-empty {
    visibility: hidden;
    pointer-events: none;
}

/* MINESWEEPER */
.mines-grid {
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 4px !important;
}

.mine-cell {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}

.mine-cell:hover:not(.revealed) {
    background-color: #334155;
}

.mine-cell.revealed {
    background-color: #0f172a;
    border-color: #1e293b;
    cursor: default;
}

.mine-cell.flagged {
    color: #f59e0b;
}

.mine-cell.mine {
    background-color: #ef4444 !important;
    color: #ffffff;
}

/* Number colors for sweeps */
.cell-1 { color: #3b82f6; }
.cell-2 { color: #10b981; }
.cell-3 { color: #ef4444; }
.cell-4 { color: #8b5cf6; }
.cell-5 { color: #f59e0b; }
.cell-6 { color: #06b6d4; }
.cell-7 { color: #d946ef; }
.cell-8 { color: #cbd5e1; }

/* MEMORY MATCH - 3D Card Flipping Styles */
.memory-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px !important;
}

.memory-card {
    perspective: 800px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    position: relative;
    user-select: none;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    border: 1px solid #475569;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
}

.card-front {
    background-color: #1e293b;
    color: #94a3b8;
}

.card-back {
    background-color: #0d9488;
    color: #ffffff;
    transform: rotateY(180deg);
}

.memory-card.matched .card-inner {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    cursor: default;
}

/* TIC-TAC-TOE */
.ttt-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px !important;
}

.ttt-cell {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    font-size: 48px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.ttt-cell:hover:empty {
    background-color: #334155;
}

.ttt-cell.x {
    color: #0d9488; /* Teal X */
}

.ttt-cell.o {
    color: #f59e0b; /* Amber O */
}

/* LIGHTS OUT */
.lights-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px !important;
}

.light-cell {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-cell.on {
    background: radial-gradient(circle, #0ef2e4 0%, #0d9488 100%); /* Neon Teal active state */
    border-color: #0ef2e4;
    box-shadow: 0 0 12px rgba(14, 242, 228, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* SUDOKU LITE */
.sudoku-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px !important;
}

.sudoku-cell {
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Quadrant separators */
.sudoku-cell:nth-child(2), .sudoku-cell:nth-child(6), .sudoku-cell:nth-child(10), .sudoku-cell:nth-child(14) {
    border-right: 3px solid #334155;
}

.sudoku-cell:nth-child(n+5):nth-child(-n+8) {
    border-bottom: 3px solid #334155;
}

.sudoku-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.sudoku-input:disabled {
    color: #94a3b8; /* Given numbers */
    background-color: #0f172a;
    cursor: default;
}

.sudoku-input.error {
    color: #ef4444; /* Conflicting number */
}

/* GTA RETRO RACER SPECS - WEB EMULATOR REBUILD */

/* Expand the active game container for widescreen desktop views */
.gta-wide-layout {
    max-width: 720px !important; 
    background-color: #1e2530 !important; /* Premium Dark Navy */
    border: 2px solid #2d3846 !important;
    padding: 0 !important; /* Flush layout matching the web page wrapper */
    overflow: hidden;
    gap: 0 !important;
    border-radius: 12px !important;
}

/* 1. SITE MOCKUP HEADER */
.gta-site-header {
    width: 100%;
    background: linear-gradient(to bottom, #3e4b5b, #2c3642); /* Classic Grey-Blue */
    border-bottom: 2px solid #1f2732;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.umbrella-logo {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: rotateSlow 20s linear infinite;
}

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

.header-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gta-site-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gta-site-subtitle {
    font-size: 11px !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
}

/* 2. SITE MOCKUP NAVIGATION BAR */
.gta-site-nav {
    width: 100%;
    background-color: #1b232c; /* Deep Charcoal */
    border-bottom: 1.5px solid #2d3846;
    display: flex;
    justify-content: center;
    padding: 0;
    overflow-x: auto;
}

.gta-nav-item {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-right: 1px solid #2d3846;
    color: #94a3b8;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.gta-nav-item:first-child {
    border-left: 1px solid #2d3846;
}

.gta-nav-item:hover {
    color: #f8fafc;
    background-color: rgba(255, 255, 255, 0.05);
}

.gta-nav-item.active {
    color: #ffffff;
    background-color: #2c3642;
    box-shadow: inset 0 -3px 0 #0d9488; /* Indicator */
}

/* 3. EMULATOR CHASSIS BEZEL & FRAME */
.gta-emulator-box {
    width: 100%;
    background-color: #2c3642; /* Grey-Blue chassis color from screenshot */
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-bottom: 2px solid #1b232c;
}

/* Locked to a perfect 4:3 retro ratio viewport */
.gta-viewport-screen {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4 / 3; /* Perfectly locks screen ratio! */
    background-color: #0b0f17; /* Retro CRT Black */
    border: 3px solid #1a222c;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.gta-view-container {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    animation: screenFadeIn 0.3s ease-out;
}

@keyframes screenFadeIn {
    from { opacity: 0; filter: brightness(1.5) contrast(1.2); }
    to { opacity: 1; filter: brightness(1) contrast(1); }
}

/* 4. LAUNCHER MENU STATE */
.gta-launcher-title {
    font-size: 42px !important;
    font-weight: 700;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gta-launcher-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.gta-menu-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    background: linear-gradient(to bottom, #2b3642, #1b2229);
    border: 1px solid #4a5a6c;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.gta-menu-btn:hover {
    color: #ffffff;
    border-color: #0d9488;
    background: linear-gradient(to bottom, #374656, #1e262f);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.3), 0 4px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.gta-menu-btn:active {
    transform: translateY(1px);
}

.gta-menu-btn.btn-play {
    background: linear-gradient(to bottom, #1f2c3a, #131c26);
    border-color: #3b4c5e;
}

.gta-menu-btn.btn-play:hover {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3), 0 4px 6px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #2a3a4c, #172330);
}

/* FPS Controller Row */
.gta-fps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #0f1620;
    border: 1px solid #233041;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 8px 0;
}

.gta-fps-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

.gta-fps-box {
    background-color: #05080c;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    width: 38px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.gta-fps-box:hover {
    border-color: #0d9488;
}

/* Notes & Tribute Disclaimer Box */
.gta-notes-container {
    width: 100%;
    max-height: 110px;
    overflow-y: auto;
    background-color: #090e15;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.5;
    text-align: left;
}

.gta-notes-container p {
    margin-bottom: 6px;
}

.gta-notes-container p:last-child {
    margin-bottom: 0;
}

.gta-tribute-disclaimer {
    color: #e2e8f0;
    border-top: 1px dashed #1e293b;
    padding-top: 6px;
    margin-top: 6px;
    font-style: italic;
    opacity: 0.85;
}

/* 5. SLANTED RETRO GTA HUD OVERLAYS */
.gta-hud-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    transform: skewX(-10deg); /* Slants HUD authentically matching retro GTAs! */
}

.gta-hud-score-row {
    margin-bottom: 2px;
}

.gta-hud-score-text {
    font-family: monospace, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #090d16, 4px 4px 10px rgba(0, 0, 0, 0.8);
}

.gta-hud-health-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(9, 13, 22, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1.5px solid #ec4899; /* Hot Pink borders */
}

.gta-hud-health-label {
    font-size: 11px;
    font-weight: 900;
    color: #ec4899; /* Neon pink */
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #000;
}

.gta-hud-health-bar-bg {
    width: 100px;
    height: 12px;
    background-color: #0b0f17;
    border: 1px solid #334155;
    overflow: hidden;
    position: relative;
}

.gta-hud-health-bar {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #10b981 100%); /* Neon pink to Green */
    transition: width 0.2s ease-out;
}

.gta-hud-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(9, 13, 22, 0.85);
    border: 1px solid #ec4899;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-weight: 700;
    color: #ec4899 !important; /* Hot Pink state updates */
    min-height: auto !important;
    text-shadow: 1px 1px 0px #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    width: auto !important;
    white-space: nowrap;
}

/* 6. CRT CANVAS RENDER SPECIFICATION */
#gta-canvas {
    width: 100%;
    height: 100%;
    background-color: #070b13;
    display: block;
}

/* 7. BEZEL FOOTER BAR */
.gta-frame-footer {
    width: 100%;
    max-width: 640px;
    background-color: #1b232c;
    border: 1.5px solid #2d3846;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    gap: 16px;
}

.btn-footer-gta {
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    background: linear-gradient(to bottom, #2b3642, #1b2229);
    border: 1px solid #4a5a6c;
    border-radius: 4px;
    color: #94a3b8;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-footer-gta:hover {
    color: #f8fafc;
    border-color: #94a3b8;
    background: linear-gradient(to bottom, #33404e, #1e262f);
}

.footer-icon {
    font-size: 11px;
}

/* 8. CABINET CONTROLS DECK */
.gta-cabinet-deck {
    width: 100%;
    background-color: #111721;
    border-top: 2px solid #2d3846;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gta-steer-container {
    display: flex;
    gap: 16px;
    width: 100%;
}

.steering-btn {
    flex: 1;
    border: 1.5px solid #ec4899 !important; /* Cabinet Pink button */
    color: #ec4899 !important;
    background-color: rgba(236, 72, 153, 0.02) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.steering-btn:hover {
    background-color: rgba(236, 72, 153, 0.1) !important;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

/* 4. UNIFIED VICTORY OVERLAY MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.85); /* Deep slate shading overlay */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-card {
    background-color: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 20px;
    padding: 36px 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 8px;
}

.modal-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0d9488;
}

.modal-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    white-space: pre-line;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
