:root {
    --bg-gradient: linear-gradient(135deg, #2c1050 0%, #11082c 100%);
    --primary-color: #FF6D00;
    --secondary-color: #00E5FF;
    --accent-purple: #7B1FA2;
    --correct-color: #00E676;
    --wrong-color: #FF1744;
    --text-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-color);
    padding: 50px 20px 20px 20px;
}

.container {
    width: 100%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff3d81 0%, #ff8a00 25%, #ffe600 48%, #00e676 68%, #00d9ff 84%, #b64cff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
    display: inline-block;
    animation: logo-gradient 7s linear infinite;
}

@keyframes logo-gradient {
    to {
        background-position: 220% center;
    }
}

.subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 5px;
}

.screen {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.screen.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 109, 0, 0.3);
    transition: all 0.25s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 109, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--accent-purple), #4A148C);
    box-shadow: 0 8px 20px rgba(123, 31, 162, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 12px 25px rgba(123, 31, 162, 0.5);
}

.btn-action {
    background: linear-gradient(135deg, #6d28d9, #2563eb 55%, #00b8d9);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 20px rgba(75, 48, 198, 0.38);
    margin-top: 15px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #8b35eb, #2f80ed 55%, #00d9ff);
    box-shadow: 0 13px 28px rgba(0, 201, 255, 0.4);
}

input,
select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

select option {
    background-color: #1a0b36;
    color: #ffffff;
    padding: 10px;
}

input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
    border: 2px solid var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    flex-shrink: 0;
    appearance: auto;
    -webkit-appearance: auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.creator-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.options-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .options-setup-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
}

.timer-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.timer-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-btn {
    border: none;
    border-radius: 16px;
    padding: 22px 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    min-height: 85px;
    transition: all 0.2s ease;
}

.option-btn:nth-child(1) {
    background-color: #E21B3C;
}

.option-btn:nth-child(2) {
    background-color: #1368CE;
}

.option-btn:nth-child(3) {
    background-color: #D89E00;
}

.option-btn:nth-child(4) {
    background-color: #26890C;
}

.option-btn:hover:not(:disabled) {
    transform: scale(1.02);
    filter: brightness(1.15);
}

.option-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.option-btn.correct-answer {
    background-color: var(--correct-color) !important;
    opacity: 1 !important;
    box-shadow: 0 0 25px var(--correct-color);
}

.option-btn.wrong-answer {
    background-color: var(--wrong-color) !important;
    opacity: 1 !important;
    box-shadow: 0 0 20px var(--wrong-color);
}

.option-btn.selected-answer {
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#next-btn {
    display: none;
    background: var(--secondary-color);
    color: #11082c;
}

#waiting-msg {
    display: none;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

#score-feedback {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 27px;
    text-align: center;
}

.results-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-greeting {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Multiplayer list UI */
.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.player-item.host {
    border-color: var(--secondary-color);
    background: rgba(0, 229, 255, 0.08);
}

.host-badge {
    background: var(--secondary-color);
    color: #11082c;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.answered-indicator {
    font-size: 1.1rem;
}

/* Leaderboard styling */
.leaderboard-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border-left: 4px solid transparent;
}

.leaderboard-row.rank-1 {
    border-left-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.leaderboard-row.rank-2 {
    border-left-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.08);
}

.leaderboard-row.rank-3 {
    border-left-color: #CD7F32;
    background: rgba(205, 127, 50, 0.08);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 8px;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.15);
}

.toast {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #11082c;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* ---- MOD SEÃ‡Ä°M KARTLARI ---- */
.mode-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 500px) {
    .mode-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.mode-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.2);
}

.mode-card-icon {
    font-size: 3.2rem;
    line-height: 1;
}

.mode-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.mode-card-desc {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.4;
}

/* ---- QUÄ°Z SEÃ‡Ä°M KARTLARI & GRID ---- */
.quiz-category-section {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.category-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

@media (max-width: 500px) {
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ---- THUMBNAIL QUIZ KARTI ---- */
.quiz-card {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    background: #1a0b36;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.quiz-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.quiz-card.selected {
    border-color: var(--correct-color);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Thumbnail hero bÃ¶lÃ¼mÃ¼ */
.quiz-thumb {
    width: 100%;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    position: relative;
    overflow: hidden;
}

.quiz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quiz-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}

/* Kart alt bilgi */
.quiz-card-body {
    padding: 10px 12px 12px;
}

.quiz-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    opacity: 0.75;
}

.quiz-card-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 600;
}

/* SeÃ§ili checkmark overlay */
.quiz-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: var(--correct-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0b3d26;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.quiz-card.selected .quiz-card-check {
    opacity: 1;
    transform: scale(1);
}

.empty-quiz-msg {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
    padding: 20px;
    grid-column: 1 / -1;
}

@media (max-width: 500px) {
    body {
        padding: 15px 10px 10px 10px;
    }

    .container {
        padding: 25px 15px;
        border-radius: 24px;
    }

    .logo {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .question-text {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .options-grid {
        gap: 10px;
        margin-bottom: 15px;
    }

    .option-btn {
        min-height: 65px;
        padding: 14px 10px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .quiz-header {
        padding: 10px 15px;
        margin-bottom: 15px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .timer-container {
        margin-bottom: 20px;
        height: 8px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .creator-box {
        padding: 15px;
    }

    .options-setup-grid {
        gap: 10px;
    }

    input,
    select {
        padding: 10px 15px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .player-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .leaderboard-row {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    #quiz-leaderboard {
        padding: 15px;
        margin-top: 20px;
    }
}

/* ---- CEVAP ANALÄ°Z EKRANI ---- */
#analysis-screen .analysis-question {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.5;
}

.analysis-bar-wrap {
    margin-bottom: 14px;
}

.analysis-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.analysis-bar-label .label-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-bar-label .correct-tag {
    background: var(--correct-color);
    color: #0a3320;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 800;
}

.analysis-bar-bg {
    width: 100%;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.analysis-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.bar-opt-0 {
    background: #E21B3C;
}

.bar-opt-1 {
    background: #1368CE;
}

.bar-opt-2 {
    background: #D89E00;
}

.bar-opt-3 {
    background: #26890C;
}

.bar-correct {
    background: var(--correct-color) !important;
}

.analysis-players-section {
    margin-top: 22px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 18px;
}

.analysis-players-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color);
    text-align: center;
}

.analysis-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.analysis-player-row .player-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.analysis-player-row .player-answer {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.analysis-player-row .result-icon {
    font-size: 1.2rem;
}

@media (max-width: 500px) {
    #analysis-screen .analysis-question {
        font-size: 1rem;
    }

    .analysis-bar-fill {
        font-size: 0.72rem;
    }
}

/* ==========================================================
   AUTHENTICATION & USER PROFILE WIDGET STYLES
   ========================================================== */

.top-auth-widget {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.auth-header-btn {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 16px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-header-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 229, 255, 0.25);
}

.user-profile-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 4px 14px 4px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.user-profile-badge:hover {
    border-color: var(--secondary-color);
}

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

.user-avatar-default {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.user-badge-name {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 8px;
    min-width: 170px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.2s ease;
}

.user-dropdown-menu.show {
    display: flex;
}

.user-dropdown-item {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.user-dropdown-item.logout {
    color: #f87171;
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ==========================================================
   AUTH MODAL STYLES
   ========================================================== */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-overlay.active .auth-modal-card {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-modal-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 22px;
}

/* Google Button */
.auth-google-btn {
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.auth-google-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    margin-right: 12px;
}

.auth-divider::after {
    margin-left: 12px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 109, 0, 0.4);
}

/* Forms */
.auth-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.auth-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form-input:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.09);
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6D00, #FF3D00);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.5);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Messages */
.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: none;
    line-height: 1.4;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    display: block;
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    display: block;
}

/* OTP Code 6-Digit Container */
.otp-box-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.otp-box-input {
    width: 48px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

.otp-box-input:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ==========================================================
   YÖNETİCİ (ADMIN) PANELİ STYLES
   ========================================================== */
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-panel-header .btn {
    width: auto;
    margin: 0;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-quiz-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    transition: border-color 0.2s ease;
}

.admin-quiz-row:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.admin-quiz-info {
    flex: 1;
    min-width: 0;
}

.admin-quiz-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.72rem;
    opacity: 0.9;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px 8px;
    font-weight: 600;
}

.admin-badge.official {
    background: rgba(255, 109, 0, 0.18);
    color: var(--primary-color);
}

.admin-badge.community {
    background: rgba(0, 229, 255, 0.16);
    color: var(--secondary-color);
}

.admin-badge.pending {
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
}

.admin-delete-btn {
    background: rgba(255, 23, 68, 0.15);
    color: #ff5c7a;
    border: 1px solid rgba(255, 23, 68, 0.35);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-delete-btn:hover:not(:disabled) {
    background: var(--wrong-color);
    color: #fff;
}

.admin-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 500px) {
    .admin-quiz-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-delete-btn {
        width: 100%;
    }
}

/* Admin Question Inspection Box */
.admin-questions-preview {
    background: rgba(10, 8, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.admin-question-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
}

.admin-question-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
}

.admin-question-num {
    color: var(--secondary-color);
}

.admin-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.admin-option-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-option-badge.correct {
    background: rgba(0, 230, 118, 0.18);
    border-color: rgba(0, 230, 118, 0.45);
    color: #00e676;
    font-weight: 700;
}

/* Admin Quiz Thumbnail Image */
.admin-quiz-thumb {
    width: 52px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #110b3b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Matching Questions Toggle Button */
.btn-questions-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-questions-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Quiz Creator Preset Thumbnails */
.thumb-preset-card {
    border-radius: 10px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.thumb-preset-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.thumb-preset-card.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    transform: scale(1.04);
}


