﻿/* ===== index.php ===== */
.particles-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.9rem 0.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    color: var(--text);
    text-decoration: none;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: var(--text);
}
.category-card .cat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
    transition: transform var(--transition);
}
.category-card:hover .cat-icon {
    transform: scale(1.15);
}
.category-card .cat-name {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.3;
}
.category-card .cat-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.player-mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    height: 100%;
}
.player-mini-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.player-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}
.player-mini-info {
    flex: 1;
    min-width: 0;
}
.player-mini-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-mini-points {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.player-mini-rank {
    font-weight: 800;
    font-size: 1.15rem;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.rank-gold { color: var(--accent-orange); }
.rank-silver { color: var(--text-muted); }
.rank-bronze { color: #cd7f32; }

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
}
.btn-see-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
/* ===== category.php ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--accent);
}

.category-card-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    color: var(--text);
    text-decoration: none;
    height: 100%;
}
.category-card-page:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: var(--text);
}
.category-card-page .cat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: transform var(--transition);
}
.category-card-page:hover .cat-icon {
    transform: scale(1.15);
}
.category-card-page .cat-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}
.category-card-page .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.category-info-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.category-info-bar .cat-icon-large {
    font-size: 2rem;
    color: var(--accent);
}
.category-info-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.category-info-bar .game-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-link {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
.page-link:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-item.disabled .page-link {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-dim);
}

.category-breadcrumb {
    margin-bottom: 0.25rem;
}
.category-breadcrumb a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.category-breadcrumb a:hover {
    color: var(--accent);
}
/* ===== game.php ===== */
.game-player-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-fullscreen-btn {
    position: static;
    opacity: .82;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(15,23,42,.82);
    color: #fff;
    border-radius: .5rem;
    padding: .45rem .7rem;
    font-size: .82rem;
    transition: opacity .2s ease, background .2s ease;
}
.game-fullscreen-btn:hover { opacity: 1; background: rgba(37,99,235,.9); color: #fff; }
.game-player-wrapper:fullscreen { border-radius: 0; margin: 0; }
.game-player-wrapper:fullscreen #game-player { width: 100% !important; max-width: none !important; height: 100vh !important; }
.game-player-wrapper>div {
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-player-wrapper canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}
.game-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.game-info-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
}
.badge-category-page {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-weight: 500;
    transition: opacity var(--transition);
}
.badge-category-page:hover {
    color: #fff;
    opacity: 0.85;
}
.game-stats {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.game-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.description-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
}
.description-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.comments-section {
    margin-bottom: 2rem;
}
.comments-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.comment-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.comment-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.comment-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.comment-content {
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    color: var(--text);
}
.popular-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.popular-sidebar-header {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.popular-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.popular-sidebar-item:last-child {
    border-bottom: 0;
}
.popular-sidebar-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}
.popular-sidebar-thumb {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}
.popular-sidebar-thumb-placeholder {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1rem;
}
.popular-sidebar-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.popular-sidebar-views {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}
.login-prompt {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.login-prompt i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.login-prompt a {
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .game-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .game-stats {
        margin-left: 0;
        flex-wrap: wrap;
    }
}
.top3-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.top3-sidebar-item:last-child {
    border-bottom: 0;
}
.top3-sidebar-rank {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.top3-sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
}
.top3-sidebar-name {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top3-sidebar-pts {
    font-size: 0.78rem;
    color: var(--accent-orange);
    font-weight: 600;
    flex-shrink: 0;
}
/* ===== quiz.php ===== */
.quiz-hero {
    background: var(--hero-gradient);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
}
.quiz-hero h1 {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.75rem;
}
.quiz-hero p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}
.quiz-hero .hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
}
.hero-badge i { color: var(--accent); }

.quiz-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-decoration: none;
}
.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.quiz-card-played {
    opacity: 0.85;
}
.quiz-card-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}
.quiz-type-daily   { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }
.quiz-type-weekly  { background: rgba(210, 153, 29, 0.18); color: #e3b341; }
.quiz-type-monthly { background: rgba(163, 113, 247, 0.16); color: #a371f7; }

.quiz-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    background: linear-gradient(135deg, rgba(88,166,255,0.18), rgba(163,113,247,0.14));
    color: var(--accent);
    margin-bottom: 1rem;
}
.quiz-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.quiz-card-cat {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.quiz-card-cat i { margin-right: 0.25rem; }
.quiz-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.quiz-card-meta i { color: var(--accent-green); margin-right: 0.2rem; }
.quiz-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.quiz-card:hover .quiz-card-cta { background: var(--accent-hover); }
.quiz-card-played .quiz-card-cta {
    background: var(--bg-hover);
    color: var(--text-muted) !important;
    cursor: default;
}
.quiz-played-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.quiz-played-info i { color: var(--accent-green); }

.duel-section { margin-bottom: 2.5rem; }
.duel-section-title {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.25rem; font-weight: 800; margin-bottom: 1.2rem;
}
.duel-section-title i {
    color: #ff5f6d;
}
.duel-live-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #3fb950; display: inline-block;
    animation: pulseDot 1.6s infinite; margin-left: .35rem;
}
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:.25;} }

.duel-listing-card {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse at 90% -40%, rgba(255,120,100,.14), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    height: 100%;
    display: flex; flex-direction: column;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.duel-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,120,100,.6);
}
.duel-listing-tag {
    position: absolute; top: 1rem; right: 1rem; z-index: 2;
    font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    background: linear-gradient(135deg, #ff9d42, #ff5f6d); color: #fff;
    padding: .28rem .7rem; border-radius: 50px;
    box-shadow: 0 3px 10px rgba(255,110,80,.3);
}
.duel-listing-icon {
    width: 60px; height: 60px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: .95rem;
    background: linear-gradient(135deg, rgba(255,157,66,.22), rgba(255,95,109,.18));
    color: #ff7a52;
}
.duel-listing-cover {
    height: 150px; border-radius: var(--radius);
    overflow: hidden; margin-bottom: .95rem;
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(255,157,66,.15), rgba(255,95,109,.12));
    position: relative;
}
.duel-listing-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.duel-listing-title { font-size: 1.12rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.duel-listing-cat { font-size: .85rem; color: var(--text-muted); margin-bottom: .95rem; }
.duel-listing-meta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--text-muted); margin-bottom: 1.15rem;
}
.duel-listing-meta i { color: #ff7a52; margin-right: .2rem; }
.duel-listing-cta {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .62rem 1rem; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ff9d42, #ff5f6d);
    color: #fff !important; font-weight: 700; font-size: .9rem;
    box-shadow: 0 4px 14px rgba(255,110,90,.3);
    transition: transform var(--transition), box-shadow var(--transition);
}
.duel-listing-card:hover .duel-listing-cta {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,110,90,.42);
}
.duel-mode-2v2 .duel-listing-tag {
    background: linear-gradient(135deg, #58a6ff, #a371f7);
    box-shadow: 0 3px 10px rgba(120,120,255,.3);
}
.duel-mode-2v2 .duel-listing-icon {
    background: linear-gradient(135deg, rgba(88,166,255,.22), rgba(163,113,247,.18));
    color: #7aa7ff;
}
.duel-mode-2v2 .duel-listing-cover {
    background: linear-gradient(135deg, rgba(88,166,255,.15), rgba(163,113,247,.12));
}
.duel-mode-2v2 .duel-listing-meta i { color: #7aa7ff; }
.duel-mode-2v2 .duel-listing-cta {
    background: linear-gradient(135deg, #58a6ff, #a371f7);
    box-shadow: 0 4px 14px rgba(120,120,255,.3);
}
.duel-mode-2v2:hover .duel-listing-cta {
    box-shadow: 0 6px 20px rgba(130,130,255,.45);
}
.duel-live-info {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    font-size: .8rem; color: var(--text-muted); margin-top: .5rem;
}
.duel-live-info i { color: var(--accent-green); }
/* ===== quiz-play.php ===== */
.quiz-play-header {
    background: var(--hero-gradient);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.quiz-play-header h1 { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
.quiz-play-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.quiz-play-meta i { color: var(--accent); margin-right: 0.25rem; }

.qz-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.qz-progress-row .qz-count { color: var(--accent); }
.qz-progress {
    height: 8px;
    background: var(--bg-hover);
    border-radius: 50px;
    overflow: hidden;
}
.qz-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.qz-stage { position: relative; min-height: 320px; }

.qz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    animation: qzIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes qzIn {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qz-leaving { transition: opacity 0.25s ease, transform 0.25s ease; opacity: 0; transform: translateY(-14px) scale(0.99); pointer-events: none; }

.qz-num {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(88,166,255,0.12);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.qz-question {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.qz-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-hover);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    margin-bottom: 0.7rem;
    user-select: none;
}
.qz-option:hover { border-color: var(--accent); transform: translateX(3px); }
.qz-option .opt-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.18s ease;
}
.qz-option span.opt-text { color: var(--text); font-weight: 500; }
.qz-option.selected {
    border-color: var(--accent);
    background: rgba(88,166,255,0.09);
}
.qz-option.selected .opt-letter { background: var(--accent); border-color: var(--accent); color: #fff; }

.qz-option.is-locked { pointer-events: none; }
.qz-option.is-correct { border-color: var(--accent-green); background: rgba(63,185,80,0.12); }
.qz-option.is-correct .opt-letter { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.qz-option.is-wrong { border-color: var(--accent-red); background: rgba(248,81,73,0.12); animation: qzShake 0.35s ease; }
.qz-option.is-wrong .opt-letter { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.qz-option.is-dimmed { opacity: 0.45; }
@keyframes qzShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.qz-feedback {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-top: 1.25rem;
    font-weight: 600;
    animation: qzIn 0.3s ease;
}
.qz-feedback.show { display: flex; }
.qz-feedback i { font-size: 1.25rem; margin-top: 0.05rem; }
.qz-feedback.fb-ok { background: rgba(63,185,80,0.12); border: 1px solid rgba(63,185,80,0.4); color: var(--accent-green); }
.qz-feedback.fb-no { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.4); color: var(--accent-red); }
.qz-feedback small { display: block; font-weight: 500; color: var(--text-muted); margin-top: 0.15rem; }

.qz-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.btn-qz {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-qz:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-qz:not(:disabled) { cursor: pointer; }
.btn-qz-answer { background: var(--accent); color: #fff; }
.btn-qz-answer:hover:not(:disabled) { background: var(--accent-hover); }
.btn-qz-next { background: var(--accent-green); color: #fff; }
.btn-qz-next:hover { background: var(--accent-green-hover); }

/* Rezultat */
.qz-result { text-align: center; padding: 2.5rem 1.5rem; }
.qz-ring {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.25rem;
}
.qz-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.qz-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.qz-ring .ring-bg { stroke: var(--bg-hover); }
.qz-ring .ring-fg {
    stroke: url(#qzGrad);
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.qz-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.qz-ring-score { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.qz-ring-sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-top: 0.25rem; }
.qz-result-points {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(63,185,80,0.12);
    border: 1px solid rgba(63,185,80,0.4);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.qz-result-title { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 0.35rem; }
.qz-result-note { color: var(--text-muted); font-size: 0.92rem; }

.qz-breakdown { text-align: left; margin-top: 2rem; }
.qz-bd-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }
.qz-bd-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    animation: qzIn 0.35s ease both;
}
.qz-bd-item i { margin-top: 0.1rem; }
.qz-bd-ok i { color: var(--accent-green); }
.qz-bd-no i { color: var(--accent-red); }
/* ===== quiz-duel.php ===== */
.duel-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 20% -30%, rgba(255,170,60,0.22), transparent 55%),
        radial-gradient(ellipse at 85% -40%, rgba(136,84,255,0.25), transparent 50%),
        var(--hero-gradient);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.6rem 4.4rem 1.6rem 1.6rem;
    margin-bottom: 1.4rem;
}

.duel-sound-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.duel-sound-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.11);
    transform: scale(1.04);
}

.duel-sound-toggle.is-muted {
    color: var(--text-muted);
    opacity: 0.72;
}
.duel-hero h1 { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: 0.4rem; display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.duel-badge-live {
    font-size: .68rem; letter-spacing:.09em; text-transform:uppercase; font-weight:800;
    background: linear-gradient(135deg, #ff9d42, #ff5f6d); color:#fff;
    padding:.28rem .7rem; border-radius:50px; box-shadow:0 3px 12px rgba(255,110,80,.35);
}
.duel-meta { display:flex; gap:1.15rem; flex-wrap:wrap; color:var(--text-muted); font-size:.87rem; margin-bottom:.35rem; }
.duel-meta i { color: var(--accent); margin-right:.3rem; }

.duel-board {
    display:grid; grid-template-columns:1fr auto 1fr; align-items:stretch; gap:1rem;
    background: var(--bg-card); border:1px solid var(--border-light);
    border-radius: var(--radius-lg); padding:1.1rem; margin-bottom:1.4rem;
}
.duel-player {
    position:relative; border-radius: var(--radius); padding:1rem 1.1rem;
    background: var(--bg-hover); border:1.5px solid var(--border-light);
    display:flex; align-items:center; gap:.9rem; min-height:92px;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.duel-player.p-right { flex-direction: row-reverse; text-align:right; }
.duel-player.is-hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,166,255,.14); }
.duel-avatar {
    width:56px; height:56px; flex-shrink:0; border-radius:50%;
    background: linear-gradient(135deg,var(--accent),var(--accent-purple));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:800; font-size:1.25rem; overflow:hidden;
    border:2.5px solid rgba(255,255,255,.18);
}
.duel-avatar { position:relative; }
.duel-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.duel-p-info { min-width:0; flex:1; }
.duel-p-name { font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:1rem; }
.duel-p-score { font-size:1.65rem; font-weight:800; line-height:1.1; color:var(--accent); }
.duel-p-right .duel-p-score { color: var(--accent-purple); }
.duel-p-sub { font-size:.74rem; font-weight:600; color:var(--text-muted); }
.duel-vs {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.15rem;
}
.duel-vs-mark {
    width:54px; height:54px; border-radius:50%;
    background: linear-gradient(135deg,#ff9d42,#ff5f6d);
    display:flex; align-items:center; justify-content:center;
    font-weight:900; font-style:italic; font-size:1.05rem; color:#fff;
    box-shadow:0 6px 18px rgba(255,100,90,.35); animation: duelPulse 2.2s infinite;
}
@keyframes duelPulse {
    0%,100% { transform:scale(1); box-shadow:0 6px 18px rgba(255,100,90,.35); }
    50%     { transform:scale(1.07); box-shadow:0 8px 26px rgba(255,100,90,.5); }
}
.duel-vs-round { font-size:.72rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; }

.duel-team-col { display:flex; flex-direction:column; gap:.6rem; }
.duel-team-col .duel-player { min-height:72px; padding:.65rem .85rem; gap:.7rem; }
.duel-team-col .duel-avatar { width:42px; height:42px; font-size:1rem; }
.duel-team-col .duel-p-name { font-size:.88rem; }
.duel-team-col .duel-p-score { font-size:1.2rem; }
.duel-team-col .duel-p-sub { font-size:.68rem; }
.duel-lobby-count { margin-top:1rem; display:inline-flex; flex-direction:column; align-items:center; gap:.4rem; font-weight:800; }
.duel-lobby-count .lc-bar { width:180px; height:8px; border-radius:99px; background:var(--bg-hover); border:1px solid var(--border-light); overflow:hidden; }
.duel-lobby-count .lc-fill { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-purple)); transition:width .5s ease; }
.duel-team-score { flex-basis:100%; text-align:center; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }

.duel-stage { position:relative; min-height:340px; }
.duel-card {
    background: var(--bg-card); border:1px solid var(--border-light);
    border-radius: var(--radius-lg); padding:1.75rem;
    animation: dIn .45s cubic-bezier(.22,1,.36,1);
}
@keyframes dIn { from{opacity:0; transform:translateY(16px) scale(.985);} to{opacity:1; transform:none;} }

.duel-round-tag {
    display:inline-flex; align-items:center; gap:.45rem;
    font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em;
    color:var(--accent-purple); background:rgba(136,84,255,.13);
    padding:.32rem .8rem; border-radius:50px; margin-bottom:1rem;
}

.duel-timer-wrap { display:flex; justify-content:center; margin-bottom:1.25rem; }
.duel-timer {
    --pct: 0;
    width:86px; height:86px; border-radius:50%; position:relative;
    display:flex; align-items:center; justify-content:center;
    background: radial-gradient(closest-side, var(--bg-card) 79%, transparent 80% 100%),
        conic-gradient(var(--timer-color,#58a6ff) calc(var(--pct)*1%), var(--bg-hover) 0);
    transition: transform .15s ease;
}
.duel-timer.urgent { animation: dtick 1s infinite; }
@keyframes dtick { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
.duel-timer-sec { font-size:1.7rem; font-weight:800; color:var(--text); line-height:1; }
.duel-timer-lbl { font-size:.6rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); font-weight:700; }

.duel-question { font-size:clamp(1.02rem,2.4vw,1.28rem); font-weight:700; line-height:1.45; margin-bottom:1.4rem; text-align:center; }

.duel-option {
    display:flex; align-items:center; gap:.85rem;
    background:var(--bg-hover); border:1.5px solid var(--border-light);
    border-radius:var(--radius); padding:.85rem 1.1rem; margin-bottom:.7rem;
    cursor:pointer; user-select:none; transition:border-color .16s, background .16s, transform .16s;
}
.duel-option:not(.is-locked):hover { border-color:var(--accent); transform:translateX(3px); }
.duel-opt-letter {
    width:29px; height:29px; flex-shrink:0; border-radius:50%;
    border:1.5px solid var(--border); display:inline-flex; align-items:center; justify-content:center;
    font-size:.8rem; font-weight:800; color:var(--text-muted); transition:all .16s;
}
.duel-opt-text { font-weight:500; color:var(--text); }
.duel-option.mine-sel { border-color:var(--accent); background:rgba(88,166,255,.1); }
.duel-option.mine-sel .duel-opt-letter { background:var(--accent); border-color:var(--accent); color:#fff; }
.duel-option.reveal-ok { border-color:var(--accent-green); background:rgba(63,185,80,.13); }
.duel-option.reveal-ok .duel-opt-letter { background:var(--accent-green); border-color:var(--accent-green); color:#fff; }
.duel-option.reveal-no { border-color:var(--accent-red); background:rgba(248,81,73,.13); animation:dShake .35s; }
.duel-option.reveal-no .duel-opt-letter { background:var(--accent-red); border-color:var(--accent-red); color:#fff; }
.duel-option.is-locked { pointer-events:none; }
.duel-option.is-dimmed { opacity:.45; }
@keyframes dShake { 0%,100%{transform:none;} 25%{transform:translateX(-6px);} 75%{transform:translateX(6px);} }

.duel-waiting { text-align:center; padding:1.4rem .5rem .4rem; }
.duel-dots { display:inline-flex; gap:.4rem; margin-top:.7rem; }
.duel-dots span {
    width:10px; height:10px; border-radius:50%; background:var(--accent);
    opacity:.25; animation:ddot 1.2s infinite;
}
.duel-dots span:nth-child(2){animation-delay:.18s;} .duel-dots span:nth-child(3){animation-delay:.36s;}
@keyframes ddot { 0%,100%{opacity:.2; transform:translateY(0);} 40%{opacity:1; transform:translateY(-5px);} }
.duel-waiting h3 { font-weight:700; font-size:1.08rem; margin-bottom:.2rem; }
.duel-waiting p { color:var(--text-muted); font-size:.9rem; margin-bottom:0; }

.duel-chip {
    display:inline-flex; align-items:center; gap:.45rem; font-weight:700; font-size:.88rem;
    padding:.42rem .95rem; border-radius:50px; margin-top:1.1rem;
}
.duel-chip.ok { background:rgba(63,185,80,.13); border:1px solid rgba(63,185,80,.45); color:var(--accent-green); }
.duel-chip.no { background:rgba(248,81,73,.11); border:1px solid rgba(248,81,73,.45); color:var(--accent-red); }
.duel-chip.info { background:rgba(210,153,34,.12); border:1px solid rgba(210,153,34,.5); color:#e3b341; }

.duel-search { text-align:center; padding:2.8rem 1rem; }
.duel-radar {
    position:relative; width:130px; height:130px; margin:0 auto 1.4rem;
    border-radius:50%; border:2px solid var(--accent);
    display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:2.4rem;
}
.duel-radar::before, .duel-radar::after {
    content:''; position:absolute; inset:-2px; border-radius:50%; border:2px solid var(--accent);
    animation:dradar 2.4s ease-out infinite; opacity:0;
}
.duel-radar::after { animation-delay:1.2s; }
@keyframes dradar { 0%{transform:scale(.55); opacity:.85;} 100%{transform:scale(1.55); opacity:0;} }

.duel-result-banner { text-align:center; padding:2.2rem 1.2rem; }
.duel-countdown { text-align:center; padding:2.6rem 1.2rem; }
.cd-num {
    font-size:4.6rem; font-weight:900; line-height:1; margin:.6rem 0 .8rem;
    color:var(--accent-green); text-shadow:0 0 34px rgba(63,185,80,.45);
}
.cd-num.pop { animation:dPop .45s cubic-bezier(.34,1.56,.64,1); }
.duel-result-icon { font-size:3.2rem; margin-bottom:.6rem; animation:dPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes dPop { from{transform:scale(.3); opacity:0;} to{transform:scale(1); opacity:1;} }
.duel-result-title { font-size:1.5rem; font-weight:800; margin-bottom:.3rem; }
.duel-result-sub { color:var(--text-muted); font-size:.93rem; }
.duel-times {
    display:grid; grid-template-columns:1fr 1fr; gap:.8rem; max-width:430px; margin:1.5rem auto 0;
}
.duel-time-box { background:var(--bg-hover); border:1px solid var(--border-light); border-radius:var(--radius-sm); padding:.8rem .6rem; }
.duel-time-box.win { border-color:rgba(63,185,80,.5); }
.duel-time-box .tb-name { font-size:.76rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }
.duel-time-box .tb-val { font-size:1.15rem; font-weight:800; margin-top:.15rem; }
.tb-val.ok { color:var(--accent-green);} .tb-val.bad { color:var(--accent-red);}

.duel-final { text-align:center; padding:2.4rem 1.2rem; }
.duel-crown { font-size:3.6rem; color:#ffd43b; filter:drop-shadow(0 4px 14px rgba(255,200,60,.45)); animation:dPop .55s cubic-bezier(.34,1.56,.64,1); }
.duel-final-title { font-size:clamp(1.5rem,4vw,2rem); font-weight:800; margin:.5rem 0 .2rem; }
.duel-points-pill {
    display:inline-flex; align-items:center; gap:.5rem; font-weight:800; font-size:1.05rem;
    background:rgba(63,185,80,.13); border:1px solid rgba(63,185,80,.5); color:var(--accent-green);
    padding:.55rem 1.3rem; border-radius:50px; margin:.9rem 0 1.4rem;
}
.duel-actions { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; margin-top:1.6rem; }
.btn-duel {
    padding:.72rem 1.5rem; font-weight:700; border:none; border-radius:var(--radius-sm);
    cursor:pointer; transition:all .18s; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem;
}
.btn-duel-fire { background:linear-gradient(135deg,#ff9d42,#ff5f6d); color:#fff; box-shadow:0 5px 16px rgba(255,110,90,.35); }
.btn-duel-fire:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(255,110,90,.45); color:#fff; }
.btn-duel-ghost { background:var(--bg-hover); color:var(--text); border:1.5px solid var(--border-light); }
.btn-duel-ghost:hover { border-color:var(--accent); color:var(--text); }

@media (max-width:640px){
    .duel-board { grid-template-columns:1fr; gap:.6rem; }
    .duel-vs { flex-direction:row; gap:.6rem; }
    .duel-player.p-right { flex-direction:row; text-align:left; }
}
/* ===== top-players.php ===== */
.podium-section {
    margin-bottom: 3rem;
}
.podium-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem 1rem 0;
}
.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
}
.podium-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}
.podium-step-1 {
    height: 280px;
    background: linear-gradient(180deg, #ffd700 0%, #ffb800 100%);
    color: #5a3e00;
}
.podium-step-2 {
    height: 230px;
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #2a2a2a;
}
.podium-step-3 {
    height: 180px;
    background: linear-gradient(180deg, #cd7f32 0%, #a0522d 100%);
    color: #2a1a0a;
}
.podium-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: inherit;
}
.podium-rank {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.podium-username {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-word;
}
.podium-points {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 0.25rem;
}
.podium-crown {
    font-size: 2rem;
    margin-bottom: -0.5rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.leaderboard-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
    background: var(--bg-card);
}
.leaderboard-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}
.leaderboard-table tbody tr {
    transition: background var(--transition);
}
.leaderboard-table tbody tr:hover {
    background: var(--bg-hover);
}
.leaderboard-table tbody tr.current-user-row {
    background: rgba(var(--accent-rgb, 88, 166, 255), 0.1);
}
.leaderboard-table tbody tr.current-user-row:hover {
    background: rgba(var(--accent-rgb, 88, 166, 255), 0.15);
}
.leaderboard-table .rank-col {
    width: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}
.leaderboard-table .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}
.rank-badge-1 { background: #ffd700; color: #5a3e00; }
.rank-badge-2 { background: #c0c0c0; color: #2a2a2a; }
.rank-badge-3 { background: #cd7f32; color: #2a1a0a; }

.leaderboard-table .player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.leaderboard-table .player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
}
.leaderboard-table .player-name {
    font-weight: 600;
    color: var(--text);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--accent);
}

@media (max-width: 767.98px) {
    .podium-wrapper {
        gap: 0.75rem;
        padding: 1rem 0.5rem 0;
    }
    .podium-item {
        width: 110px;
    }
    .podium-step-1 { height: 200px; }
    .podium-step-2 { height: 160px; }
    .podium-step-3 { height: 130px; }
    .podium-avatar { width: 50px; height: 50px; font-size: 1.3rem; }
    .podium-rank { font-size: 1.2rem; }
    .podium-username { font-size: 0.85rem; }
    .leaderboard-table th,
    .leaderboard-table td { padding: 0.5rem 0.5rem; font-size: 0.85rem; }
    .leaderboard-table .player-avatar { width: 28px; height: 28px; font-size: 0.75rem; }
}
/* ===== search.php ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--accent);
}
.search-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.filters-bar .form-select,
.filters-bar .form-control {
    max-width: 200px;
}
.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.results-count strong {
    color: var(--text);
}
.page-link {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
.page-link:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text);
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-item.disabled .page-link {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-dim);
}
@media (max-width: 767.98px) {
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filters-bar .form-select,
    .filters-bar .form-control { max-width: 100%; }
}
/* ===== user.php ===== */
.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}
.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.profile-stats {
    display: flex;
    gap: 2rem;
}
.profile-stat {
    text-align: center;
}
.profile-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}
.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.profile-joined {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
@media (max-width: 575.98px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        justify-content: center;
    }
}
