@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Oswald:wght@700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --bg: #050505;
    --accent: #ff0033;
    --wingman: #00e5ff;
    --card-bg: #1a1a1a;
    --text: #ffffff;
    --text-dim: #cccccc;
    --success: #1b5e20;
    --fail: #b71c1c;
    --border: #333333;
}

body.light-mode {
    --bg: #f5f5f5;
    --accent: #cc0029;
    --wingman: #0099cc;
    --card-bg: #ffffff;
    --text: #000000;
    --text-dim: #333333;
    --success: #2e7d32;
    --fail: #c62828;
    --border: #cccccc;
}

/* ========== BASE STYLES ========== */
html, body {
    margin: 0; padding: 0; width: 100%; height: 100%; min-height: 100vh; overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #3a0007 0%, #1a0003 50%, var(--bg) 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: var(--text); font-family: 'Inter', sans-serif; position: fixed;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: radial-gradient(circle at 50% 0%, #ffe0e6 0%, #ffc0cc 50%, var(--bg) 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
}

.app-shell {
    display: flex; flex-direction: column;
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
}

/* ========== HEADER ========== */
header {
    padding: env(safe-area-inset-top) 15px 10px 15px;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent); flex-shrink: 0; z-index: 10;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
}

.header-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

select {
    background: #222; color: white; border: 1px solid var(--border);
    padding: 8px; border-radius: 8px; font-size: 14px;
    font-family: 'Inter', sans-serif; outline: none; flex: 1;
}

body.light-mode select { background: #fff; color: #000; }

.menu-btn {
    background: #333; color: #fff; font-size: 18px;
    padding: 8px 12px; border-radius: 8px; border: none;
    cursor: pointer; transition: transform 0.1s;
}

.menu-btn:active { transform: scale(0.95); }

body.light-mode .menu-btn { background: #ddd; color: #000; }

#progress-container { margin-top: 8px; }

#progress-bar {
    width: 0%; height: 4px; background: var(--accent);
    transition: width 0.3s ease; border-radius: 2px; margin-bottom: 5px;
}

#progress { font-size: 12px; color: #888; text-align: center; font-weight: 600; }

/* ========== MENU MODAL ========== */
#menu-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); display: none;
    justify-content: center; align-items: center;
    z-index: 1000; padding: 20px;
}

.menu-content {
    background: var(--card-bg); padding: 30px;
    border-radius: 20px; max-width: 400px;
    width: 100%; border: 2px solid var(--accent);
}

.menu-content h2 {
    color: var(--accent); margin-top: 0;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
}

.menu-item {
    padding: 15px; background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; margin-bottom: 10px; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}

.menu-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }

body.light-mode .menu-item { background: rgba(0, 0, 0, 0.05); }
body.light-mode .menu-item:hover { background: rgba(0, 0, 0, 0.1); }

.menu-item-icon { font-size: 20px; width: 30px; text-align: center; }

.menu-close {
    width: 100%; padding: 12px; margin-top: 20px;
    background: var(--border); color: var(--text); border: none;
    border-radius: 8px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; font-size: 12px;
}

/* ========== GAME CONTAINER ========== */
#game-container {
    flex: 1; display: flex; justify-content: center;
    align-items: center; padding: 15px; padding-bottom: 100px; overflow-y: auto;
}

/* ========== CARD ========== */
.card-view {
    background: rgba(26, 26, 26, 0.95);
    width: 100%; max-width: 500px; padding: 25px;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid var(--border); animation: slideIn 0.3s ease-out;
}

body.light-mode .card-view {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.card-view.fade-out {
    opacity: 0; transform: translateY(15px); transition: all 0.3s ease-in-out;
}

/* ========== TARGET INDICATOR ========== */
.target-indicator {
    display: inline-block; background: var(--accent); color: white;
    padding: 5px 12px; border-radius: 20px; font-size: 11px;
    font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase;
}

.target-indicator.hotwife { background: #ff0000; }
.target-indicator.cuckold { background: #0080ff; }
.target-indicator.both { background: linear-gradient(90deg, #ff0066 0%, #0066ff 100%); }

/* ========== REVEAL CARD ========== */
.reveal-card {
    text-align: center; display: flex; flex-direction: column;
    justify-content: center; min-height: 300px;
}

.reveal-target-big {
    font-family: 'Oswald', sans-serif; font-size: 48px;
    color: var(--accent); margin: 20px 0;
    text-transform: uppercase; letter-spacing: 3px;
}

.reveal-target-big.hotwife { color: #ff0000; }
.reveal-target-big.cuckold { color: #0080ff; }

.reveal-subtitle { font-size: 16px; color: var(--text-dim); margin-bottom: 40px; }

.reveal-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent), #ff3355);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 16px; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
    display: inline-block; max-width: 300px;
}

.reveal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4); }
.reveal-btn:active { transform: translateY(0); }

/* ========== INTRO CARD ========== */
.intro-card { text-align: center; }

.intro-label {
    color: var(--accent); text-transform: uppercase; font-size: 11px;
    font-weight: 900; letter-spacing: 2.5px; margin-bottom: 10px;
}

.intro-title {
    font-family: 'Oswald', sans-serif; font-size: 28px; color: var(--text);
    margin: 0 0 40px 0; text-transform: uppercase; line-height: 1.2;
    border-bottom: 1px solid var(--border); padding-bottom: 20px;
}

.intro-options { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }

.intro-option {
    background: rgba(0, 0, 0, 0.3); border: 2px solid var(--accent);
    border-radius: 15px; padding: 30px 20px; cursor: pointer; transition: all 0.3s ease;
}

.intro-option:hover {
    background: rgba(255, 0, 51, 0.1); transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.3);
}

.intro-option:active { transform: translateY(0); }
body.light-mode .intro-option { background: rgba(0, 0, 0, 0.05); }

.intro-option-title {
    font-family: 'Oswald', sans-serif; font-size: 36px; color: var(--accent);
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px;
}

.intro-option-title.hotwife { color: #ff0000; }
.intro-option-title.cuckold { color: #0080ff; }

.intro-option-subtitle { font-size: 14px; color: var(--text-dim); }

.phase-label {
    color: var(--accent); text-transform: uppercase; font-size: 11px;
    font-weight: 900; letter-spacing: 2.5px; margin-bottom: 10px;
}

.card-title {
    font-family: 'Oswald', sans-serif; font-size: 24px; color: var(--text) !important;
    margin: 0 0 15px 0; text-transform: uppercase; line-height: 1.1;
    border-bottom: 1px solid var(--border); padding-bottom: 10px;
}

.card-content {
    font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.5;
    color: var(--text-dim);
}

/* ========== LEVEL SELECTION ========== */
.level-selection { margin: 20px 0; }

.level-options { display: flex; flex-direction: column; gap: 10px; }

.level-option {
    background: rgba(255, 255, 255, 0.05); border: 2px solid var(--border);
    border-radius: 10px; padding: 12px 15px; cursor: pointer;
    transition: all 0.2s; display: flex; justify-content: space-between; align-items: center;
}

.level-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(3px); }

.level-option.selected { border-color: var(--accent); background: rgba(255, 0, 51, 0.15); }

body.light-mode .level-option { background: rgba(0, 0, 0, 0.03); }
body.light-mode .level-option:hover { background: rgba(0, 0, 0, 0.08); }
body.light-mode .level-option.selected { background: rgba(204, 0, 41, 0.15); }

.level-name { font-weight: 600; font-size: 15px; color: var(--text); }

.level-points {
    background: var(--accent); color: white;
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* ========== RANKING MODAL ========== */
#ranking-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); display: none;
    justify-content: center; align-items: center; z-index: 2000; padding: 20px;
}

.ranking-content {
    background: var(--card-bg); padding: 40px 30px; border-radius: 20px;
    max-width: 450px; width: 100%; border: 3px solid var(--accent); text-align: center;
}

.ranking-title {
    font-family: 'Oswald', sans-serif; font-size: 28px; color: var(--accent);
    margin: 0 0 20px 0; text-transform: uppercase;
}

.ranking-tier {
    font-family: 'Oswald', sans-serif; font-size: 48px;
    margin: 20px 0; text-transform: uppercase;
}

.ranking-score { font-size: 18px; color: var(--text-dim); margin-bottom: 20px; }

.ranking-bar-container {
    background: var(--border); border-radius: 10px;
    height: 12px; margin: 15px 0; overflow: hidden;
}

.ranking-bar { height: 100%; border-radius: 10px; transition: width 1s ease; }

.ranking-close {
    margin-top: 25px; padding: 12px 40px; background: var(--accent);
    color: white; border: none; border-radius: 10px;
    font-weight: 700; text-transform: uppercase; cursor: pointer; font-size: 14px;
}

/* ========== INFO BOXES ========== */
.info-box {
    background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--accent);
    padding: 12px 15px; border-radius: 8px; margin-top: 15px; display: none;
}

body.light-mode .info-box { background: rgba(0, 0, 0, 0.05); }

.info-box.wingman-box { border-left-color: var(--wingman); }

.wingman-next-btn {
    background: transparent; border: 1px solid var(--wingman);
    color: var(--wingman); padding: 6px 14px; border-radius: 6px;
    cursor: pointer; font-size: 13px; margin-top: 10px; transition: all 0.2s;
}

.wingman-next-btn:hover { background: rgba(0, 229, 255, 0.1); }

/* ========== BOTTOM CONTROLS ========== */
#bottom-controls {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom)) 15px;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    transition: transform 0.3s ease; z-index: 100;
}

body.light-mode #bottom-controls { background: rgba(255, 255, 255, 0.95); }

#bottom-controls.hidden { transform: translateY(100%); }

#action-buttons { display: flex; gap: 8px; }

.btn {
    flex: 1; padding: 14px 10px; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 13px; letter-spacing: 0.5px; transition: all 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-success { background: var(--success); color: white; }
.btn-fail { background: var(--fail); color: white; }
.btn-skip { background: var(--border); color: var(--text); }
.btn-wingman { background: rgba(0, 229, 255, 0.15); color: var(--wingman); border: 1px solid var(--wingman); }

#next-button-container { display: none; }

.btn-next {
    width: 100%; padding: 16px; background: var(--accent);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 16px; letter-spacing: 1px; transition: all 0.2s;
}

.btn-next:active { transform: scale(0.98); }

/* ========== POINTS DISPLAY ========== */
#points-display {
    text-align: center; font-size: 12px; color: #888;
    font-weight: 600; margin-bottom: 8px; display: none;
}

/* ========== TIMER ========== */
.timer-container { margin: 15px 0; }

.timer-progress-bar {
    width: 100%; height: 6px; background: var(--border);
    border-radius: 3px; margin-bottom: 10px; overflow: hidden;
}

.timer-progress-fill {
    height: 100%; background: var(--accent);
    border-radius: 3px; transition: width 1s linear;
}

.timer-display {
    background: rgba(0, 0, 0, 0.3); border: 2px solid var(--accent);
    border-radius: 15px; padding: 15px; text-align: center;
}

body.light-mode .timer-display { background: rgba(0, 0, 0, 0.05); }

.timer-label {
    font-size: 11px; text-transform: uppercase; font-weight: 700;
    letter-spacing: 1px; color: var(--accent); margin-bottom: 8px;
}

.timer-time {
    font-family: 'Oswald', sans-serif; font-size: 36px;
    font-weight: 700; color: var(--text); margin-bottom: 12px;
}

.timer-display.timer-warning .timer-time { color: var(--accent); animation: pulse 1s infinite; }

.timer-controls { display: flex; gap: 8px; justify-content: center; }

.timer-btn {
    background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border);
    color: var(--text); padding: 8px 16px; border-radius: 8px;
    cursor: pointer; font-size: 14px; transition: all 0.2s;
}

.timer-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* ========== SPLASH SCREEN ========== */
#splash-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #050505; display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-logo {
    font-family: 'Oswald', sans-serif; font-size: 64px;
    color: var(--accent); text-transform: uppercase; letter-spacing: 8px;
    margin-bottom: 10px;
}

.splash-sub {
    font-size: 14px; color: #666; letter-spacing: 4px;
    text-transform: uppercase;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-8px); }
    30%, 70% { transform: translateX(8px); }
}

.shake { animation: shake 0.4s ease; }

/* ========== HEADER SET NAME ========== */
.header-set-name {
    flex: 1; font-size: 12px; color: #666;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* ========== MENU SCORE DISPLAY ========== */
.menu-score-display {
    text-align: center; padding: 15px 0 20px 0;
    border-bottom: 1px solid var(--border); margin-bottom: 15px;
}

#menu-score {
    font-family: 'Oswald', sans-serif; font-size: 28px;
    color: var(--text); margin-right: 10px;
}

#menu-tier {
    font-family: 'Oswald', sans-serif; font-size: 18px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== OVERLAY MODALS ========== */
#location-modal, #sync-modal, #options-modal, #actions-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); display: none;
    justify-content: center; align-items: center;
    z-index: 1000; padding: 20px;
}

/* ========== HAUPTMENÜ SCREEN ========== */
#main-menu-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; padding: 20px; overflow-y: auto;
}

.main-menu-inner {
    width: 100%; max-width: 420px; text-align: center;
}

.main-menu-logo {
    font-family: 'Oswald', sans-serif; font-size: 56px;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 8px; margin-bottom: 6px;
}

.main-menu-sub {
    font-size: 13px; color: #666;
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 40px;
}

.main-menu-section {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px;
}

.main-set-select {
    width: 100%; background: #222; color: white;
    border: 1px solid var(--border); padding: 14px;
    border-radius: 10px; font-size: 16px;
    font-family: 'Inter', sans-serif; outline: none;
}

body.light-mode .main-set-select { background: #fff; color: #000; }

.main-start-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, var(--accent), #ff3355);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 17px; letter-spacing: 1px; transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.35);
}

.main-start-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255, 0, 51, 0.5); }
.main-start-btn:active { transform: scale(0.98); }

.main-menu-items { display: flex; flex-direction: column; gap: 8px; }

.main-menu-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; gap: 12px;
    font-size: 15px; text-align: left;
}

.main-menu-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }

body.light-mode .main-menu-item { background: rgba(0, 0, 0, 0.05); }
body.light-mode .main-menu-item:hover { background: rgba(0, 0, 0, 0.1); }

/* ========== ROLLENAUSWAHL SCREEN ========== */
#role-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; padding: 20px;
}

.role-inner { width: 100%; max-width: 420px; text-align: center; }

.role-title {
    font-family: 'Oswald', sans-serif; font-size: 28px;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 40px;
}

.role-options { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }

.role-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 16px; padding: 30px 20px; cursor: pointer;
    transition: all 0.3s ease;
}

.role-option.hotwife:hover, .role-option.hotwife.last-selected {
    background: rgba(255, 0, 0, 0.1); border-color: #ff0000;
    transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

.role-option.cuckold:hover, .role-option.cuckold.last-selected {
    background: rgba(0, 128, 255, 0.1); border-color: #0080ff;
    transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 128, 255, 0.25);
}

.role-option:active { transform: scale(0.98); }

body.light-mode .role-option { background: rgba(0, 0, 0, 0.03); }

.role-name {
    font-family: 'Oswald', sans-serif; font-size: 36px;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}

.role-option.hotwife .role-name { color: #ff0000; }
.role-option.cuckold .role-name { color: #0080ff; }

.role-sub { font-size: 14px; color: var(--text-dim); }

.role-back-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); padding: 10px 25px;
    border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.2s;
}

.role-back-btn:hover { border-color: var(--text); color: var(--text); }

/* ========== LOCATION BESTÄTIGUNG SCREEN ========== */
#location-confirm-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; padding: 20px;
}

.loc-confirm-inner { width: 100%; max-width: 420px; text-align: center; }

.loc-confirm-set-badge {
    display: inline-block;
    background: rgba(255, 0, 51, 0.12);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 13px; font-weight: 600;
    padding: 7px 18px; border-radius: 20px;
    margin: 12px 0 16px 0;
}

.loc-confirm-set-badge::before {
    content: '📍 ';
}

.loc-confirm-title {
    font-family: 'Oswald', sans-serif; font-size: 24px;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 8px;
}

.loc-confirm-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 25px; }

#loc-confirm-list {
    background: var(--card-bg); border-radius: 12px;
    padding: 5px 15px; margin-bottom: 25px;
    border: 1px solid var(--border); text-align: left;
}

.loc-confirm-item {
    padding: 12px 0; border-bottom: 1px solid var(--border);
    font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 10px;
}

.loc-confirm-item:last-child { border-bottom: none; }

.loc-confirm-actions { display: flex; gap: 12px; }

.btn-primary {
    flex: 2; padding: 15px;
    background: linear-gradient(135deg, var(--accent), #ff3355);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 15px; transition: all 0.2s;
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    flex: 1; padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text); border: 1px solid var(--border); border-radius: 12px;
    font-weight: 600; cursor: pointer; font-size: 14px; transition: all 0.2s;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

body.light-mode .btn-secondary { background: rgba(0, 0, 0, 0.05); }
body.light-mode .btn-secondary:hover { background: rgba(0, 0, 0, 0.1); }

/* ========== LOCATION MODAL ========== */
#location-modal .menu-content {
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.location-section-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--accent); padding: 18px 0 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

/* Custom Toggle-Schalter */
.location-checkbox-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; user-select: none;
}

.location-checkbox-row:last-of-type { border-bottom: none; }

.location-checkbox-row span {
    font-size: 15px; color: var(--text);
    font-family: 'Inter', sans-serif;
}

.location-checkbox-row input[type="checkbox"] {
    position: relative;
    appearance: none; -webkit-appearance: none;
    width: 46px; height: 26px;
    background: var(--border);
    border-radius: 13px; cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.location-checkbox-row input[type="checkbox"]:checked {
    background: var(--accent);
}

.location-checkbox-row input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.location-checkbox-row input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

/* Profile */
.location-profile-row {
    display: flex; gap: 8px;
    align-items: center; padding: 6px 0;
}

.location-profile-btn {
    flex: 1; padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text); border-radius: 10px;
    font-size: 14px; text-align: left;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.location-profile-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 0, 51, 0.1);
}

.location-profile-btn:hover { background: rgba(255, 255, 255, 0.1); }

body.light-mode .location-profile-btn { background: rgba(0,0,0,0.04); }
body.light-mode .location-profile-btn:hover { background: rgba(0,0,0,0.08); }

.location-delete-btn {
    padding: 11px 13px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 10px;
    cursor: pointer; font-size: 15px; line-height: 1;
    transition: all 0.2s;
}

.location-delete-btn:hover { border-color: var(--fail); color: var(--fail); }

/* Profil speichern */
.location-save-row {
    display: flex; gap: 8px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border);
}

.location-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text); padding: 11px 14px;
    border-radius: 10px; font-size: 14px;
    font-family: 'Inter', sans-serif; outline: none;
    transition: border-color 0.2s;
}

.location-input::placeholder { color: var(--text-dim); opacity: 0.6; }
.location-input:focus { border-color: var(--accent); }

body.light-mode .location-input { background: rgba(0,0,0,0.04); }

.location-save-btn {
    padding: 11px 18px;
    background: var(--accent); color: white;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.location-save-btn:active { transform: scale(0.97); }

/* ========== SYNC MODAL CONTENT ========== */
.sync-section { margin: 15px 0; }

.sync-create-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--accent), #ff3355);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    font-size: 15px; transition: all 0.2s; letter-spacing: 0.5px;
}

.sync-create-btn:active { transform: scale(0.98); }

.sync-divider {
    text-align: center; color: var(--text-dim);
    font-size: 13px; margin: 10px 0; letter-spacing: 1px;
}

.sync-join-row { display: flex; gap: 8px; align-items: stretch; }

.sync-input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: 10px;
    font-size: 18px; font-weight: 700; letter-spacing: 4px;
    text-transform: uppercase; font-family: 'Oswald', sans-serif;
    outline: none; transition: border-color 0.2s;
}

.sync-input:focus { border-color: var(--accent); }
body.light-mode .sync-input { background: rgba(0,0,0,0.04); }

.sync-join-btn {
    padding: 12px 18px; background: var(--accent);
    color: white; border: none; border-radius: 10px;
    font-weight: 700; cursor: pointer; font-size: 14px;
    text-transform: uppercase; white-space: nowrap; transition: all 0.2s;
}

.sync-join-btn:active { transform: scale(0.97); }

.sync-connected-badge {
    background: rgba(0, 200, 100, 0.15);
    border: 1px solid rgba(0, 200, 100, 0.4);
    color: #00c864; padding: 10px 16px;
    border-radius: 10px; text-align: center;
    font-weight: 700; font-size: 15px; margin: 10px 0;
}

.sync-code-display {
    text-align: center; font-family: 'Oswald', sans-serif;
    font-size: 24px; letter-spacing: 5px; margin: 12px 0;
    color: var(--text);
}

.sync-qr-container {
    display: flex; justify-content: center;
    margin: 15px 0; padding: 12px;
    background: white; border-radius: 12px;
}

.sync-hint {
    text-align: center; color: var(--text-dim);
    font-size: 13px; margin: 10px 0 15px 0; line-height: 1.5;
}

.sync-disconnect-btn {
    width: 100%; padding: 12px;
    background: transparent; border: 1px solid var(--fail);
    color: var(--fail); border-radius: 10px;
    font-weight: 700; cursor: pointer; font-size: 14px;
    text-transform: uppercase; transition: all 0.2s;
}

.sync-disconnect-btn:hover { background: rgba(183, 28, 28, 0.1); }

.sync-loading, .sync-no-config {
    text-align: center; padding: 20px 10px;
    color: var(--text-dim); line-height: 1.7; font-size: 14px;
}

.sync-error {
    text-align: center; padding: 20px 10px;
    color: var(--fail); line-height: 1.5; font-size: 14px;
}

/* ========== GUEST JOIN SCREEN ========== */
#guest-join-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; padding: 20px;
}

.guest-join-inner {
    width: 100%; max-width: 420px; text-align: center;
}

.guest-join-label {
    color: var(--text-dim); font-size: 12px;
    text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px;
}

.guest-join-set {
    font-family: 'Oswald', sans-serif; font-size: 26px;
    color: var(--text); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 35px;
    border-bottom: 1px solid var(--border); padding-bottom: 20px;
}

.guest-join-role-label {
    color: var(--text-dim); font-size: 11px;
    text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px;
}

.guest-join-role {
    font-family: 'Oswald', sans-serif; font-size: 52px;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 4px; margin-bottom: 45px;
}

/* ========== SYNC PARTNER STATUS (Intro-Card) ========== */
.sync-partner-status {
    display: block; margin-top: 18px;
    color: var(--text-dim); font-size: 14px; letter-spacing: 0.5px;
    animation: fadeIn 0.4s ease;
}