@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --secondary: #ec4899;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --danger: #ef4444;
    --background: #f8fafc;
    --bg: #f8fafc;
}

.dark-theme {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --surface: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(30, 41, 59, 0.8);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
    --background: #020617;
    --bg: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background 0.3s ease;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.hidden { display: none !important; }

/* === PAGE SYSTEM === */
.page {
    display: none;
    animation: slideUpFade 0.4s ease;
}

.page.active {
    display: block;
}

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

.main-content {
    padding: 24px 20px 120px;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* === PREMIUM MESH BACKGROUND === */
.app-container {
    min-height: 100vh;
    background: radial-gradient(at 0% 0%, var(--primary-glow) 0, transparent 50%),
                radial-gradient(at 50% 0%, rgba(236, 72, 153, 0.05) 0, transparent 50%);
}

/* === HEADER === */
.header {
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* === AUTH SYSTEM === */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #07050f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow: hidden;
}

/* Animasyonlu arka plan orb'lar */
.auth-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Yıldız parçacıkları */
.auth-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--d, 3s) var(--delay, 0s) infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: var(--op, 0.6); transform: scale(1.5); }
}

.auth-card {
    background: rgba(15, 12, 35, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    padding: 44px 40px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04),
                0 30px 80px rgba(0,0,0,0.6),
                0 0 60px rgba(99,102,241,0.1);
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a78bfa, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    letter-spacing: -3px;
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.7)); }
}

.auth-header p {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.auth-tabs .tab-btn {
    flex: 1;
    padding: 11px;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.auth-tabs .tab-btn.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.2));
    color: #a78bfa;
    box-shadow: 0 2px 12px rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.3);
}

.input-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.9rem;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.3);
    color: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.input-wrapper input:focus {
    border-color: rgba(99,102,241,0.6);
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(99,102,241,0.4),
                0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.5),
                0 0 0 1px rgba(255,255,255,0.15);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    background: var(--bg-surface);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-toggle {
    background: rgba(99, 102, 241, 0.08);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
}

/* Mobile navigation toggle button */
.nav-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.2s ease;
}
.nav-toggle:hover {
    background: var(--primary-dark);
}

/* === SIDEBAR DRAWER === */
.sidebar-drawer {
    position: fixed;
    top: 15px;
    left: -320px;
    width: 300px;
    height: calc(100vh - 30px);
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 10001;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.sidebar-drawer.active {
    transform: translateX(320px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.sidebar-overlay.active { display: block; }

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-user-card {
    padding: 0 20px 20px;
}

.user-profile-summary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    padding: 20px;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.user-profile-summary img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.sidebar-menu {
    padding: 10px 15px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-item {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 16px;
}

/* === BOTTOM NAVIGATION === */
.nav-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 20px;
}

.nav-item i { font-size: 1.4rem; }

.nav-item.active {
    color: var(--primary);
}

/* Floating Action Button integrated in Nav */
.fab-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    margin-top: -30px;
    z-index: 5;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ===== LIVE DUEL ARENA STYLES ===== */
.arena-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.arena-topic .label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.arena-topic h2 { margin: 0; font-size: 1.5rem; }

.arena-timer #duelCountdown {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'monospace';
    color: var(--danger);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.arena-main {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.arena-vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: var(--border);
    opacity: 0.3;
    pointer-events: none;
}

.arena-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poet-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.poet-avatar {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    border: 3px solid var(--primary);
}

.user2-side .poet-avatar { border-color: var(--secondary); }

.poet-info { flex: 1; }
.poet-name { font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 5px; }

.vote-meter {
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.vote-meter .progress {
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.user1-side .progress { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.user2-side .progress { background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }

.vote-text { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

.poet-content-box {
    position: relative;
    background: var(--bg-main);
    border-radius: 15px;
    padding: 5px;
    border: 2px solid var(--border);
    transition: 0.3s;
}

.poet-content-box:focus-within { border-color: var(--primary); }

.poet-textarea {
    width: 100%;
    height: 300px;
    background: transparent;
    border: none;
    resize: none;
    color: var(--text-main);
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 15px;
    outline: none;
}

.btn-vote {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-vote:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-vote i { color: var(--danger); }

/* Duel Lobby */
.active-duels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.duel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.duel-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.duel-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.duel-badge { font-size: 0.6rem; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: var(--danger); color: white; }

.duel-card-body { display: flex; align-items: center; justify-content: space-around; gap: 10px; }
.duel-card-body img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); }
.vs-small { font-weight: 900; opacity: 0.5; font-size: 0.8rem; }

@media (max-width: 800px) {
    .arena-main { flex-direction: column; gap: 30px; }
    .arena-vs { display: none; }
    .poet-textarea { height: 200px; }
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* === DROPDOWN PANELS === */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    overflow: hidden;
    display: none;
    animation: slideUpFade 0.3s ease;
}

.dropdown-panel.active {
    display: block;
}

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

/* === CHAT SYSTEM === */
.chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 180px);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.chat-sidebar {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-header h3 { font-size: 1.1rem; }
.online-count { font-size: 0.75rem; color: #10b981; font-weight: 600; }

.chat-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.chat-user-item:hover { background: rgba(99, 102, 241, 0.05); }

.chat-user-avatar { position: relative; }
.chat-user-avatar img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); }
.status-dot { 
    position: absolute; bottom: 2px; right: 2px; 
    width: 10px; height: 10px; border-radius: 50%; 
    border: 2px solid var(--bg-surface);
}
.status-dot.online { background: #10b981; }

.chat-main {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
}

.chat-main-header {
    padding: 10px 20px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    display: none; /* Only show on mobile */
}

.toggle-users-btn {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.chat-message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar { width: 32px; height: 32px; border-radius: 50%; margin-top: 4px; }
/* Old duplicate bubble style removed to resolve double-bubble glitch */


.chat-msg-author { font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; display: block; }
.chat-msg-time { font-size: 0.65rem; opacity: 0.6; margin-top: 4px; display: block; text-align: right; }

.chat-input-container {
    padding: 15px 20px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-container textarea {
    flex: 1;
    height: 45px;
    padding: 12px 18px;
    border-radius: 25px;
    resize: none;
    border: 1px solid var(--border);
    background: var(--bg-main);
    font-size: 0.95rem;
}

#sendMessageBtn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#sendMessageBtn:hover { transform: scale(1.05); }

/* Mobile Adjustments for Chat */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        display: none; /* Hide users on mobile chat by default */
    }
    .chat-main-header {
        display: block;
    }
    .chat-container.show-users .chat-sidebar {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: var(--bg-surface);
    }
}

.dropdown-item {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

/* === POEM CARDS === */
.poem-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px; /* increased padding for better spacing */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.poem-card:hover {
    transition: transform 0.05s linear, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.poem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 220px at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.18) 0%,
        rgba(168, 85, 247, 0.12) 25%,
        rgba(6, 182, 212, 0.08) 50%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

.poem-card:hover::before {
    opacity: 1;
}

.poem-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4; /* slightly looser */
    transform: translateZ(25px);
}

.poem-preview {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    transform: translateZ(20px);
}

/* === PREMIUM THEMES === */
.poem-card.dark-premium {
    background: linear-gradient(145deg, #0f172a, #020617);
    color: #f1f5f9;
    border: 1px solid #334155;
}

.poem-card.gold-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #451a03;
}

/* Poem card themes */
.poem-card.parchment {
    background: #fdf6e3;
    border-color: #d4c5a1;
    color: #5c4b37;
}

.poem-card.dark-premium {
    background: linear-gradient(145deg, #1e293b, #020617);
    color: #f1f5f9;
    border-color: #334155;
}

.poem-card.glass {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, .5);
}

.poem-card.sunset {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.poem-card.ocean {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-color: #0284c7;
}

/* Premium Card Styles */
.poem-card.gold-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a, #f59e0b);
    border: 2px solid #d97706;
    color: #451a03;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.2);
}

.poem-card.royal-purple {
    background: linear-gradient(135deg, #f5f3ff, #ddd6fe, #8b5cf6);
    border: 2px solid #6d28d9;
    color: #2e1065;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
}

.poem-card.midnight-star {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    border: 2px solid #475569;
    color: #f1f5f9;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}

.poem-card.sakura-pink {
    background: linear-gradient(135deg, #fff1f2, #fecdd3, #fb7185);
    border: 2px solid #e11d48;
    color: #4c0519;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

/* Premium Font Classes */
.font-dancing { font-family: 'Dancing Script', cursive !important; }
.font-caveat { font-family: 'Caveat', cursive !important; }
.font-playfair { font-family: 'Playfair Display', serif !important; }
.font-merriweather { font-family: 'Merriweather', serif !important; }

/* Daily Inspiration Card */
.daily-inspiration-card {
    position: relative;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #db2777 100%);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 40px;
    color: white;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4),
                0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.daily-inspiration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 80px rgba(99, 102, 241, 0.5);
}

/* Shimmer efekti */
.daily-inspiration-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255,255,255,0.08) 50%,
        transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Arka dekoratif daireler */
.inspiration-bg {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.inspiration-bg::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    border-radius: 50%;
}

.inspiration-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.inspiration-tag {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.inspiration-content h3 {
    font-size: 1.9rem;
    margin: 10px 0 16px;
    font-style: italic;
    font-family: 'Lora', serif;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Zen Mode Reader */
#poemModal.zen-mode .modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#poemModal.zen-mode .modal-header,
#poemModal.zen-mode .poem-author,
#poemModal.zen-mode .poem-actions,
#poemModal.zen-mode .comments-section,
#poemModal.zen-mode .poem-stats {
    display: none !important;
}

#poemModal.zen-mode .poem-content {
    font-size: 2.2rem;
    max-width: 800px;
    line-height: 1.6;
    color: #f1f5f9;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: fadeInZen 2s ease;
}

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

#poemModal.zen-mode .modal-header {
    display: flex !important;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
}

#poemModal.zen-mode .modal-header h2 { display: none; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: .85rem;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-muted);
    transition: .2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Forms */
.poem-form,
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.poem-form input,
.poem-form select,
.poem-form textarea,
.settings-form input,
.settings-form textarea,
.settings-form select,
.card input,
.card select,
.card textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: .95rem;
    background: var(--background);
    color: var(--text-main);
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: .2s;
}

.poem-form input:focus,
.poem-form textarea:focus {
    border-color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media(max-width:600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.align-toolbar {
    display: flex;
    gap: 8px;
}

.align-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--background);
    color: var(--text-muted);
    transition: .2s;
}

.align-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.collab-box {
    background: rgba(99, 102, 241, .05);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 28px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 15px var(--primary-glow);
    transition: .3s;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
}

/* ===== CHAT - Premium Discord/Telegram Style ===== */
.chat-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    height: calc(100vh - 160px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

@media(max-width:640px) {
    .chat-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: calc(100vh - 140px);
    }

    .chat-sidebar {
        display: none;
    }
}

/* ===== Online Users Sidebar - Premium ===== */
.chat-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .05));
}

.chat-header h3 {
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .3px;
}

.online-count {
    font-size: .72rem;
    font-weight: 800;
    background: rgba(16, 185, 129, .15);
    color: #059669;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, .2);
}

.chat-users-list {
    overflow-y: auto;
    padding: 6px;
    flex: 1;
}

.chat-users-list::-webkit-scrollbar {
    width: 3px;
}

.chat-users-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Kullanıcı satırı */
.chat-user-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 10px;
    transition: .15s;
    cursor: default;
}

.chat-user-item:hover {
    background: rgba(99, 102, 241, .07);
}

.chat-user-avatar {
    position: relative;
    flex-shrink: 0;
}

.chat-user-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .3);
}

.chat-user-info {
    flex: 1;
    min-width: 0;
}

.chat-user-name {
    font-size: .8rem;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-user-status {
    font-size: .68rem;
    color: #10b981;
    display: block;
    font-weight: 600;
}

.btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, .1);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .75rem;
    transition: .2s;
    opacity: 0;
}

.chat-user-item:hover .btn-icon {
    opacity: 1;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

/* Main chat area */
.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Message item */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 75%;
    animation: fadeIn .2s ease;
}

.chat-message.own {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.chat-message.system-msg {
    align-self: center;
    max-width: 100%;
    justify-content: center;
}

/* Avatar in message */
.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.chat-message.own .avatar-container {
    display: none;
}

/* Bubble */
.chat-msg-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
}

.chat-msg-content p {
    background: var(--bg-surface);
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    font-size: .92rem;
    line-height: 1.5;
    word-break: break-word;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-message.own .chat-msg-content p {
    background: var(--primary);
    color: white;
    border-radius: 18px 18px 4px 18px;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 6px var(--primary-glow);
}

.chat-message.system-msg .chat-msg-content p {
    background: rgba(239, 68, 68, .08);
    color: #b91c1c;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 14px;
}

.chat-msg-author {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    padding-left: 4px;
    display: block;
    margin-bottom: 2px;
}

.chat-message.own .chat-msg-author {
    text-align: right;
    color: rgba(99, 102, 241, .8);
    padding-right: 4px;
    padding-left: 0;
}

.chat-msg-time {
    font-size: .65rem;
    color: var(--text-muted);
    padding: 0 4px;
    align-self: flex-end;
}

.chat-message.own .chat-msg-time {
    align-self: flex-start;
}

/* Rose Bubble Custom Styling & Decorations */
.rose-themed-bubble {
    position: relative;
    overflow: visible !important;
}

.rose-themed-bubble::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(244, 63, 94, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
    opacity: 0.4;
}

.bubble-rose-decor {
    position: absolute;
    right: -12px;
    top: -12px;
    font-size: 1.25rem;
    pointer-events: none;
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    border: 1.5px solid #f43f5e;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(244, 63, 94, 0.5);
    z-index: 10;
    animation: rose-float-pulse 3s ease-in-out infinite;
}

.chat-message.own .bubble-rose-decor {
    left: -12px;
    right: auto;
}

@keyframes rose-float-pulse {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        box-shadow: 0 3px 8px rgba(244, 63, 94, 0.5);
    }
    50% {
        transform: translateY(-4px) rotate(15deg) scale(1.1);
        box-shadow: 0 5px 15px rgba(244, 63, 94, 0.7);
    }
}


/* Input bar */
.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-input-container textarea {
    flex: 1;
    resize: none;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    max-height: 120px;
    outline: none;
    transition: .2s;
}

.chat-input-container textarea:focus {
    border-color: var(--primary);
}

.chat-input-container button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--primary-glow);
    transition: .2s;
}

.chat-input-container button:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Friends / DM */
.friends-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 15px;
    height: calc(100vh - 200px);
}

@media(max-width:640px) {
    .friends-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 140px);
    }
    .friends-container:not(.chat-open) .friends-main {
        display: none !important;
    }
    .friends-container.chat-open .friends-sidebar {
        display: none !important;
    }
    .friends-container.chat-open .back-dm-btn {
        display: inline-block !important;
    }
}

.friends-sidebar {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.friends-header {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.friends-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.ftab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.ftab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.friends-list-container {
    flex: 1;
    overflow-y: auto;
}

.friends-main {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.dm-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
}

.dm-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.dm-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.dm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat avatars - sizes */
.chat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-user-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.poem-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.poem-author-avatar.premium-border {
    border: 2px solid gold;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.online-user-item:hover {
    background: rgba(0, 0, 0, .04);
}

.chat-msg-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg-bubble {
    background: var(--background);
    border-radius: 12px;
    padding: 10px 14px;
    max-width: 75%;
}

.chat-msg-name {
    font-weight: 700;
    font-size: .8rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.chat-msg-text {
    font-size: .9rem;
    line-height: 1.5;
}

.chat-users-list {
    overflow-y: auto;
    padding: 8px;
}

/* Rooms & Duels */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.duels-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Profile */
/* Profile Modern Design */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.profile-card-modern {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    position: relative;
}

.profile-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

@keyframes profileMovingBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.profile-header-main {
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-top: -60px; /* Overlap with cover */
}

@media(max-width: 640px) {
    .profile-header-main {
        align-items: center;
        text-align: center;
        padding: 0 20px 25px;
    }
}

.profile-avatar-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.profile-avatar-modern {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 6px solid var(--surface);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    background: var(--surface);
}

.profile-avatar-modern.premium {
    border-color: var(--glow-color, #f59e0b);
    animation: borderGlow 2s infinite alternate;
}

@keyframes borderGlow {
    from { box-shadow: 0 0 5px var(--glow-color, #f59e0b); }
    to { box-shadow: 0 0 20px var(--glow-color, #f59e0b); }
}

.profile-info-main {
    width: 100%;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

@media(max-width: 640px) {
    .profile-name-row {
        justify-content: center;
    }
}

.profile-name-row h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-username-pill {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.profile-bio-modern {
    margin: 15px 0;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 600px;
}

.profile-stats-modern {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

@media(max-width: 640px) {
    .profile-stats-modern {
        justify-content: center;
        gap: 20px;
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media(max-width: 640px) {
    .profile-actions-modern {
        justify-content: center;
    }
}

/* Profile Poem Cards */
.poem-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
}

.poem-author-avatar.premium-border {
    border-color: #f59e0b;
}

.poem-rank {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.profile-tabs-modern {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 65px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.ptab-btn-modern {
    padding: 15px 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.ptab-btn-modern:hover {
    color: var(--primary);
}

.ptab-btn-modern.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.inv-subtab-btn:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

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

/* Modern Inventory Premium Cards */
.inventory-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    overflow: hidden;
    height: 100%;
}

.inventory-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Glow Borders for Equipped States */
.inventory-card-modern.equipped-badge {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25) !important;
}

.inventory-card-modern.equipped-theme {
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.25) !important;
}

.inventory-card-modern.equipped-style {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25) !important;
}

.inventory-card-modern.equipped-glow {
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3) !important;
}

.inventory-card-modern.equipped-banner {
    border-color: #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3) !important;
}

.inventory-card-modern.equipped-effect {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3) !important;
}

.inventory-card-modern.equipped-frame {
    border-color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
}

.inventory-card-modern.equipped-game {
    border-color: #60a5fa !important;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3) !important;
}

/* Equipped Indicator Badge */
.inventory-equipped-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Empty State Card & Anim */
.inventory-empty-state-card {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.inventory-empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 5px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


.level-card-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-icon-large {
    font-size: 2rem;
}

.level-title-group {
    display: flex;
    flex-direction: column;
}

.level-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.level-number {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.level-progress-container {
    margin-top: 10px;
}

.progress-bar-bg {
    height: 10px;
    background: var(--background);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}


.ptab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.ptab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.settings-avatar-preview {
    text-align: center;
    margin-bottom: 10px;
}

.settings-avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.settings-form label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

/* Card (support etc.) */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--danger);
    transform: rotate(90deg);
}

.dark-theme .close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.poem-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.poem-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.poem-content {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1rem;
}

.poem-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.actions-left,
.actions-right {
    display: flex;
    gap: 10px;
}

.poem-actions button {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: .85rem;
    font-family: 'Inter', sans-serif;
}

.poem-actions button:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-icon-text.delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.comments-section {
    margin-top: 16px;
}

.comments-section h4 {
    margin-bottom: 12px;
    font-weight: 700;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.comment-form textarea {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    resize: none;
}

.comment-form button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    cursor: pointer;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--background);
    border-radius: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0 0 4px 0;
    word-break: break-word;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}


.badge {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .75rem;
    margin-left: 4px;
}

/* ===== ARKADAŞLAR ===== */
.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: .15s;
    border-bottom: 1px solid var(--border);
}

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

.friend-item:hover {
    background: rgba(99, 102, 241, .05);
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--border);
}

.friend-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.friend-name {
    font-size: .85rem;
    font-weight: 700;
    display: block;
}

.friend-status {
    font-size: .72rem;
    color: var(--text-muted);
    display: block;
}

.friend-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* Friend request buttons always visible */
.friend-actions .btn-icon {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: .85rem;
}

.btn-icon.accept {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.btn-icon.accept:hover {
    background: #10b981;
    color: white;
}

.btn-icon.reject {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.btn-icon.reject:hover {
    background: #ef4444;
    color: white;
}

.btn-icon.delete {
    background: none;
    color: var(--text-muted);
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* ===== BİLDİRİMLER ===== */
.dropdown-panel#notificationDropdown {
    width: 320px;
    right: -20px;
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: .15s;
}

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

.notification-item:hover {
    background: rgba(99, 102, 241, .05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, .04);
    border-left: 3px solid var(--primary);
}

.notification-item.read {
    opacity: .7;
}

.notification-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: .82rem;
    line-height: 1.4;
}

.notification-text strong {
    color: var(--primary);
}

.notification-time {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.empty-notifications {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: .85rem;
}

/* ===== TOAST ===== */
.toast-notification {
    position: fixed;
    top: 76px;
    right: 16px;
    z-index: 9998;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 340px;
    animation: slideInRight .3s ease;
    border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.toast-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: .82rem;
    font-weight: 700;
}

.toast-message {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

.friend-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* Friend request buttons always visible */
.friend-actions .btn-icon {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: .85rem;
}

.btn-icon.accept {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.btn-icon.accept:hover {
    background: #10b981;
    color: white;
}

.btn-icon.reject {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.btn-icon.reject:hover {
    background: #ef4444;
    color: white;
}

.btn-icon.delete {
    background: none;
    color: var(--text-muted);
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* ===== BİLDİRİMLER ===== */
.dropdown-panel#notificationDropdown {
    width: 320px;
    right: -20px;
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: .15s;
}

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

.notification-item:hover {
    background: rgba(99, 102, 241, .05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, .04);
    border-left: 3px solid var(--primary);
}

.notification-item.read {
    opacity: .7;
}

.notification-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: .82rem;
    line-height: 1.4;
}

.notification-text strong {
    color: var(--primary);
}

.notification-time {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.empty-notifications {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: .85rem;
}

/* ===== TOAST ===== */
.toast-notification {
    position: fixed;
    top: 76px;
    right: 16px;
    z-index: 9998;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 340px;
    animation: slideInRight .3s ease;
    border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.toast-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: .82rem;
    font-weight: 700;
}

.toast-message {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}
/* ===== ARAMA VE SESL� ARAMA ===== */
.friends-search, .rooms-search { position: relative; margin: 10px 0; flex: 1; max-width: 300px; }
.friends-search i, .rooms-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }
.friends-search input, .rooms-search input { width: 100%; padding: 10px 12px 10px 35px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-main); font-size: 0.85rem; transition: 0.2s; }
.friends-search input:focus, .rooms-search input:focus { border-color: var(--primary); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(99,102,241,0.1); outline: none; }
.rooms-search { margin: 0 20px; }
.pulse-animation { animation: callPulseAnim 1.5s infinite; }
@keyframes callPulseAnim { 0% { transform: scale(0.8); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 0.4; } 100% { transform: scale(0.8); opacity: 0.8; } }
.btn-xs { padding: 4px 8px; font-size: 0.7rem; border-radius: 6px; }
.badge { background:var(--primary); color:white; border-radius:10px; padding:1px 7px; font-size:.75rem; margin-left:4px; }

/* ===== MISRA ZİNCİRİ (CHAIN POEM) ===== */
.zincir-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.zincir-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.zincir-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.zincir-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zincir-list {
    flex: 1;
    overflow-y: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
}

.zincir-item {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
    margin-bottom: 15px;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.zincir-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    object-fit: cover;
}

.zincir-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.zincir-content {
    background: var(--bg-main);
    padding: 10px 18px;
    border-radius: 20px 20px 20px 5px;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 80%;
}

.zincir-item:nth-child(even) {
    flex-direction: row-reverse;
}

.zincir-item:nth-child(even) .zincir-content {
    border-radius: 20px 20px 5px 20px;
    background: var(--primary-glow);
    border-color: var(--primary-light);
}

.zincir-author {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

.zincir-item:nth-child(even) .zincir-author {
    right: 5px;
}

.zincir-item:nth-child(odd) .zincir-author {
    left: 5px;
}

.zincir-input-area {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    background: var(--bg-surface);
}

.zincir-input-area input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1.5px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
}

.zincir-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.zincir-input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.zincir-input-area button:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}


#poemContent.parchment { background: #fdf6e3; color: #5c4b37; border-color: #d4c5a1; }
#poemContent.dark-premium { background: linear-gradient(145deg, #1e293b, #020617); color: #f1f5f9; border-color: #334155; }
#poemContent.glass { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, 0.2); color: var(--text-main); }
#poemContent.sunset { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border-color: #f59e0b; }
#poemContent.ocean { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #075985; border-color: #0284c7; }
#poemContent { transition: all 0.3s ease; padding: 20px; font-size: 1.1rem; }


.poem-content.parchment { background: #fdf6e3; color: #5c4b37; padding: 25px; border-radius: 12px; }
.poem-content.dark-premium { background: linear-gradient(145deg, #1e293b, #020617); color: #f1f5f9; padding: 25px; border-radius: 12px; }
.poem-content.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); padding: 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.poem-content.sunset { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; padding: 25px; border-radius: 12px; }
.poem-content.ocean { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #075985; padding: 25px; border-radius: 12px; }

/* Dynamic Premium Theme Color Inheritance Override */
.profile-card-modern[style] h2,
.profile-card-modern[style] h3,
.profile-card-modern[style] p,
.profile-card-modern[style] span,
.profile-card-modern[style] div,
.profile-card-modern[style] .profile-username-pill,
.profile-card-modern[style] .stat-label,
.profile-card-modern[style] .stat-value {
    color: inherit !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.profile-card-modern[style] .profile-username-pill {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* RGB Username Animation and Style */
.rgb-username {
    background: linear-gradient(to right, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ef4444) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: rgbShift 3s linear infinite !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
    display: inline-block !important;
}

@keyframes rgbShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Advertisement Placeholder Styles */
.ad-placeholder-container {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-placeholder-container::before {
    content: 'SPONSORLU REKLAM';
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

body.premium-user .ad-placeholder-container {
    display: none !important;
}

/* === ZEN MODE AURA & SOUNDSCAPES === */
#poemModal {
    overflow: hidden;
}

/* Zen Aura Canvas Overlay */
#zenAuraCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

#poemModal.zen-mode #zenAuraCanvas {
    opacity: 0.85;
}

#poemModal.zen-mode .modal-content {
    z-index: 2; /* Keep content readable */
}

/* Zen Music Selection Dropdown Container */
.zen-music-panel {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 10009;
    min-width: 200px;
    animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-music-panel.active {
    display: flex;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.zen-music-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.zen-music-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
}

.zen-music-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Visual Glow Visualizer in Zen Mode */
.zen-visualizer-pulse {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    filter: blur(50px);
    transition: all 2s ease;
    transform: translate(-50%, -50%);
    animation: zenPulseScale 8s ease-in-out infinite alternate;
}

#poemModal.zen-mode .zen-visualizer-pulse {
    opacity: 0.25;
}

@keyframes zenPulseScale {
    0% { transform: scale(0.9) translate(-50%, -50%); opacity: 0.15; }
    100% { transform: scale(1.2) translate(-50%, -50%); opacity: 0.3; }
}

/* Story Card Button Style */
.share-card-btn {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2) !important;
    transition: all 0.2s ease !important;
}

.share-card-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.3) !important;
}

.share-card-btn i {
    margin-right: 5px;
}

/* Modal Zen specific controls visible */
#poemModal .modal-header .btn-icon {
    opacity: 1 !important;
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#poemModal .modal-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

/* Spin animation for card generating */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* ===== GALAXY MAP STYLE ===== */
.galaxy-glass-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.galaxy-glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.75);
}
.galaxy-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ===== OYUNLAR & KELİME SAVAŞI STYLE ===== */
.game-lobby-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.game-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.game-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.game-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.game-user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px #10b981;
}

.word-list-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.word-list-box::-webkit-scrollbar {
    width: 4px;
}
.word-list-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.word-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: zoomIn 0.2s ease forwards;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}
.word-badge.my-word {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.word-badge.opp-word {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.word-input-err {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease-in-out;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

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

/* ===== CANLI OYUNLAR (GAMES) TABS & LAYOUT STYLE ===== */
.games-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.games-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.game-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.game-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

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

/* Color-coded active states for a premium touch */
#btnTabWordDuel.active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15) !important;
}

#btnTabTombala.active {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #a78bfa !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15) !important;
}

#btnTabDiceDuel.active {
    background: rgba(244, 63, 94, 0.12) !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    color: #fb7185 !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15) !important;
}

#btnTabLudo.active {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15) !important;
}

.tombala-card-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.tombala-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tombala-cell.empty {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.03);
    cursor: default;
}

.tombala-cell.number {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tombala-cell.number:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.tombala-cell.marked {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    animation: markedElastic 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes markedElastic {
    0% { transform: scale(0.6) rotate(-10deg); opacity: 0.5; }
    70% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1.08) rotate(0deg); opacity: 1; }
}

.tombala-cell.highlight-match {
    animation: cellHighlightPulse 0.8s infinite alternate;
    border-color: #ec4899 !important;
    color: #fff !important;
    text-shadow: 0 0 4px #ec4899;
}

@keyframes cellHighlightPulse {
    0% {
        box-shadow: 0 0 4px rgba(236, 72, 153, 0.4), inset 0 0 2px rgba(236, 72, 153, 0.2);
        background: rgba(236, 72, 153, 0.1);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.8), inset 0 0 6px rgba(236, 72, 153, 0.4);
        background: rgba(236, 72, 153, 0.25);
        transform: scale(1.04);
    }
}

.tombala-sphere {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ec4899 0%, #8b5cf6 55%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6), 0 0 15px rgba(139, 92, 246, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    animation: drawSphereIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, sphereGlowPulse 2s infinite alternate;
}

.tombala-sphere::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: sphereShine 3s infinite linear;
}

@keyframes drawSphereIn {
    0% { transform: scale(0.1) rotate(-180deg); opacity: 0; filter: blur(5px); }
    50% { transform: scale(1.2) rotate(15deg); filter: none; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes sphereGlowPulse {
    0% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 10px rgba(139, 92, 246, 0.3); }
    100% { box-shadow: 0 0 35px rgba(236, 72, 153, 0.8), 0 0 25px rgba(139, 92, 246, 0.6); }
}

@keyframes sphereShine {
    0% { transform: translate(-30%, -30%) rotate(45deg); }
    100% { transform: translate(30%, 30%) rotate(45deg); }
}

.tombala-card-grid.card-update-anim {
    animation: cardUpdateAnim 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardUpdateAnim {
    0% { transform: translateY(8px) scale(0.99); opacity: 0.95; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.master-board-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.master-board-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* ==================== POEMS GRID ==================== */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    padding: 0.5rem 0;
}

@media (min-width: 1100px) {
    .poems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.poem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.poem-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.poem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
}

.poem-card:hover::after {
    opacity: 1;
}

.master-board-cell.drawn {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    animation: masterDrawnPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes masterDrawnPop {
    0% { transform: scale(0.5); filter: brightness(1.8); }
    100% { transform: scale(1); filter: brightness(1); }
}

.cinko-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.cinko-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: claimPulse 1s infinite alternate;
}

@keyframes claimPulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
    100% { transform: scale(1.03); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6); }
}

.tombala-log-box {
    height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
}


/* ==========================================
   AVATAR ÇERÇEVELERİ (COSMETICS) - WRAPPER-BASED PRESERVED GLOBAL ACTIONS
   ========================================== */
.avatar-container {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    padding: 0;
}
.avatar-container img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-avatar-wrapper {
    position: relative;
    margin: 0 auto 15px;
    width: 130px;
    height: 130px;
}

.user-avatar {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    width: 38px;
    height: 38px;
}

/* Base style for frame wrappers */
.avatar-frame-neon, .avatar-frame-flame, .avatar-frame-galaxy, .avatar-frame-gold {
    position: relative;
    z-index: 1; /* Ensure parent has context for z-index */
}

/* Cyber Laser Neon Frame */
.avatar-frame-neon::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00f2fe, #4facfe, #00f2fe, #9b51e0, #00f2fe);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: neonRotate 2.5s linear infinite;
    z-index: 10;
}

.avatar-frame-neon::after {
    content: '';
    position: absolute;
    top: 0px; left: 0px; right: 0px; bottom: 0px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.8), inset 0 0 8px rgba(0, 242, 254, 0.5);
    background: linear-gradient(to bottom, transparent 35%, rgba(0, 242, 254, 0.4) 47%, #00f2fe 50%, rgba(0, 242, 254, 0.4) 53%, transparent 65%);
    background-size: 100% 200%;
    animation: neonFlicker 1.5s infinite alternate, neonScan 2.5s linear infinite;
    z-index: 11;
}

@keyframes neonRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neonFlicker {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.6), inset 0 0 5px rgba(0, 242, 254, 0.4);
        opacity: 0.9;
        filter: hue-rotate(0deg);
    }
    45% {
        box-shadow: 0 0 18px rgba(155, 81, 224, 0.9), inset 0 0 9px rgba(155, 81, 224, 0.6);
        opacity: 1;
        filter: hue-rotate(15deg);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 242, 254, 0.7), inset 0 0 6px rgba(0, 242, 254, 0.5);
        opacity: 0.8;
    }
    55% {
        box-shadow: 0 0 24px rgba(0, 242, 254, 1), inset 0 0 12px rgba(0, 242, 254, 0.8);
        opacity: 1;
        filter: hue-rotate(-10deg);
    }
}

@keyframes neonScan {
    0% { background-position: 0% 150%; }
    100% { background-position: 0% -50%; }
}

/* Realistic Burning Flame Frame */
.avatar-frame-flame::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    background: conic-gradient(from 0deg, #ff3300, #ff9900, #ffea00, #ff3300);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: flameSpin 2s linear infinite, flameWobble 1.2s ease-in-out infinite alternate;
    z-index: 10;
}

.avatar-frame-flame::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    pointer-events: none;
    background: 
        radial-gradient(circle, #ff9900 1.5px, transparent 3.5px) no-repeat,
        radial-gradient(circle, #ff3300 2px, transparent 4.5px) no-repeat,
        radial-gradient(circle, #ffea00 1px, transparent 3px) no-repeat;
    background-size: 8px 8px, 9px 9px, 6px 6px;
    box-shadow: 0 0 16px rgba(255, 51, 0, 0.7), inset 0 0 8px rgba(255, 153, 0, 0.5);
    animation: flameEmbers 2s infinite linear, flameGlow 0.8s infinite alternate;
    z-index: 11;
}

@keyframes flameSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes flameWobble {
    0% {
        border-radius: 50% 48% 52% 48% / 48% 52% 48% 52%;
    }
    50% {
        border-radius: 48% 52% 49% 51% / 51% 49% 52% 48%;
    }
    100% {
        border-radius: 52% 48% 51% 53% / 49% 51% 48% 52%;
    }
}

@keyframes flameGlow {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.25);
    }
}

@keyframes flameEmbers {
    0% {
        background-position: 25% 95%, 55% 98%, 75% 90%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        background-position: 15% 10%, 45% -5%, 65% 5%;
        opacity: 0;
    }
}

/* Cosmic Galaxy Portal Frame */
.avatar-frame-galaxy::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #a855f7, #ec4899, #3b82f6, #00f2fe, #a855f7);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: galaxyRotate 4s linear infinite;
    z-index: 10;
}

.avatar-frame-galaxy::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.7), 
        inset 0 0 10px rgba(236, 72, 153, 0.5);
    background: 
        radial-gradient(circle, #fff 1px, transparent 3px) no-repeat 20% 50%, 
        radial-gradient(circle, #00f2fe 1px, transparent 3.5px) no-repeat 80% 50%;
    background-size: 6px 6px, 7px 7px;
    animation: galaxyPulse 3s ease-in-out infinite alternate, galaxyOrbit 3.5s linear infinite;
    z-index: 11;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes galaxyPulse {
    0% {
        box-shadow: 
            0 0 12px rgba(168, 85, 247, 0.5), 
            0 0 25px rgba(59, 130, 246, 0.3), 
            inset 0 0 6px rgba(236, 72, 153, 0.4);
    }
    100% {
        box-shadow: 
            0 0 22px rgba(236, 72, 153, 0.9), 
            0 0 35px rgba(0, 242, 254, 0.6), 
            inset 0 0 15px rgba(168, 85, 247, 0.7);
    }
}

@keyframes galaxyOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Luxury Royal Gold Frame */
.avatar-frame-gold::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c, #f59e0b, #bf953f);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: goldRotate 5s linear infinite;
    z-index: 10;
}

.avatar-frame-gold::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 
        0 0 14px rgba(245, 158, 11, 0.6), 
        inset 0 0 8px rgba(252, 211, 77, 0.4);
    background:
        radial-gradient(circle, #fff 1.5px, #f59e0b 3px, transparent 5px) no-repeat 25% 25%,
        radial-gradient(circle, #fff 1.5px, #f59e0b 3px, transparent 5px) no-repeat 75% 75%,
        radial-gradient(circle, #fff 1.5px, #f59e0b 3px, transparent 5px) no-repeat 75% 25%;
    background-size: 8px 8px, 8px 8px, 8px 8px;
    animation: goldShine 3s infinite alternate, goldGlitter 2s ease-in-out infinite alternate;
    z-index: 11;
}

@keyframes goldRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes goldShine {
    0% {
        filter: brightness(0.95);
    }
    100% {
        filter: brightness(1.15);
    }
}

@keyframes goldGlitter {
    0%, 100% {
        background-size: 0px 0px, 8px 8px, 0px 0px;
        opacity: 0.8;
    }
    33% {
        background-size: 8px 8px, 0px 0px, 0px 0px;
        opacity: 1;
    }
    66% {
        background-size: 0px 0px, 0px 0px, 8px 8px;
        opacity: 1;
    }
}


/* ========================================================== */
/* 🎲 HIZLI ZAR DÜELLOSU (DICE DUEL) CSS                      */
/* ========================================================== */

.dice-scene {
    width: 60px;
    height: 60px;
    perspective: 600px;
    margin: 20px auto;
}

.dice-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(15deg);
    transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dice-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.dice-dot {
    width: 12px;
    height: 12px;
    background-color: #1e293b;
    border-radius: 50%;
    margin: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* Zar Yüzeyleri Konumlandırma */
.face-1 { transform: rotateY(0deg) translateZ(30px); }
.face-2 { transform: rotateY(180deg) translateZ(30px); }
.face-3 { transform: rotateY(90deg) translateZ(30px); }
.face-4 { transform: rotateY(-90deg) translateZ(30px); }
.face-5 { transform: rotateX(90deg) translateZ(30px); }
.face-6 { transform: rotateX(-90deg) translateZ(30px); }

/* Nokta Yerleşimleri (Grid Alanları) */
.dot-center { grid-column: 2; grid-row: 2; }
.dot-top-left { grid-column: 1; grid-row: 1; }
.dot-top-right { grid-column: 3; grid-row: 1; }
.dot-bottom-left { grid-column: 1; grid-row: 3; }
.dot-bottom-right { grid-column: 3; grid-row: 3; }
.dot-middle-left { grid-column: 1; grid-row: 2; }
.dot-middle-right { grid-column: 3; grid-row: 2; }

/* Zar Atma (Rolling) Animasyonu */
@keyframes dice-roll-spin {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg); }
    50% { transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg); }
    75% { transform: rotateX(1080deg) rotateY(540deg) rotateZ(270deg); }
    100% { transform: rotateX(1440deg) rotateY(720deg) rotateZ(360deg); }
}

.dice-rolling {
    animation: dice-roll-spin 1.5s ease-out;
}

.dice-winner-glow {
    animation: pulse-win 1s infinite alternate;
}

@keyframes pulse-win {
    0% { box-shadow: 0 0 10px #10b981; border-color: #10b981; }
    100% { box-shadow: 0 0 30px #34d399; border-color: #34d399; }
}

.dice-loser-fade {
    opacity: 0.5;
    filter: grayscale(100%);
}

.duel-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}
.duel-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

/* Ludo 3D Dice Styling */
.dice-scene {
    width: 80px;
    height: 80px;
    perspective: 400px;
    margin: 15px auto;
}

.dice-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.dice-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

/* 3D Face placement */
.face-1 { transform: rotateY(0deg) translateZ(40px); }
.face-6 { transform: rotateY(180deg) translateZ(40px); }
.face-3 { transform: rotateY(90deg) translateZ(40px); }
.face-4 { transform: rotateY(-90deg) translateZ(40px); }
.face-2 { transform: rotateX(90deg) translateZ(40px); }
.face-5 { transform: rotateX(-90deg) translateZ(40px); }

/* Face Dot design */
.dice-face .dot {
    width: 12px;
    height: 12px;
    background: #0f172a;
    border-radius: 50%;
    position: absolute;
    box-shadow: inset 0 2px 2px rgba(0,0,0,0.3);
}

/* Face 1: Large Red center dot for premium look */
.face-1 .dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ef4444;
    width: 16px;
    height: 16px;
}

/* Face 2: Diagonal */
.face-2 .dot:nth-child(1) { top: 16px; left: 16px; }
.face-2 .dot:nth-child(2) { bottom: 16px; right: 16px; }

/* Face 3: Diagonal + Center */
.face-3 .dot:nth-child(1) { top: 16px; left: 16px; }
.face-3 .dot:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-3 .dot:nth-child(3) { bottom: 16px; right: 16px; }

/* Face 4: Four corners */
.face-4 .dot:nth-child(1) { top: 16px; left: 16px; }
.face-4 .dot:nth-child(2) { top: 16px; right: 16px; }
.face-4 .dot:nth-child(3) { bottom: 16px; left: 16px; }
.face-4 .dot:nth-child(4) { bottom: 16px; right: 16px; }

/* Face 5: Four corners + Center */
.face-5 .dot:nth-child(1) { top: 16px; left: 16px; }
.face-5 .dot:nth-child(2) { top: 16px; right: 16px; }
.face-5 .dot:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-5 .dot:nth-child(4) { bottom: 16px; left: 16px; }
.face-5 .dot:nth-child(5) { bottom: 16px; right: 16px; }

/* Face 6: Grid of 3x2 */
.face-6 .dot:nth-child(1) { top: 16px; left: 16px; }
.face-6 .dot:nth-child(2) { top: 50%; left: 16px; transform: translateY(-50%); }
.face-6 .dot:nth-child(3) { bottom: 16px; left: 16px; }
.face-6 .dot:nth-child(4) { top: 16px; right: 16px; }
.face-6 .dot:nth-child(5) { top: 50%; right: 16px; transform: translateY(-50%); }
.face-6 .dot:nth-child(6) { bottom: 16px; right: 16px; }

/* Active Player Glow Effect */
@keyframes ludoActivePlayerGlow {
    0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.6), inset 0 0 4px rgba(245, 158, 11, 0.2); }
    100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
}

.ludo-active-turn {
    animation: ludoActivePlayerGlow 2s infinite ease-in-out;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}


/* ==== RESPONSIVE BREAKPOINTS ==== */
@media (max-width: 900px) {
    .sidebar-drawer {
        width: 280px;
        left: -300px;
    }
    .sidebar-drawer.active {
        transform: translateX(300px);
    }
    .nav-menu {
        width: 95%;
        bottom: 10px;
    }
    .nav-item {
        padding: 8px;
        font-size: 0.85rem;
    }
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}
@media (max-width: 600px) {
    .sidebar-drawer {
        width: 260px;
        left: -280px;
    }
    .sidebar-drawer.active {
        transform: translateX(280px);
    }
    .nav-toggle {
        display: flex;
    }
    .header {
        padding: 0 12px;
        height: 60px;
    }
    .logo h1 {
        font-size: 1.6rem;
    }
    .main-content {
        padding: 12px 8px 80px;
    }
}
@media (max-width: 400px) {
    .sidebar-drawer {
        width: 220px;
        left: -240px;
    }
    .sidebar-drawer.active {
        transform: translateX(240px);
    }
    .header {
        height: 55px;
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .nav-item {
        font-size: 0.75rem;
        padding: 6px;
    }
}
/* Fluid typography */
html { font-size: 14px; }
@media (min-width: 600px) { html { font-size: 15px; } }
@media (min-width: 900px) { html { font-size: 16px; } }

/* ============================================================
   PREMIUM OYUN ARAYÜZÜ EK CSS STİLLERİ
   ============================================================ */

/* Tepki / Reaksiyon Butonları */
.ludo-reaction-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}
.ludo-reaction-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px) scale(1.1);
}
.ludo-reaction-btn:active {
    transform: scale(0.95);
}

.ludo-chat-btn {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.ludo-chat-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* Konuşma Balonları */
.ludo-speech-bubble {
    position: absolute;
    background: #1e1b4b;
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #e9d5ff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    transform: translate(-50%, -100%);
    animation: bubblePopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.ludo-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1e1b4b transparent;
    display: block;
    width: 0;
}

@keyframes bubblePopIn {
    0% { transform: translate(-50%, -80%) scale(0.7); opacity: 0; }
    100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

/* Uçan Emojiler */
.ludo-floating-emote {
    position: absolute;
    font-size: 1.8rem;
    z-index: 101;
    pointer-events: none;
    animation: emoteFloatUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes emoteFloatUp {
    0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
    20% { opacity: 1; transform: translate(-50%, -30px) scale(1.2); }
    100% { transform: translate(-50%, -100px) scale(0.9); opacity: 0; }
}

/* Premium Switch (Tombala Auto-Mark) */
.premium-switch {
    position: relative;
    width: 38px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}
.premium-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #94a3b8;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
input:checked + .premium-switch {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
input:checked + .premium-switch::after {
    left: 20px;
    background: #c084fc;
}

/* Giriş Kutusu Sarsılma Efekti (Kelime Savaşı) */
.shake-anim {
    animation: inputShake 0.4s ease;
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Doğru Kelime Kabul Efekti */
.success-glow-anim {
    animation: successGlow 0.5s ease;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}
@keyframes successGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Kalp Atışı Nabız Efekti (Zamanlayıcı) */
.heartbeat-pulse {
    animation: heartbeat 1s infinite alternate;
}
@keyframes heartbeat {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)); }
}

/* Çinko Claim Glow */
.cinko-btn.glow-pulse {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8) !important;
    animation: claimButtonPulse 1s infinite alternate !important;
}
@keyframes claimButtonPulse {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-2px) scale(1.03); }
}

.cinko-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
    outline: none;
}
.cinko-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* WePlay Games Dashboard Styles */
.games-dashboard {
    padding: 10px 0;
}
.games-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.games-dashboard-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.games-dashboard-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.game-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}
.game-card-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 16px;
    flex-shrink: 0;
    transition: all 0.4s;
    border: 1px solid var(--border);
}
.game-card-content {
    flex: 1;
    z-index: 2;
}
.game-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}
.game-card-content p {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.game-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.game-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    border: 1.5px solid transparent;
}

/* Hover effects */
.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.85);
}
.game-card:hover .game-card-icon {
    transform: scale(1.1) rotate(5deg);
}
.game-card:hover .game-card-glow {
    opacity: 1;
}

/* Ludo Card styling */
.game-card.ludo-card:hover {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.18);
}
.game-card.ludo-card .game-card-glow {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.12);
}
.ludo-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Word Card styling */
.game-card.word-card:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.18);
}
.game-card.word-card .game-card-glow {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.12);
}
.word-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Tombala Card styling */
.game-card.tombala-card:hover {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.18);
}
.game-card.tombala-card .game-card-glow {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.12);
}
.tombala-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Dice Card styling */
.game-card.dice-card:hover {
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.18);
}
.game-card.dice-card .game-card-glow {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: inset 0 0 15px rgba(244, 63, 94, 0.12);
}
.dice-badge {
    background: rgba(244, 63, 94, 0.15);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Ludo Active Player Cards */
.ludo-player-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ludo-player-card.active {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    animation: cardGlowPulse 2s infinite ease-in-out;
}
@keyframes cardGlowPulse {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.025); box-shadow: 0 0 20px rgba(245,158,11,0.25); }
}

/* ══════════════════════════════════════════
   JACKAROO KING — PREMIUM CARD SYSTEM
══════════════════════════════════════════ */
.ludo-cards-panel {
    background: rgba(10, 16, 28, 0.75) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1.5px solid rgba(245, 158, 11, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245,158,11,0.08) !important;
    border-radius: 24px !important;
    padding: 22px 18px 16px !important;
    max-width: 490px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ludo-discard-btn {
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(185,28,28,0.22));
    border: 1.5px solid rgba(239,68,68,0.4);
    color: #fca5a5;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(239,68,68,0.18);
    outline: none;
    letter-spacing: 0.5px;
}
.ludo-discard-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border-color: #f87171;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 28px rgba(239,68,68,0.5);
}
.ludo-discard-btn:active:not(:disabled) { transform: translateY(0); }
.ludo-discard-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── THE CARD ── */
.ludo-hand-card {
    position: relative;
    width: 82px;
    height: 122px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 7px;
    font-weight: 900;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.4),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
    user-select: none;
    border: 1.8px solid rgba(255,255,255,0.10);
    overflow: hidden;
    opacity: 0.72;
    /* Realistic card edge */
    box-shadow:
        0 2px 0 rgba(0,0,0,0.35),
        0 8px 20px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Card paper texture lines */
.ludo-hand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.015) 3px,
        rgba(255,255,255,0.015) 4px
    );
    pointer-events: none;
    border-radius: 12px;
}

/* Shine sweep */
.ludo-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        rgba(255,255,255,0) 25%,
        rgba(255,255,255,0.08) 38%,
        rgba(255,255,255,0.28) 50%,
        rgba(255,255,255,0.08) 62%,
        rgba(255,255,255,0) 75%
    );
    transform: translateX(-110%);
    transition: none;
    pointer-events: none;
    border-radius: 12px;
}

/* PLAYABLE STATE */
.ludo-hand-card.playable {
    opacity: 1;
    cursor: pointer;
}
.ludo-hand-card.playable:hover {
    transform: translateY(-18px) rotate(-1.5deg) scale(1.08);
    box-shadow:
        0 2px 0 rgba(0,0,0,0.3),
        0 22px 40px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.55);
    opacity: 1;
    z-index: 10;
}
.ludo-hand-card.playable:hover .ludo-card-shine {
    transform: translateX(110%);
    transition: transform 0.65s ease-in-out;
}

/* SELECTED STATE */
.ludo-hand-card.playable.selected {
    transform: translateY(-30px) scale(1.14) !important;
    border-color: #fbbf24 !important;
    box-shadow:
        0 0 0 3px rgba(251,191,36,0.4),
        0 0 30px rgba(251,191,36,0.55),
        0 30px 50px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    animation: cardSelectedFloat 1.8s infinite ease-in-out;
    z-index: 20;
    opacity: 1;
}
@keyframes cardSelectedFloat {
    0%   { transform: translateY(-30px) scale(1.14) rotate(-0.5deg); }
    50%  { transform: translateY(-35px) scale(1.14) rotate(0.5deg); }
    100% { transform: translateY(-30px) scale(1.14) rotate(-0.5deg); }
}

/* ── SUIT COLORS ── */
/* Red suits: warm dark card */
.ludo-hand-card.card-suit-h,
.ludo-hand-card.card-suit-d {
    background: linear-gradient(160deg, #1f1218 0%, #140b10 60%, #0d0609 100%);
    --glow-color: rgba(239,68,68,0.55);
    color: #ef4444;
    border-color: rgba(239,68,68,0.22);
}
/* Black suits: cool dark card */
.ludo-hand-card.card-suit-s,
.ludo-hand-card.card-suit-c {
    background: linear-gradient(160deg, #111a28 0%, #0a1018 60%, #060c14 100%);
    --glow-color: rgba(148,163,184,0.45);
    color: #cbd5e1;
    border-color: rgba(148,163,184,0.18);
}

/* Glowing suit borders on hover/select */
.ludo-hand-card.card-suit-h.playable:hover,
.ludo-hand-card.card-suit-d.playable:hover { border-color: rgba(239,68,68,0.65); box-shadow: 0 22px 40px rgba(0,0,0,0.65), 0 0 20px rgba(239,68,68,0.2); }
.ludo-hand-card.card-suit-s.playable:hover,
.ludo-hand-card.card-suit-c.playable:hover { border-color: rgba(148,163,184,0.65); box-shadow: 0 22px 40px rgba(0,0,0,0.65), 0 0 20px rgba(148,163,184,0.15); }

/* ── ROYAL / SPECIAL CARDS (A, J, Q, K) ── */
.ludo-hand-card.card-val-1,
.ludo-hand-card.card-val-11,
.ludo-hand-card.card-val-12,
.ludo-hand-card.card-val-13 {
    border: 1.8px solid rgba(251,191,36,0.45) !important;
    animation: royalPulse 3s infinite ease-in-out;
}
@keyframes royalPulse {
    0%,100% { box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 8px rgba(251,191,36,0.0); }
    50%      { box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 20px rgba(251,191,36,0.3); }
}

/* ── CARD BACK INDICATOR DOTS ── */
.ludo-card-indicator {
    width: 11px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1a1535, #2a0d3a);
    border: 1.5px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(251,191,36,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s;
}

/* ── PREMIUM MUSIC PLAYER ── */
.music-player-card {
    background: rgba(30, 27, 43, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.music-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
    opacity: 0.8;
}

.music-player-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 220px;
}

.music-idle-disc {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18181b, #27272a);
    border: 4px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 10px 20px rgba(0,0,0,0.4);
    color: rgba(255, 255, 255, 0.4);
    animation: idlePulse 2.5s infinite ease-in-out;
}

@keyframes idlePulse {
    0%, 100% { transform: scale(1); box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 10px 20px rgba(0,0,0,0.4); }
    50% { transform: scale(1.05); box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 15px 25px rgba(251, 191, 36, 0.15); }
}

.music-player-active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ── ZEN STYLE ACTIVE VISUALIZER ── */
.music-visualizer-screen {
    position: relative;
    background: #000000;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .music-visualizer-screen {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        min-height: 340px;
        padding: 20px;
    }
}

/* Lyrics Pane */
.music-visualizer-lyrics-pane {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .music-visualizer-lyrics-pane {
        padding-right: 0;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

.music-active-lyric {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.75), 0 0 20px rgba(255, 255, 255, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease;
    word-break: break-word;
    font-family: 'Outfit', 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .music-active-lyric {
        font-size: 1.7rem;
    }
}

/* Art Pane */
.music-visualizer-art-pane {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 180px;
}

/* Glass Kaset/CD case */
.music-kaset-case {
    position: relative;
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.7), 
                inset 0 1px 1px rgba(255,255,255,0.15),
                inset 0 -1px 2px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: kasetFloat 6s ease-in-out infinite;
}

.music-kaset-disc-wrap {
    position: relative;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
    background: #0d0d0d;
    border: 1.5px solid rgba(255,255,255,0.05);
}

.music-kaset-disc {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

/* Center hole of the CD/Disc */
.music-kaset-disc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000000;
    border: 5px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 0 12px rgba(255,255,255,0.05);
    z-index: 3;
}

/* Rotating effect (using spinning class) */
.music-kaset-disc-wrap.spinning {
    animation: discSpin 22s linear infinite;
}
.music-kaset-disc-wrap.spinning.paused {
    animation-play-state: paused;
}

/* Neon Glow Aura Behind CD case */
.music-art-aura {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.55) 0%, rgba(139, 92, 246, 0.35) 45%, rgba(0,0,0,0) 70%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
    animation: auraPulse 4s ease-in-out infinite alternate;
}

/* Watermark */
.music-visualizer-watermark {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
    letter-spacing: 1.2px;
}

/* Keyframes */
@keyframes kasetFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1.5deg); }
}

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

@keyframes auraPulse {
    0% { transform: scale(0.92); opacity: 0.55; }
    100% { transform: scale(1.15); opacity: 0.95; }
}

/* Control Panel Below visualizer screen */
.music-control-panel-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.music-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 576px) {
    .music-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.music-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .music-bottom-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

.music-song-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.music-song-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.music-song-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* EQ Bars Animation */
.music-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    margin-bottom: 2px;
}

.music-eq-bar {
    width: 3px;
    height: 3px;
    background: var(--primary, #fbbf24);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.music-eq.playing .music-eq-bar:nth-child(1) { animation: eqBounce 1.2s ease-in-out infinite alternate; }
.music-eq.playing .music-eq-bar:nth-child(2) { animation: eqBounce 0.8s ease-in-out infinite alternate 0.15s; }
.music-eq.playing .music-eq-bar:nth-child(3) { animation: eqBounce 1.4s ease-in-out infinite alternate 0.3s; }
.music-eq.playing .music-eq-bar:nth-child(4) { animation: eqBounce 1.0s ease-in-out infinite alternate 0.05s; }
.music-eq.playing .music-eq-bar:nth-child(5) { animation: eqBounce 1.3s ease-in-out infinite alternate 0.2s; }

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 18px; }
}

/* Progress bar */
.music-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    user-select: none;
}

.music-time {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
    min-width: 35px;
}

.music-progress-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.music-progress-bar-bg:hover {
    background: rgba(255, 255, 255, 0.15);
}

.music-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #fbbf24), #f59e0b);
    border-radius: 3px;
    width: 0%;
}

.music-progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #fbbf24);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.music-progress-bar-bg:hover .music-progress-dot {
    opacity: 1;
}

/* Controls styling */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 8px 0;
}

.music-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.music-ctrl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

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

.music-ctrl-btn.active {
    color: var(--primary, #fbbf24) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.music-ctrl-play {
    font-size: 1.3rem;
    color: #1e1b2b !important;
    background: #fff;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.music-ctrl-play:hover {
    color: #000 !important;
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

/* Volume Slider styling */
.music-volume-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.music-volume-wrap:hover {
    opacity: 1;
}

.music-volume-slider {
    width: 90px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.1s;
}

.music-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.music-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.music-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Listeners counter styling */
.music-listeners {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Autoplay mobile unlock overlay */
.music-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.music-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    animation: bounceOverlay 2s infinite ease-in-out;
}

@keyframes bounceOverlay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ── EFSANELERLE SOHBET (AI CHAT) SAYFASI ── */
.ai-chat-container {
    display: flex;
    height: calc(100vh - 120px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    margin: 10px;
    box-shadow: var(--shadow-lg);
}

.ai-poets-sidebar {
    width: 320px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.ai-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.ai-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.ai-sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.ai-poets-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-poet-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ai-poet-card:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--border);
}

.ai-poet-card.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.ai-poet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.ai-poet-card.active .ai-poet-avatar {
    border-color: #a855f7;
}

.ai-poet-info {
    flex: 1;
    min-width: 0;
}

.ai-poet-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-poet-years {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.ai-poet-status {
    font-size: 0.75rem;
    color: #a855f7;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    opacity: 0.95;
    position: relative;
    min-height: 0;
}

.ai-chat-header {
    padding: 16px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-header-poet {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a855f7;
}

.ai-header-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.ai-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #10b981;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.ai-status-dot.typing {
    animation: blinkStatus 1s infinite alternate;
}

@keyframes blinkStatus {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.ai-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 75%;
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-msg.poet {
    align-self: flex-start;
}

.ai-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
}

.ai-msg.poet .ai-msg-bubble {
    background: var(--bg-surface);
    color: var(--text-main);
    border-top-left-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.ai-msg.user .ai-msg-bubble {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.ai-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ai-msg.poet .ai-msg-avatar {
    border: 1.5px solid #a855f7;
}

.ai-msg.user .ai-msg-avatar {
    border: 1.5px solid #6366f1;
}

.ai-msg-text {
    word-break: break-word;
    white-space: pre-wrap !important;
}

.ai-msg-text.is-poem {
    font-family: 'Outfit', 'Inter', 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.98rem;
    text-align: left;
    line-height: 1.8;
    color: #f8fafc;
    border-left: 3px solid #fbbf24;
    padding: 12px 18px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 6px;
    margin: 8px 0;
    display: block;
    white-space: pre-wrap !important;
    letter-spacing: 0.3px;
}

.ai-msg-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
    align-self: flex-end;
}

.ai-msg.user .ai-msg-time {
    color: #a5b4fc;
}

.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 14px;
    margin-left: 48px;
    align-self: flex-start;
    animation: fadeIn 0.3s ease;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.ai-quick-replies {
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-quick-replies::-webkit-scrollbar {
    height: 4px;
}

.ai-reply-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #e2e8f0;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ai-reply-chip:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    color: #c084fc;
}

.ai-chat-input-area {
    padding: 16px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.ai-chat-input-wrapper {
    flex: 1;
    position: relative;
}

.ai-chat-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s ease;
}

.ai-chat-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}

.ai-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.ai-send-btn:active {
    transform: translateY(0);
}

/* Responsive adjustment for Mobile view */
@media (max-width: 768px) {
    .ai-chat-container {
        flex-direction: column;
        height: calc(100% - 10px) !important;
    }
    .ai-sidebar-header {
        display: none !important;
    }
    .ai-poets-sidebar {
        width: 100%;
        height: 75px !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .ai-poets-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 10px;
    }
    .ai-poet-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-width: 130px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }
    .ai-poet-avatar {
        width: 36px;
        height: 36px;
    }
    .ai-poet-name {
        font-size: 0.85rem;
    }
    .ai-poet-status {
        font-size: 0.7rem;
    }
    .ai-poet-years, .ai-sidebar-subtitle {
        display: none;
    }

    /* Extra mobile layout optimization for AI Chat */
    .ai-chat-header {
        padding: 10px 14px !important;
        gap: 8px !important;
    }
    .ai-header-poet {
        gap: 8px !important;
    }
    .ai-header-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    .ai-header-info h3 {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }
    .ai-header-status {
        font-size: 0.72rem !important;
    }
    .ai-btn-text {
        display: none !important;
    }
    .ai-chat-header button {
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }
    .ai-chat-input-area {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .ai-chat-input {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }
    .ai-send-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
    }
    .ai-quick-replies {
        padding: 8px 12px !important;
    }
    .ai-reply-chip {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
    .ai-messages-container {
        padding: 12px !important;
        gap: 12px !important;
    }
    .ai-msg {
        max-width: 85% !important;
    }
    .ai-msg-bubble {
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }
}

/* === FULLSCREEN IMMERSIVE PAGES SYSTEM === */
body.page-active-galaxy,
body.page-active-aiChat {
    overflow: hidden !important;
    height: 100vh !important;
}

body.page-active-galaxy .main-content,
body.page-active-aiChat .main-content {
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    overflow: hidden !important;
}

@media (max-width: 600px) {
    body.page-active-galaxy .main-content,
    body.page-active-aiChat .main-content {
        height: calc(100vh - 60px) !important;
    }
}

@media (max-width: 400px) {
    body.page-active-galaxy .main-content,
    body.page-active-aiChat .main-content {
        height: calc(100vh - 55px) !important;
    }
}

/* Galaxy Page Overrides */
body.page-active-galaxy #galaxyPage {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100vh - 70px) !important;
    width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 100 !important;
}

/* AI Chat Page Overrides */
body.page-active-aiChat #aiChatPage {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

body.page-active-aiChat .ai-chat-container {
    height: calc(100% - 20px) !important;
    margin: 10px !important;
    border-radius: 20px !important;
}

@media (max-width: 768px) {
    body.page-active-aiChat .ai-chat-container {
        height: calc(100% - 90px) !important;
        margin: 5px 5px 85px 5px !important;
        border-radius: 12px !important;
    }
}

/* ============================================================================
   KİŞİSEL KARALAMA DEFTERİ & DAKTİLO MODU STİLLERİ
   ============================================================================ */

.scrapbook-layout {
    display: flex;
    gap: 24px;
    height: calc(100vh - 200px);
    overflow: hidden;
    margin-top: 15px;
}

.scrapbook-sidebar {
    width: 320px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scrapbook-sidebar-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.draft-search-box {
    padding: 12px 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.draft-search-box i {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.draft-search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.draft-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}

.drafts-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.draft-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.draft-card:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.draft-card.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.draft-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-card-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.draft-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draft-card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.draft-card-mood-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.scrapbook-main {
    flex: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scrapbook-main-empty {
    flex: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.empty-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 400px;
}

.editor-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.editor-title-row {
    flex: 1;
    display: flex;
    align-items: center;
}

.editor-title-row input {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
}

.editor-title-row input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.btn-daktilo {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: all 0.2s;
}

.btn-daktilo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.editor-toolbar {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.dark-theme .editor-toolbar {
    background: rgba(0, 0, 0, 0.15);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-group label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-group select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.dalign-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dalign-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}

.dark-theme .dalign-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.dalign-btn.active {
    color: var(--primary);
    background: rgba(251, 191, 36, 0.1);
}

.editor-content-wrapper {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.editor-content-wrapper textarea {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    resize: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Editör Temaları */
.editor-content-wrapper.theme-default {
    background: transparent;
}
.editor-content-wrapper.theme-glass {
    background: rgba(255, 255, 255, 0.01);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}
.editor-content-wrapper.theme-parchment {
    background: #fcf6e8;
    color: #2b221a !important;
    border-radius: 12px;
    margin: 10px;
    box-shadow: inset 0 0 30px rgba(184, 150, 110, 0.2);
}
.editor-content-wrapper.theme-parchment textarea {
    color: #2b221a !important;
}
.editor-content-wrapper.theme-vintage-dark {
    background: #15100c;
    color: #dcd3c8 !important;
    border-radius: 12px;
    margin: 10px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.editor-content-wrapper.theme-vintage-dark textarea {
    color: #dcd3c8 !important;
}
.editor-content-wrapper.theme-night-sky {
    background: radial-gradient(circle at bottom right, #090d1f, #02040a);
    color: #e0e7ff !important;
    border-radius: 12px;
    margin: 10px;
    box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.05);
}
.editor-content-wrapper.theme-night-sky textarea {
    color: #e0e7ff !important;
}

.editor-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.dark-theme .editor-footer {
    background: rgba(0, 0, 0, 0.1);
}

#draftSaveStatus {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-danger-outline {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}

/* === DAKTİLO MODU FULLSCREEN OVERLAY === */
.typewriter-fullscreen {
    position: fixed;
    inset: 0;
    background: #090605;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

/* Sıcak Mum Işığı Glow Efekti */
.typewriter-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
                radial-gradient(circle at center, rgba(217, 119, 6, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Titreyen Mum */
.typewriter-candle {
    position: absolute;
    bottom: 50px;
    left: 40px;
    width: 25px;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

.candle-wax {
    position: absolute;
    bottom: 0;
    width: 22px;
    height: 90px;
    background: linear-gradient(to right, #e2d2bb, #c2ae92);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.flame {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 8px;
    height: 22px;
    background: #f59e0b;
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 20px #d97706, 0 0 40px #d97706, inset 0 0 4px #fff;
    transform-origin: bottom center;
    animation: flicker 1.8s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-1deg); }
    20% { transform: scale(1.05) rotate(1deg); }
    40% { transform: scale(0.95) rotate(-2deg); }
    60% { transform: scale(1.08) rotate(2deg); }
    80% { transform: scale(0.98) rotate(-1deg); }
    100% { transform: scale(1.02) rotate(0deg); }
}

.typewriter-top-bar {
    height: 60px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.typewriter-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8c7f75;
    font-size: 0.9rem;
}

.typewriter-info span {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.typewriter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tw-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8c7f75;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all 0.2s;
    outline: none;
}

.tw-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-exit-tw {
    background: linear-gradient(135deg, #7c2d12, #451a03);
    color: #ffedd5;
    border: none;
    box-shadow: 0 4px 10px rgba(124, 45, 18, 0.2);
}

.btn-exit-tw:hover {
    background: linear-gradient(135deg, #9a3412, #7c2d12);
    box-shadow: 0 6px 15px rgba(124, 45, 18, 0.4);
}

.typewriter-paper-carriage {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 5;
    background: radial-gradient(circle, #1a120f 0%, #090605 100%);
}

.typewriter-paper {
    width: 100%;
    max-width: 720px;
    min-height: 800px;
    background: #fdfaf2; /* Eskimiş Sarı Kağıt Rengi */
    color: #2b221a;
    padding: 50px 60px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 2px solid rgba(0,0,0,0.05);
    border-right: 2px solid rgba(0,0,0,0.05);
}

/* Kağıt Dokusu Gölgelendirmesi */
.typewriter-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.01) 0%, transparent 10%),
                linear-gradient(to right, rgba(0,0,0,0.02) 0%, transparent 5%, transparent 95%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

.typewriter-paper-header {
    margin-bottom: 30px;
}

.typewriter-paper-header input {
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a120f;
    text-align: center;
    outline: none;
    letter-spacing: 0.5px;
}

.paper-line-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin-top: 15px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.typewriter-paper textarea {
    flex: 1;
    width: 100%;
    background: none;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2b221a;
    letter-spacing: 0.2px;
}

.typewriter-status-bar {
    height: 40px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.02);
    color: #64574e;
    font-size: 0.75rem;
    z-index: 10;
}

.theme-toggle-header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.theme-toggle-header-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08) rotate(15deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .theme-toggle-header-btn {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-theme .theme-toggle-header-btn:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-back-to-list {
    display: none; /* Hide on desktop */
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-back-to-list:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === RESPONSIVE DÜZENLEMELER (MOBILE) === */
@media (max-width: 900px) {
    .scrapbook-layout {
        flex-direction: column;
        height: calc(100vh - 180px) !important;
        overflow: hidden;
        gap: 0 !important;
    }
    
    /* Default state: Hide editor on mobile, show list */
    .scrapbook-layout:not(.editor-open) .scrapbook-sidebar {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }
    .scrapbook-layout:not(.editor-open) .scrapbook-main {
        display: none !important;
    }
    .scrapbook-layout:not(.editor-open) .scrapbook-main-empty {
        display: none !important;
    }
    
    /* Editor Open State: Hide list on mobile, show editor */
    .scrapbook-layout.editor-open .scrapbook-sidebar {
        display: none !important;
    }
    .scrapbook-layout.editor-open .scrapbook-main {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }
    .scrapbook-layout.editor-open .scrapbook-main-empty {
        display: none !important;
    }

    .btn-back-to-list {
        display: inline-flex; /* Show on mobile */
    }

    .typewriter-paper {
        padding: 30px;
    }
    .typewriter-candle {
        display: none; /* Mobilde mum ışığını gizle */
    }
}

/* ============================================================================
   ŞİİR BULVARI (SANAL DUVAR) GÖRSEL TASARIMI
   ============================================================================ */

.bulvar-viewport-wrapper {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    border: 4px solid #160e0b;
    box-shadow: inset 0 0 35px rgba(0,0,0,0.85), 0 12px 28px rgba(0,0,0,0.45);
    margin-bottom: 20px;
}

.bulvar-instructions-overlay {
    position: absolute;
    left: 15px;
    top: 15px;
    transform: none;
    background: rgba(10, 6, 12, 0.85);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    pointer-events: none;
    z-index: 100;
    font-weight: 500;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bulvar-wall {
    width: 5000px;
    height: 3000px;
    position: relative;
    cursor: crosshair;
    background-color: #8b4513; /* Warm brick fallback color */
    background-image: 
        radial-gradient(circle at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.3) 95%),
        url('assets/brick_wall.png');
    background-repeat: repeat;
    background-size: 800px auto;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.7);
    border-bottom: 15px solid #3e1b0c;
}

.graffiti-element {
    position: absolute;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    display: inline-block;
    white-space: nowrap;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.85));
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 5;
}

.graffiti-element:hover {
    transform: scale(1.08) rotate(1deg);
    z-index: 1000 !important;
}

.graffiti-text {
    pointer-events: none;
}

/* Şablonların altına boya püskürtme akıntı efekti */
.graffiti-element::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20%;
    width: 2px;
    height: 12px;
    background: currentColor;
    opacity: 0.4;
    border-radius: 50%;
    pointer-events: none;
}

.graffiti-element:nth-child(3n)::after {
    left: 70%;
    height: 16px;
    width: 1.5px;
}

.graffiti-element:nth-child(5n)::after {
    display: none; /* Bazılarında akma olmasın */
}

/* Grafiti Tooltip Bilgi Kutusu */
.graffiti-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(15, 12, 28, 0.98);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 12px;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.graffiti-element:hover .graffiti-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Grafiti Yazı Tipleri */
.font-stencil {
    font-family: 'Oswald', 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.35rem;
    letter-spacing: 2px;
}

.font-marker {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
}

.font-tag {
    font-family: 'Dancing Script', cursive;
    font-weight: 900;
    font-size: 1.55rem;
}

.font-gothic {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Neon Parlama Efektleri (text-shadow) */
.neon-purple {
    text-shadow: 0 0 5px #d946ef, 0 0 10px #d946ef, 0 0 20px #d946ef, 0 0 35px #d946ef;
    color: #fdf4ff !important;
}

.neon-green {
    text-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 20px #22c55e, 0 0 35px #22c55e;
    color: #f0fdf4 !important;
}

.neon-cyan {
    text-shadow: 0 0 5px #06b6d4, 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 35px #06b6d4;
    color: #ecfeff !important;
}

.neon-crimson {
    text-shadow: 0 0 5px #ef4444, 0 0 10px #ef4444, 0 0 20px #ef4444, 0 0 35px #ef4444;
    color: #fef2f2 !important;
}

.neon-gold {
    text-shadow: 0 0 5px #eab308, 0 0 10px #eab308, 0 0 20px #eab308, 0 0 35px #eab308;
    color: #fefdf0 !important;
}

/* Spreyleme Toz Animasyonu */
.spray-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: spray-drift 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes spray-drift {
    0% {
        transform: translate(0, 0) scale(1.6);
        opacity: 0.95;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.1);
        opacity: 0;
    }
}

/* Sprey Editöründeki Renk Noktaları */
.color-dot {
    transition: all 0.2s ease-in-out;
}

.color-dot:hover {
    transform: scale(1.2) translateY(-2px);
}

.color-dot.active {
    transform: scale(1.1);
    box-shadow: 0 0 12px currentColor;
}

/* === BİLARDO OYUNU STİLLERİ (8-BALL POOL) === */
.pool-card:hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

.pool-lobby-grid div {
    transition: all 0.3s ease;
}

.pool-lobby-grid div:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pool-control-panel {
    box-shadow: var(--shadow-md);
}

.pool-control-panel input[type="range"] {
    height: 6px;
    border-radius: 5px;
    background: var(--bg-main);
    outline: none;
    -webkit-appearance: none;
}

.pool-control-panel input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    transition: transform 0.1s;
}

.pool-control-panel input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Falso Seçici Hedef Çemberi */
#poolSpinSelector::before {
    content: '';
    position: absolute;
    left: 5%;
    top: 50%;
    width: 90%;
    height: 1px;
    background: rgba(51, 65, 85, 0.15);
    pointer-events: none;
}

#poolSpinSelector::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 5%;
    width: 1px;
    height: 90%;
    background: rgba(51, 65, 85, 0.15);
    pointer-events: none;
}

.dark-theme #poolSpinSelector {
    background: #0f172a;
    border-color: var(--border);
}

.dark-theme #poolSpinSelector::before,
.dark-theme #poolSpinSelector::after {
    background: rgba(255, 255, 255, 0.1);
}

#poolCanvas {
    touch-action: none; /* Disable panning/zooming while playing */
}

/* === BİLARDO ESPORTS HUD STİLLERİ === */
.pool-hud-scoreboard {
    user-select: none;
}

.pool-hud-avatar-container {
    width: 48px;
    height: 48px;
}

.pool-hud-turn-glow {
    transition: opacity 0.3s ease;
}

.pool-hud-player.active-turn .pool-hud-turn-glow {
    opacity: 1;
    animation: poolGlowPulse 1.2s infinite alternate;
}

/* Custom glow color for players */
.pool-hud-player-left.active-turn .pool-hud-turn-glow {
    box-shadow: 0 0 15px #10b981;
    color: #10b981;
}

.pool-hud-player-right.active-turn .pool-hud-turn-glow {
    box-shadow: 0 0 15px #8b5cf6;
    color: #8b5cf6;
}

@keyframes poolGlowPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px currentColor;
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 0 20px currentColor;
    }
}

/* Miniature Balls inside HUD Trays */
.pool-mini-ball {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -2px -2px 3px rgba(0,0,0,0.5), 1px 1px 2px rgba(0,0,0,0.4);
    display: inline-block;
}

.pool-mini-ball::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

.pool-mini-ball.stripe {
    background: #ffffff !important;
    overflow: hidden;
    border: 0.5px solid rgba(0,0,0,0.1);
}

.pool-mini-ball.stripe-band {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 8px;
}

/* Chalk Indicator Overlay on UI */
#poolChalkBtn.chalked {
    animation: poolChalkPulse 0.8s infinite alternate;
    box-shadow: 0 0 12px #3b82f6;
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

@keyframes poolChalkPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* ============================================================
   BİLARDO ISTAKA & MASA MARKETE ÖZEL PREMIUM GLASS STYLES
   ============================================================ */
.pool-shop-modal {
    animation: poolShopFadeIn 0.3s ease-out forwards;
}

@keyframes poolShopFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.pool-shop-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 380px;
    box-sizing: border-box;
}

.pool-shop-card > * {
    flex-shrink: 0;
}

.pool-shop-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.08);
}

.pool-shop-card.equipped {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}

.pool-shop-card.purchased {
    border-color: rgba(255, 255, 255, 0.25);
}

.pool-shop-preview-container {
    height: 90px;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.pool-shop-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pool-shop-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 12px;
    flex-grow: 1;
}

.pool-shop-item-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.pool-shop-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.pool-shop-stat-label {
    color: var(--text-muted);
}

.pool-shop-stat-value {
    color: #fbbf24;
    font-weight: bold;
}

.pool-shop-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pool-shop-btn.buy {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
}

.pool-shop-btn.buy:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.pool-shop-btn.equip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pool-shop-btn.equip:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pool-shop-btn.active {
    background: #10b981;
    color: #fff;
    cursor: default;
}

.pool-shop-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 6px;
}

/* ============================================================
   TEMA & AFİŞ MARKETE TABS VE ÖNİZLEME STİLLERİ
   ============================================================ */
.market-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none; /* Hide standard scrollbars */
}
.market-tabs::-webkit-scrollbar {
    display: none; /* Hide webkit scrollbars */
}
.market-tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.market-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}
.market-tab-btn.active {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* --- MUSIC ROOM UPDATES --- */

/* YouTube Arama Sonuçları */
.music-search-results {
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.music-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.music-search-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.music-search-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Şarkı Sözleri (Lyrics) */
.lyrics-container {
    mask-image: linear-gradient(to bottom, transparent, white 20%, white 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, white 20%, white 80%, transparent);
}

.lyric-line {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.35;
    filter: blur(0.5px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0.95);
    line-height: 1.6;
    cursor: default;
    user-select: none;
}

.lyric-line.active {
    opacity: 1;
    filter: blur(0);
    color: #f43f5e;
    font-size: 1.35rem;
    font-weight: 800;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.7);
    margin: 8px 0;
}

/* Right Panel Tabs */
.music-tab-btn:hover {
    color: white !important;
}


