/* ============================================
   DivY Online - Default Theme
   Dark Gaming Theme
   ============================================ */

:root {
    --primary: #6c5ce7;
    --primary-hover: #5a4bd6;
    --primary-light: rgba(108, 92, 231, 0.15);
    --secondary: #00cec9;
    --secondary-hover: #00b5b0;
    --accent: #fd79a8;
    --accent-hover: #e56892;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #74b9ff;

    --bg-body: #0a0a1a;
    --bg-header: rgba(10, 10, 26, 0.95);
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3e;
    --bg-input: #1a1a3e;
    --bg-footer: #080816;

    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c80;
    --text-white: #ffffff;

    --border-color: rgba(108, 92, 231, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(108, 92, 231, 0.3);
    --glow-secondary: 0 0 20px rgba(0, 206, 201, 0.3);

    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Rajdhani', 'Segoe UI', sans-serif;

    --transition: all 0.3s ease;
    --header-height: 70px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.main-nav a i {
    display: none;
}

.main-nav a {
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-white);
    background: var(--primary-light);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

.user-dropdown-menu .logout-link:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher .current-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-switcher .current-lang:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.lang-switcher .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 140px;
    z-index: 100;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lang-dropdown a:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

/* Theme Switcher */
.theme-toggle {
    padding: 0.4rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Settings Floating Box */
.settings-float-box {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.15), 0 0 12px rgba(108, 92, 231, 0.1);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.settings-float-box:hover {
    box-shadow: 0 4px 32px rgba(108, 92, 231, 0.25), 0 0 20px rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
}

.settings-float-box .lang-switcher .lang-dropdown {
    top: calc(100% + 4px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 26, 0.7) 0%,
        rgba(10, 10, 26, 0.4) 50%,
        rgba(10, 10, 26, 0.9) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-rates {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.rate-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 100px;
}

.rate-badge .rate-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.rate-badge .rate-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-white);
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
    color: var(--text-white);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-body);
    transform: translateY(-2px);
    box-shadow: var(--glow-secondary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-white);
    border-color: var(--accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(253, 121, 168, 0.3);
    color: var(--text-white);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white);
    border-color: var(--danger);
}

.btn-success {
    background: var(--success);
    color: var(--text-white);
    border-color: var(--success);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card .card-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* ============================================
   RANKING
   ============================================ */

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ranking-tab {
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-tab:hover {
    color: var(--text-white);
    background: rgba(108, 92, 231, 0.08);
}

.ranking-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.4);
}

/* Podium */
.ranking-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: end;
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.podium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}

.podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.podium-card:hover::before { opacity: 1; }

/* Gold - 1st */
.podium-gold {
    border-color: rgba(255, 215, 0, 0.25);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.podium-gold::before { background: linear-gradient(90deg, transparent, #ffd700, transparent); opacity: 1; }
.podium-gold .podium-medal { color: #ffd700; font-size: 2.2rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
.podium-gold .podium-rank { color: #ffd700; }

/* Silver - 2nd */
.podium-silver { border-color: rgba(192, 192, 192, 0.2); }
.podium-silver::before { background: linear-gradient(90deg, transparent, #c0c0c0, transparent); }
.podium-silver .podium-medal { color: #c0c0c0; font-size: 1.8rem; }
.podium-silver .podium-rank { color: #c0c0c0; }

/* Bronze - 3rd */
.podium-bronze { border-color: rgba(205, 127, 50, 0.2); }
.podium-bronze::before { background: linear-gradient(90deg, transparent, #cd7f32, transparent); }
.podium-bronze .podium-medal { color: #cd7f32; font-size: 1.8rem; }
.podium-bronze .podium-rank { color: #cd7f32; }

.podium-medal { margin-bottom: 0.75rem; }

.podium-rank {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.podium-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.podium-gold .podium-name { font-size: 1.35rem; }

.podium-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.podium-stat {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.podium-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ranking Card */
.ranking-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ranking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ranking-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.ranking-card-header h3 i { color: var(--primary); }

.ranking-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(108, 92, 231, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Ranking Table */
.ranking-table-wrap { overflow-x: auto; }

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(108, 92, 231, 0.04);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.ranking-table .th-rank { width: 60px; text-align: center; }

.ranking-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(108, 92, 231, 0.04);
}

.ranking-table tbody tr:last-child { border-bottom: none; }

.ranking-table tbody tr:hover {
    background: rgba(108, 92, 231, 0.04);
}

.ranking-table tbody tr.rank-top {
    background: rgba(108, 92, 231, 0.03);
}

.ranking-table td {
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.ranking-table .rank-number {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Rank Medals */
.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
}

.rank-medal-1 { color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.rank-medal-2 { color: #c0c0c0; background: rgba(192, 192, 192, 0.1); }
.rank-medal-3 { color: #cd7f32; background: rgba(205, 127, 50, 0.1); }

.ranking-table .player-name {
    font-weight: 600;
    color: var(--text-white);
}

.guild-icon {
    color: var(--primary);
    margin-right: 0.35rem;
    opacity: 0.7;
}

.job-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.job-icon { color: var(--primary); opacity: 0.6; font-size: 0.85rem; }

.level-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.master-name { color: var(--secondary); font-weight: 500; }

.penya-cell { color: var(--warning); font-weight: 600; white-space: nowrap; }
.penya-icon { opacity: 0.7; margin-right: 0.2rem; }

/* Ranking Empty State */
.ranking-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.ranking-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.ranking-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.2;
}

/* Responsive Ranking */
@media (max-width: 768px) {
    .ranking-podium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .podium-gold { order: -1; }
    .ranking-tabs {
        width: 100%;
        justify-content: center;
    }
    .ranking-tab { padding: 0.55rem 1rem; font-size: 0.82rem; }
    .ranking-card-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c6c80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Auth Forms */
.auth-container {
    max-width: 460px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-white);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(214, 48, 49, 0.1);
    border-color: rgba(214, 48, 49, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.1);
    border-color: rgba(253, 203, 110, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.3);
    color: var(--info);
}

/* ============================================
   SHOP GRID
   ============================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(253, 121, 168, 0.15);
}

.shop-card .item-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 1.5rem;
    background: rgba(108, 92, 231, 0.05);
}

.shop-card .item-info {
    padding: 1.25rem;
}

.shop-card .item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.shop-card .item-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.shop-card .item-price small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   ARCADE SECTION
   ============================================ */

/* Split layout: list (left) + content box (right) */
.arcade-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Left: Games list */
.arcade-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.arcade-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.arcade-list-item:last-of-type { border-bottom: none; }
.arcade-list-item:hover { background: var(--primary-light); color: var(--text-white); }
.arcade-list-item.active {
    background: var(--primary);
    color: #fff;
}
.arcade-list-item.active .arcade-list-icon { color: #fff !important; }
.arcade-list-item.active .arcade-list-arrow { color: #fff; }

.arcade-list-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
.arcade-list-name { flex: 1; }
.arcade-list-arrow { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }

.arcade-list-reward {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.arcade-list-reward .reward-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.arcade-list-reward .reward-switcher {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.arcade-list-reward .reward-btn {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.arcade-list-reward .reward-btn:hover { color: var(--text-white); }
.arcade-list-reward .reward-btn.active { background: var(--primary); color: #fff; }

/* Right: Content box */
.arcade-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-height: 500px;
    position: relative;
}

/* Placeholder */
.arcade-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: var(--text-muted);
    gap: 1rem;
}

.arcade-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

.arcade-placeholder p {
    font-size: 1rem;
}

/* Game info panel */
.arcade-info {
    padding: 2rem;
}

.arcade-info-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.arcade-info-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arcade-info-header h2 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}

.arcade-info-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Rewards display */
.arcade-info-rewards {
    margin-bottom: 1.5rem;
}

.arcade-info-rewards h4,
.arcade-info-top3 h4,
.arcade-info-stats h4,
.arcade-info-ranking h4 {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arcade-info-reward-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.arcade-reward-tag {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arcade-reward-tag.win { background: rgba(46, 213, 115, 0.12); color: var(--success); }
.arcade-reward-tag.draw { background: rgba(255, 183, 77, 0.12); color: var(--accent); }
.arcade-reward-tag.loss { background: rgba(231, 76, 60, 0.12); color: var(--danger); }

/* Top 3 weekly prizes */
.arcade-info-top3 {
    margin-bottom: 1.5rem;
}

.arcade-top3-row {
    display: flex;
    gap: 0.75rem;
}

.arcade-top3 {
    padding: 0.4rem 0.9rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arcade-top3.gold   { background: rgba(255, 215, 0, 0.1);  color: #FFD700; }
.arcade-top3.silver { background: rgba(192, 192, 192, 0.1); color: #C0C0C0; }
.arcade-top3.bronze { background: rgba(205, 127, 50, 0.1);  color: #CD7F32; }

/* Stats row */
.arcade-info-stats {
    margin-bottom: 1.5rem;
}

.arcade-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.arcade-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    min-width: 70px;
    background: var(--bg-input);
}

.arcade-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.arcade-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.arcade-stat.win .arcade-stat-num    { color: var(--success); }
.arcade-stat.draw .arcade-stat-num   { color: var(--accent); }
.arcade-stat.loss .arcade-stat-num   { color: var(--danger); }
.arcade-stat.earned .arcade-stat-num { color: var(--secondary); }

/* Ranking */
.arcade-info-ranking {
    margin-bottom: 1.5rem;
}

.arcade-ranking-list { padding: 0; }

.arcade-rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.arcade-rank-item:last-child { border-bottom: none; }
.arcade-rank-item.medal-1 { background: rgba(255, 215, 0, 0.05); }
.arcade-rank-item.medal-2 { background: rgba(192, 192, 192, 0.05); }
.arcade-rank-item.medal-3 { background: rgba(205, 127, 50, 0.05); }

.arcade-rank-pos  { width: 28px; text-align: center; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.arcade-rank-name { flex: 1; font-weight: 500; color: var(--text-white); }

.arcade-rank-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.arcade-rank-pts    { font-weight: 600; color: var(--secondary); }
.arcade-rank-reward { font-size: 0.75rem; font-weight: 600; color: var(--accent); flex-shrink: 0; }

.arcade-ranking-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Play button */
.arcade-info-play {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.arcade-info-play .btn-lg {
    padding: 0.75rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lobby Browser */
.arcade-lobby-browser { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.arcade-lobby-browser h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.arcade-lobby-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 200px; overflow-y: auto; }
.arcade-lobby-empty { text-align: center; color: var(--text-muted); padding: 0.8rem 0; font-size: 0.85rem; margin: 0; }
.arcade-lobby-item {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem;
    background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 0.8rem; transition: border-color 0.2s;
}
.arcade-lobby-item:hover { border-color: var(--primary); }
.arcade-lobby-game { font-weight: 600; color: var(--text); white-space: nowrap; }
.arcade-lobby-host { color: var(--text-muted); white-space: nowrap; }
.arcade-lobby-time { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; white-space: nowrap; }
.arcade-lobby-join-btn { margin-left: 0.4rem; flex-shrink: 0; }

/* Game area (playing state) */
.arcade-game-area {
    padding: 1.5rem;
}

.arcade-game-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.arcade-game-topbar-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 600;
}

/* Morpion Board */
.morpion-status {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
    text-align: center;
}

.morpion-status.status-win  { color: var(--success); }
.morpion-status.status-loss { color: var(--danger); }
.morpion-status.status-draw { color: var(--accent); }

.morpion-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 280px;
    margin: 0 auto 1.25rem;
    aspect-ratio: 1;
}

.morpion-cell {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-white);
    aspect-ratio: 1;
}

.morpion-cell:hover { border-color: var(--primary); background: var(--primary-light); }
.morpion-cell.mark-x { color: var(--secondary); }
.morpion-cell.mark-o { color: var(--danger); }

.morpion-cell.win {
    border-color: var(--success);
    background: rgba(46, 213, 115, 0.1);
    animation: morpionPulse 0.5s ease;
}

@keyframes morpionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.morpion-actions { margin-top: 0.5rem; text-align: center; }

.morpion-reward-popup {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    animation: rewardSlideIn 0.4s ease;
}

.morpion-reward-popup.show.win {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.morpion-reward-popup.show.draw {
    background: rgba(255, 183, 77, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 183, 77, 0.3);
}

@keyframes rewardSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reward modes (AI vs PvP) */
.arcade-reward-modes { display: flex; flex-direction: column; gap: 0.75rem; }
.arcade-reward-mode { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.arcade-reward-mode-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); min-width: 100px; display: flex; align-items: center; gap: 0.4rem; }
.arcade-reward-mode-label .fa-robot { color: var(--text-secondary); }
.arcade-reward-mode-label .fa-users { color: var(--secondary); }

/* Play buttons */
.arcade-info-play { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border-color); display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.arcade-info-play .btn-lg { padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; }

/* Mode badge in topbar */
.arcade-game-topbar-mode { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--border-radius-sm); }
.arcade-game-topbar-mode.mode-ai { background: var(--bg-input); color: var(--text-secondary); }
.arcade-game-topbar-mode.mode-pvp { background: rgba(0, 206, 201, 0.15); color: var(--secondary); }

/* PvP Search */
.arcade-pvp-search { display: flex; align-items: center; justify-content: center; min-height: 350px; }
.arcade-pvp-search-inner { text-align: center; color: var(--text-muted); }
.arcade-pvp-search-inner i.fa-circle-notch { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; display: block; }
.arcade-pvp-search-inner p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* PvP Header */
.arcade-pvp-header { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 0.75rem 1rem; margin-bottom: 1rem; background: var(--bg-input); border-radius: var(--border-radius-sm); }
.pvp-player { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.pvp-you { color: var(--secondary); }
.pvp-opp { color: var(--danger); }
.pvp-vs { font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: var(--text-muted); padding: 0.15rem 0.5rem; background: var(--bg-card); border-radius: 4px; }

@media (max-width: 900px) {
    .arcade-split {
        grid-template-columns: 1fr;
    }
    .arcade-list {
        display: flex;
        flex-wrap: wrap;
    }
    .arcade-list-item {
        flex: 1;
        min-width: 120px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        justify-content: center;
    }
    .arcade-list-item:last-of-type { border-right: none; }
    .arcade-list-arrow { display: none; }
    .arcade-list-reward { width: 100%; border-top: 1px solid var(--border-color); }
    .arcade-category-header { display: none; }
}

/* Category headers in game list */
.arcade-category-header {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}

/* Coming soon badge */
.arcade-list-item.coming-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.coming-soon-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--bg-input);
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Private Room UI */
.arcade-private-room {
    display: flex; align-items: center; justify-content: center; min-height: 350px;
}
.arcade-private-inner { text-align: center; color: var(--text-secondary); }
.private-room-code {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: var(--secondary);
    background: var(--bg-input);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 1rem 0;
    border: 2px dashed var(--border-color);
}
.private-room-code + .btn { vertical-align: middle; }
.private-room-join .form-control {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    max-width: 250px;
    margin: 0 auto;
}
.private-room-join .text-danger { font-size: 0.85rem; margin-top: 0.5rem; }

/* Connect 4 Board */
#c4-board {
    display: flex;
    gap: 4px;
    max-width: 380px;
    margin: 0 auto 1rem;
    background: #1a5fb4;
    padding: 8px;
    border-radius: var(--border-radius);
}
.c4-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}
.c4-col:hover { background: rgba(255,255,255,0.08); }
.c4-cell {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bg-card);
    transition: background 0.2s;
    position: relative;
}
.c4-cell.piece-red { background: #e74c3c; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2); }
.c4-cell.piece-yellow { background: #f1c40f; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2); }
.c4-cell.win {
    animation: morpionPulse 0.5s ease;
    box-shadow: 0 0 0 3px var(--success), inset 0 -3px 0 rgba(0,0,0,0.2);
}

/* =============================================
   UNO — 3D Engine
   ============================================= */
#game-uno { max-width: 960px; margin: 0 auto; }
/* 3D canvas wrapper */
.uno-3d-wrapper {
    position: relative; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.05);
    background: #0a1a10;
    line-height: 0;
}
#uno-canvas {
    display: block; width: 100%; max-width: 960px;
    border-radius: 14px;
    touch-action: none;
}
/* HUD overlay (sound toggle) */
.uno-3d-hud {
    position: absolute; top: 0.5rem; right: 0.5rem; z-index: 5;
    pointer-events: none;
}
.uno-3d-hud > * { pointer-events: auto; }
/* Actions bar */
.uno-actions {
    display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; align-items: center;
}
.uno-actions .btn { min-width: 80px; }
/* UNO call button */
#uno-call-btn {
    background: #e74c3c; color: #fff; border: 2px solid #c0392b; font-weight: 800; font-size: 0.95rem;
    padding: 0.5rem 1.25rem; border-radius: 24px; cursor: pointer; text-transform: uppercase;
    letter-spacing: 1px; transition: transform 0.15s, box-shadow 0.15s;
    animation: unoCallPulse 0.8s ease infinite alternate;
}
#uno-call-btn:hover { transform: scale(1.1); box-shadow: 0 0 16px rgba(231, 76, 60, 0.6); }
@keyframes unoCallPulse {
    from { box-shadow: 0 0 4px rgba(231, 76, 60, 0.3); }
    to   { box-shadow: 0 0 18px rgba(231, 76, 60, 0.7); }
}
/* Sound toggle overlay on 3D canvas */
.uno-sound-toggle {
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7); padding: 0.28rem 0.55rem; border-radius: 6px;
    cursor: pointer; font-size: 0.8rem; transition: background 0.2s;
}
.uno-sound-toggle:hover { background: rgba(0,0,0,0.65); color: #fff; }
.uno-sound-toggle.muted { color: rgba(255,255,255,0.28); }
/* Color picker modal */
.uno-color-picker {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex;
    align-items: center; justify-content: center; z-index: 1000;
    backdrop-filter: blur(4px);
}
.uno-color-picker-inner {
    background: var(--bg-card); padding: 2rem 2.5rem; border-radius: 16px; text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); border: 1px solid var(--border-color);
}
.uno-color-picker-inner h4 {
    color: var(--text-white); margin: 0 0 1.25rem;
    font-family: var(--font-heading); font-size: 1.1rem;
}
.uno-color-choices { display: flex; gap: 1rem; justify-content: center; }
.uno-color-btn {
    width: 60px; height: 60px; border-radius: 50%; border: 3px solid transparent;
    cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.uno-color-btn:hover { transform: scale(1.2); border-color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.uno-color-btn[data-color="red"]    { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.uno-color-btn[data-color="green"]  { background: linear-gradient(135deg, #2ecc71, #1a9c54); }
.uno-color-btn[data-color="blue"]   { background: linear-gradient(135deg, #3498db, #2573a7); }
.uno-color-btn[data-color="yellow"] { background: linear-gradient(135deg, #f1c40f, #d4a90a); }

/* Idle Clicker */
#game-idle_clicker { max-width: 500px; margin: 0 auto; text-align: center; }
.idle-header { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.idle-header span { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.idle-header .idle-timer-val { color: var(--secondary); }
.idle-header .idle-score-val { color: var(--accent); }
.idle-click-btn {
    width: 140px; height: 140px; border-radius: 50%; border: 4px solid var(--secondary);
    background: rgba(0, 206, 201, 0.1); color: var(--secondary);
    font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading);
    cursor: pointer; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
    transition: transform 0.1s, background 0.15s;
}
.idle-click-btn:hover { background: rgba(0, 206, 201, 0.2); }
.idle-click-btn:active { transform: scale(0.92); background: rgba(0, 206, 201, 0.3); }
.idle-upgrades {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem;
}
.idle-upgrade-btn {
    padding: 0.5rem 1rem; border-radius: var(--border-radius-sm);
    background: var(--bg-input); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.idle-upgrade-btn:hover:not(:disabled) { border-color: var(--secondary); color: var(--secondary); }
.idle-upgrade-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.idle-info {
    font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1.5rem; justify-content: center;
}

/* Monopoly */
.arcade-monopoly { position: relative; }
.monopoly-layout { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.monopoly-board-wrap { flex-shrink: 0; position: relative; }
.monopoly-board-wrap canvas { border-radius: 10px; display: block; max-width: 100%; height: auto; box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.3); }
.monopoly-sidebar { flex: 1; min-width: 200px; max-width: 260px; display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.mono-player {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem;
    border-radius: 8px; background: var(--bg-card); border: 2px solid var(--border-color);
    font-size: 0.85rem; transition: var(--transition);
}
.mono-player.active-turn { border-color: var(--primary); box-shadow: 0 0 8px rgba(108, 92, 231, 0.35); }
.mono-player-indicator { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--bg-body); flex-shrink: 0; }
.mono-player-info { display: flex; flex-direction: column; flex: 1; }
.mono-player-name { font-weight: 600; font-size: 0.8rem; }
.mono-player-money { font-weight: 700; color: var(--accent); font-size: 0.85rem; }
.mono-status { text-align: center; font-size: 0.9rem; padding: 0.3rem 0; font-weight: 600; min-height: 1.4em; }
.mono-status.status-win { color: var(--success); }
.mono-status.status-loss { color: var(--danger); }
.mono-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.mono-card-display {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 0.7rem; text-align: center;
}
.mono-card-display h5 { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--primary); }
.mono-card-display p { margin: 0 0 0.5rem; font-size: 0.8rem; }
.mono-properties { max-height: 200px; overflow-y: auto; }
.mono-properties h5 { font-size: 0.8rem; margin: 0 0 0.3rem; color: var(--text-muted); }
.mono-prop-item { font-size: 0.75rem; border-radius: 4px; background: var(--bg-body); cursor: pointer; transition: background 0.15s ease; }
.mono-prop-item:hover { background: var(--bg-card); filter: brightness(1.2); }
.mono-build-section { display: flex; gap: 0.3rem; }

/* Sound toggle */
.mono-sound-toggle { position: absolute; top: 0.4rem; right: 0.4rem; font-size: 0.75rem; opacity: 0.6; transition: opacity 0.2s; z-index: 5; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text); border-radius: 4px; padding: 2px 6px; cursor: pointer; }
.mono-sound-toggle:hover { opacity: 1; }
.mono-sound-toggle.muted { color: var(--danger); opacity: 0.8; }

/* Event Log */
.mono-event-log { display: flex; flex-direction: column; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border-color); overflow: hidden; flex: 1; min-height: 0; }
.mono-event-log-header { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.mono-event-log-body { flex: 1; overflow-y: auto; padding: 0.3rem 0.5rem; font-size: 0.7rem; line-height: 1.5; min-height: 60px; max-height: 160px; scroll-behavior: smooth; }
.mono-log-entry { display: flex; align-items: baseline; gap: 0.3rem; padding: 1px 0; color: var(--text); opacity: 0; animation: monoLogFadeIn 0.25s ease forwards; }
.mono-log-entry.log-rent { color: var(--danger); }
.mono-log-entry.log-earn { color: var(--success); }
.mono-log-entry.log-jail { color: var(--warning); }
.mono-log-entry.log-card { color: var(--primary); }
.mono-log-entry.log-buy { color: var(--info, #3498db); }
.mono-log-entry.log-ai { color: var(--text-muted); font-style: italic; }
.mono-log-icon { flex-shrink: 0; width: 1.1em; text-align: center; }
.mono-log-text { flex: 1; }
.mono-log-turn-sep { text-align: center; font-size: 0.65rem; color: var(--text-muted); padding: 0.25rem 0 0.15rem; font-weight: 600; letter-spacing: 0.3px; opacity: 0.7; border-top: 1px solid var(--border-color); margin-top: 0.15rem; }
@keyframes monoLogFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.monopoly-dice-display { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.2rem; pointer-events: none; z-index: 10; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.monopoly-dice-display.show { animation: monoFadeIn 0.3s ease; }
.mono-die { margin: 0 0.15rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.mono-build-modal { max-height: 200px; overflow-y: auto; }

/* Pawn Picker */
.mono-pawn-picker { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.mono-pawn-picker-inner { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem 2rem; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.mono-pawn-picker-inner h3 { margin: 0 0 0.3rem; font-size: 1.15rem; color: var(--primary); }
.mono-pawn-picker-sub { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem; }
.mono-pawn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.mono-pawn-card { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.3rem; border-radius: 8px; background: var(--bg-body); border: 2px solid var(--border-color); cursor: pointer; transition: var(--transition); }
.mono-pawn-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.mono-pawn-card.selected { border-color: var(--primary); background: rgba(108, 92, 231, 0.15); box-shadow: 0 0 10px rgba(108, 92, 231, 0.3); }
.mono-pawn-card-emoji { font-size: 1.5rem; line-height: 1; }
.mono-pawn-card-label { font-size: 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Cell Info Card Overlay (animated fly-from-board) */
.mono-cellcard-overlay { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
.mono-cellcard-overlay.active { pointer-events: auto; opacity: 1; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); }
.mono-cellcard-overlay.closing { pointer-events: none; opacity: 0; }
.mono-cellcard {
    position: absolute; width: 240px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; box-shadow: 0 8px 36px rgba(0,0,0,0.45);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0; pointer-events: auto;
}
.mono-cellcard-overlay.active .mono-cellcard { opacity: 1; }
.mono-cellcard-overlay.closing .mono-cellcard {
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.3s ease, left 0.4s cubic-bezier(0.55, 0, 1, 0.45), top 0.4s cubic-bezier(0.55, 0, 1, 0.45);
}
.mono-cellcard-close { position: absolute; top: 0.4rem; right: 0.5rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; z-index: 2; padding: 2px 6px; border-radius: 4px; }
.mono-cellcard-close:hover { color: var(--text); background: var(--bg-body); }
.mono-cellcard-color { height: 6px; width: 100%; }
.mono-cellcard h4 { margin: 0.6rem 0.8rem 0.3rem; font-size: 0.9rem; color: var(--text); }
.mono-cellcard-body { padding: 0 0.8rem 0.7rem; }
.mono-ci-type { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 600; }
.mono-ci-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; padding: 0.15rem 0; }
.mono-ci-row span { color: var(--text-muted); }
.mono-ci-row strong { color: var(--text); }
.mono-ci-rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; font-size: 0.65rem; color: var(--text-muted); padding: 0.2rem 0; margin-left: 0.5rem; }
.mono-ci-divider { height: 1px; background: var(--border-color); margin: 0.4rem 0; }

@keyframes monoSlideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes monoFadeIn { from { opacity: 0; transform: translate(-50%,-50%) scale(0.8); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

/* Card Flyout from Board */
.mono-flyout-overlay { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; perspective: 1200px; }
.mono-flyout-overlay.active { pointer-events: auto; opacity: 1; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.mono-flyout-card {
    width: 260px; max-width: 90%;
    transform: scale(0.15) translateY(80px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.mono-flyout-overlay.active .mono-flyout-card { transform: scale(1) translateY(0); opacity: 1; }
.mono-flyout-overlay.closing .mono-flyout-card { transform: scale(0.15) translateY(80px); opacity: 0; transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.3s ease; }
.mono-flyout-inner {
    position: relative; width: 100%; transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(180deg);
}
.mono-flyout-overlay.active .mono-flyout-inner { transform: rotateY(0deg); }
.mono-flyout-overlay.closing .mono-flyout-inner { transform: rotateY(-180deg); transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45); }
.mono-flyout-front, .mono-flyout-back {
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,92,231,0.15);
}
.mono-flyout-front {
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.mono-flyout-back {
    position: absolute; inset: 0; transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary, #8e44ad));
    display: flex; align-items: center; justify-content: center;
    border: 3px solid rgba(255,255,255,0.15);
}
.mono-flyout-back-pattern {
    width: 85%; height: 85%; border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px);
}
.mono-flyout-back-logo {
    font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.3);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); font-family: serif;
}
.mono-flyout-color { height: 8px; width: 100%; }
.mono-flyout-icon { text-align: center; font-size: 2.2rem; padding: 0.8rem 0 0.2rem; line-height: 1; }
.mono-flyout-name { text-align: center; margin: 0 1rem 0.4rem; font-size: 1.05rem; color: var(--text); font-weight: 700; }
.mono-flyout-details { padding: 0 1rem 0.6rem; }
.mono-flyout-details .mono-ci-type { text-align: center; margin-bottom: 0.5rem; }
.mono-flyout-details .mono-ci-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; padding: 0.15rem 0; }
.mono-flyout-details .mono-ci-row span { color: var(--text-muted); }
.mono-flyout-details .mono-ci-row strong { color: var(--text); }
.mono-flyout-details .mono-ci-rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; font-size: 0.68rem; color: var(--text-muted); padding: 0.2rem 0; margin-left: 0.5rem; }
.mono-flyout-details .mono-ci-divider { height: 1px; background: var(--border-color); margin: 0.4rem 0; }
.mono-flyout-actions { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; justify-content: center; }
.mono-flyout-actions .btn { min-width: 80px; font-size: 0.8rem; }

/* Auction Popup Overlay */
.mono-auction-overlay {
    position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.mono-auction-overlay.active {
    pointer-events: auto; opacity: 1; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
}
.mono-auction-popup {
    display: flex; width: 520px; max-width: 95%; max-height: 90%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,92,231,0.2);
    transform: scale(0.4) translateY(60px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.mono-auction-overlay.active .mono-auction-popup { transform: scale(1) translateY(0); opacity: 1; }
.mono-auction-overlay.closing .mono-auction-popup { transform: scale(0.3) translateY(60px); opacity: 0; transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.25s ease; }

/* Left: Property Card */
.mono-auction-left {
    width: 200px; min-width: 200px; border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; background: var(--bg-card);
}
.mono-auction-card-color { height: 10px; width: 100%; flex-shrink: 0; }
.mono-auction-card-icon { text-align: center; font-size: 2.4rem; padding: 1rem 0 0.3rem; line-height: 1; }
.mono-auction-card-name { text-align: center; margin: 0 0.8rem 0.5rem; font-size: 1rem; color: var(--text); font-weight: 700; }
.mono-auction-card-details { padding: 0 0.8rem 1rem; flex: 1; overflow-y: auto; }
.mono-auction-card-details .mono-ci-type { text-align: center; margin-bottom: 0.4rem; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mono-auction-card-details .mono-ci-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; padding: 0.12rem 0; }
.mono-auction-card-details .mono-ci-row span { color: var(--text-muted); }
.mono-auction-card-details .mono-ci-row strong { color: var(--text); }
.mono-auction-card-details .mono-ci-rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem; font-size: 0.65rem; color: var(--text-muted); padding: 0.15rem 0; margin-left: 0.3rem; }

/* Right: Bidding Panel */
.mono-auction-right {
    flex: 1; display: flex; flex-direction: column; padding: 0;
}
.mono-auction-header {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: #fff; font-weight: 800; font-size: 1rem; text-align: center;
    padding: 0.7rem 1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.mono-auction-header i { margin-right: 0.4rem; }
.mono-auction-bid-info {
    padding: 0.8rem 1rem; text-align: center; border-bottom: 1px solid var(--border-color);
}
.mono-auction-bid-current {
    font-size: 1.8rem; font-weight: 800; color: var(--primary);
    font-family: 'Courier New', monospace; line-height: 1.2;
}
.mono-auction-bid-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.15rem; }
.mono-auction-bid-bidder { font-size: 0.8rem; color: var(--text); margin-top: 0.2rem; }
.mono-auction-log {
    flex: 1; padding: 0.5rem 0.8rem; overflow-y: auto; max-height: 120px; min-height: 50px;
    font-size: 0.72rem; color: var(--text-muted); border-bottom: 1px solid var(--border-color);
}
.mono-auction-log-entry { padding: 0.15rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mono-auction-log-entry:last-child { border-bottom: none; }
.mono-auction-log-entry.ai { color: #e74c3c; }
.mono-auction-log-entry.you { color: #2ecc71; }
.mono-auction-controls {
    padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.mono-auction-btn-row { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.mono-auction-controls .btn { font-size: 0.8rem; font-weight: 700; min-width: 60px; }
.mono-auction-controls .btn-bid {
    background: var(--primary); color: #fff; border: none; border-radius: 8px;
    padding: 0.45rem 0.7rem; cursor: pointer; transition: all 0.15s ease;
}
.mono-auction-controls .btn-bid:hover { filter: brightness(1.2); transform: translateY(-1px); }
.mono-auction-controls .btn-allin {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); color: #fff;
    border: none; border-radius: 8px; padding: 0.45rem 0.7rem; cursor: pointer; transition: all 0.15s ease;
}
.mono-auction-controls .btn-allin:hover { filter: brightness(1.15); transform: translateY(-1px); }
.mono-auction-controls .btn-pass {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    border-radius: 8px; padding: 0.4rem 1rem; cursor: pointer; transition: all 0.15s ease; width: 100%;
}
.mono-auction-controls .btn-pass:hover { border-color: #e74c3c; color: #e74c3c; }

@media (max-width: 560px) {
    .mono-auction-popup { flex-direction: column; width: 300px; }
    .mono-auction-left { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--border-color); flex-direction: row; align-items: center; padding: 0.5rem; }
    .mono-auction-card-icon { font-size: 1.5rem; padding: 0; }
    .mono-auction-card-name { font-size: 0.85rem; margin: 0 0.5rem; }
    .mono-auction-card-details { display: none; }
    .mono-auction-card-color { height: 100%; width: 6px; min-height: 40px; border-radius: 3px; flex-shrink: 0; }
}

@media (max-width: 768px) {
    .mono-flyout-card { width: 240px; }
    .mono-flyout-icon { font-size: 1.8rem; }
    .mono-flyout-name { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .monopoly-layout { flex-direction: column; align-items: center; }
    .monopoly-sidebar { max-width: 100%; min-width: 0; width: 100%; }
    .mono-pawn-grid { grid-template-columns: repeat(5, 1fr); }
    .mono-cellcard { width: 200px; }
    .mono-cellcard h4 { font-size: 0.8rem; }
    .monopoly-board-wrap canvas { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
}

/* ============= TRADE SYSTEM ============= */
.mono-trade-overlay, .mono-trade-response-overlay {
    position: absolute; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.mono-trade-overlay.active, .mono-trade-response-overlay.active {
    pointer-events: auto; opacity: 1; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
}
.mono-trade-popup {
    width: 580px; max-width: 96%; max-height: 90%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(46,204,113,0.2);
    transform: scale(0.4) translateY(60px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.mono-trade-overlay.active .mono-trade-popup { transform: scale(1) translateY(0); opacity: 1; }
.mono-trade-overlay.closing .mono-trade-popup { transform: scale(0.3) translateY(60px); opacity: 0; transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.25s ease; }

.mono-trade-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff; font-weight: 800; font-size: 1rem; text-align: center;
    padding: 0.7rem 1rem; letter-spacing: 0.08em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative;
}
.mono-trade-header i { font-size: 1rem; }
.mono-trade-close {
    position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.mono-trade-close:hover { background: rgba(255,255,255,0.3); }

.mono-trade-body {
    display: flex; flex: 1; min-height: 0; overflow-y: auto;
}
.mono-trade-side {
    flex: 1; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem;
    min-width: 0;
}
.mono-trade-you { border-right: 1px solid var(--border-color); }
.mono-trade-side-header {
    font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color); margin-bottom: 0.2rem;
}
.mono-trade-arrow {
    display: flex; align-items: center; justify-content: center;
    padding: 0 0.4rem; color: var(--text-muted); font-size: 1.2rem;
}
.mono-trade-props {
    flex: 1; overflow-y: auto; max-height: 180px; min-height: 60px;
    display: flex; flex-direction: column; gap: 2px;
}
.mono-trade-prop-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.3rem 0.5rem; border-radius: 6px; cursor: pointer;
    font-size: 0.75rem; color: var(--text);
    transition: background 0.15s, box-shadow 0.15s;
    background: rgba(255,255,255,0.02);
}
.mono-trade-prop-item:hover { background: rgba(255,255,255,0.06); }
.mono-trade-prop-item.selected {
    background: rgba(46,204,113,0.15); box-shadow: inset 0 0 0 1px rgba(46,204,113,0.5);
}
.mono-trade-prop-name { flex: 1; font-weight: 600; }
.mono-trade-prop-price { color: var(--text-muted); font-size: 0.7rem; margin-left: 0.3rem; }
.mono-trade-mort { color: #e67e22; font-size: 0.7rem; }
.mono-trade-empty { color: var(--text-muted); font-size: 0.72rem; padding: 0.5rem; text-align: center; font-style: italic; }

.mono-trade-money-row {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0;
    font-size: 0.75rem; color: var(--text);
}
.mono-trade-money-row label { color: var(--text-muted); width: 18px; text-align: center; flex-shrink: 0; }
.mono-trade-money-row input[type=range] { flex: 1; accent-color: #2ecc71; height: 4px; }
.mono-trade-money-val { font-weight: 700; font-family: 'Courier New', monospace; min-width: 50px; text-align: right; color: #2ecc71; }

.mono-trade-jail-row {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0;
    font-size: 0.72rem; color: var(--text);
}
.mono-trade-jail-row label { flex: 1; display: flex; align-items: center; gap: 0.3rem; color: var(--text-muted); }
.mono-trade-jail-row input[type=checkbox] { accent-color: #2ecc71; width: 16px; height: 16px; }

.mono-trade-footer {
    padding: 0.6rem 0.8rem; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 0.6rem;
}
.mono-trade-status { flex: 1; font-size: 0.72rem; color: var(--text-muted); }
.mono-trade-status.error { color: #e74c3c; }
.mono-trade-btns { display: flex; gap: 0.4rem; flex-shrink: 0; }
.mono-trade-btns .btn { font-size: 0.78rem; }

/* Trade Response Popup */
.mono-trade-response-popup {
    width: 380px; max-width: 92%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6);
    transform: scale(0.4) translateY(60px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.mono-trade-response-overlay.active .mono-trade-response-popup { transform: scale(1) translateY(0); opacity: 1; }
.mono-trade-response-overlay.closing .mono-trade-response-popup { transform: scale(0.3) translateY(60px); opacity: 0; transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.25s ease; }

.mono-trade-response-header {
    padding: 0.8rem 1rem; font-size: 1rem; font-weight: 800; text-align: center;
    color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.mono-trade-response-header.accept { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.mono-trade-response-header.reject { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.mono-trade-response-header.counter { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }

.mono-trade-response-body { padding: 1rem; font-size: 0.82rem; color: var(--text); }
.mono-trade-reject-msg, .mono-trade-counter-msg { text-align: center; padding: 0.5rem 0; color: var(--text-muted); }
.mono-trade-response-footer { padding: 0.8rem 1rem; border-top: 1px solid var(--border-color); text-align: center; display: flex; gap: 0.5rem; justify-content: center; }

/* Trade Summary (in response popup) */
.mono-trade-summary { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; }
.mono-trade-summary-side { flex: 1; }
.mono-trade-summary-side strong { display: block; font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.mono-trade-summary-arrow { display: flex; align-items: center; padding: 1rem 0.3rem 0; color: var(--text-muted); font-size: 1rem; }
.mono-trade-sum-prop { padding: 0.2rem 0.4rem; font-size: 0.72rem; margin: 1px 0; border-radius: 3px; background: rgba(255,255,255,0.03); }
.mono-trade-sum-money { font-size: 0.75rem; color: #2ecc71; padding: 0.15rem 0; }
.mono-trade-sum-card { font-size: 0.72rem; color: #f39c12; padding: 0.15rem 0; }
.mono-trade-sum-none { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

/* Event log trade class */
.mono-log-entry.log-trade { color: #2ecc71; border-left: 2px solid #2ecc71; padding-left: 0.4rem; }

@media (max-width: 560px) {
    .mono-trade-popup { width: 98%; }
    .mono-trade-body { flex-direction: column; }
    .mono-trade-you { border-right: none; border-bottom: 1px solid var(--border-color); }
    .mono-trade-arrow { transform: rotate(90deg); padding: 0.3rem 0; }
    .mono-trade-props { max-height: 120px; }
}

/* Fullscreen expand button */
.mono-fullscreen-btn {
    position: absolute; top: 10px; right: 10px; z-index: 20;
    width: 36px; height: 36px; border-radius: 8px; border: none;
    background: rgba(13,17,23,0.8); color: #b2bec3; cursor: pointer;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); transition: all 0.2s ease;
}
.mono-fullscreen-btn:hover { background: rgba(108,92,231,0.6); color: #fff; transform: scale(1.1); }

/* Fullscreen Overlay */
.mono-fs-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: #0d1117; flex-direction: column;
}
.mono-fs-overlay.active { display: flex; }
.mono-fs-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 1.2rem; background: #161b22; border-bottom: 1px solid #21262d;
    flex-shrink: 0; height: 48px;
}
.mono-fs-title { font-weight: 700; font-size: 1rem; color: #6c5ce7; letter-spacing: 1px; }
.mono-fs-title i { margin-right: 0.5rem; }
.mono-fs-close {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    color: #b2bec3; padding: 0.35rem 1rem; border-radius: 6px; cursor: pointer;
    font-size: 0.85rem; transition: all 0.2s ease;
}
.mono-fs-close:hover { background: rgba(108,92,231,0.3); color: #fff; }
.mono-fs-body {
    flex: 1; display: flex; overflow: hidden; min-height: 0;
}
.mono-fs-board {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-width: 0; position: relative; padding: 1rem;
}
.mono-fs-board .monopoly-board-wrap { flex-shrink: 0; }
.mono-fs-board .monopoly-board-wrap canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.mono-fs-sidebar {
    width: 320px; flex-shrink: 0; overflow-y: auto; padding: 1rem;
    background: #161b22; border-left: 1px solid #21262d;
}
.mono-fs-sidebar .monopoly-sidebar { min-width: 0; width: 100%; max-width: 100%; }

@media (max-width: 900px) {
    .mono-fs-body { flex-direction: column; }
    .mono-fs-sidebar { width: 100%; max-height: 35vh; border-left: none; border-top: 1px solid #21262d; }
    .mono-fs-board { padding: 0.5rem; }
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.download-card .dl-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.download-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.download-card .file-size {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-section ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

/* ============================================
   ACCOUNT / MEMBER PANEL
   ============================================ */
.account-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
}

.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
}

.account-header-info {
    flex: 1;
    min-width: 0;
}

.account-header-info h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}

.account-role {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    margin-right: 0.5rem;
}

.account-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-points {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.point-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    min-width: 90px;
}

.point-badge i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.point-badge span {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.point-badge small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.point-badge.point-vp {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--secondary);
}

.point-badge.point-dp {
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
    color: var(--accent);
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.account-tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.account-tab:hover {
    color: var(--text-white);
    background: var(--primary-light);
}

.account-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Panel Grid */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.panel-grid-single {
    grid-template-columns: 1fr;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.panel-card-header {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-card-body {
    padding: 1.5rem;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

/* Linked Accounts */
.linked-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.linked-account-item:hover {
    border-color: var(--primary);
}

.linked-account-item.primary {
    border-color: rgba(255, 183, 77, 0.3);
    background: rgba(255, 183, 77, 0.05);
}

.linked-account-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.linked-account-info div {
    display: flex;
    flex-direction: column;
}

.linked-account-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.linked-account-points {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-vp {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    color: var(--secondary);
}

.badge-dp {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 183, 77, 0.15);
    color: var(--accent);
}

.link-form-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-input);
}

.link-form-box h4 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 183, 77, 0.15);
    color: var(--accent);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

/* Table inside panels */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        text-align: center;
    }
    .account-points {
        justify-content: center;
    }
    .account-tabs {
        flex-wrap: wrap;
    }
    .account-tab {
        flex: 1 1 45%;
    }
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .linked-account-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .linked-account-points {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   SERVER STATUS WIDGET
   ============================================ */
.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--danger);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        overflow: visible;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a i {
        display: inline;
    }

    .main-nav a {
        padding: 1rem;
        font-size: 1.1rem;
        text-align: center;
    }

    .settings-float-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-rates {
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   IDEAS BOARD
   ============================================================ */
.ideas-section { padding: 2rem 0 4rem; }
.ideas-header { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }
.ideas-header-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.ideas-board { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 2rem; align-items: flex-start; min-height: 300px; }
.ideas-board::-webkit-scrollbar { height: 6px; }
.ideas-board::-webkit-scrollbar-track { background: transparent; }
.ideas-board::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.idea-column { flex: 0 0 300px; min-width: 270px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; }
.idea-column-header { padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; background: var(--bg-card-hover, rgba(255,255,255,0.04)); border-bottom: 1px solid var(--border-color); }
.idea-column-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.idea-col-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.idea-col-count { background: var(--bg-dark, rgba(0,0,0,0.25)); border-radius: 12px; padding: 1px 8px; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.idea-column-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.65rem; min-height: 100px; max-height: 75vh; overflow-y: auto; }
.idea-column-body::-webkit-scrollbar { width: 4px; }
.idea-column-body::-webkit-scrollbar-track { background: transparent; }
.idea-column-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.idea-column-empty { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 1.5rem; opacity: 0.5; }
.idea-card { background: var(--bg-dark, var(--bg-card)); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.85rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; position: relative; }
.idea-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.25); border-color: var(--primary, #3498db); }
.idea-card--hot { border-color: #f1c40f !important; }
.idea-badge-hot { display: inline-block; background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-bottom: 0.4rem; }
.idea-card-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); line-height: 1.3; margin-bottom: 0.5rem; word-break: break-word; }
.idea-card-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; flex-wrap: wrap; }
.idea-card-footer { display: flex; align-items: center; gap: 0.5rem; }
.idea-vote-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 1px solid var(--border-color); border-radius: 20px; padding: 3px 10px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; transition: all 0.15s; line-height: 1.4; }
.idea-vote-btn:hover, .idea-vote-btn--active { background: rgba(231,76,60,0.15); border-color: #e74c3c; color: #e74c3c; }
.idea-card-stats { display: flex; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.idea-admin-btn { background: transparent; border: none; cursor: pointer; color: var(--text-muted); padding: 4px 6px; border-radius: 4px; font-size: 0.8rem; transition: color 0.15s, background 0.15s; }
.idea-admin-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.idea-admin-btn--danger:hover { color: #e74c3c; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-box { background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border-color); padding: 2rem; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; position: relative; }
.ideas-modal-box { max-width: 700px; }
.idea-form-modal { max-width: 460px !important; padding: 1.25rem 1.4rem !important; max-height: min(560px, 85vh) !important; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color 0.15s; }
.modal-close:hover { color: var(--text-primary); }
.poll-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; margin-bottom: 0.5rem; transition: border-color 0.15s, background 0.15s; font-size: 0.9rem; color: var(--text-primary); }
.poll-option:hover { border-color: var(--primary, #3498db); background: rgba(52,152,219,0.06); }
.poll-option--voted { border-color: var(--primary, #3498db); background: rgba(52,152,219,0.1); }
.poll-bar-wrap { flex: 1; height: 5px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.poll-bar { height: 100%; background: var(--primary, #3498db); border-radius: 3px; transition: width 0.4s; }
.poll-pct { font-size: 0.78rem; color: var(--text-muted); min-width: 32px; text-align: right; }
.idea-comment { padding: 0.75rem; background: var(--bg-dark, rgba(0,0,0,0.15)); border-radius: 8px; margin-bottom: 0.6rem; font-size: 0.88rem; }
.idea-comment-author { font-weight: 600; color: var(--primary); font-size: 0.8rem; margin-bottom: 0.25rem; }
.idea-comment-text { color: var(--text-primary); line-height: 1.4; }
.idea-comment-time { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.25rem; }
.idea-poll-toggle { border: 1px solid var(--border-color); border-radius: 8px; padding: 0.75rem 1rem; margin-top: 0.5rem; }
.idea-poll-toggle summary { cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; list-style: none; }
.idea-poll-toggle summary::-webkit-details-marker { display: none; }
