/**
 * PlayNexa — CrazyGames Style & Easy Games Design System
 * Inspired by https://www.crazygames.com/
 * Typography: Nunito (400, 600, 700, 800, 900)
 * Tokens: --brand-130, --brand-120, --brand-100, --brand-80, --brand-70,
 *         --brand-accent (#DA7F14), color-1 (#373952), color-6 (#878A9E),
 *         color-10 (#AAADBE), color-15 (#EFF0F7), color-16 (#FFFFFF)
 */

/* ─── Design Tokens ────────────────────────────────────────────── */
:root {
    /* Brand Palette */
    --brand-130: #492EB3;
    --brand-120: #5335CC;
    --brand-100: #6842FF; /* CrazyGames Signature Purple */
    --brand-80:  #8668FF;
    --brand-70:  #957BFF;
    --brand-60:  #A48EFF;
    --brand-50:  #B4A1FF;
    --brand-40:  #C3B3FF;
    --brand-30:  #D2C6FF;
    --brand-20:  #E1D9FF;
    --brand-accent: #DA7F14; /* Warm Conversion Amber */
    --brand-accent-h: #F29528;

    /* Base Neutral Tokens */
    --color-1:  #373952; /* Dark surface / Slate border */
    --color-6:  #878A9E; /* Text secondary */
    --color-10: #AAADBE; /* Text light / muted */
    --color-15: #EFF0F7; /* Surface light */
    --color-16: #FFFFFF; /* Pure white */

    /* Dark Mode Foundations (Default) */
    --bg: #100E20;          /* CrazyGames deep midnight background */
    --bg-alt: #16142A;      /* Sidebar and header background */
    --bg-card: #1C1936;     /* Game card & panel background */
    --bg-surface: #252246;  /* Raised surface (inputs, pill badges) */
    --bg-hover: #312C5B;    /* Hover surface */
    --border: rgba(135, 138, 158, 0.16);
    --border-hover: rgba(104, 66, 255, 0.45);
    --border-panel: #2D2952;

    --text: #FFFFFF;
    --text-secondary: #AAADBE;
    --text-muted: #878A9E;

    --accent: var(--brand-100);
    --accent-h: var(--brand-80);
    --accent-glow: rgba(104, 66, 255, 0.35);

    /* 4px Base Spacing */
    --space-1: 1px;
    --space-2: 2px;
    --space-3: 3px;
    --space-4: 4px;
    --space-5: 8px;
    --space-6: 10px;
    --space-7: 12px;
    --space-8: 16px;
    --space-9: 19px;
    --space-10: 24px;
    --space-12: 32px;
    --space-16: 48px;
    --space-20: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 30px;
    --radius-pill: 9999px;

    /* Shadows & Elevation */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: rgba(0, 0, 0, 0.5) 4px 4px 20px 0px;
    --shadow-brand: 0 8px 24px rgba(104, 66, 255, 0.35);
    --shadow-accent: 0 6px 20px rgba(218, 127, 20, 0.35);

    /* Motion */
    --duration-fast: 0.15s ease-in-out;
    --duration-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout dimensions */
    --header-h: 64px;
    --sidebar-w: 250px;
    --max-w: 1600px;
}

/* Light Mode */
[data-theme="light"] {
    --bg: #F3F4F9;
    --bg-alt: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-surface: #EFF0F7;
    --bg-hover: #E1D9FF;
    --border: #D8D6EE;
    --border-hover: #8668FF;
    --border-panel: #E1D9FF;

    --text: #17152B;
    --text-secondary: #373952;
    --text-muted: #878A9E;

    --shadow-md: 0 10px 30px rgba(55, 57, 82, 0.08);
    --shadow-brand: 0 8px 24px rgba(104, 66, 255, 0.22);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

.sidebar-ad-box {
    margin: 14px 4px;
    padding: 8px;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    overflow: hidden;
}

/* ─── CrazyGames Header ────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1200;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background var(--duration-base), border-color var(--duration-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-6);
    gap: var(--space-6);
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-shrink: 0;
}

/* Hamburger Menu Toggle Button */
.header-sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--text);
    transition: background var(--duration-fast);
}

.header-sidebar-toggle:hover {
    background: var(--bg-surface);
}

.hamburger-bar {
    width: 20px;
    height: 2.2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--duration-fast), opacity var(--duration-fast);
}

/* CrazyGames Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-130));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-brand);
    transition: transform var(--duration-fast);
}

.header-logo:hover .logo-badge {
    transform: rotate(-6deg) scale(1.06);
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
}

.logo-text span {
    color: var(--brand-100);
}

.header-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.header-user-pill {
    padding-left: 6px !important;
}

/* CrazyGames Centered Capsule Search */
.header-center {
    flex: 1;
    max-width: 580px;
    margin: 0 auto;
}

.crazy-header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    height: 42px;
    padding: 0 16px;
    transition: all var(--duration-fast);
}

.crazy-header-search:focus-within {
    border-color: var(--brand-100);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.crazy-header-search i.search-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 10px;
}

.crazy-header-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    width: 100%;
}

.crazy-header-search input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    user-select: none;
}

/* Search Dropdown / Autocomplete Popover */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 17, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(134, 104, 255, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 1px rgba(134, 104, 255, 0.5);
    display: none;
    overflow: hidden;
    z-index: 2100;
}

.search-dropdown.active {
    display: block;
    animation: fadeIn var(--duration-fast);
}

.search-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.search-results-list {
    max-height: 420px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: all var(--duration-fast);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(134, 104, 255, 0.12);
    padding-left: 18px;
}

.search-result-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3.5px;
    background: var(--brand-80);
    border-radius: 0 4px 4px 0;
}

.search-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.search-result-item:hover .search-result-thumb,
.search-result-item.selected .search-result-thumb {
    transform: scale(1.06);
    border-color: var(--brand-80);
}

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

.search-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.search-result-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(134, 104, 255, 0.16);
    color: #A78BFA;
    border: 1px solid rgba(134, 104, 255, 0.25);
    flex-shrink: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.search-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FBBF24;
    font-weight: 800;
}

.search-plays-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.search-dropdown-footer {
    padding: 10px 16px;
    background: rgba(10, 11, 18, 0.7);
    border-top: 1px solid var(--border);
    text-align: center;
}

.search-dropdown-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--brand-80);
    text-decoration: none;
    transition: color 0.15s ease;
}

.search-dropdown-footer a:hover {
    color: #fff;
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--duration-fast);
    text-decoration: none;
}

.header-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--brand-70);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.header-icon-btn i {
    font-size: 0.95rem;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
}

.theme-toggle:hover {
    color: var(--brand-80);
    border-color: var(--brand-100);
    background: var(--bg-hover);
    transform: rotate(15deg);
}

/* CrazyGames Login Pill Button */
.btn-crazy-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: all var(--duration-fast);
    border: none;
}

.btn-crazy-login:hover {
    background: linear-gradient(135deg, var(--brand-80), var(--brand-100));
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(104, 66, 255, 0.45);
    color: #FFFFFF;
}

/* ─── CrazyGames Left Sidebar / Main Menu ──────────────────────── */
.main-layout-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
}

.crazy-sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-base), width var(--duration-base);
}

.crazy-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.crazy-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.crazy-sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.crazy-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

/* Sidebar Section Headers */
.sidebar-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-6);
    padding: 18px 12px 6px;
    user-select: none;
}

/* Sidebar Navigation Items */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--duration-fast);
    position: relative;
    margin-bottom: 2px;
}

.sidebar-nav-item:hover {
    background: var(--bg-surface);
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.18), rgba(73, 46, 179, 0.12));
    color: var(--brand-70);
    border-left: 3px solid var(--brand-100);
    font-weight: 800;
}

.sidebar-nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

.sidebar-nav-item:hover i,
.sidebar-nav-item.active i {
    color: var(--brand-80);
}

.sidebar-nav-item .crazy-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-hot {
    background: rgba(218, 127, 20, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(218, 127, 20, 0.4);
}

/* ─── Categories with LARGE ICONS in Sidebar ───────────────────── */
.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    transition: all var(--duration-fast);
    margin-bottom: 3px;
}

.sidebar-category-item:hover {
    background: var(--bg-surface);
    transform: translateX(3px);
}

.sidebar-category-item.active {
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.2), rgba(73, 46, 179, 0.12));
    border-left: 3px solid var(--brand-100);
}

/* The Large Category Icon Container */
.category-large-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all var(--duration-fast);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar-category-item:hover .category-large-icon {
    transform: scale(1.1) rotate(4deg);
    border-color: var(--brand-100);
    box-shadow: var(--shadow-brand);
}

.category-name-wrapper {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-badge-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Sidebar Social Media Row */
.sidebar-social-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 4px;
    gap: 6px;
    flex-wrap: wrap;
}

.sidebar-social-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--duration-fast);
}

.sidebar-social-btn:hover {
    background: var(--brand-100);
    color: #FFFFFF;
    border-color: var(--brand-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* Sidebar Footer & Copyright */
.sidebar-footer {
    padding: 16px 12px 10px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Main Content Wrapper ─────────────────────────────────────── */
.main-layout-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: var(--space-6) var(--space-8) 60px;
    min-width: 0;
    transition: margin-left var(--duration-base);
}

/* Collapsed Desktop State */
body.sidebar-collapsed .crazy-sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-layout-content {
    margin-left: 0;
}

/* ─── CrazyGames Homepage Bento Grid & Items ───────────────────── */
.crazy-hero-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 190px);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.bento-card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-base);
    text-decoration: none;
    display: flex;
}

.bento-card-large:hover {
    transform: translateY(-4px);
    border-color: var(--brand-80);
    box-shadow: var(--shadow-md), 0 0 25px rgba(104, 66, 255, 0.35);
}

.bento-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-card-large:hover img {
    transform: scale(1.05);
}

.bento-large-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 14, 32, 0.95) 0%, rgba(16, 14, 32, 0.4) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.bento-large-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-brand);
    margin-bottom: 10px;
}

.bento-large-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.bento-large-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Medium Bento Cards */
.bento-card-small {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-base);
    text-decoration: none;
    display: flex;
}

.bento-card-small:hover {
    transform: translateY(-4px);
    border-color: var(--brand-80);
    box-shadow: var(--shadow-md), 0 0 20px rgba(104, 66, 255, 0.25);
}

.bento-card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-card-small:hover img {
    transform: scale(1.08);
}

.bento-small-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 14, 32, 0.9) 0%, rgba(16, 14, 32, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.bento-small-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-small-meta {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

/* ─── CrazyGames Shelves / Section Rows ─────────────────────────── */
.crazy-shelf {
    margin-bottom: 36px;
}

.shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.shelf-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shelf-title i {
    color: var(--brand-80);
    font-size: 1.2rem;
}

.shelf-link {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-80);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration-fast);
}

.shelf-link:hover {
    color: var(--brand-60);
    transform: translateX(3px);
}

/* ─── CrazyGames Signature Game Grid & Cards ───────────────────── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
}

.game-grid-dense {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration-base);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--brand-80);
    box-shadow: var(--shadow-md), 0 0 20px rgba(104, 66, 255, 0.28);
}

.game-card-img {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    background: var(--bg-surface);
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card-img img {
    transform: scale(1.1);
}

/* Hover play overlay */
.game-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 14, 32, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-brand);
    transform: scale(0.85);
    transition: transform var(--duration-fast);
}

.game-card:hover .play-btn-circle {
    transform: scale(1);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-badge-new {
    background: rgba(16, 185, 129, 0.95);
    color: #FFFFFF;
}

.card-badge-hot {
    background: rgba(218, 127, 20, 0.95);
    color: #FFFFFF;
}

.card-badge-featured {
    background: rgba(104, 66, 255, 0.95);
    color: #FFFFFF;
}

.game-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.game-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.game-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── Ads Slots Placements ─────────────────────────────────────── */
.ad-slot-container {
    margin: 20px auto;
    max-width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(28, 25, 54, 0.4);
    border: 1px dashed rgba(135, 138, 158, 0.22);
    padding: 10px;
    transition: border-color var(--duration-fast);
}

.ad-slot-container:hover {
    border-color: rgba(104, 66, 255, 0.35);
}

.ad-slot-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    user-select: none;
}

.ad-slot-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: auto;
}

.ad-slot-content iframe,
.ad-slot-content ins,
.ad-slot-content img {
    max-width: 100% !important;
}

/* ─── AEO / FAQ Accordion ──────────────────────────────────────── */
.aeo-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 36px 0 20px;
}

.aeo-header {
    margin-bottom: 20px;
}

.aeo-header h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aeo-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.faq-card:hover {
    border-color: var(--brand-80);
}

.faq-question {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question i {
    color: var(--brand-80);
    transition: transform var(--duration-fast);
}

details[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 18px 16px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
    border-top: 1px solid rgba(135, 138, 158, 0.1);
    padding-top: 12px;
}

/* ─── Responsive Adjustments ───────────────────────────────────── */
@media (max-width: 1280px) {
    .crazy-hero-bento {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .crazy-sidebar {
        transform: translateX(-100%);
        width: 280px;
        top: 0;
        z-index: 2000;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    }

    .crazy-sidebar.open {
        transform: translateX(0);
    }

    .crazy-sidebar-backdrop.active {
        display: block;
    }

    .sidebar-mobile-header {
        display: flex !important;
    }

    .main-layout-content {
        margin-left: 0 !important;
        padding: 16px 16px 60px;
    }

    .crazy-hero-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .bento-card-large {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 260px;
    }

    .bento-card-small {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .header-center.mobile-expanded {
        display: block;
        position: fixed;
        top: 10px;
        left: 12px;
        right: 12px;
        max-width: none;
        z-index: 3000;
    }

    .header-icon-btn span {
        display: none;
    }

    .header-icon-btn {
        padding: 0 10px;
    }

    .crazy-hero-bento {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bento-card-large {
        grid-column: 1 / 2;
        height: 220px;
    }

    .bento-card-small {
        height: 140px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card-info {
        padding: 8px 10px;
    }

    .game-card-title {
        font-size: 13px;
    }
}

/* ─── Filter Tabs & Pills ───────────────────────────────────────── */
.filter-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--duration-fast);
}

.filter-pill:hover {
    color: var(--text);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    box-shadow: var(--shadow-brand);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-pill.active i {
    color: #FFFFFF;
}

.filter-pill i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

/* ─── Modern Pagination ────────────────────────────────────────── */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    list-style: none;
    margin: 0;
}

.page-item {
    display: inline-flex;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--duration-fast);
}

.page-link:hover:not(.active):not(.page-link-dots) {
    background: var(--bg-hover);
    color: var(--text);
    transform: translateY(-1px);
}

.page-link.active {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    box-shadow: var(--shadow-brand);
    cursor: default;
}

.page-item.disabled .page-link {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link-prev, .page-link-next {
    gap: 6px;
    padding: 0 14px;
}

.page-link-dots {
    cursor: default;
    color: var(--text-muted);
}

/* ─── Single Game Page (Easy Games Design System) ───────────────── */
.game-view-container {
    padding-top: 10px;
    padding-bottom: 50px;
}

.game-stage-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: all var(--duration-base);
}

.game-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 480px;
    background: #000000;
    overflow: hidden;
}

.game-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Theater Mode handled dynamically in game view */

/* Game Action Bar Under Player */
.game-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}

.game-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 250px;
}

.game-bar-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.game-bar-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-bar-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.game-bar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.game-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.game-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--duration-fast);
    text-decoration: none;
}

.game-act-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.game-act-btn.favorited {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
    color: #EF4444;
}

.game-act-btn.favorited i {
    color: #EF4444;
}

.game-act-btn-primary {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-120));
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: var(--shadow-brand);
}

.game-act-btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-80), var(--brand-100));
    color: #FFFFFF;
}

/* Two Column Details Grid */
.game-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 36px;
}

@media (max-width: 1024px) {
    .game-details-grid {
        grid-template-columns: 1fr;
    }
}

.game-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.game-section-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-section-title i {
    color: var(--brand-80);
}

/* Interactive Controls Guide */
.controls-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
}

.control-keys {
    display: flex;
    align-items: center;
    gap: 6px;
}

kbd.key-cap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--bg-card);
    border: 1px solid var(--color-1);
    border-bottom: 3px solid var(--color-1);
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    color: var(--brand-60);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    user-select: none;
}

/* Specifications Table */
.game-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.spec-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stars Rating */
.stars {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star {
    font-size: 1.6rem;
    color: var(--color-1);
    transition: color var(--duration-fast), transform var(--duration-fast);
}

.star.filled {
    color: #FBBF24;
}

.star:hover {
    transform: scale(1.15);
}

.rating-breakdown {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-surface);
    border-radius: 100px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #DA7F14);
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* Comments */
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 85px;
    outline: none;
    transition: border-color var(--duration-fast);
}

.comment-form textarea:focus {
    border-color: var(--brand-100);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-130));
    color: #FFFFFF;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

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

.comment-author {
    font-weight: 800;
    color: var(--text);
    font-size: 14px;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

.comment-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
}

/* Similar Games Sidebar List */
.similar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--duration-fast);
    margin-bottom: 10px;
}

.similar-card:hover {
    background: var(--bg-hover);
    border-color: var(--brand-100);
    transform: translateX(3px);
}

.similar-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.similar-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

/* ─── Modern Content Footer ────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 48px 40px 28px;
}

.footer-inner {
    max-width: 100%;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 380px;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}

.footer-badge i {
    color: var(--brand-80);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-links a {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col-links a:hover {
    color: var(--brand-70);
    transform: translateX(2px);
}

.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.footer-legal-links a:hover {
    color: var(--brand-80);
}

/* ─── Modern Category Grid & Cards (Easy Games / CrazyGames Style) ───── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

@media (min-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 16px;
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(104, 66, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-fast);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-80);
    background: var(--bg-surface);
    box-shadow: 0 10px 24px -6px rgba(104, 66, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.category-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.16), rgba(73, 46, 179, 0.08));
    border: 1px solid rgba(134, 104, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 10px;
    transition: transform var(--duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-card-icon {
    transform: scale(1.15) rotate(4deg);
    border-color: var(--brand-80);
    box-shadow: 0 4px 16px rgba(104, 66, 255, 0.3);
}

.category-card-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color var(--duration-fast);
}

.category-card:hover .category-card-name {
    color: #FFFFFF;
}

.category-card-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all var(--duration-fast);
}

.category-card:hover .category-card-count {
    color: var(--brand-70);
    border-color: rgba(134, 104, 255, 0.4);
    background: rgba(104, 66, 255, 0.12);
}

/* ─── Mobile Bottom Navigation (Strictly hidden on Desktop) ─────────── */
.mobile-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(18, 17, 30, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 8px 12px;
        max-width: 480px;
        margin: 0 auto;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        transition: color var(--duration-fast);
        padding: 6px 10px;
        border-radius: var(--radius-sm);
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--brand-80);
    }

    body {
        padding-bottom: 70px;
    }
}

/* ─── Global Button Components ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.4;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-130) 100%);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px -2px rgba(104, 66, 255, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-80) 0%, var(--brand-120) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -2px rgba(104, 66, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 15.5px;
    border-radius: var(--radius-sm);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 6px;
}

/* ─── Contact Page (Easy Games / CrazyGames Style) ─────────────── */
.contact-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.contact-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(104, 66, 255, 0.12);
    border: 1px solid rgba(134, 104, 255, 0.3);
    color: var(--brand-80);
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 10px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

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

/* Contact Main Card (Form) */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at top right, rgba(104, 66, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.contact-form-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-title i {
    color: var(--brand-80);
}

.contact-form-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

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

.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.contact-label span.req {
    color: var(--brand-80);
    margin-left: 2px;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    outline: none;
    transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.contact-input:hover,
.contact-textarea:hover {
    border-color: rgba(135, 138, 158, 0.3);
    background: var(--bg-hover);
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--brand-100);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(104, 66, 255, 0.22), 0 4px 16px rgba(104, 66, 255, 0.12);
}

.contact-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Contact Submit Button */
.contact-submit-btn {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-130) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(104, 66, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn i {
    font-size: 15px;
    transition: transform var(--duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, var(--brand-80) 0%, var(--brand-120) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -4px rgba(104, 66, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.contact-submit-btn:hover i {
    transform: translateX(4px) translateY(-2px);
}

.contact-submit-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
    box-shadow: 0 4px 14px -2px rgba(104, 66, 255, 0.4);
}

/* Contact Side Cards (Info Cards) */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-decoration: none;
    transition: all var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(104, 66, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-80);
    background: var(--bg-surface);
    box-shadow: 0 12px 28px -6px rgba(104, 66, 255, 0.25);
}

.contact-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.16), rgba(73, 46, 179, 0.08));
    border: 1px solid rgba(134, 104, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-80);
    flex-shrink: 0;
    transition: transform var(--duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-info-card:hover .contact-icon-bubble {
    transform: scale(1.1) rotate(4deg);
    border-color: var(--brand-80);
    box-shadow: 0 4px 14px rgba(104, 66, 255, 0.3);
}

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

.contact-info-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.contact-info-value {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--brand-70);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-info-card:hover .contact-info-value {
    color: #FFFFFF;
}

.contact-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(104, 66, 255, 0.12);
    border: 1px solid rgba(134, 104, 255, 0.25);
    color: var(--brand-70);
    margin-top: 4px;
}

/* Quick help notice card */
.contact-notice-card {
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.08), rgba(22, 20, 42, 0.8));
    border: 1px dashed rgba(134, 104, 255, 0.35);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 4px;
}

.contact-notice-card i {
    font-size: 22px;
    color: var(--brand-80);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-notice-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-notice-text strong {
    color: var(--text);
}


