* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #030d07;
    color: #ffffff;
    overflow-y: auto !important;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    padding: 28px 20px 50px 20px;
}

.bg-glow {
    position: fixed;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 { background: #004d25; top: -10%; left: -5%; }
.glow-2 { background: #00aa44; bottom: -10%; right: -5%; opacity: 0.2; }

.main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid rgba(0, 255, 102, 0.35);
    padding-bottom: 7px;
    position: relative;
}

.logo {
    font-family: 'Goldman', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #00ff66;
    text-shadow:
        0 0 12px rgba(0, 255, 102, 0.8),
        0 0 24px rgba(0, 255, 102, 0.5);
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    user-select: none;
}

.logo span {
    position: relative;
    text-transform: none;
    font-family: 'Goldman', sans-serif;
    color: #facc15;
    font-size: 2.8rem;
    font-weight: 700;
    background: transparent;
    border: none;
    padding: 0 4px;
    text-shadow:
        0 0 12px rgba(250, 204, 21, 0.8),
        0 0 24px rgba(250, 204, 21, 0.5);
}

.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 8px;
}

.btn-login {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    border: none;
    color: #000000;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
    transition: all 0.25s ease;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
}

/* ÜZÜM SALKIMI DİL MENÜSÜ & SCROLL KABİLİYETİ */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.lang-main-btn {
    background: rgba(0, 255, 102, 0.12);
    color: #ffff00;
    border: 1px solid rgba(0, 255, 102, 0.4);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
    user-select: none;
}

.lang-icon {
    width: 16px;
    height: 16px;
    stroke: #00ff66;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.lang-main-btn:hover .lang-icon {
    stroke: #ffff00;
    filter: drop-shadow(0 0 6px rgba(255, 255, 0, 0.6));
}

.lang-main-btn:hover {
    background: rgba(0, 255, 102, 0.25);
    border-color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: -6px;
    padding-top: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-left: 12px;
    padding-right: 10px;
    padding-bottom: 10px;
    border-left: 2px solid #00ff66;
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    border-radius: 0 12px 12px 0;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.8);
    z-index: 10000;
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper.active .lang-dropdown-menu {
    display: flex;
}

.lang-dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: dominoDrop 0.32s ease forwards;
}

.lang-dropdown-menu .dropdown-item:nth-child(1)  { animation-delay: 0.02s; }
.lang-dropdown-menu .dropdown-item:nth-child(2)  { animation-delay: 0.05s; }
.lang-dropdown-menu .dropdown-item:nth-child(3)  { animation-delay: 0.08s; }
.lang-dropdown-menu .dropdown-item:nth-child(4)  { animation-delay: 0.11s; }
.lang-dropdown-menu .dropdown-item:nth-child(5)  { animation-delay: 0.14s; }
.lang-dropdown-menu .dropdown-item:nth-child(6)  { animation-delay: 0.17s; }
.lang-dropdown-menu .dropdown-item:nth-child(7)  { animation-delay: 0.20s; }
.lang-dropdown-menu .dropdown-item:nth-child(8)  { animation-delay: 0.23s; }
.lang-dropdown-menu .dropdown-item:nth-child(9)  { animation-delay: 0.26s; }
.lang-dropdown-menu .dropdown-item:nth-child(10) { animation-delay: 0.29s; }
.lang-dropdown-menu .dropdown-item:nth-child(11) { animation-delay: 0.32s; }
.lang-dropdown-menu .dropdown-item:nth-child(12) { animation-delay: 0.35s; }
.lang-dropdown-menu .dropdown-item:nth-child(13) { animation-delay: 0.38s; }
.lang-dropdown-menu .dropdown-item:nth-child(14) { animation-delay: 0.41s; }
.lang-dropdown-menu .dropdown-item:nth-child(15) { animation-delay: 0.44s; }
.lang-dropdown-menu .dropdown-item:nth-child(16) { animation-delay: 0.47s; }
.lang-dropdown-menu .dropdown-item:nth-child(17) { animation-delay: 0.50s; }

@keyframes dominoDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-wrapper:hover .arrow-icon,
.lang-dropdown-wrapper.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #00ff66 #021108;
}

.lang-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown-menu::-webkit-scrollbar-track {
    background: #021108;
    border-radius: 10px;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff66 0%, #facc15 100%);
    border-radius: 10px;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #ffff00;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.cat-card {
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    border: 1.5px solid #00e65c;
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover {
    background: linear-gradient(180deg, #0d361f 0%, #041a0d 100%);
    border-color: #00ff66;
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 255, 102, 0.35), 0 0 15px rgba(255, 255, 0, 0.25);
}

.cat-icon-img {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 255, 102, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.cat-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-card:hover .cat-icon-img img { transform: scale(1.06); }
.cat-card:hover .cat-icon-img { border-color: #ffff00; box-shadow: 0 0 12px rgba(255, 255, 0, 0.4); }

.cat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cat-info strong {
    color: #facc15 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.2px;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
    transition: all 0.25s ease;
    position: relative;
}

.cat-card:hover .cat-info strong { 
    color: #ffe066 !important; 
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
}

.cat-info small { font-size: 0.82rem; color: #cbd5e1; line-height: 1.3; }

.user-panel-container {
    margin-top: 0;
    width: 100%;
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    border: 1.5px solid #00e65c;
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.user-panel-container:hover {
    border-color: #00ff66;
    box-shadow: 0 12px 35px rgba(0, 255, 102, 0.25);
}

/* ============ EĞLENCE MODU: PANEL BÜYÜMESİ ============ */
body:has(.game-mode-active) .subtitle-yellow {
    transform: none !important;
}

.user-panel-container.game-mode-active {
    grid-template-columns: 1fr;
}

.game-mode-active .user-menu,
.game-mode-active .live-controls-bar,
.game-mode-active .avatar-chat-box,
.game-mode-active .quick-chips-row,
.game-mode-active .demo-title,
.game-mode-active .video-badge,
.game-mode-active .play-button-overlay {
    display: none !important;
}

.game-mode-active .video-preview-box {
    height: 560px;
}

.game-mode-active.interpreter-active .video-preview-box {
    height: 470px;
}

.interpreter-active {
    margin-top: -18px;
}

.fun-mode-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 17, 8, 0.32);
    backdrop-filter: blur(14px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ============ CANLI TERCÜMAN MODU ============ */
.interpreter-mode-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 17, 8, 0.32);
    backdrop-filter: blur(14px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 24px 20px;
}

.interpreter-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    width: 100%;
    max-width: 900px;
    margin-top: -10px;
    margin-bottom: 8px;
}

.interpreter-side-btns {
    position: absolute;
    top: 42px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 110px;
    min-height: 380px;
    padding: 10px;
    margin: -10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 17, 8, 0.75) 0%, rgba(2, 17, 8, 0.45) 55%, rgba(2, 17, 8, 0.12) 100%);
    z-index: 6;
}

.interpreter-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
}

.interpreter-status {
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

.interpreter-transcript-col {
    flex: 1;
    max-width: 321px;
    background: rgba(4, 26, 13, 0.65);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    height: 380px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.interpreter-transcript-label {
    font-size: 10px;
    font-weight: 800;
    color: #00ff66;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.interpreter-transcript-text {
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.6;
}

.interpreter-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: #00ff66;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: interpreterCursorBlink 1s step-end infinite;
}

@keyframes interpreterCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.interpreter-mini-eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 60px;
    margin-bottom: 10px;
}

.eq-bar-mini {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.eq-bar-mini:nth-child(odd) {
    background: linear-gradient(180deg, #ffe14d, #eab308);
    box-shadow: 0 0 10px 2px rgba(250, 204, 21, 0.55);
}

.eq-bar-mini:nth-child(even) {
    background: rgba(0, 255, 102, 0.45);
    box-shadow: 0 0 10px 2px rgba(0, 255, 102, 0.55);
}

.fun-exit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

#interpreterExitBtn {
    background: rgba(0, 255, 102, 0.15);
    border-color: #00ff66;
    color: #facc15;
    transition: all 0.25s ease;
    top: 34px;
    right: 8px;
    padding: 5px 10px;
    font-size: 10.5px;
}

#interpreterExitBtn svg {
    width: 11px;
    height: 11px;
}

#interpreterExitBtn:hover {
    background: rgba(0, 255, 102, 0.3);
    box-shadow: 0 8px 20px rgba(0, 255, 102, 0.5);
}

#funExitBtn {
    background: rgba(0, 255, 102, 0.15);
    border-color: #00ff66;
    color: #facc15;
}

#funExitBtn:hover {
    background: rgba(0, 255, 102, 0.3);
    box-shadow: 0 8px 20px rgba(0, 255, 102, 0.5);
}

.fun-exit-btn svg { width: 14px; height: 14px; }

.fun-exit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.fun-game-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(2, 17, 8, 0.55);
    border-radius: 20px;
    padding: 28px 32px;
}

.fun-select-title {
    color: #ffff00;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 14px rgba(255, 255, 0, 0.5);
    margin-bottom: 24px;
}

.fun-game-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.fun-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
    padding: 22px 14px;
    background: rgba(4, 26, 13, 0.75);
    border: 1.5px solid rgba(0, 255, 102, 0.3);
    border-radius: 16px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fun-game-card svg { width: 32px; height: 32px; stroke: #00ff66; }

.fun-game-card.active:hover {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 0, 0.2);
}

.fun-game-card.active:hover svg { stroke: #ffff00; }

.fun-game-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.fun-game-card small {
    color: #facc15;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ============ BALONCUKLU BİLGİ YARIŞMASI ============ */
.quiz-live-score {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    background: rgba(2, 17, 8, 0.7);
    border: 1px solid rgba(0, 255, 102, 0.4);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    z-index: 15;
}

.quiz-live-score b { font-weight: 800; }
.quiz-live-score .score-correct { color: #00ff66; }
.quiz-live-score .score-wrong { color: #ef4444; }

.bubble-quiz-field {
    position: relative;
    width: 100%;
    height: 100%;
}

.quiz-bubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.25) 12%, transparent 32%),
        conic-gradient(from 180deg at 50% 50%, rgba(255,80,180,0.32), rgba(255,210,60,0.28), rgba(120,255,140,0.3), rgba(70,200,255,0.32), rgba(190,90,255,0.3), rgba(255,80,180,0.32));
    backdrop-filter: blur(1.5px);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.25);
    animation: bubbleFloat 3.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.quiz-bubble:hover {
    transform: scale(1.12);
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.quiz-bubble.bubble-enter {
    animation: bubbleBurstIn 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards, bubbleFloat 3.5s ease-in-out infinite 0.6s;
}

@keyframes bubbleBurstIn {
    0% { transform: translate(var(--start-x), var(--start-y)) scale(0.2); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

.quiz-bubble.pop {
    animation: bubblePop 0.35s ease forwards;
}

@keyframes bubblePop {
    to { transform: scale(1.8); opacity: 0; }
}

/* ============ OYUN SONU ÖZETİ ============ */
.quiz-summary-card {
    background: linear-gradient(180deg, #0d361f 0%, #041a0d 100%);
    border: 1.5px solid #00ff66;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quiz-summary-text {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 22px;
}

.quiz-summary-btns {
    display: flex;
    gap: 12px;
}

.quiz-summary-btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.quiz-summary-btn.replay {
    background: rgba(0, 255, 102, 0.15);
    border-color: #00ff66;
    color: #00ff66;
}

.quiz-summary-btn.replay:hover {
    background: rgba(0, 255, 102, 0.3);
}

.quiz-summary-btn.exit {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
}

.quiz-summary-btn.exit:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============ SORU KARTI ============ */
.quiz-question-card {
    background: linear-gradient(180deg, #0d361f 0%, #041a0d 100%);
    border: 1.5px solid #00ff66;
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quiz-host-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.quiz-host-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00ff66;
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.5);
    transition: box-shadow 0.3s ease;
}

.quiz-host-avatar-wrap.speaking {
    box-shadow: 0 0 26px rgba(0, 255, 102, 0.9);
    animation: quizHostPulse 0.7s ease-in-out infinite;
}

@keyframes quizHostPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.quiz-host-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-host-mini-eq {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 16px;
    padding-bottom: 3px;
    background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}

.quiz-host-mini-eq .eq-bar-mini {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: #00ff66;
    box-shadow: 0 0 6px rgba(0, 255, 102, 0.8);
}

.quiz-host-avatar-wrap.speaking .eq-bar-mini {
    animation: quizEqBounce 0.5s ease-in-out infinite alternate;
}
.quiz-host-avatar-wrap.speaking .eq-bar-mini:nth-child(1) { animation-delay: 0s; }
.quiz-host-avatar-wrap.speaking .eq-bar-mini:nth-child(2) { animation-delay: 0.1s; }
.quiz-host-avatar-wrap.speaking .eq-bar-mini:nth-child(3) { animation-delay: 0.2s; }
.quiz-host-avatar-wrap.speaking .eq-bar-mini:nth-child(4) { animation-delay: 0.1s; }
.quiz-host-avatar-wrap.speaking .eq-bar-mini:nth-child(5) { animation-delay: 0s; }

@keyframes quizEqBounce {
    from { height: 4px; }
    to { height: 13px; }
}

.quiz-timer-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.quiz-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff66, #facc15);
    border-radius: 999px;
    transition: width 1s linear;
}

.quiz-timer-bar.urgent {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.quiz-question-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.quiz-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quiz-choice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-choice-label {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid rgba(0, 255, 102, 0.4);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: #00ff66;
}

.quiz-choice-text {
    flex: 1;
}

.quiz-choice-btn:hover:not(:disabled) {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.08);
}

.quiz-choice-btn:disabled { cursor: default; }

.quiz-choice-btn.correct {
    border-color: #00ff66;
    background: rgba(0, 255, 102, 0.2);
    color: #00ff66;
}

.quiz-choice-btn.correct .quiz-choice-label {
    background: rgba(0, 255, 102, 0.3);
    border-color: #00ff66;
}

.quiz-choice-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.quiz-choice-btn.wrong .quiz-choice-label {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
}

.quiz-feedback {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
    min-height: 18px;
}

@media (max-width: 850px) {
    .game-mode-active .video-preview-box { height: 460px; }
    .fun-game-cards { gap: 10px; }
    .fun-game-card { width: 110px; padding: 16px 8px; }
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid rgba(0, 255, 102, 0.2);
    padding-right: 20px;
}

.menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    display: inline-block;
}

.hint-mute-btn {
    float: right;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.25);
    color: #00ff66;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hint-mute-btn svg {
    width: 13px;
    height: 13px;
}

.hint-mute-btn:hover {
    background: rgba(0, 255, 102, 0.15);
}

.hint-mute-btn.muted {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.avatar-choice-card {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(0, 255, 102, 0.2);
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-choice-card:hover {
    border-color: rgba(0, 255, 102, 0.5);
    transform: translateY(-2px);
}

.avatar-choice-card.selected {
    border-color: #00ff66;
    background: rgba(0, 255, 102, 0.08);
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.25);
}

.avatar-choice-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 15%;
    border-radius: 10px;
    margin-bottom: 8px;
}

.avatar-choice-card span {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.avatar-choice-badge {
    margin-top: 6px;
    color: #00ff66;
    font-size: 11px;
    font-weight: 700;
}

.panel-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 110;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.settings-section {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 102, 0.12);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h4 {
    color: #facc15;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 13.5px;
}

.notif-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 64px;
}

.notif-toggle.notif-on {
    background: rgba(0, 255, 102, 0.15);
    border-color: #00ff66;
    color: #00ff66;
}

.settings-link-btn {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.35);
    color: #00ff66;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-link-btn:hover {
    background: rgba(0, 255, 102, 0.2);
}

.settings-link-btn.premium-link {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.4);
    color: #facc15;
}

.settings-link-btn.premium-link:hover {
    background: rgba(250, 204, 21, 0.22);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    stroke: #00ff66;
    transition: all 0.25s ease;
}

.user-menu-item:hover, .user-menu-item.active {
    background: linear-gradient(180deg, #0d361f 0%, #041a0d 100%);
    border-color: #00ff66;
    color: #facc15;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.25), 0 0 10px rgba(255, 255, 0, 0.2);
}

.user-menu-item:hover {
    transform: translateX(6px);
}

.user-menu-item:hover svg, .user-menu-item.active svg {
    stroke: #ffff00;
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.6));
}

.dropdown-wrapper { position: relative; width: 100%; }
.arrow-icon { margin-left: auto; font-size: 12px; transition: transform 0.3s ease; color: #00ff66; }

.dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 12px;
    border-left: 2px solid #00ff66;
}

.dropdown-wrapper:hover .dropdown-menu { display: flex; animation: fadeIn 0.3s ease-in-out; }
.dropdown-wrapper:hover .arrow-icon { transform: rotate(180deg); }

.dropdown-item {
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(0, 255, 102, 0.15);
    border-color: #ffff00;
    color: #ffff00;
    padding-left: 16px;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.membership-notice {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 255, 102, 0.25);
}

.membership-notice p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.membership-notice-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.membership-btn {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.membership-btn.free {
    background: rgba(0, 255, 102, 0.12);
    border-color: rgba(0, 255, 102, 0.4);
    color: #00ff66;
}

.membership-btn.free:hover {
    background: rgba(0, 255, 102, 0.25);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.membership-btn.premium {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.membership-btn.premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.5);
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative; /* buzlu cam panelin bu alana göre konumlanması için */
}

.demo-title {
    font-size: 16px;
    font-weight: 700;
    color: #facc15;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    position: relative;
    z-index: 95; /* panel açıkken buzlu camın üstünde, başlık çubuğu gibi kalsın */
}

#panelTitle.panel-title-active {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(9, 20, 14, 0.85);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 102, 0.25);
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-extra-content {
    position: absolute;
    inset: 0;
    background: rgba(9, 20, 14, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 90;
    overflow-y: auto;
    border-radius: 20px;
    padding: 74px 20px 30px;
    box-sizing: border-box;
    animation: panelFadeIn 0.25s ease;
    scrollbar-width: auto;
    scrollbar-color: #00ff66 #021108;
}

.panel-extra-content::-webkit-scrollbar {
    width: 10px;
}

.panel-extra-content::-webkit-scrollbar-track {
    background: #021108;
    border-radius: 10px;
}

.panel-extra-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff66 0%, #facc15 100%);
    border-radius: 10px;
    border: 2px solid #021108;
    background-clip: padding-box;
}

.panel-extra-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ff88 0%, #ffd633 100%);
    background-clip: padding-box;
}

.brand-watermark {
    position: absolute;
    bottom: 10px;
    left: 14px;
    font-family: 'Goldman', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 4;
    user-select: none;
}

.video-preview-box .fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #00ff66;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-btn::after {
    left: auto !important;
    right: 0 !important;
    transform: translateY(4px) !important;
}

.fullscreen-btn:hover::after {
    transform: translateY(0) !important;
}

.fullscreen-btn:hover {
    background: rgba(0, 255, 102, 0.2);
}

.fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

.video-preview-box:fullscreen {
    height: 100vh;
    border-radius: 0;
}

.video-preview-box:fullscreen img {
    object-fit: contain;
    background: #000;
}

.video-preview-box {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #00e65c;
    background: #021108;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-preview-box:hover {
    border-color: #00ff66;
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.35), 0 0 15px rgba(255, 255, 0, 0.2);
}

.video-preview-box img,
.video-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    transition: transform 0.4s ease;
}

.video-preview-box:hover img,
.video-preview-box:hover video {
    transform: scale(1.03);
}

.play-button-overlay {
    position: absolute;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00ff66 0%, #00a843 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button-overlay:hover {
    transform: scale(1.12);
    box-shadow: 0 0 40px rgba(255, 255, 0, 1);
    background: linear-gradient(135deg, #ffff00 0%, #eab308 100%);
}

.play-icon-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #000;
    margin-left: 4px;
}

.video-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(7, 33, 19, 0.9);
    border: 1px solid #00ff66;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffff00;
    backdrop-filter: blur(8px);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.category-exit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffff00;
    color: #ffff00;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.category-exit-btn svg { width: 12px; height: 12px; }

.category-exit-btn:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: #00ff66;
    color: #00ff66;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
}

.live-subtitle-overlay {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(2, 17, 8, 0.9);
    border: 1px solid #00ff66;
    padding: 10px 18px;
    border-radius: 12px;
    text-align: center;
    z-index: 3;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.live-subtitle-overlay span {
    color: #ffff00;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.live-controls-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid #00e65c;
    flex-wrap: wrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.control-btn svg { width: 16px; height: 16px; stroke: #00ff66; }

.control-btn:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: #ffff00;
    color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.control-btn.active {
    background: #ef4444 !important;
    border-color: #f87171 !important;
    color: #fff !important;
}

.control-btn.active svg { stroke: #fff !important; }

.control-btn.error {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.control-btn.error svg { stroke: #ef4444 !important; }

.control-btn.sub-active {
    background: rgba(0, 255, 102, 0.25) !important;
    border-color: #00ff66 !important;
    color: #00ff66 !important;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
}

.dot-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #94a3b8;
    transition: all 0.3s ease;
}

.control-btn.sub-active .dot-indicator {
    background-color: #00ff66;
    box-shadow: 0 0 8px #00ff66;
}

/* Esprili Avatar düğmesi: bilerek TERS renk mantığı — diğer kontrol
   düğmeleri yeşilden sarıya dönerken, bu düğme sarıdan yeşile döner,
   böylece fark edilir ve "farklı bir mod" hissi verir */
.control-btn.funny-toggle {
    border-color: #ffff00;
    color: #ffff00;
}

.control-btn.funny-toggle svg { stroke: #ffff00; }

.control-btn.funny-toggle:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: #00ff66;
    color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

.control-btn.funny-toggle:hover svg { stroke: #00ff66; }

/* Esprili Avatar şu an AKTİFKEN: dolu yeşil (diğer "açık" durum göstergeleriyle aynı dil) */
.control-btn.funny-toggle.funny-active {
    background: rgba(0, 255, 102, 0.25) !important;
    border-color: #00ff66 !important;
    color: #00ff66 !important;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
}

.control-btn.funny-toggle.funny-active svg { stroke: #00ff66 !important; }

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-grow: 1;
    min-width: 200px;
    /* Her zaman kendi satırında, tam genişlikte dursun — böylece
       "Esprili Avatar'a Geç" / "Avatar'a Dön" metninin uzunluğu
       değiştikçe kutunun küçülüp düğmenin yanına sıkışması önlenir. */
    flex-basis: 100%;
}

#avatarChatInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    resize: none;
    overflow-y: auto;
    max-height: 96px;
}

#avatarChatInput:focus { border-color: #ffff00; box-shadow: 0 0 8px rgba(255, 255, 0, 0.3); }

#avatarChatInput::placeholder {
    color: #ffff00;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
    transition: opacity 0.3s ease;
}

.btn-send-chat {
    background: #00ff66;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-chat:hover { background: #ffff00; box-shadow: 0 0 10px rgba(255, 255, 0, 0.5); }

.avatar-chat-box {
    background: linear-gradient(180deg, #05150a 0%, #020a05 100%);
    border: 1.5px solid rgba(0, 255, 102, 0.3);
    border-radius: 12px;
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Sabit (fixed) Acil Durum/112 düğmeleri her zaman ekranın sağ altında durur;
   masaüstü genişliklerinde sohbet balonunun metni oraya kadar uzayabildiği için
   metnin altlarına gizlenmemesi adına sağdan pay bırakıyoruz */
@media (min-width: 900px) {
    .avatar-chat-box {
        padding-right: 190px;
    }
}

.chat-msg {
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 8px;
}

.avatar-msg { background: rgba(0, 255, 102, 0.1); color: #e2e8f0; border-left: 3px solid #00ff66; }
.user-msg { background: rgba(250, 204, 21, 0.12); color: #facc15; border-right: 3px solid #facc15; text-align: right; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #09140e;
    border: 1.5px solid #00ff66;
    padding: 30px 12px 30px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-scroll-inner {
    overflow-y: auto;
    padding-right: 0px;
    margin-top: 22px;
    scrollbar-width: thin;
    scrollbar-color: #00ff66 #021108;
}

.modal-scroll-inner::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-inner::-webkit-scrollbar-track {
    background: #021108;
    border-radius: 10px;
}

.modal-scroll-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff66 0%, #facc15 100%);
    border-radius: 10px;
}

.modal-scroll-inner::-webkit-scrollbar-thumb:hover {
    background: #ffff00;
}

.modal-box h2 { color: #00ff66; margin-bottom: 20px; }

.features-modal-box {
    max-width: 520px;
}

.categories-modal-box {
    max-width: 1100px;
    width: 92%;
    max-height: 96vh;
    padding: 18px 12px 18px 18px;
    background: rgba(9, 20, 14, 0.2);
    backdrop-filter: blur(16px);
}

.categories-modal-box .modal-scroll-inner {
    margin-top: 12px;
}

.categories-modal-box h2 {
    margin-bottom: 4px !important;
    font-size: 18px !important;
}

.categories-modal-box p {
    margin-bottom: 10px !important;
    font-size: 12px !important;
}

.modal-overlay#exploreCategoriesModal {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
}

.categories-modal-box .categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .categories-modal-box .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-modal-box .categories {
        grid-template-columns: 1fr;
    }
}

.categories-modal-box .cat-icon-img {
    height: 78px;
}

.categories-modal-box .cat-card {
    padding: 10px;
    gap: 6px;
}

.categories-modal-box .cat-info strong {
    font-size: 14px;
}

.categories-modal-box .cat-info small {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Aradığınız Branşı Bulamadınız mı?" kartı: bilerek TERS renk mantığı
   (diğer kartlar yeşilden sarıya dönerken bu sarıdan yeşile döner),
   böylece 12 kart arasında dikkat çeker */
.cat-card-special {
    border-color: #ffff00 !important;
}

.cat-card-special .cat-info strong {
    color: #ffff00 !important;
    text-shadow: 0 0 12px rgba(255, 255, 0, 0.35);
}

.cat-card-special .cat-icon-img {
    border-color: rgba(255, 255, 0, 0.5) !important;
}

.cat-card-special:hover {
    border-color: #00ff66 !important;
    box-shadow: 0 12px 28px rgba(0, 255, 102, 0.35), 0 0 15px rgba(0, 255, 102, 0.25) !important;
}

.cat-card-special:hover .cat-icon-img {
    border-color: #00ff66 !important;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4) !important;
}

.cat-card-special:hover .cat-info strong {
    color: #ccffcc !important;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.6) !important;
}

.features-list li {
    margin-right: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    font-size: 14px;
    color: #e2e8f0;
    padding: 10px 14px;
    background: rgba(0, 255, 102, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 10px;
    line-height: 1.5;
    cursor: default;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.features-list li:hover {
    border-color: rgba(0, 255, 102, 0.5);
    background: rgba(0, 255, 102, 0.1);
}

.feature-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.features-list li:hover .feature-detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    color: #fff;
    outline: none;
}

.close-btn { position: absolute; top: 15px; right: 10px; color: #fff; font-size: 24px; cursor: pointer; z-index: 2; }

.form-error-msg {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.forgot-password-link {
    display: block;
    text-align: right;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
    margin-top: -6px;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ EVRENSEL TOOLTIP (fare üzerine gelince küçük balon) ============ */
.has-tooltip { position: relative; }

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    margin-bottom: 8px;
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    border: 1px solid #00ff66;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffff00;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 20000;
}

.has-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ HIZLI BAŞLANGIÇ CHIP'LERİ ============ */
.quick-chips-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.35);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-chip svg { width: 15px; height: 15px; stroke: #00ff66; flex-shrink: 0; }

.chip6-icon-wrap { position: relative; display: inline-block; width: 15px; height: 15px; flex-shrink: 0; }
.chip6-icon-wrap .car-icon { position: absolute; bottom: 0; left: 0; width: 15px; height: 15px; }
.chip6-icon-wrap .pin-icon { position: absolute; top: -6px; right: -5px; width: 11px; height: 11px; }

.quick-chip:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: #ffff00;
    color: #ffff00;
    box-shadow: 0 0 12px rgba(255, 255, 0, 0.3);
    transform: translateY(-2px);
}

.quick-chip:hover svg { stroke: #ffff00; }

/* Keşfet düğmesi çok önemli bir özellik olduğu için, diğer çiplerin arasında
   kaybolmasın diye sürekli hafif bir nabız/parlama animasyonuyla dikkat çeker */
#chip1Btn {
    animation: chip1-pulse 2.2s ease-in-out infinite;
}

@keyframes chip1-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 255, 102, 0);
        border-color: #00e65c;
    }
    50% {
        box-shadow: 0 0 14px rgba(255, 255, 0, 0.65);
        border-color: #ffff00;
    }
}

#chip1Btn:hover {
    animation: none;
}

/* ============ KULLANIM KILAVUZU (video olmadan, tam genişlik) ============ */
/* ============ ALT BİLGİ (FOOTER) ============ */
.pwa-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #00ff66, #00cc52);
    border: none;
    color: #021108;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 255, 102, 0.3);
}

.pwa-install-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 255, 102, 0.45);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 8px;
    font-size: 12px;
    color: #64748b;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #00ff66;
    text-decoration: underline;
}

.footer-dot { color: #475569; }

.footer-lang-tag {
    font-size: 11px;
    color: #64748b !important;
    margin-left: -4px;
}

.footer-lang-tag:hover { color: #00ff66 !important; }

.guide-section {
    background: linear-gradient(180deg, #072113 0%, #021108 100%);
    border: 1.5px solid #00e65c;
    border-radius: 20px;
    padding: 14px 26px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.guide-section .menu-title {
    margin-bottom: 10px;
    font-size: 15px;
}

.guide-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease, opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(16px);
}

.guide-step.guide-step-visible {
    opacity: 1;
    transform: translateY(0);
}

.guide-step-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.guide-step-map {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.06), rgba(0, 0, 0, 0.2));
    border-color: rgba(0, 255, 102, 0.35) !important;
}

.guide-step-map:hover {
    border-color: #00ff66 !important;
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.12), rgba(0, 0, 0, 0.2));
}

.guide-map-visual {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.guide-map-svg {
    width: 100%;
    height: 66px;
    display: block;
}

.guide-example-bubble {
    background: rgba(0, 255, 102, 0.05);
    border: 1px dashed rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    align-self: stretch;
}

.guide-step-text-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.guide-step-highlight-line {
    font-size: 13.5px;
}

.guide-step:hover {
    background: rgba(0, 255, 102, 0.08);
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-2px);
}

.interpreter-lang-wrapper { margin-bottom: 2px; }

.interpreter-lang-wrapper.has-tooltip::after {
    left: 0;
    transform: translateY(4px);
}

.interpreter-lang-wrapper.has-tooltip:hover::after {
    transform: translateY(0);
}

.interpreter-download-btn.has-tooltip::after {
    left: 0;
    top: 100%;
    bottom: auto;
    margin-bottom: 0;
    margin-top: 8px;
    transform: translateY(-4px);
}

.interpreter-download-btn.has-tooltip:hover::after {
    transform: translateY(0);
}

.interpreter-lang-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255, 255, 0, 0.08);
    border: 1.5px solid rgba(255, 255, 0, 0.5);
    color: #ffff00;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.interpreter-lang-trigger-label { display: flex; align-items: center; gap: 4px; }
.interpreter-lang-trigger svg { width: 15px; height: 15px; stroke: #ffff00; flex-shrink: 0; }
.interpreter-lang-trigger .arrow-icon { color: #ffff00; }
.interpreter-lang-trigger:hover { background: rgba(255, 255, 0, 0.18); box-shadow: 0 0 10px rgba(255, 255, 0, 0.3); }

.interpreter-lang-menu.dropdown-menu {
    max-height: 220px;
    overflow-y: auto;
    border-left: 2px solid #ffff00;
    padding-left: 6px;
    scrollbar-width: thin;
    scrollbar-color: #00ff66 #021108;
}

.interpreter-lang-menu.dropdown-menu::-webkit-scrollbar { width: 6px; }
.interpreter-lang-menu.dropdown-menu::-webkit-scrollbar-track { background: #021108; border-radius: 10px; }
.interpreter-lang-menu.dropdown-menu::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00ff66 0%, #facc15 100%); border-radius: 10px; }
.interpreter-lang-menu.dropdown-menu::-webkit-scrollbar-thumb:hover { background: #ffff00; }

.interpreter-lang-menu .dropdown-item { padding: 7px 9px; font-size: 10.5px; }

.interpreter-lang-wrapper.active .interpreter-lang-menu { display: flex; }

.interpreter-talk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 8px;
    background: rgba(0, 255, 102, 0.15);
    border: 1.5px solid #00ff66;
    color: #facc15;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.interpreter-talk-btn:hover {
    background: rgba(0, 255, 102, 0.3);
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 255, 102, 0.4);
}

.interpreter-download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 10px 8px;
    background: rgba(0, 255, 102, 0.08);
    border: 1.5px solid rgba(0, 255, 102, 0.4);
    color: #00ff66;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.interpreter-download-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.interpreter-download-btn:hover {
    background: rgba(0, 255, 102, 0.2);
    border-color: #00ff66;
    box-shadow: 0 8px 22px rgba(0, 255, 102, 0.35);
}

.guide-try-now-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 28px;
    background: rgba(0, 255, 102, 0.15);
    border: 1.5px solid #00ff66;
    color: #00ff66;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-try-now-btn:hover {
    background: rgba(0, 255, 102, 0.3);
    transform: scale(1.05);
}

.guide-try-now-btn.premium-cta {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border-color: #facc15;
    color: #021108;
}

.guide-try-now-btn.premium-cta:hover {
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.4);
}

/* ============ ÜCRETSİZ VS PREMİUM KARŞILAŞTIRMA ============ */
.premium-compare-section .compare-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.compare-col {
    flex: 1 1 220px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid;
}

.compare-col.free {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.compare-col.premium {
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.4);
}

.compare-col-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.compare-col.free .compare-col-title { color: #cbd5e1; }
.compare-col.premium .compare-col-title { color: #facc15; }

.compare-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

.guide-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 255, 102, 0.15);
    border: 1.5px solid #00ff66;
    color: #00ff66;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
}

@media (max-width: 850px) {
    .guide-steps-row { flex-direction: column; }
}

/* ============ SES İZNİ UYARISI (header içinde, büyük kırmızı kalp) ============ */
.audio-hint-header {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.audio-hint-text-wrap {
    max-width: 260px;
    line-height: 1.35;
}

.audio-hint-header span {
    color: #facc15;
    font-size: 13px;
    font-weight: 600;
}

.audio-hint-header .audio-hint-click-word {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8),
                 0 0 16px rgba(254, 240, 138, 0.6),
                 0 0 28px rgba(255, 255, 0, 0.35);
}

.heart-beat-icon {
    width: 34px;
    height: 34px;
    fill: #ef4444;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
    animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.audio-hint-header.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============ SABİT ACİL DURUM BUTONU ============ */
.emergency-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    border: 1.5px solid #f87171;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    z-index: 5000;
    transition: all 0.25s ease;
}

.emergency-fab svg { width: 18px; height: 18px; stroke: #fff; }

.emergency-fab.has-tooltip::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.emergency-call-fab {
    position: fixed;
    bottom: 24px;
    right: 168px;
    display: flex;
    align-items: center;
    background: #021108;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
    z-index: 5000;
    transition: all 0.25s ease;
}

.emergency-call-fab:hover {
    background: #ef4444;
    color: #fff;
}

.emergency-fab.has-tooltip:hover::after {
    transform: translateY(0);
}

.emergency-fab:hover {
    background: #f87171;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.7);
}

/* ============ BOŞTAYKEN GÖSTERİLEN DETAY PANELİ (avatar ekranı üstünde) ============ */
.idle-detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 17, 8, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    z-index: 4;
}

.idle-detail-title {
    color: #00ff66;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.8), 0 0 18px rgba(0, 255, 102, 0.5);
}

.idle-detail-text {
    color: #7dffb0;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.4px;
    max-width: 92%;
    text-shadow: 0 0 6px rgba(0, 255, 102, 0.45);
}

.idle-detail-text .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #00ff66;
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 0.8s steps(1) infinite;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

@media (max-width: 850px) {
    .header { flex-wrap: wrap; row-gap: 10px; }
    .header-actions { width: 100%; }
    .auth-buttons { justify-content: center; }
    .lang-dropdown-wrapper { width: 100%; }
    .lang-main-btn { justify-content: center; }

    .guide-steps-row { grid-template-columns: 1fr; }

    .emergency-fab span { display: none; }
    .emergency-fab { padding: 12px; bottom: 16px; right: 16px; }
    .emergency-call-fab { padding: 8px 12px; font-size: 12px; bottom: 16px; right: 66px; }
    .has-tooltip::after { display: none; }
    .header-actions { flex-direction: column; gap: 10px; }
    .audio-hint-header {
        position: static;
        transform: none;
        justify-content: center;
        margin: 8px 0;
        padding: 0 16px;
    }
    .audio-hint-text-wrap { max-width: none; text-align: center; }
    .audio-hint-header span { font-size: 11.5px; }
    .user-panel-container { grid-template-columns: 1fr; padding: 16px; }
    .video-section { order: 1; }
    .user-menu { order: 2; }
    .mobile-relocated-chips {
        order: 3;
        margin: 4px 0 0;
    }
    .mobile-relocated-exit {
        position: static !important;
        margin: 0 auto 10px !important;
        top: auto !important;
        right: auto !important;
    }
    .user-menu { border-right: none; border-bottom: 1px solid rgba(0, 255, 102, 0.2); padding-right: 0; padding-bottom: 16px; }
    
    .video-preview-box {
        height: 480px; 
        border-radius: 20px;
    }

    /* Kütüphanem/Kulübünü Kur/Ayarlar gibi bir panel açıkken kutu, içindeki
       gerçek içerik kadar yer kaplasın — sabit 480px'lik boşluk kalmasın */
    .video-preview-box.panel-open {
        height: auto;
    }
    .video-preview-box.panel-open .panel-extra-content {
        position: static;
        max-height: 65vh;
        overflow-y: auto;
    }
    
    .live-controls-bar { flex-direction: column; align-items: stretch; }
    .chat-input-wrapper { width: 100%; }

    /* ===== CANLI TERCÜMAN MODU — MOBİL İÇİN TAMAMEN YENİDEN DÜZENLENDİ ===== */
    /* Masaüstündeki yan yana/mutlak konumlu düzen yerine, mobilde her şeyi
       alt alta, tam genişlikte, normal akışta diziyoruz */
    .interpreter-active {
        margin-top: 6px;
    }
    .game-mode-active.interpreter-active .video-preview-box {
        height: auto;
        min-height: 705px;
    }
    .interpreter-mode-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        height: auto;
        min-height: 100%;
        padding: 44px 14px 20px;
        overflow-y: visible;
    }
    .interpreter-top-row {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        margin-top: 0;
    }
    .interpreter-side-btns {
        position: static;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        min-height: 0;
        height: auto;
        order: 3;
        margin-top: 4px;
    }
    .interpreter-side-btns .interpreter-lang-wrapper,
    .interpreter-side-btns .interpreter-talk-btn,
    .interpreter-side-btns .interpreter-download-btn {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    .interpreter-side-btns .interpreter-talk-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .interpreter-transcript-col {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 260px;
    }
    .interpreter-center-col {
        width: 100%;
    }
}

/* ============ BUZLU CAM SOHBET PANELİ ============ */
.chat-overlay {
    position: absolute;
    inset: 0;
    z-index: 100; /* "Canlı AI Önizleme" başlığının (95) ve sekme panelinin (90) üstünde */
    display: flex;
    flex-direction: column;
    background: rgba(2, 17, 8, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 255, 102, 0.28);
    border-radius: 20px;
    padding: 14px 18px 16px;
    box-sizing: border-box;
    transform-origin: 6% 12%; /* "Sohbeti Aç" düğmesinin olduğu köşe: açılış ve kapanış oradan */
}

.chat-overlay.opening {
    animation: chatOverlayIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chat-overlay.closing {
    animation: chatOverlayOut 0.42s cubic-bezier(0.55, 0, 0.8, 0.45) both;
    pointer-events: none;
}

@keyframes chatOverlayIn {
    from { opacity: 0; transform: scale(0.06); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes chatOverlayOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.06); }
}

.chat-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
    flex-shrink: 0;
}

.chat-overlay-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 15%;
    border: 2px solid #00ff66;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.45);
    flex-shrink: 0;
}

.chat-overlay-title {
    color: #facc15;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.chat-overlay-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-overlay-close svg { width: 16px; height: 16px; }

.chat-overlay-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.08);
}

.chat-overlay-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* Sohbet kutusu cama taşınınca: küçük kutu görünümü yerine tüm alanı doldursun */
.avatar-chat-box.in-overlay {
    flex: 1;
    min-height: 0;
    max-height: none;
    background: transparent;
    border: none;
    padding: 4px 12px 4px 0;
    gap: 10px;
}

.avatar-chat-box.in-overlay .chat-msg {
    font-size: 14.5px;
    line-height: 1.55;
    padding: 9px 12px;
}

.chat-text { white-space: pre-wrap; }

.chat-overlay-footer {
    flex-shrink: 0;
    margin-top: 10px;
}

.chat-input-wrapper.in-overlay {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
}

/* Sağ alttaki sabit Acil Durum/112 düğmelerinin altında kalmasın */
@media (min-width: 900px) {
    .chat-overlay-footer { padding-right: 190px; }
}

.chat-reopen-btn {
    position: absolute;
    top: 50px;
    left: 14px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid #00ff66;
    color: #facc15;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.chat-reopen-btn svg { width: 13px; height: 13px; }

.chat-reopen-btn:hover {
    background: rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
    transform: scale(1.04);
}

/* Eğlence / Canlı Tercüman modunda sohbet camı görünmesin */
.game-mode-active .chat-overlay,
.game-mode-active .chat-reopen-btn {
    display: none !important;
}

/* "Yazıyor..." noktaları: avatarın cevabı gelene kadar balonda görünür */
.chat-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 1.2em;
}

.chat-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff66;
    animation: chatTypingDot 1.1s ease-in-out infinite;
}

.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes chatTypingDot {
    0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}