/* ===== CSS Variables ===== */
:root {
    /* Theme colors - dynamically updated by theme switcher */
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --primary-light: #48c9b0;
    --hue: 170; /* Base hue for canvas - Aquamarine/Turquoise */
    --crystal-saturation: 70;
    --crystal-backdrop: rgba(10, 14, 26, 0.92);
    --crystal-overlay-start: rgba(26, 188, 156, 0.16);
    --crystal-overlay-end: rgba(5, 8, 16, 0.85);

    /* Static colors */
    --secondary: #3498db;
    --secondary-dark: #2980b9;
    --accent: #48c9b0;
    --accent2: #5dddbc;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --bg-card: #141b2d;
    --text-primary: #ffffff;
    --text-secondary: #c0c8e4;
    --text-muted: #6c7a9b;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border: rgba(26, 188, 156, 0.15);
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(26, 188, 156, 0.4);
}

/* Diamond Theme (1st - DEFAULT) - Blue Crystal */
[data-theme="aquamarine"] {
    --primary: #0080ff;
    --primary-dark: #0066cc;
    --primary-light: #00bfff;
    --hue: 210;
    --crystal-saturation: 100;
    --crystal-backdrop: rgba(0, 16, 40, 0.92);
    --crystal-overlay-start: rgba(0, 128, 255, 0.2);
    --crystal-overlay-end: rgba(0, 16, 40, 0.78);
    --secondary: #1e90ff;
    --accent: #00bfff;
    --accent2: #87ceeb;
    --border: rgba(0, 128, 255, 0.15);
    --glow: rgba(0, 191, 255, 0.4);
}

/* Onyx Theme (2nd) - Pure Black Crystal */
[data-theme="onyx"] {
    --primary: #ffffff;
    --primary-dark: #e0e0e0;
    --primary-light: #f5f5f5;
    --hue: 0;
    --crystal-saturation: 0;
    --crystal-backdrop: rgba(0, 0, 0, 0.95);
    --crystal-overlay-start: rgba(10, 10, 10, 0.22);
    --crystal-overlay-end: rgba(0, 0, 0, 0.9);
    --secondary: #1a1a1a;
    --accent: #cccccc;
    --accent2: #999999;
    --border: rgba(255, 255, 255, 0.15);
    --glow: rgba(255, 255, 255, 0.2);
    --button-text: #000000; /* Dark text for bright buttons on Onyx theme */
}

/* Pink Diamond Theme (3rd) - Hot Pink Crystal */
[data-theme="pink-diamond"] {
    --primary: #ff6b9d;
    --primary-dark: #e91e63;
    --primary-light: #ffb3d9;
    --hue: 330;
    --crystal-saturation: 75;
    --crystal-backdrop: rgba(32, 10, 20, 0.92);
    --crystal-overlay-start: rgba(255, 107, 157, 0.24);
    --crystal-overlay-end: rgba(32, 10, 20, 0.8);
    --secondary: #f06292;
    --accent: #ff9ec7;
    --accent2: #ffc1e3;
    --border: rgba(255, 107, 157, 0.15);
    --glow: rgba(255, 107, 157, 0.4);
}

/* Ruby Theme (4th) - Deep Red Crystal */
[data-theme="ruby"] {
    --primary: #dc143c;
    --primary-dark: #b30000;
    --primary-light: #ff6b6b;
    --hue: 350;
    --crystal-saturation: 85;
    --crystal-backdrop: rgba(30, 5, 10, 0.92);
    --crystal-overlay-start: rgba(220, 20, 60, 0.24);
    --crystal-overlay-end: rgba(30, 5, 10, 0.82);
    --secondary: #e74c3c;
    --accent: #ff4757;
    --accent2: #ff6b81;
    --border: rgba(220, 20, 60, 0.2);
    --glow: rgba(220, 20, 60, 0.5);
}

/* Emerald Theme (5th) - Green Crystal */
[data-theme="emerald"] {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --hue: 145;
    --crystal-saturation: 70;
    --crystal-backdrop: rgba(8, 24, 14, 0.92);
    --crystal-overlay-start: rgba(46, 204, 113, 0.22);
    --crystal-overlay-end: rgba(8, 24, 14, 0.8);
    --secondary: #1abc9c;
    --accent: #58d68d;
    --accent2: #73d69c;
    --border: rgba(46, 204, 113, 0.15);
    --glow: rgba(46, 204, 113, 0.4);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.link-quiet {
    color: var(--text-secondary);
    text-decoration: none;
}

.link-quiet:hover {
    color: var(--primary);
}

/* Theme Switcher - Dropdown Style */
.theme-switcher {
    position: relative;
    margin-right: 1.5rem;
}

/* Theme Switcher - Visual Circles */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-dropdown-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-circles {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.theme-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.theme-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.theme-circle.active {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.theme-circle.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Legacy dropdown styles (deprecated) */
.theme-dropdown {
    background: rgba(var(--secondary-rgb), 0.15);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.theme-dropdown:hover {
    border-color: var(--primary);
    background: rgba(var(--secondary-rgb), 0.25);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.theme-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

.theme-dropdown option {
    background: var(--bg);
    color: var(--text);
    padding: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-icon {
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-name {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.discord-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.discord-icon-link:hover {
    background: rgba(114, 137, 218, 0.15);
}

.discord-icon-link svg {
    display: block;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, var(--crystal-overlay-start) 0%, transparent 60%), var(--crystal-backdrop);
}

#crystalCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 50%, 
        rgba(0,0,0,0.5) 75%, 
        rgba(0,0,0,0) 95%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 50%, 
        rgba(0,0,0,0.5) 75%, 
        rgba(0,0,0,0) 95%);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--crystal-overlay-start) 0%, var(--crystal-overlay-end) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Smooth gradient transition from crystals to dark theme */
.hero-background::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
                transparent 0%,
                rgba(5, 8, 16, 0.2) 15%,
                rgba(5, 8, 16, 0.5) 30%,
                rgba(5, 8, 16, 0.8) 50%,
                rgba(5, 8, 16, 0.95) 70%,
                rgba(5, 8, 16, 1) 85%,
                rgba(5, 8, 16, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}


.account-summary-card {
    max-width: 1200px;
    width: 95%;
    margin: 2.5rem auto;
    padding: 1.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.88), rgba(5, 8, 16, 0.92));
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55), 0 0 20px var(--glow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.account-summary-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(72, 201, 176, 0.18), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.account-summary-card > * {
    position: relative;
    z-index: 1;
}

.account-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-session-pill,
.discord-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.account-session-pill {
    background: rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.5);
    color: var(--primary-light);
}

.account-session-pill[data-state="error"] {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff9d92;
}

.account-session-pill[data-state="verifying"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.session-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
}

.account-session-pill[data-state="error"] .session-dot {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

.account-session-pill[data-state="verifying"] .session-dot {
    background: #f5d76e;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.7);
}

.discord-pill {
    background: rgba(72, 115, 255, 0.12);
    border-color: rgba(72, 115, 255, 0.35);
    color: #92a4ff;
}

.discord-pill.is-linked {
    background: rgba(72, 201, 176, 0.12);
    border-color: rgba(72, 201, 176, 0.45);
    color: var(--primary-light);
}

.discord-pill-icon {
    display: inline-flex;
    align-items: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmin(200px, 1fr));
    gap: 2rem;
}

.summary-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-value {
    font-size: 1.15rem;
    font-weight: 600;
}

.sparkline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.sparkline-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    background: rgba(5, 8, 16, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sparkline-card.profit {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.12), rgba(5, 8, 16, 0.9));
}

.sparkline-card.playtime {
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.12), rgba(5, 8, 16, 0.9));
}

.sparkline-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.sparkline-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sparkline-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.sparkline-card canvas {
    width: 100%;
    height: 180px;
    margin-top: 1rem;
    display: block;
}

.summary-cta {
    align-self: flex-start;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.summary-cta:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.doc-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0;
}

.doc-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.doc-pill {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.doc-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 188, 156, 0.08);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    margin-bottom: 0.6rem;
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.docs {
    padding: 5rem 0 3rem;
    background: rgba(0,0,0,0.2);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mod-ui {
    padding: 5.5rem 0;
    background: transparent;
    position: relative;
    z-index: 3;
}

.mod-ui .section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mod-ui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.filters-panel.preview {
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.filters-panel.preview .filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filters-panel.preview input[type="text"],
.filters-panel.preview input[type="number"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: var(--text-primary);
}

.filters-panel.preview input:disabled {
    opacity: 0.7;
}

.filter-toggles {
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-link {
    display: inline-flex;
    margin-top: 1rem;
}

.preview-table {
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.preview-table table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}

.preview-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.preview-table thead {
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preview-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.preview-table tbody tr + tr {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-table .loading-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

.preview-table .item-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.preview-table .item-id {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.risk-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.risk-pill.low {
    background: rgba(46, 204, 113, 0.15);
    color: #7dffb4;
}

.risk-pill.medium {
    background: rgba(243, 156, 18, 0.15);
    color: #ffd27f;
}

.risk-pill.high {
    background: rgba(231, 76, 60, 0.18);
    color: #ff9a8b;
}

.doc-card {
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(15, 20, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--glow);
}

.doc-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.doc-link {
    margin-top: 0.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.doc-link:hover {
    text-decoration: underline;
}

.account-hub {
    padding: 5rem 0;
}

.hub-grid {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.hub-card {
    background: rgba(15, 20, 34, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    position: relative;
    min-height: 220px;
    max-width: 300px;
    box-shadow: 0 2px 10px var(--shadow);
}

.hub-step {
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--primary);
    color: var(--bg-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

.account-lock-note {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed var(--primary);
    color: var(--text-secondary);
    background: rgba(26, 188, 156, 0.08);
}

[data-requires-account-btn].requires-account {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-requires-account-btn].requires-account:hover,
[data-requires-account-btn].requires-account:focus-visible {
    opacity: 0.85;
    transform: translateY(-1px);
    outline: 2px solid rgba(26, 188, 156, 0.5);
    outline-offset: 2px;
}

[data-requires-account-btn][disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.account-gate-toast {
    position: fixed;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--primary);
    background: rgba(5, 8, 16, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.account-gate-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-gate-toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-gate-toast__message {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent2), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* ===== Price Container (Hero) ===== */
.price-container {
    margin: 3rem 0;
}

.price-badge {
    position: relative;
    display: inline-block;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 10px 40px var(--glow);
}

/* ===== Diagonal Ribbon (Minecraft Splash Style) ===== */
.limited-ribbon {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--danger), var(--warning));
    color: #fff;
    padding: 0.5rem 2.5rem;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: rotate(15deg);
    box-shadow: 0 4px 15px var(--glow);
    z-index: 10;
    animation: ribbonWiggle 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes ribbonWiggle {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    25% { transform: rotate(17deg) translateY(-2px); }
    50% { transform: rotate(13deg) translateY(2px); }
    75% { transform: rotate(16deg) translateY(-1px); }
}

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--danger);
    opacity: 0.6;
}

.price-free {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--success);
    text-shadow: 0 0 20px var(--glow);
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { text-shadow: 0 0 20px var(--glow), 0 0 10px var(--glow); }
    50% { text-shadow: 0 0 30px var(--glow), 0 0 40px var(--glow), 0 0 50px var(--glow); }
}

.price-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Hero CTA ===== */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 8px 20px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Styles ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
}

/* ===== Features Section ===== */
.features {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--glow);
}

.feature-icon {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent2));
    color: var(--bg-dark);
    border-radius: 8px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 3;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.active {
    border-color: var(--primary);
    box-shadow: 0 20px 60px var(--glow);
    transform: scale(1.05);
}

.pricing-ribbon {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, var(--danger), var(--warning));
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 4px 10px var(--glow);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.price-amount-large {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Milestone Tracker ===== */
.milestone-tracker {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.milestone-tracker h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-darker);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px var(--glow);
}

.milestone-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== Download Section ===== */
.download {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 3;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    text-align: left;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    color: var(--bg-dark);
    font-weight: 900;
    font-size: 1.8rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--glow);
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.step-content p {
    color: var(--text-secondary);
}

.btn-download {
    display: inline-flex;
    flex-direction: column;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    margin: 2rem 0;
}

.download-size {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
}

.download-requirements {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Disclaimer Section ===== */
/* ===== Disclaimer Section ===== */
.disclaimer {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
    z-index: 3;
}

/* Gradient overlay to fade crystals from top (solid black fading to transparent) */
.disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, 
                rgba(5, 8, 16, 1) 0%,
                rgba(5, 8, 16, 0.7) 40%,
                transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.disclaimer-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.disclaimer-box {
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.disclaimer-box.warning {
    border-color: #DC143C !important;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(255, 50, 50, 0.20)) !important;
    position: relative;
}

.disclaimer-box.warning * {
    color: #000000 !important;
}

.disclaimer-box.warning h3 {
    color: #000000 !important;
    font-weight: 700 !important;
}

.disclaimer-box.warning p,
.disclaimer-box.warning strong {
    color: #000000 !important;
}

.disclaimer-box.safety {
    border-color: var(--primary);
    position: relative;
}

.disclaimer-box.safety::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.05;
    border-radius: 12px;
    z-index: -1;
}

.disclaimer-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.disclaimer-box.warning h3 {
    color: var(--warning);
}

.disclaimer-box p {
    color: #e0e6f0;
    line-height: 2;
    font-size: 1.1rem;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.disclaimer-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.disclaimer-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.disclaimer-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclaimer-item p {
    color: #d0d8ec;
    line-height: 1.9;
    font-size: 1rem;
}

.safety-list {
    list-style: none;
    padding: 0;
}

.safety-list li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.safety-list li:last-child {
    border-bottom: none;
}

.safety-list li::before {
    content: "→";
    color: var(--primary);
    font-weight: 900;
    margin-right: 0.8rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-icon {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.footer-brand .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links-bottom a:hover {
    color: var(--primary);
}

/* ===== Animations ===== */


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none; /* Mobile menu can be added with JS */
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .account-summary-card {
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .price-badge {
        padding: 1.5rem 2rem;
    }

    .price-old {
        font-size: 1.5rem;
    }

    .price-free {
        font-size: 2.5rem;
    }

    .limited-ribbon {
        font-size: 0.7rem;
        padding: 0.4rem 2rem;
        top: -10px;
        right: -10px;
    }

    .hero-cta,
    .doc-buttons,
    .stats-row,
    .hub-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-direction: column;
    }

    .stat-value {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.active {
        transform: scale(1);
    }

    .download-steps {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Smooth Scrolling Utility ===== */
section {
    scroll-margin-top: 80px;
}

/* ===== Footer ===== */
.site-footer {
    padding: 3rem 0 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* ===== FAQ Section ===== */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--glow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-card);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-primary);
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== System Requirements Grid ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.requirements-grid h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.requirements-grid ul {
    color: var(--text-secondary);
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.requirements-grid li {
    margin-bottom: 0.25rem;
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-copyright p {
    margin: 0;
}
