/* =======================================================
   RESET & CORE GLOBAL STYLES
   ======================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

:root {
    --bg-primary: #070b13;
    --bg-secondary: #0d1524;
    --bg-panel: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #38bdf8;
    --accent-blue-hover: #0ea5e9;
    --accent-purple: #9146ff;
    --accent-green: #10b981;
    --accent-yellow: #fbbf24;
    --accent-red: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* =======================================================
   OBS OVERLAY SPECIFIC STYLE (Must keep intact)
   ======================================================= */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
}

body.game-body {
    background: transparent !important;
    background-color: transparent !important;
    overflow: hidden !important;
}

.twitch-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.twitch-status-badge.connected {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.twitch-status-badge.error {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.12);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}

.setup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.setup-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 40px;
    width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.setup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.setup-logo {
    font-size: 2rem;
}

.setup-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.setup-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.setup-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

#channel-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

#channel-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

#connect-btn {
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

#connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.url-info {
    text-align: left;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.url-info p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 6px 0;
}

.url-info code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    word-break: break-all;
}

.test-tip {
    font-size: 0.8rem;
    color: #cbd5e1;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 10px;
    border-radius: 10px;
}

/* =======================================================
   PERSONAL PORTAL & WEBSITE STYLES
   ======================================================= */
.site-body {
    background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

/* Header & Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(7, 11, 19, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-emoji {
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: var(--shadow-glow);
}

.admin-btn-tab {
    margin-left: 20px;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Content Container & Grid */
.content-container {
    flex: 1;
    padding: 40px 8%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
}

.tab-content.active {
    display: block;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

/* =======================================================
   TAB: HOME STYLES
   ======================================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(7,11,19,0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 45px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.2));
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}

.avatar-placeholder {
    font-size: 3.5rem;
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-tagline {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Social link cards */
.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card i {
    font-size: 1.5rem;
}

.social-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
}

/* Brand Specific Hover Colors */
.social-card.twitch:hover { border-color: #a970ff; color: #a970ff; box-shadow: 0 0 15px rgba(169, 112, 255, 0.15); }
.social-card.youtube:hover { border-color: #ff0000; color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.15); }
.social-card.discord:hover { border-color: #5865f2; color: #5865f2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.15); }
.social-card.twitter:hover { border-color: #1d9bf0; color: #1d9bf0; box-shadow: 0 0 15px rgba(29, 155, 240, 0.15); }
.social-card.instagram:hover { border-color: #e1306c; color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.15); }
.social-card.tiktok:hover { border-color: #00f2fe; color: #00f2fe; box-shadow: 0 0 15px rgba(0, 242, 254, 0.15); }
.social-card.kick:hover { border-color: #53fc18; color: #53fc18; box-shadow: 0 0 15px rgba(83, 252, 24, 0.15); }
.social-card.github:hover { border-color: #f0f6fc; color: #f0f6fc; box-shadow: 0 0 15px rgba(240, 246, 252, 0.15); }
.social-card.steam:hover { border-color: #101822; color: #66c0f4; box-shadow: 0 0 15px rgba(102, 192, 244, 0.15); }
.social-card.custom-link:hover { border-color: var(--accent-blue); color: var(--accent-blue); box-shadow: var(--shadow-glow); }

.recent-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.recent-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.recent-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: var(--shadow-glow);
}

.badge-category {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.recent-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.recent-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =======================================================
   TAB: GUIDES / BLOG SYSTEM
   ======================================================= */
.guides-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    min-height: 600px;
}

.guides-sidebar {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.category-btn {
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.category-btn.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    font-weight: 700;
}

.guides-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guide-menu-item {
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-muted);
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
}

.guide-menu-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.guide-menu-item.active {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
    font-weight: 600;
    border-left: 3px solid var(--accent-blue);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.guides-viewer {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.viewer-fallback {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    padding: 100px 0;
}

.fallback-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.05);
}

.viewer-fallback h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.viewer-content {
    animation: fadeIn 0.2s ease-out forwards;
}

.guide-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
}

.guide-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.guide-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.guide-body p {
    margin-bottom: 20px;
}

.guide-body h2, .guide-body h3 {
    color: var(--text-main);
    margin: 35px 0 15px 0;
    font-weight: 700;
}

.guide-body ul, .guide-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.guide-body li {
    margin-bottom: 6px;
}

.back-mobile-btn {
    display: none;
    margin-bottom: 20px;
}

/* =======================================================
   TAB: SYSTEM SPECS & GAME SETTINGS
   ======================================================= */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.specs-card {
    padding: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
    text-shadow: var(--shadow-glow);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

.specs-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.specs-list li strong {
    color: var(--text-muted);
    font-weight: 500;
}

.specs-list li span {
    font-weight: 700;
    color: var(--text-main);
}

/* =======================================================
   TAB: PARACHUTE GAME PORTAL
   ======================================================= */
.game-portal-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.leaderboard-header, .customizer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-icon {
    font-size: 1.6rem;
    color: var(--accent-yellow);
}

.customizer-icon {
    font-size: 1.6rem;
    color: var(--accent-blue);
}

.leaderboard-tabs {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lead-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lead-tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Tables design */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.leaderboard-table tbody tr {
    transition: background-color 0.15s;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Podium Rank Highlighting */
.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

.rank-1 .rank-badge { background: #fbbf24; color: #000000; box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
.rank-2 .rank-badge { background: #cbd5e1; color: #000000; }
.rank-3 .rank-badge { background: #b45309; color: #ffffff; }

.rank-1 td:nth-child(2) { font-weight: 800; color: #fbbf24; }
.rank-1 td:nth-child(3) { font-weight: 800; color: #fbbf24; }

.customizer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.customizer-inner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.customizer-form {
    min-width: 0;
}

.customizer-preview {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.preview-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.preview-canvas-wrapper {
    background: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

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

.preview-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.verification-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.small-info-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.status-indicator {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* =======================================================
   TAB: ADMIN PANEL
   ======================================================= */
.admin-login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    text-shadow: var(--shadow-glow);
    margin-bottom: 12px;
}

.login-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Admin Dashboard layout */
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    min-height: 600px;
}

.admin-sidebar {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-avatar {
    font-size: 2.2rem;
    color: var(--text-muted);
}

.admin-profile h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.badge-role {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: var(--accent-red);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-menu-btn {
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-muted);
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.admin-menu-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.admin-menu-btn.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--accent-blue);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.admin-menu-btn.text-danger:hover {
    background: rgba(244, 63, 94, 0.08);
}

.admin-body {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.admin-subtab {
    display: none;
    animation: fadeIn 0.2s ease-out forwards;
}

.admin-subtab.active {
    display: block;
}

.admin-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-desc-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Forms general styling */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-row {
    display: flex;
    gap: 15px;
}

.col-6 { flex: 0 0 calc(50% - 7.5px); }
.col-4 { flex: 0 0 calc(33.33% - 10px); }

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

textarea {
    resize: vertical;
}

.form-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Buttons style */
.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    color: #ffffff;
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-twitch {
    background: var(--accent-purple);
    color: #ffffff;
}
.btn-twitch:hover {
    background: #772ce8;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.3);
}

.btn-danger {
    background: var(--accent-red);
    color: #ffffff;
}
.btn-danger:hover {
    box-shadow: 0 0 15px rgba(244, 63, 148, 0.25);
}

.btn-full {
    width: 100%;
}

/* Alert boxes */
.alert-box {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #f87171;
}

.status-msg {
    margin-left: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 24px; }

/* Socials & Guides Managers */
.socials-manager-layout, .menu-manager-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-list-item span {
    font-weight: 600;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-only {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-icon-only:hover {
    color: var(--text-main);
}
.btn-icon-only.edit-item:hover { color: var(--accent-blue); }
.btn-icon-only.delete-item:hover { color: var(--accent-red); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 700;
}

.actions-col {
    text-align: right;
    width: 120px;
}

/* Danger Zone */
.danger-zone-box {
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.03);
    border-radius: 12px;
    padding: 24px;
}

.danger-title {
    color: var(--accent-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.danger-actions-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.danger-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.danger-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.danger-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.danger-inline-form {
    display: flex;
    gap: 8px;
}

.danger-inline-form input {
    flex: 1;
}

/* Footer Section */
.main-footer {
    text-align: center;
    padding: 30px;
    color: #4b5563;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    background: rgba(7, 11, 19, 0.5);
    margin-top: 60px;
}

/* =======================================================
   ANIMATIONS & MEDIA RESPONSIVENESS
   ======================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* Responsive breakdowns */
@media (max-width: 1024px) {
    .content-container {
        padding: 30px 4%;
    }
    .hero-grid, .specs-grid, .game-portal-layout, .socials-manager-layout, .danger-actions-grid {
        grid-template-columns: 1fr;
    }
    .customizer-inner-grid {
        grid-template-columns: 1fr;
    }
    .customizer-preview {
        order: -1;
    }
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .guides-layout {
        grid-template-columns: 1fr;
    }
    .guides-viewer.mobile-hidden {
        display: none;
    }
    .back-mobile-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 4%;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .nav-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .admin-btn-tab {
        margin-left: 0;
    }
}

/* Force capitalization on social media cards to fix Kick lowercase issue */
.social-card span {
    text-transform: capitalize;
}

/* Desktop Vertical Sidebar Layout (Lucas-Labs Showcase / Starlight Doc style) */
@media (min-width: 1025px) {
    body {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .main-header {
        position: relative; /* Behaves as a regular flex sidebar */
        width: 270px;
        height: 100vh;
        flex-shrink: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 40px 24px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        background: rgba(7, 11, 19, 0.95);
        backdrop-filter: blur(20px);
        overflow-y: auto;
    }

    .header-logo {
        margin-bottom: 40px;
        justify-content: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-tab {
        justify-content: flex-start;
        padding: 12px 18px;
        width: 100%;
        font-size: 0.95rem;
    }

    .admin-btn-tab {
        margin-left: 0;
        margin-top: 5px;
    }

    .main-content-wrapper {
        flex: 1;
        height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .content-container {
        flex: 1;
        width: 100%;
        padding: 60px 4%;
        max-width: 1200px;
        margin: 0 auto; /* Centers the content beautifully in the remaining space */
    }
    
    .main-footer {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 0;
    }
}

/* Floating Twitch Embed Panel Styles */
.floating-twitch-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 320px;
    background: rgba(13, 21, 36, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.twitch-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-color);
}

.live-indicator {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-red);
    animation: twitch-pulse 1.6s infinite;
}

@keyframes twitch-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.close-twitch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.close-twitch-btn:hover {
    color: var(--text-main);
}

.twitch-embed-frame-container {
    width: 100%;
    height: 180px;
    background: #000;
}

.twitch-embed-frame-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}


/* Accordion Group Navigation */
.nav-group {
    margin-bottom: 6px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.25s ease;
}

.nav-group.active .nav-group-header {
    color: var(--accent-blue);
}

.nav-group-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    border-radius: 10px;
}

.nav-group-header:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-group-header.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: var(--shadow-glow);
}



.nav-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
}

.nav-group.expanded .nav-group-content {
    max-height: 500px;
}

.nav-group .nav-tab {
    margin-left: 0 !important;
    padding: 10px 18px 10px 30px;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    background: transparent;
    text-align: left;
}

.nav-group .nav-tab:hover {
    background: rgba(255, 255, 255, 0.02);
}

.nav-group .nav-tab.active {
    background: rgba(56, 189, 248, 0.06);
    border-left-color: var(--accent-blue);
    color: var(--text-main);
}

/* Horizontal Scrolling Carousel (Skins) */
.skin-carousel-container {
    margin-bottom: 24px;
}

.skin-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.25) rgba(0, 0, 0, 0.15);
}

.skin-carousel::-webkit-scrollbar {
    height: 6px;
}

.skin-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.skin-carousel::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 10px;
}

.skin-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.45);
}

.skin-card {
    flex: 0 0 calc(33.333% - 8px);
    height: 150px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    gap: 8px;
}

.skin-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.skin-card.active {
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.skin-card.disabled {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(0.5);
}

.skin-card-thumb-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skin-card-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.4);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    pointer-events: none;
}

.skin-card-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    image-rendering: pixelated;
}

.skin-card-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modals & Icon Picker styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out forwards;
}

.modal-backdrop.hidden {
    display: none !important;
}

.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-picker-item:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.05);
}

.icon-picker-item i {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.icon-picker-item span {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* =======================================================
   QUILL RICH TEXT EDITOR DARK THEME OVERRIDES
   ======================================================= */
.ql-toolbar.ql-snow {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--border-color) !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px 14px !important;
}

.ql-toolbar.ql-snow .ql-stroke {
    stroke: #cbd5e1 !important;
}

.ql-toolbar.ql-snow .ql-fill {
    fill: #cbd5e1 !important;
}

.ql-toolbar.ql-snow .ql-picker {
    color: #cbd5e1 !important;
}

.ql-toolbar.ql-snow .ql-picker-options {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.ql-toolbar.ql-snow .ql-picker-item:hover,
.ql-toolbar.ql-snow .ql-picker-label:hover {
    color: var(--accent-blue) !important;
}

.ql-container.ql-snow {
    border-color: var(--border-color) !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.25) !important;
}

.ql-editor {
    min-height: 250px;
    color: #f8fafc !important;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: #64748b !important;
    font-style: normal !important;
}

.ql-snow .ql-editor pre.ql-syntax {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #38bdf8 !important;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Custom responsive layout blocks from editor */
@media (max-width: 768px) {
    .template-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .template-cards-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}



/* Custom Platform Social Card hover dynamic color support */
.social-card.custom-link:hover {
    border-color: var(--custom-hover-color, var(--accent-blue)) !important;
    color: var(--custom-hover-color, var(--accent-blue)) !important;
    box-shadow: 0 0 15px var(--custom-hover-rgba, rgba(56, 189, 248, 0.15)) !important;
}

