/* ================================================
   GameHub — Clean & Modern Light Theme
   Fresh, airy, content-first design
   ================================================ */

/* ===== CSS Variables ===== */
:root {
    /* Brand colors — warm & approachable */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-bg: #eef2ff;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Surfaces — light & clean */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #eef2ff;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.logo:hover { color: var(--primary); }

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: transform var(--transition);
}
.logo:hover .logo-icon { transform: scale(1.08); }

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1.25rem;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.mobile-menu-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%, #ffffff 100%);
}

#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-floating-icons { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-typewriter {
    color: var(--primary);
}

.hero-cursor {
    font-weight: 300;
    color: var(--primary);
    animation: blink 1s step-end infinite;
    font-size: 3.2rem;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: floatPulse 3s ease-in-out infinite;
}

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

/* ===== Stats ===== */
.stats-section {
    padding: 2.5rem 1.5rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-bg);
}

.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.1px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-1px);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ===== Section Common ===== */
.section {
    padding: 4rem 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.3px;
}

/* ================================================
   Game Cards — Clean card style
   ================================================ */

.games-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.game-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.game-card:hover .game-card-image img { transform: scale(1.05); }

.game-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.game-card-badge.hot { background: var(--accent); }
.game-card-badge.new { background: var(--success); }
.game-card-badge:not(.hot):not(.new) { background: var(--info); }

.game-card-rating {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.game-card-info {
    padding: 1rem 1.1rem 1.1rem;
}

.game-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.game-card-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
}
.game-card-tag:first-child {
    background: var(--primary-bg);
    color: var(--primary);
}

.game-card-category {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: auto;
}

.game-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-play {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
}
.game-card-play svg {
    width: 18px;
    height: 18px;
    color: #fff;
    transform: translateX(1px);
}
.game-card:hover .game-card-play {
    transform: scale(1);
    opacity: 1;
}

/* Card color accents */
.game-card:nth-child(8n+1) .game-card-image { border-bottom: 3px solid var(--primary); }
.game-card:nth-child(8n+2) .game-card-image { border-bottom: 3px solid var(--info); }
.game-card:nth-child(8n+3) .game-card-image { border-bottom: 3px solid var(--success); }
.game-card:nth-child(8n+4) .game-card-image { border-bottom: 3px solid var(--accent); }
.game-card:nth-child(8n+5) .game-card-image { border-bottom: 3px solid var(--danger); }
.game-card:nth-child(8n+6) .game-card-image { border-bottom: 3px solid var(--primary-light); }
.game-card:nth-child(8n+7) .game-card-image { border-bottom: 3px solid var(--info); }
.game-card:nth-child(8n+8) .game-card-image { border-bottom: 3px solid var(--accent-light); }

/* ================================================
   MODULE 1: Hot Picks — Clean Card Carousel
   ================================================ */
.section-hotpicks {
    padding-top: 2.5rem;
}

.hotpicks-scroll {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.25rem 0 0.75rem;
}

.hotpick-card {
    position: relative;
    flex: 0 0 calc(33.333% - 0.84rem);
    min-width: 0;
    max-width: calc(33.333% - 0.84rem);
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.hotpick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hotpick-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hotpick-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hotpick-card:hover .hotpick-bg img { transform: scale(1.06); }

.hotpick-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.05) 0%,
        rgba(15, 23, 42, 0.3) 40%,
        rgba(15, 23, 42, 0.85) 75%,
        rgba(15, 23, 42, 0.95) 100%
    );
}

.hotpick-rank {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 3;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    opacity: 0.2;
    font-style: italic;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}
.hotpick-card:hover .hotpick-rank { opacity: 0.35; }

.hotpick-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hotpick-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 1.25rem 1.5rem;
}

.hotpick-rating {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hotpick-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.hotpick-tags {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.hotpick-tags span {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hotpick-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   MODULE 2: Popular Tags — Game Card Grid
   ================================================ */
.section-tags {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ================================================
   MODULE 3: New Arrivals — Clean Feature List
   ================================================ */
.section-newarrivals {
    padding-top: 2.5rem;
}

.newarrivals-list {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newarrival-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--transition);
    align-items: center;
    box-shadow: var(--shadow-xs);
}
.newarrival-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.newarrival-image {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
}
.newarrival-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.newarrival-item:hover .newarrival-image img { transform: scale(1.05); }

.newarrival-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: var(--success);
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.newarrival-meta-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}
.newarrival-rating {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
}
.newarrival-date {
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 500;
}

.newarrival-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 0.35rem;
    transition: color var(--transition);
}
.newarrival-item:hover .newarrival-title { color: var(--primary); }

.newarrival-tags {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}
.newarrival-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
}
.newarrival-item:hover .newarrival-tags span {
    background: var(--primary-bg);
    color: var(--primary);
}

.newarrival-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newarrival-stats {
    display: flex;
    gap: 1rem;
}
.newarrival-stats span {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== Responsive for 3 modules ===== */
@media (max-width: 1024px) {
    .newarrival-image { width: 160px; height: 120px; }
}

@media (max-width: 768px) {
    .hotpick-card { flex: 0 0 calc(50% - 0.625rem); max-width: calc(50% - 0.625rem); min-width: 0; height: 340px; }
    .hotpick-rank { font-size: 2.8rem; }
    .hotpick-title { font-size: 1.2rem; }

    .newarrival-item { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.75rem; }
    .newarrival-image { width: 100%; height: 160px; }
    .newarrival-item:hover { transform: translateY(-2px); }
}

@media (max-width: 480px) {
    .hotpick-card { flex: 0 0 100%; max-width: 100%; min-width: 0; height: 300px; }
    .hotpick-rank { font-size: 2.4rem; }
    .hotpick-title { font-size: 1.05rem; }

    .tag-list-item { padding: 0.7rem 0.9rem; gap: 0.7rem; }
    .tag-list-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .tag-list-name { font-size: 0.85rem; }

    .newarrival-image { height: 140px; }
}

/* ===== Tags Cloud ===== */
.tags-cloud {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}
.tag-item:hover,
.tag-item.active {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tag-item.lg { font-size: 1rem; padding: 0.5rem 1.4rem; font-weight: 700; }
.tag-item.md { font-size: 0.88rem; padding: 0.45rem 1.2rem; font-weight: 600; }
.tag-item.sm { font-size: 0.75rem; padding: 0.35rem 0.9rem; }

/* ===== Categories Sidebar ===== */
.categories-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

.categories-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.categories-sidebar h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}
.category-list li a:hover,
.category-list li a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.category-list li a .count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-full);
}

/* ===== Detail Page ===== */
.detail-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.detail-main { min-width: 0; }
.detail-sidebar { min-width: 0; }

.detail-banner {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
}
.detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header { margin-bottom: 1.2rem; }

.detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent);
    font-weight: 700;
}

.detail-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.detail-tags span {
    padding: 0.25rem 0.75rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.detail-description p { margin-bottom: 0.75rem; }

.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.feature-item:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.feature-item .icon { color: var(--success); font-size: 0.95rem; }

.detail-action {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== Sidebar Widgets ===== */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-widget h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-game-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}
.sidebar-game-item:last-child { border-bottom: none; }
.sidebar-game-item:hover { opacity: 0.75; }
.sidebar-game-item img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-subtle);
}

.sidebar-game-info h5 {
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-weight: 600;
}
.sidebar-game-info .meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== Page Header ===== */
.page-header {
    background: var(--bg-surface);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.4px;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== Content Page ===== */
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-page h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.content-page h2:first-child { margin-top: 0; }

.content-page h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.content-page p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.content-page ul, .content-page ol {
    color: var(--text-secondary);
    margin: 0.5rem 0 0.75rem 1.25rem;
}
.content-page li {
    margin-bottom: 0.35rem;
    list-style: disc;
    line-height: 1.75;
}
.content-page ol li { list-style: decimal; }

/* ===== Contact Page ===== */
.contact-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.contact-detail-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}
.contact-detail-text p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0;
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}
.contact-form h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition);
}
.form-group textarea { border-radius: var(--radius-md); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 2.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.pagination .active {
    background: var(--primary);
    color: #fff;
}
.pagination .dots { color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 3rem 1.5rem 1.25rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.footer-col p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; }

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 0.3rem 0;
    transition: all var(--transition);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { min-height: 60vh; padding: 3rem 1.2rem; }
    .hero h1 { font-size: 1.6rem; min-height: 2.4rem; }
    .hero-cursor { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-icon { font-size: 1.6rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
    }
    .nav-links a { border-radius: var(--radius-md); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; order: -1; }
    .nav-links { margin-left: 0; }

    .categories-layout { grid-template-columns: 1fr; }
    .categories-sidebar { position: static; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-banner { height: 200px; }
    .contact-layout { grid-template-columns: 1fr; }
    .detail-features { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
    .section-title { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.35rem; min-height: 2rem; }
    .hero-cursor { font-size: 1.35rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .detail-header h1 { font-size: 1.35rem; }
    .section-title { font-size: 1.15rem; }
}

/* ===== Nav Auth Buttons ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.btn-login:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Nav User (Logged In) with Dropdown ===== */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: background var(--transition);
}

.nav-user-info:hover {
    background: var(--bg-subtle);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-user-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.nav-user.open .nav-user-arrow {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.nav-user.open .nav-user-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    color: var(--text-primary);
}

.nav-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.nav-logout-btn {
    color: var(--text-secondary);
}

.nav-logout-btn:hover {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
        gap: 6px;
    }
    .nav-auth-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .nav-user-name {
        display: none;
    }
    .nav-user-arrow {
        display: none;
    }
    .nav-user-info {
        padding: 2px 4px;
    }
}

/* ===== Login Modal Styles ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg-card);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.form-group .error-text {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input {
    border-color: var(--danger);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    border-top-color: var(--text-inverse);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-box.error {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    user-select: none;
    transition: color var(--transition);
}

.password-toggle .toggle-icon:hover {
    color: #333;
}


/* ===== Comments Section ===== */
.comments-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.comments-count {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-item {
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
}

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

.comment-star {
    margin-left: auto;
    font-size: 0.82rem;
    color: #f59e0b;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    padding-left: calc(36px + 0.75rem);
}

.comments-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
}

.comments-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
    opacity: 0.4;
}

.comments-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.load-more-comments {
    margin-top: 1rem;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
}

.btn-load-more:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Comment Form ===== */
.comment-form {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-form-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.comment-form-rating {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.comment-form-rating label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-right: 0.6rem;
}

.rating-star {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--border-color);
    transition: color 0.2s, transform 0.15s;
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star:hover,
.rating-star.active {
    color: #f59e0b;
}

.comment-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 90px;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.comment-form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-comment-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.btn-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.comment-login-hint {
    text-align: center;
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.comment-login-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.comment-login-hint a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Toast Message ===== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.7rem 1.5rem;
    background: #333;
    color: #fff;
    border-radius: 8px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.toast-message.show {
    opacity: 1;
}

.toast-message.success {
    background: #27ae60;
}

.toast-message.error {
    background: #e74c3c;
}

.toast-message.warning {
    background: #f39c12;
}


.hero-section{
    padding-top: 20px!important;
}


/* ===== Share buttons & copy modal (theme-adaptive) ===== */
.geme-social-share p {
	color: #4f46e5;
	font-size: 16px;
	font-weight: 600;
	margin: 0 8px 0 0;
}
.geme-social-share a {
	display: -webkit-inline-flex;
	display: -ms-inline-flex;
	display: inline-flex;
	width: 34px;
	height: 34px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(79, 70, 229, .15);
	color: #4f46e5;
	border: 1px solid rgba(79, 70, 229, .3);
	margin-left: 10px;
	-webkit-transition: all .3s;
	transition: all .3s;
}
.geme-social-share a:hover {
	background: #4f46e5;
	color: #fff;
	border-color: transparent;
}
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 16, .82);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: #0c0c1a;
	border: 1px solid rgba(79, 70, 229, .4);
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 0 30px rgba(79, 70, 229, .4);
}
.share-copy-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9190a5;
	cursor: pointer;
	transition: color .3s;
}
.share-copy-close:hover {
	color: #4f46e5;
}
.share-copy-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #fff;
}
.share-copy-desc {
	margin: 0 0 16px;
	color: #9190a5;
	font-size: 14px;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(79, 70, 229, .45);
	border-radius: 8px;
	font-size: 14px;
	color: #fff;
	background: rgba(255, 255, 255, .06);
}
.share-copy-input:focus {
	outline: none;
	border-color: #4f46e5;
}
.share-copy-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #4f46e5 0%, #847eed 100%);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .3s;
}
.share-copy-btn:hover {
	opacity: .9;
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 13px;
	color: #4ade80;
	min-height: 18px;
}
