* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8b5cf6;
    --dark-purple: #6d28d9;
    --light-purple: #a78bfa;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --sidebar-width: 260px;
    --sidebar-bg: linear-gradient(180deg, rgba(10,10,15,0.95), rgba(10,10,15,0.92));
    --sidebar-border: rgba(139, 92, 246, 0.25);
}

/* Light theme variables */
body[data-theme="light"] {
    --bg-dark: #f6f7fb;
    --bg-darker: #ffffff;
    --text-light: #0b0b10;
    --text-gray: #4b5563;
    --accent-glow: rgba(139, 92, 246, 0.2);
    --sidebar-bg: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,247,251,0.96));
    --sidebar-border: rgba(139, 92, 246, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Typography spacing */
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.2; }
ul, ol { margin: 0 0 1rem 1.25rem; }

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
}

.particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    opacity: 0.4;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 3s; }
.particle:nth-child(3) { top: 40%; left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { top: 80%; left: 20%; animation-delay: 9s; }
.particle:nth-child(5) { top: 20%; left: 70%; animation-delay: 12s; }
.particle:nth-child(6) { top: 70%; left: 60%; animation-delay: 15s; }
.particle:nth-child(7) { top: 30%; left: 30%; animation-delay: 18s; }
.particle:nth-child(8) { top: 50%; left: 90%; animation-delay: 21s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-left: 1px solid var(--sidebar-border);
    backdrop-filter: blur(12px);
    z-index: 1002;
    color: var(--text-light);
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Offset page content for sidebar */
body.with-sidebar {
    margin-right: var(--sidebar-width);
}

/* Floating hamburger/expand button */
.hamburger-fab {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    display: none; /* hidden by default; shown when sidebar is closed */
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(10,10,15,0.85);
    border: 1px solid rgba(139, 92, 246, 0.4);
    z-index: 1003;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column; /* stack bars vertically */
}
.hamburger-fab span { width: 18px; height: 2px; background: var(--primary-purple); display: block; transition: transform .25s ease, opacity .25s ease; }
/* X animation for floating button */
.hamburger-fab.active span:nth-child(1){ transform: rotate(45deg) translate(6px, 6px); }
.hamburger-fab.active span:nth-child(2){ opacity: 0; }
.hamburger-fab.active span:nth-child(3){ transform: rotate(-45deg) translate(5px, -5px); }
.hamburger-fab .hamburger-label { display: none; color: var(--text-light); font-weight: 900; font-size: 20px; line-height: 1; align-self: center; }
.hamburger-fab.active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger-fab.active span:nth-child(2){ opacity: 0; }
.hamburger-fab.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
/* In collapsed desktop mode, show '>' label and hide bars */
body.sidebar-collapsed .hamburger-fab .hamburger-label { display: none; }
body.sidebar-collapsed .hamburger-fab span:not(.hamburger-label) { display: none !important; }

/* Command Palette FAB */
.cmd-fab {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(10,10,15,0.9);
    color: var(--text-light);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    display: none;
    z-index: 1003;
    font-size: 22px;
    font-weight: 700;
}
.cmd-fab:hover { background: rgba(139, 92, 246, 0.16); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px var(--primary-purple));
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-purple));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Small settings button near logo */
.settings-mini-btn {
    margin-left: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.settings-mini-btn:hover { background: rgba(139, 92, 246, 0.15); transform: translateY(-1px); border-color: var(--primary-purple); }
.settings-mini-btn:focus { outline: 2px solid var(--primary-purple); outline-offset: 2px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.discord-btn):hover {
    color: var(--primary-purple);
}

.nav-links a:not(.discord-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-links a:not(.discord-btn):hover::after {
    width: 100%;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary-purple);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: var(--dark-purple);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    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);
}

/* Mobile behavior for sidebar */
@media (max-width: 1024px) {
    body.with-sidebar { margin-right: 0; }
    .sidebar { 
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.active { transform: translateX(0); }
    /* Show open button when sidebar is closed; hide when open */
    .hamburger-fab { display: inline-flex; }
    .sidebar.active + .hamburger-fab { display: none !important; }
    .cmd-fab { display: inline-flex; align-items: center; justify-content: center; }
}

/* Collapsed sidebar (desktop minimize) */
@media (min-width: 1025px) {
  body.sidebar-collapsed.with-sidebar { margin-right: 0; }
  body.sidebar-collapsed .sidebar { transform: translateX(100%); transition: transform 0.3s ease; }
  /* Show open button only when desktop sidebar is collapsed */
  body.sidebar-collapsed .hamburger-fab { display: inline-flex; gap: 0; }
}
body.sidebar-collapsed .hamburger-fab > * { display: none !important; }
body.sidebar-collapsed .hamburger-fab::after { content: '>'; color: var(--text-light); font-weight: 900; font-size: 20px; line-height: 1; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.close-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-links li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-link:hover::before {
    transform: scaleY(1);
}

.sidebar-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
    padding-left: 2rem;
}

.sidebar-link.discord-link {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    margin: 1rem 1rem 0;
    border-radius: 10px;
    justify-content: center;
}

.sidebar-link.discord-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    padding-left: 1.5rem;
}


/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Loader username step */
.loader-username { margin-top: 14px; display: grid; gap: 10px; animation: loader-fade-in .35s ease both; }
.loader-username-desc { color: var(--text-gray); font-size: 0.95rem; }
.loader-username-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
#loaderNameInput { 
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
@keyframes loader-fade-in { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }

/* Mobile layout for loader username */
@media (max-width: 640px) {
  .loader-username-row { grid-template-columns: 1fr; }
  .loader-username-row .btn { width: 100%; }
  #loaderNameInput { width: 100%; font-size: 16px; }
  .loader-username-desc { font-size: 0.95rem; }
}

/* Loader exit animation */
.loader { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; z-index: 2005; pointer-events: auto; }
/* Loader exit animation */
.loader.loader-exit { animation: loaderExit 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards; pointer-events: none; }
.loader-exit .loader-icon { animation: iconExit 650ms ease forwards; filter: drop-shadow(0 0 18px var(--accent-glow)); }
.loader-exit .loader-stage, .loader-exit .loader-username { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.loader-exit .progress { transform: scaleX(0.2); opacity: 0; transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s ease; transform-origin: right center; }
@keyframes loaderExit { from { opacity: 1; filter: none; transform: none; } 60% { opacity: .35; filter: blur(1px); transform: translateY(-8px) scale(1.02);} to { opacity: 0; filter: blur(3px); transform: translateY(-14px) scale(1.035);} }
@keyframes iconExit { 0% { transform: scale(1); opacity: 1;} 70% { transform: scale(1.15); opacity: .2;} 100% { transform: scale(1.22); opacity: 0;} }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--accent-glow));
    }
    50% {
        filter: drop-shadow(0 0 40px var(--accent-glow));
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Title */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-purple));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-purple);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-dark);
}

/* Robux icon */
.robux-icon-img {
    width: 22px;
    height: 22px;
    vertical-align: -4px;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        transparent 40%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 60%,
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pricing-card:hover::after {
    transform: translateX(100%);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
}

.pricing-card.featured {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    animation: featured-pulse 3s ease-in-out infinite;
}

@keyframes featured-pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 10px 50px rgba(139, 92, 246, 0.4);
    }
}

.pricing-card.featured::before {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    padding: 0.4rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--primary-purple));
    transition: transform 0.5s ease;
    display: inline-block;
}

.pricing-card:hover .plan-icon {
    transform: rotateY(360deg) scale(1.1);
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-description {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.pricing-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.pricing-card:hover .price-wrapper {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    transform: scale(1.02);
}

.price {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price.robux {
    font-size: 2rem;
}

.price-divider {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.robux-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    color: var(--text-gray);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(139, 92, 246, 0.03);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text .section-title {
    text-align: left;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.code-preview {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 1rem;
    min-width: 400px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.code-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-purple);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-content code {
    display: block;
}

.purple { color: var(--primary-purple); }
.blue { color: #60a5fa; }
.green { color: #34d399; }
.orange { color: #fb923c; }
.comment { color: #6b7280; }

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}
.visit-counter { color: var(--text-gray); font-size: 0.95rem; margin: 0.25rem 0; }

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-column h4 {
    color: var(--light-purple);
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-gray);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.credits {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.credits .highlight {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.credits a {
    color: var(--light-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.credits a:hover {
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.credits a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.credits a:hover::after {
    width: 100%;
}

/* Settings */
.settings { padding: 6rem 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.setting-item { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border: 1px solid rgba(139,92,246,0.2); border-radius: 12px; background: rgba(139,92,246,0.05); }
.setting-text h3 { margin-bottom: 0.35rem; }
.setting-text p { color: var(--text-gray); font-size: 0.95rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { display: none; }
.slider { width: 44px; height: 24px; background: rgba(139,92,246,0.3); border-radius: 999px; position: relative; transition: background .2s ease; }
.slider::after { content: ''; width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s ease; }
.switch input:checked + .slider { background: var(--primary-purple); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch-label { font-size: .9rem; color: var(--text-gray); }

/* Policy */
.policy { padding: 6rem 0; }
.policy-intro { text-align: center; max-width: 800px; margin: 0 auto 2rem; }
.policy-intro h3 { margin-bottom: 0.25rem; }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.policy-card { background: rgba(139,92,246,0.05); border: 1px solid rgba(139,92,246,0.2); border-radius: 12px; padding: 1rem; }
.policy-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: .5px; padding: .25rem .6rem; border-radius: 999px; background: rgba(139,92,246,.2); color: #fff; }
.policy-badge.basic { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.policy-badge.enhanced { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.policy-list { margin: .9rem 0 0; padding-left: 1.1rem; display: grid; gap: .65rem; }
.policy-list li { color: var(--text-gray); line-height: 1.7; }
.policy-callout { border: 1px solid rgba(139,92,246,0.25); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: rgba(139,92,246,0.06); }
.policy-callout.danger { border-color: #ef4444; background: rgba(239, 68, 68, 0.08); }
.policy-section { margin-top: 1.5rem; }
.policy-section h3 { margin-bottom: .5rem; }
.policy-section ul, .policy-section ol { color: var(--text-gray); padding-left: 1.1rem; display: grid; gap: .6rem; line-height: 1.7; }
.muted { color: var(--text-gray); font-size: .9rem; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--bg-darker); border: 1px solid rgba(139,92,246,0.3); border-radius: 12px; padding: 0.75rem 1rem; display: flex; gap: 0.75rem; align-items: center; z-index: 10004; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cookie-banner[hidden] { display: none !important; }
.cookie-text { color: var(--text-gray); font-size: 0.9rem; }

/* Mobile cookie banner layout */
@media (max-width: 640px) {
  .cookie-banner {
    left: 50%; transform: translateX(-50%);
    width: min(96%, 560px);
    bottom: calc(12px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }
  .cookie-text { font-size: 0.95rem; }
  .cookie-banner .btn { width: 100%; }
}

/* Command palette */
.cmd-palette { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); display: grid; place-items: start center; padding-top: 10vh; z-index: 10005; }
/* Ensure hidden palettes are not displayed by CSS overrides */
.cmd-palette[hidden] { display: none !important; }
.cmd-box { width: min(700px, 92%); background: var(--bg-darker); border: 1px solid rgba(139,92,246,0.3); border-radius: 12px; overflow: hidden; }
.cmd-input { width: 100%; padding: 0.9rem 1rem; background: transparent; border: none; outline: none; color: var(--text-light); font-size: 1rem; }
.cmd-list { list-style: none; max-height: 50vh; overflow: auto; }
.cmd-list li { padding: 0.75rem 1rem; border-top: 1px solid rgba(139,92,246,0.15); cursor: pointer; }
.cmd-list li:hover, .cmd-list li[aria-selected="true"] { background: rgba(139,92,246,0.15); }

/* Loader */
.loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg-darker); z-index: 10006; padding: 2rem; }
.loader .loader-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 30px rgba(139,92,246,.35); animation: pulse 1.6s ease-in-out infinite; }
.loader .loader-stage { margin-top: .75rem; color: var(--text-gray); font-size: .95rem; text-align: center; }
.progress { width: min(520px, 92%); height: 10px; background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.35); border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-purple), var(--light-purple)); box-shadow: 0 0 20px var(--accent-glow); transition: width .35s ease; }
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.06); } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 10007; }
.modal[hidden] { display: none !important; }
.modal-box { width: min(520px, 92%); background: var(--bg-darker); border: 1px solid rgba(139,92,246,.3); border-radius: 12px; padding: 1.25rem; color: var(--text-light); }
.modal-box h3 { margin-bottom: .5rem; }
.modal-box p { color: var(--text-gray); }
.modal-box ul { margin: .5rem 0 1rem 1rem; color: var(--text-gray); }
.modal-box input { width: 100%; margin-top: .5rem; padding: .6rem .75rem; border-radius: 8px; border: 1px solid rgba(139,92,246,.35); background: transparent; color: var(--text-light); }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }

/* Notice (legacy) */
.notice { position: fixed; top: 14px; left: 14px; max-width: 420px; display: flex; align-items: center; gap: .5rem; background: rgba(10,10,15,.9); border: 1px solid rgba(139,92,246,.35); color: var(--text-light); padding: .6rem .75rem; border-radius: 10px; z-index: 10008; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.notice[hidden] { display: none !important; }
.notice .notice-close { background: transparent; border: none; color: var(--text-light); cursor: pointer; font-size: 1rem; line-height: 1; padding: .2rem .3rem; border-radius: 6px; }
.notice .notice-close:hover { background: rgba(139,92,246,.2); }

/* Toast notifications */
.notify-container { position: fixed; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 10009; max-width: 440px; }
.notify { display: flex; align-items: flex-start; gap: 8px; background: rgba(10,10,15,.95); border: 1px solid rgba(139,92,246,.35); color: var(--text-light); padding: .6rem .8rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(-6px); animation: toast-in .25s ease forwards; }
.notify.hide { animation: toast-out .25s ease forwards; }
.notify .icon { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 12px rgba(139,92,246,.35); flex: 0 0 auto; }
.notify .body { flex: 1 1 auto; font-size: .95rem; color: var(--text-gray); }
.notify .close { background: transparent; border: none; color: var(--text-light); cursor: pointer; font-size: 1rem; line-height: 1; padding: .1rem .25rem; border-radius: 6px; }
.notify .close:hover { background: rgba(139,92,246,.2); }
@keyframes toast-in { from { opacity:0; transform: translateY(-6px);} to { opacity:1; transform: translateY(0);} }
@keyframes toast-out { from { opacity:1; transform: translateY(0);} to { opacity:0; transform: translateY(-6px);} }

/* Mobile notifications: move to bottom and center */
@media (max-width: 640px) {
  .notify-container { top: auto; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 96%; width: 96%; align-items: stretch; }
  .notify { padding: .7rem .9rem; }
  .notify .body { font-size: 0.95rem; }
}

/* Performance mode */
body.performance-mode * { animation: none !important; transition: none !important; box-shadow: none !important; filter: none !important; }

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .discord-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }

    body {
        overflow-x: hidden;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .code-preview {
        min-width: auto;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .about-text .section-title {
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .price {
        font-size: 2.5rem;
    }

    .price.robux {
        font-size: 1.8rem;
    }

    .featured-badge {
        right: -35px;
        padding: 0.3rem 2rem;
    }
    
    .pricing {
        padding: 4rem 0;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    /* Make floating badges less intrusive on mobile */
    .floating-badges {
        opacity: 0.3;
    }
    
    /* Disable cursor trail on mobile */
    #cursor-trail {
        display: none;
    }
    
    /* Better touch targets */
    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    /* Disable 3D tilt on mobile (performance) */
    .feature-card:hover,
    .pricing-card:hover {
        transform: translateY(-5px) !important;
    }
    
    /* Code preview mobile adjustments */
    .code-preview {
        min-width: auto;
        width: 100%;
        font-size: 0.85rem;
    }
    
    .code-content {
        font-size: 0.8rem;
    }
    
    .pulse-circle {
        width: 250px;
        height: 250px;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Credits mobile styling */
    .credits {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .credits a {
        display: inline-block;
    }
}

/* Extra Small Screens (smaller phones) */
@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .mobile-sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-icon,
    .plan-icon {
        font-size: 2.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .price.robux {
        font-size: 1.75rem;
    }
}

/* Canvas for cursor trail */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* Floating Badges */
.floating-badges {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.badge {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float-badge 15s infinite ease-in-out;
    animation-delay: var(--delay);
    filter: drop-shadow(0 0 10px var(--primary-purple));
}

.badge:nth-child(1) { left: 10%; top: 20%; }
.badge:nth-child(2) { left: 80%; top: 15%; }
.badge:nth-child(3) { left: 70%; top: 70%; }
.badge:nth-child(4) { left: 15%; top: 80%; }
.badge:nth-child(5) { left: 50%; top: 50%; }

@keyframes float-badge {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}
