/* ========================================= */
/* === MODAL STYLES === */
/* === Phase 2 - Extracted from index.html === */
/* ========================================= */

/* === MODERN MODAL BASE STYLE === */
.modern-modal {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    color: #fff;
    padding: 0;
}

/* === GAME OVER MODAL === */
#game-over-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 8000;
    width: 340px;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
    pointer-events: auto;
    border-radius: 16px;
    padding: 0 !important;
    overflow: hidden;
}

/* The Drag Handle */
#game-over-header {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.5));
    padding: 10px 15px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    user-select: none;
}

#game-over-header:active {
    cursor: grabbing;
}

#game-over-title {
    color: #e0c090;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}

/* The Toggle Button */
#game-over-collapse-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 14px;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
}

/* The Body Content */
#game-over-content {
    padding: 2px 2px 20px 2px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 60vh;
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Collapsed State Class */
#game-over-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    overflow: hidden;
}

#game-over-modal h2 {
    color: #e0c090;
    letter-spacing: 3px;
    margin-top: 0;
}

.rank-item {
    color: #ccc;
    margin: 5px 0;
    font-size: 14px;
    text-align: left;
    padding: 5px;
    border-bottom: 1px solid #333;
}

/* === MOVE MODAL (Tactical Panel) === */
#move-modal {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 260px;
    max-height: 80vh;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    overflow-y: auto;
    cursor: grab;
    transition: transform 0.1s;
}

#move-modal:active {
    cursor: grabbing;
}

#move-modal h2 {
    margin-top: 0;
    font-size: 16px;
    text-align: center;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
    pointer-events: auto;
    cursor: grab;
}

/* Compact Buttons */
.move-opt {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eee;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    border-radius: 6px;
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.move-opt:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    padding-left: 15px;
}

.move-opt span {
    display: inline-block !important;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 0 !important;
    text-align: right;
}

/* New Separator Style */
.move-separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 215, 0, 0.4), rgba(0, 0, 0, 0));
    margin: 8px 0;
    width: 100%;
}

#modal-header {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    padding: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 15px;
}

/* === INFO MODAL === */
#info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10020;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Inner Content Box */
#info-modal .modal-content {
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid #FFD700;
    border-radius: 12px;
    width: 320px;
    padding: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Scrollability for modals */
#auth-selection-modal .modal-content,
#info-modal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#info-content ul {
    padding-left: 20px;
    margin: 0;
}

#info-content li {
    margin-bottom: 8px;
}

.key-highlight {
    color: #FFD700;
    font-weight: bold;
}

/* === SETTINGS MODAL === */
#settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid #FFD700;
    border-radius: 12px;
    z-index: 6000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

#settings-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: bold;
    letter-spacing: 2px;
}

#settings-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #666;
    padding: 12px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: #FFD700;
}

.tab-content {
    padding: 20px;
    min-height: 200px;
}

/* COMPACT GRID FOR SETTINGS */
.grid-options.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.setting-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-label {
    font-size: 12px;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
}

.setting-row.column {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Custom Toggle Switch Style Button */
.toggle-btn {
    background: #222;
    border: 1px solid #444;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    width: 60px;
    text-align: center;
    font-size: 11px;
    transition: all 0.2s;
}

/* Active State for Toggles */
.toggle-btn.on {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* === QUICK CHAT MODAL === */
#quick-chat-modal {
    width: 280px;
    bottom: 80px;
    right: 20px;
    top: auto;
    left: auto;
    transform: none;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid #00e5ff;
}

#quick-chat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
}

.chat-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-align: left;
}

.chat-option:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    transform: scale(1.02);
}

.chat-option:active {
    transform: scale(0.95);
}

/* CUSTOM CHAT INPUT */
#chat-input-wrapper {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

#custom-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

#custom-chat-input:focus {
    border-color: #00e5ff;
    background: rgba(255, 255, 255, 0.15);
}

#chat-send-btn {
    background: #00e5ff;
    color: #000;
    border: none;
    border-radius: 4px;
    width: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

#chat-send-btn:hover {
    background: #fff;
}

/* === GENERIC CUSTOM MODAL (Themed) === */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-height: 70vh;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid #FFD700;
    border-radius: 12px;
    z-index: 6000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    transition: opacity 0.2s;
    pointer-events: auto;
}

.custom-modal.hidden {
    display: none;
}

.custom-modal-header {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(255, 215, 0, 0.1));
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.close-modal-btn {
    background: none;
    border: none;
    color: #ff5555;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-body-scroll {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* === MODAL BACKDROP STYLES === */
#customization-modal,
#lobby-settings-modal,
#new-profile-modal,
#how-to-play-modal,
#online-lobby-modal,
#color-select-modal,
#name-setup-modal,
#reset-confirm-modal,
#auth-selection-modal,
#global-lobby-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hidden class for all modals */
#customization-modal.hidden,
#lobby-settings-modal.hidden,
#new-profile-modal.hidden,
#how-to-play-modal.hidden,
#online-lobby-modal.hidden,
#color-select-modal.hidden,
#name-setup-modal.hidden,
#reset-confirm-modal.hidden,
#auth-selection-modal.hidden,
#match-risk-modal.hidden,
#global-lobby-modal.hidden {
    display: none !important;
}

.profile-tab-content.hidden {
    display: none;
}

.lobby-tab-content.hidden {
    display: none;
}

.htp-tab-content.hidden {
    display: none;
}

.cust-tab-content.hidden {
    display: none;
}

/* Glass Panel Style */
.modal-content.glass-panel {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid #FFD700;
    border-radius: 12px;
    width: 320px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-link {
    background: none;
    border: none;
    color: #888;
    padding: 10px;
    cursor: pointer;
    font-family: 'Fredoka One', sans-serif;
    letter-spacing: 1px;
}

.tab-link.active {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
}

/* Grid Options */
.grid-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opt-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.opt-btn:hover,
.opt-btn.selected {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    color: #fff;
}

/* === SYSTEM ALERT MODAL === */
#system-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 25000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#system-alert-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

#system-alert-card {
    background: rgba(15, 15, 20, 0.98);
    border: 2px solid #00e5ff;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    animation: alertSlideIn 0.3s ease forwards;
}

#system-alert-card.type-warning {
    border-color: #ffaa00;
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.3);
}

#system-alert-card.type-error {
    border-color: #ff5555;
    box-shadow: 0 0 40px rgba(255, 85, 85, 0.3);
}

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

#system-alert-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

#system-alert-title {
    color: #00e5ff;
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

#system-alert-card.type-warning #system-alert-title {
    color: #ffaa00;
}

#system-alert-card.type-error #system-alert-title {
    color: #ff5555;
}

#system-alert-message {
    color: #ccc;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

#system-alert-ok-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    padding: 12px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

#system-alert-card.type-warning #system-alert-ok-btn {
    border-color: #ffaa00;
    color: #ffaa00;
}

#system-alert-card.type-error #system-alert-ok-btn {
    border-color: #ff5555;
    color: #ff5555;
}

#system-alert-ok-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

#system-alert-card.type-warning #system-alert-ok-btn:hover {
    background: rgba(255, 170, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

#system-alert-card.type-error #system-alert-ok-btn:hover {
    background: rgba(255, 85, 85, 0.15);
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
}

/* === HOST DISCONNECT WARNING === */
#host-disconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 0, 0, 0.85);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
}

#host-disconnect-modal.hidden {
    display: none !important;
}

#host-warning-card {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #ff5555;
    box-shadow: 0 0 50px rgba(255, 85, 85, 0.4);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: pulseBorder 2s infinite;
}

#host-timer-display {
    font-family: 'Fredoka One', cursive;
    font-size: 80px;
    color: #ff5555;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255, 85, 85, 0.5);
}

@keyframes pulseBorder {
    0% {
        border-color: #ff5555;
        box-shadow: 0 0 20px rgba(255, 85, 85, 0.2);
    }
    50% {
        border-color: #ff0000;
        box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
    }
    100% {
        border-color: #ff5555;
        box-shadow: 0 0 20px rgba(255, 85, 85, 0.2);
    }
}

/* === ONLINE LOBBY MODAL STYLES === */

/* The Pill Button Container */
.lobby-action-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

/* Big Action Pills (Create/Join) */
.lobby-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.lobby-pill-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: scale(1.02);
}

.lobby-pill-btn.primary {
    background: linear-gradient(90deg, #2e7d32 0%, #4caf50 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.lobby-pill-btn.secondary {
    background: linear-gradient(90deg, #1565c0 0%, #1e88e5 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

/* Square Glass Buttons for Player Count Selection */
.lobby-sq-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.lobby-sq-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

/* Digital Input Styling */
#room-code-input {
    width: 70%;
    margin: 0 auto 20px auto;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 12px;
    color: #00e5ff;
    font-family: 'Fredoka One', cursive;
    font-size: 32px !important;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: normal;
    padding: 10px;
}

#room-code-input::placeholder {
    color: #444;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    padding-top: 5px;
}

#room-code-input:focus {
    border-color: #00e5ff;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Room Code Display */
.room-code-display {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: #00e5ff;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Player List Item */
.lobby-player-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid transparent;
}

/* === AUTH FORM STYLES (Inside Modals) === */
#auth-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.auth-input-group {
    position: relative;
    width: 100%;
}

.auth-input-full {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    color: #FFD700;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.2s;
}

.auth-input-full:focus {
    border-color: #00e5ff;
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

.auth-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-auth-action {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.1s, opacity 0.2s;
}

.btn-login {
    background: #FFD700;
    color: #000;
}

.btn-signup {
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
}

.btn-auth-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Logged In State */
#auth-logged-in-view {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.user-email-display {
    color: #00e5ff;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}

.sync-status {
    font-size: 10px;
    color: #888;
    font-style: italic;
}

.btn-logout {
    background: #b71c1c;
    color: #ffcdd2;
    border: 1px solid #ff5252;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.btn-logout:hover {
    background: #d32f2f;
    color: white;
}

#auth-feedback {
    color: #ff5252;
    font-size: 11px;
    margin-top: 5px;
    min-height: 15px;
}

/* === COLOR SELECTION === */
#color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.color-choice {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: transform 0.2s;
}

.color-choice:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* Color Grid Buttons inside Modal */
#color-grid .color-choice {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#color-grid .color-choice:hover {
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* === LOW PULSE ANIMATION (for move options) === */
@keyframes lowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 85, 85, 0);
    }
    50% {
        box-shadow: 0 0 8px rgba(255, 85, 85, 0.3);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 85, 85, 0);
    }
}
