* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Variables */
:root {
    --primary: #8b5cf6;
    --secondary: #6366f1;
    --accent: #a78bfa;
    --glow: rgba(139, 92, 246, 0.5);
}

body[data-theme="cyan"] {
    --primary: #06b6d4;
    --secondary: #0891b2;
    --accent: #22d3ee;
    --glow: rgba(6, 182, 212, 0.5);
}

body[data-theme="pink"] {
    --primary: #ec4899;
    --secondary: #d946ef;
    --accent: #f9a8d4;
    --glow: rgba(236, 72, 153, 0.5);
}

body[data-theme="green"] {
    --primary: #10b981;
    --secondary: #059669;
    --accent: #34d399;
    --glow: rgba(16, 185, 129, 0.5);
}

body[data-theme="orange"] {
    --primary: #f97316;
    --secondary: #ea580c;
    --accent: #fb923c;
    --glow: rgba(249, 115, 22, 0.5);
}

body[data-theme="blue"] {
    --primary: #3b82f6;
    --secondary: #2563eb;
    --accent: #60a5fa;
    --glow: rgba(59, 130, 246, 0.5);
}

body[data-theme="red"] {
    --primary: #ef4444;
    --secondary: #dc2626;
    --accent: #f87171;
    --glow: rgba(239, 68, 68, 0.5);
}

body[data-theme="gold"] {
    --primary: #f59e0b;
    --secondary: #d97706;
    --accent: #fbbf24;
    --glow: rgba(245, 158, 11, 0.5);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #0a0118;
    color: #fff;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Background KYRA text */
.bg-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: var(--accent);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.05em;
    user-select: none;
    will-change: opacity;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.05; }
}

/* Gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -150px;
    left: -150px;
    animation: float1 25s infinite ease-in-out;
}

.orb2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -100px;
    right: -100px;
    animation: float2 20s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -40px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 60px); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 55px;
    height: 55px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(360deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.latency-indicator {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.latency-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
}

.latency-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-latency 2s ease infinite;
    transition: background 0.5s ease;
}

.latency-dot.low {
    background: #10b981;
}

.latency-dot.medium {
    background: #f97316;
}

.latency-dot.high {
    background: #ef4444;
}

@keyframes pulse-latency {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.latency-text {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.5s ease;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Theme Panel */
.theme-panel {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 350px;
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    z-index: 200;
    transition: right 0.4s ease;
    box-shadow: -10px 10px 60px rgba(0, 0, 0, 0.5);
}

.theme-panel.open {
    right: 2rem;
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.theme-panel-header h3 {
    font-size: 1.3rem;
}

.close-panel {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.theme-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.theme-option:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-option.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.theme-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-option:hover .theme-preview {
    transform: scale(1.1);
}

.theme-option span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
    max-width: 700px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.cta-button {
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--glow);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
}

.cta-button.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.cta-button.discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button.discord:hover::before {
    left: 100%;
}

.cta-button.discord:hover {
    background: linear-gradient(135deg, #4752C4, #3c45a5);
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.5);
}

.discord-icon {
    width: 28px;
    height: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Stats */
.stats {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--glow);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.3rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Dashboard Promo Section */
.dashboard-promo {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
}

.admin-badge svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.dashboard-container h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.dashboard-container p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.dashboard-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.dashboard-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.dashboard-access-btn:hover::before {
    left: 100%;
}

.dashboard-access-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.5);
}

.dashboard-access-btn svg {
    width: 24px;
    height: 24px;
}

/* Features & Commands */
.section {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    gap: 2rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.commands-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--glow);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-title, .command-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.command-name {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
}

.feature-desc, .command-desc {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1.1rem;
}

.command-desc {
    font-size: 1rem;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6rem;
}

footer p {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-10px) rotate(360deg);
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem 1.5rem; }
    .bg-text { font-size: 35vw; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-button { width: 100%; }
    .theme-panel.open { right: 1rem; left: 1rem; width: auto; }
    .header-right { flex-wrap: wrap; }
    .latency-indicator { font-size: 0.85rem; }
    .dashboard-container { padding: 2.5rem 1.5rem; }
    .dashboard-access-btn { width: 100%; justify-content: center; }
}
