:root {
    --bg-base: #0f172a; --bg-surface: #1e293b; --bg-hover: #334155;
    --text-primary: #f8fafc; --text-secondary: #94a3b8; --border-color: #334155;
    --accent: #3b82f6; --accent-hover: #2563eb; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; 
    --gold: #fbbf24; --silver: #94a3b8; --bronze: #b45309;
}
html[data-theme="light"] {
    --bg-base: #f1f5f9; --bg-surface: #ffffff; --bg-hover: #e2e8f0;
    --text-primary: #0f172a; --text-secondary: #64748b; --border-color: #cbd5e1;
}
html[data-theme="oled"] {
    --bg-base: #000000; --bg-surface: #0a0a0a; --bg-hover: #171717;
    --text-primary: #ffffff; --text-secondary: #a3a3a3; --border-color: #262626;
    --accent: #6366f1; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, sans-serif; }
body { background-color: var(--bg-base); color: var(--text-primary); display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden;}

/* --- CSS KİLİT MOTORU --- */
.verify-lock { display: none; margin-left: 5px; font-size: 0.75rem; }
body.unverified-user .verify-lock { display: inline-block; color: var(--danger); }
body.unverified-user .nav-btn[data-locked="true"] { opacity: 0.5; }

/* DUYURU ÇUBUKLARI */
.announcement-bar { position: fixed; top: 0; left: 0; width: 100%; padding: 0.8rem 2rem; display: flex; justify-content: center; align-items: center; gap: 1rem; z-index: 10000; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); animation: slideDown 0.3s;}
#global-announcement { background: var(--danger); color: white; z-index: 9999; }
#global-announcement button { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; position: absolute; right: 20px;}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* AUTH VE BÖLÜNMÜŞ LANDING PAGE */
.auth-wrapper { display: none; width: 100%; height: 100vh; justify-content: center; align-items: center; background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(15,23,42,1) 100%); }
.auth-wrapper.active { display: flex; animation: fadeIn 0.5s; }
.landing-container { display: flex; width: 100%; max-width: 1000px; background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(16px); border-radius: 24px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.landing-info { flex: 1.2; padding: 4rem; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(to right, rgba(15,23,42,0.9), transparent); border-right: 1px solid rgba(255,255,255,0.05); }
.landing-info h1 { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.landing-info p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.landing-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.landing-features li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.05rem; }
.landing-features li i { color: var(--success); font-size: 1.2rem; }
.auth-glass-card { flex: 1; padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; background: rgba(30, 41, 59, 0.6); }
.auth-header { margin-bottom: 2rem; text-align: center; }
.auth-header h2 { font-size: 1.8rem; }
.input-group { position: relative; margin-bottom: 1rem; }
.input-group i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 1rem 1rem 1rem 3rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 12px; outline: none; transition: 0.3s; font-family:inherit;}
.input-group input:focus { border-color: var(--accent); }
.auth-actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.btn-primary { background: var(--accent); color: white; padding: 1rem; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); padding: 1rem; border: 1px solid var(--border-color); border-radius: 12px; font-weight: bold; cursor: pointer; }
.forgot-link { color: var(--accent); font-size: 0.9rem; text-decoration: none; font-weight: bold; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 1rem; display: none; text-align: center;}
.success-text { color: var(--success); font-size: 0.85rem; margin-top: 1rem; display: none; text-align: center;}

@media (max-width: 850px) {
    .landing-container { flex-direction: column; max-width: 400px; margin: 20px; border-radius: 16px; }
    .landing-info { padding: 2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .landing-info h1 { font-size: 2rem; }
    .auth-glass-card { padding: 2rem; }
}

/* APP İSKELETİ */
.app-container { display: none; width: 100%; max-width: 1200px; height: 90vh; background-color: var(--bg-base); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; position: relative;}
.app-container.active { display: flex; animation: fadeIn 0.3s; }
.sidebar { width: 220px; background-color: var(--bg-surface); padding: 1.5rem; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0;}
.logo { font-size: 1.25rem; font-weight: bold; color: var(--text-primary); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.logo i { color: var(--accent); }
.nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-btn { background: none; border: none; color: var(--text-secondary); padding: 0.8rem 1rem; border-radius: 8px; text-align: left; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 0.8rem; transition: 0.2s;}
.nav-btn.active { background-color: rgba(59, 130, 246, 0.1); color: var(--accent); font-weight: 600; }
.nav-btn:hover { background-color: rgba(255,255,255,0.05); }

.main-content { flex: 1; display: flex; flex-direction: column; position: relative; min-width: 0; overflow-x: hidden; overflow-y: auto;}
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid var(--border-color); background-color: var(--bg-surface); flex-shrink: 0;}
.user-profile { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.icon-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1rem; font-weight: bold; display: flex; gap: 5px; align-items: center;}

.view-section { display: none; flex: 1; padding: 2rem; }
.view-section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* SAYAÇ KARTLARI */
.timer-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.timer-card, .panel-card, .settings-card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; text-align: center; margin-bottom: 1rem; min-width: 0; }
.panel-card h3, .settings-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-secondary); text-align: left;}

.mode-selector { display: flex; background: var(--bg-base); border-radius: 12px; padding: 0.3rem; margin-bottom: 2rem; }
.mode-btn { flex: 1; background: none; border: none; color: var(--text-secondary); padding: 0.6rem; border-radius: 8px; cursor: pointer; font-weight: 500; }
.mode-btn.active { background: var(--border-color); color: var(--text-primary); }

.time-adjusters { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 2rem 0; }
.time-btn { background: var(--bg-base); border: 1px solid var(--border-color); color: var(--text-secondary); width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center;}
.time-btn:hover { background: rgba(59, 130, 246, 0.1); color: var(--accent); border-color: var(--accent); }
.time-display { font-size: 5.5rem; font-weight: 800; letter-spacing: -3px; }

.controls { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;}
.control-btn { padding: 0.8rem 1.5rem; border-radius: 8px; border: none; font-weight: bold; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;}
.control-btn.primary { background: var(--text-primary); color: var(--bg-base); }
.control-btn.secondary { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.control-btn.danger { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.control-btn.icon-only { background: var(--bg-base); color: var(--text-primary); border: 1px solid var(--border-color); }

.tag-selector { width: 100%; padding: 0.8rem; border-radius: 8px; background-color: var(--bg-base); border: 1px solid var(--border-color); color: var(--text-primary); outline: none; margin-bottom: 10px; }
.add-tag-group { display: flex; gap: 0.5rem; margin-top: 10px; }
.add-tag-group input { flex: 1; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-primary); outline: none; }
.add-tag-group button { background: var(--accent); color: white; border: none; border-radius: 8px; padding: 0 1rem; cursor: pointer; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 999; display: flex; justify-content: center; align-items: center; }
.modal-overlay.hidden { display: none; }
.modal-content { background: var(--bg-surface); padding: 3rem; border-radius: 20px; text-align: center; border: 1px solid var(--border-color); max-width: 400px; width: 90%; animation: popUp 0.3s; }
.modal-icon { font-size: 3rem; color: var(--success); margin-bottom: 1rem; }
.summary-stats { display: flex; gap: 1rem; margin: 2rem 0; }
.sum-box { flex: 1; padding: 1rem; border-radius: 12px; display: flex; flex-direction: column; gap: 5px; }
.focus-box { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--accent); color: var(--accent); }
.break-box { background: rgba(245, 158, 11, 0.1); border: 1px solid var(--warning); color: var(--warning); }
.sum-label { font-size: 0.8rem; opacity: 0.8; }
.sum-box strong { font-size: 1.5rem; }

/* ODALAR */
.coop-lobby { text-align: center; padding: 3rem; background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border-color); }
.lobby-actions { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.join-group { display: flex; gap: 0.5rem; }
.join-group input { padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-primary); text-transform: uppercase; text-align: center; }
.coop-active-room { background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border-color); padding: 2rem; position: relative;}
.room-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 2rem; flex-wrap: wrap; gap: 10px;}
.highlight-code { color: var(--accent); font-weight: bold; background: rgba(59, 130, 246, 0.1); padding: 0.3rem 0.6rem; border-radius: 8px; }
.btn-danger-outline { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: bold; }
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.1); }
.room-timer-area { text-align: center; margin-bottom: 3rem; }
.members-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.member-item { background: var(--bg-base); padding: 1rem; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-color); }
.member-info { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.member-info img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover;}
.status-badge { font-size: 0.8rem; padding: 0.3rem 0.6rem; border-radius: 20px; font-weight: bold; }
.status-odak { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-mola { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-bekliyor { background: rgba(148, 163, 184, 0.1); color: var(--text-secondary); }

/* CHAT */
.floating-chat-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: white; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 100; display: flex; align-items: center; justify-content: center;}
.chat-badge { position: absolute; top: 0; right: 0; width: 15px; height: 15px; background: var(--danger); border-radius: 50%; border: 2px solid var(--bg-base); }
.chat-badge.active { display: block; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.chat-window { position: absolute; bottom: 100px; right: 30px; width: 320px; height: 450px; background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(15px); border: 1px solid var(--border-color); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 100; overflow: hidden; animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-window.hidden { display: none !important; }
@keyframes popUp { 0% { opacity: 0; transform: translateY(50px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.chat-header { padding: 1rem; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-weight: bold;}
.chat-header button { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.chat-bubble { max-width: 85%; padding: 0.8rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; position: relative; word-wrap: break-word;}
.chat-bubble.other { background: var(--border-color); align-self: flex-start; border-bottom-left-radius: 2px;}
.chat-bubble.mine { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 2px;}
.chat-sender { font-weight: bold; font-size: 0.75rem; margin-bottom: 3px; opacity: 0.8; }
.chat-time { font-size: 0.65rem; opacity: 0.6; text-align: right; margin-top: 5px; display: block; }
.chat-input-area { padding: 1rem; display: flex; gap: 0.5rem; background: rgba(0,0,0,0.2); }
.chat-input-area input { flex: 1; padding: 0.8rem; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-primary); outline: none; }
.chat-input-area button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; border: none; cursor: pointer; }

/* YENİ ANALİZ EKRANI (ÇİFT GRAFİK DÜZENİ) */
.analytics-tabs { display: flex; background: var(--bg-base); border-radius: 8px; padding: 0.2rem; }
.a-tab { background: none; border: none; color: var(--text-secondary); padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-weight: bold; }
.a-tab.active { background: var(--border-color); color: var(--text-primary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; display: flex; flex-direction: column; gap: 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: bold; }
.charts-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.chart-container { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 350px;}
canvas { max-width: 100%; max-height: 100%; }

/* LİDERLİK */
.lb-header { text-align: center; margin-bottom: 2rem; }
.lb-header p { color: var(--text-secondary); font-size: 0.9rem; }
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; margin-bottom: 3rem; height: 180px; }
.podium-spot { display: flex; flex-direction: column; align-items: center; width: 100px; }
.podium-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border-color); margin-bottom: -15px; z-index: 2; background: var(--bg-base); object-fit: cover;}
.podium-block { width: 100%; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; padding-top: 20px; font-weight: bold; color: var(--bg-base); }
.podium-1 .podium-block { height: 120px; background: var(--gold); }
.podium-2 .podium-block { height: 90px; background: var(--silver); }
.podium-3 .podium-block { height: 70px; background: var(--bronze); }
.podium-1 .podium-avatar { border-color: var(--gold); width: 70px; height: 70px; margin-bottom: -20px;}
.podium-name { font-size: 0.85rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 90%; margin-top: 5px; }

.leaderboard-list-container { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem; min-width: 0;}
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; text-align: left; margin-top: 1rem; border-collapse: collapse; min-width: 700px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.admin-table td img { vertical-align: middle; margin-right: 8px; }
.lb-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.lb-row { display: flex; align-items: center; padding: 0.8rem; border-radius: 8px; background: var(--bg-base); }
.lb-rank { width: 30px; font-weight: bold; color: var(--text-secondary); }
.lb-user-info { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lb-user-info img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover;}
.lb-score { font-weight: bold; color: var(--accent); }

/* AYARLAR & ADMIN */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; min-width: 0;}
.profile-edit-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.settings-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.theme-options { display: flex; gap: 0.5rem; margin-top: 1rem; }
.theme-btn { flex: 1; padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-base); color: var(--text-primary); cursor: pointer; }
.theme-btn.active { border-color: var(--accent); background-color: rgba(59, 130, 246, 0.1); color: var(--accent); font-weight: bold;}

.admin-rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; max-height: 400px; overflow-y: auto; padding-right: 5px;}
.admin-room-card { background: var(--bg-base); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: 10px;}
.admin-room-header { display: flex; justify-content: space-between; align-items:center; border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; font-weight: bold;}
.admin-room-member { display: flex; justify-content: space-between; align-items: center; background: var(--bg-surface); padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border-color);}

.feedback-card { background: var(--bg-base); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.fb-head { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 5px; }
.fb-msg { font-size: 0.95rem; line-height: 1.4; margin-bottom: 10px;}

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-online { background: var(--success); box-shadow: 0 0 5px var(--success); animation: pulse 2s infinite; }
.status-offline { background: var(--text-secondary); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.admin-user-btn { background: var(--danger); color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.8rem;}
.btn-warning { background: var(--warning); color: #000; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; font-weight: bold;}

.hidden { display: none !important; }

@media (max-width: 768px) {
    .app-container { height: 100vh; max-width: 100vw; border-radius: 0; border: none; flex-direction: column; }
    .sidebar { width: 100%; padding: 1rem; border-right: none; border-bottom: 1px solid var(--border-color); }
    .logo { margin-bottom: 1rem; justify-content: center; }
    .nav-links { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; gap: 0.5rem; }
    .nav-btn { white-space: nowrap; padding: 0.6rem 0.8rem; font-size: 0.85rem; }
    .timer-layout { grid-template-columns: 1fr; }
    .time-display { font-size: 4rem; }
    .chat-window { position: fixed; bottom: 0; right: 0; width: 100%; height: 60vh; border-radius: 16px 16px 0 0; }
    .floating-chat-btn { bottom: 20px; right: 20px; }
    .podium-container { gap: 0.5rem; }
    .podium-spot { width: 80px; }
}
/* PASTA GRAFİK SEKMELERİ (.d-tab) */
.d-tab { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; cursor: pointer; transition: 0.2s;}
.d-tab.active { background: var(--accent); color: white; border-color: var(--accent);}

/* PREMIUM ETİKET (TAG PILL) TASARIMI */
.tag-pill-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}
.tag-pill {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.tag-pill:hover, .tag-pill:focus {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.tag-pill-container .pill-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    pointer-events: none;
    font-size: 0.8rem;
}

/* ===== TAM EKRAN ODAK MODU ===== */
.fullscreen-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 5000; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: #060d1a;
    animation: fsFadeIn 0.4s ease;
}
.fullscreen-overlay.hidden { display: none !important; }

@keyframes fsFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Animasyonlu arka plan halkası */
.fullscreen-bg-blur {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59,130,246,0.07) 0%, transparent 70%);
}
.fullscreen-overlay.fs-focus .fullscreen-bg-blur {
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59,130,246,0.10) 0%, transparent 70%);
}
.fullscreen-overlay.fs-break .fullscreen-bg-blur {
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(16,185,129,0.08) 0%, transparent 70%);
}

/* Üst köşe butonları */
.fs-top-bar {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 2;
}
.fs-logo {
    font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.25);
    display: flex; align-items: center; gap: 8px; letter-spacing: 0.05em;
}
.fs-top-actions { display: flex; gap: 10px; }

.fs-icon-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    width: 40px; height: 40px; border-radius: 10px;
    font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.fs-icon-btn:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}

/* Ana içerik */
.fullscreen-content {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
    position: relative; z-index: 1;
}

/* Mod seçici */
.fullscreen-mode-selector {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 4px; gap: 4px;
}
.fs-mode-btn {
    background: none; border: none;
    color: rgba(255,255,255,0.35);
    padding: 8px 20px; border-radius: 10px;
    cursor: pointer; font-weight: 600; font-size: 0.85rem;
    transition: all 0.2s; letter-spacing: 0.03em;
}
.fs-mode-btn.active {
    background: rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.9);
}

/* Büyük sayaç */
.fullscreen-timer {
    font-size: clamp(5.5rem, 20vw, 13rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color 0.5s;
}
.fullscreen-overlay.fs-break .fullscreen-timer { color: #6ee7b7; }

/* Durum metni */
.fullscreen-status {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    transition: color 0.5s;
}
.fullscreen-overlay.fs-focus .fullscreen-status { color: rgba(96,165,250,0.7); }
.fullscreen-overlay.fs-break .fullscreen-status { color: rgba(110,231,183,0.7); }

/* Kontrol butonları */
.fullscreen-controls { display: flex; gap: 16px; align-items: center; margin-top: 0.5rem; }

.fs-btn-main {
    padding: 0 2.5rem;
    height: 60px;
    border-radius: 30px; border: none;
    font-weight: 700; font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.2s;
    background: #3b82f6; color: white;
    letter-spacing: 0.02em;
}
.fs-btn-main:hover { background: #2563eb; transform: translateY(-1px); }
.fs-btn-main:active { transform: translateY(0); }
.fullscreen-overlay.fs-break .fs-btn-main { background: #10b981; }
.fullscreen-overlay.fs-break .fs-btn-main:hover { background: #059669; }

.fs-btn-secondary {
    width: 52px; height: 52px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.fs-btn-secondary:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }

/* İlerleme çubuğu */
.fs-progress-bar {
    width: min(400px, 80vw); height: 3px;
    background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
    margin-top: 0.5rem;
}
.fs-progress-fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: #3b82f6;
    transition: width 1s linear, background 0.5s;
}
.fullscreen-overlay.fs-break .fs-progress-fill { background: #10b981; }

/* Alt müzik alanı */
.fs-music-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem 2.5rem;
    display: flex; justify-content: center;
    z-index: 2;
}
.fs-music-bar.hidden { display: none !important; }
.fs-music-embed {
    width: 100%; max-width: 680px;
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.fs-music-embed iframe { border-radius: 14px; display: block; }

/* ===== SABİT MÜZİK BARI ===== */
@keyframes slideUpBar { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.global-music-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000;
    height: 88px;
    background: rgba(10, 16, 30, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center;
    padding: 0 1.5rem; gap: 1rem;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.04), 0 -20px 40px rgba(0,0,0,0.5);
    animation: slideUpBar 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: height 0.25s ease;
}
.global-music-bar.hidden { display: none !important; }
.global-music-bar.minimized { height: 52px; }
.global-music-bar.minimized .music-bar-embed { opacity: 0; pointer-events: none; }
.global-music-bar.minimized .music-bar-label-wrap { opacity: 1; }

.music-bar-left {
    display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.music-bar-icon-wrap {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.music-bar-icon-wrap.spotify { background: rgba(29,185,84,0.15); color: #1DB954; }
.music-bar-icon-wrap.youtube { background: rgba(255,0,0,0.12); color: #FF4444; }

.music-bar-label-wrap { display: flex; flex-direction: column; gap: 1px; }
.music-bar-label { font-weight: 700; font-size: 0.82rem; color: rgba(255,255,255,0.8); line-height: 1; }
.music-bar-sublabel { font-size: 0.72rem; color: rgba(255,255,255,0.3); font-weight: 500; }

.music-bar-embed {
    flex: 1; height: 72px; overflow: hidden;
    display: flex; align-items: center;
    transition: opacity 0.25s;
}
.music-bar-embed iframe { border-radius: 10px; height: 72px; width: 100%; display: block; }

.music-bar-right { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.music-bar-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    width: 34px; height: 34px; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; transition: all 0.2s;
}
.music-bar-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.15);
}
.music-bar-btn.minimize-btn i { transition: transform 0.25s; }
.global-music-bar.minimized .minimize-btn i { transform: rotate(180deg); }

/* App container'ı müzik barı yüksekliğine göre ayarla */
body.has-music-bar .app-container { margin-bottom: 88px; }
body.has-music-bar.music-minimized .app-container { margin-bottom: 52px; }

@media (max-width: 768px) {
    .fullscreen-timer { font-size: clamp(4.5rem, 22vw, 8rem); }
    .fs-btn-main { padding: 0 2rem; height: 54px; }
    .fs-top-bar { padding: 1rem 1.2rem; }
    .global-music-bar { padding: 0 1rem; gap: 0.6rem; }
    .music-bar-icon-wrap { width: 32px; height: 32px; font-size: 0.9rem; }
}