:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Theme Colors */
    --theme-reviactyl: #06b6d4;
    --theme-nook: #22c55e;
    --theme-nightcore: #a855f7;
    --theme-enola: #f97316;
    --theme-twilight: #6366f1;
    --theme-stellar: #facc15;
    --theme-blueprint: #3b82f6;
    --theme-recolor: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Dynamic Background */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
    background-color: var(--bg-color);
}

.background-grid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.container {
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.logo i {
    color: var(--accent);
    margin-right: 0.75rem;
    -webkit-text-fill-color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Glass Card */
.card {
    background: var(--card-bg);
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-body {
    padding: 1.75rem;
}

/* Theme Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 0.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-item i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Theme Specific Colors */
.theme-reviactyl i { color: var(--theme-reviactyl); text-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
.theme-reviactyl:hover { border-color: var(--theme-reviactyl); }

.theme-nook i { color: var(--theme-nook); text-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
.theme-nook:hover { border-color: var(--theme-nook); }

.theme-nightcore i { color: var(--theme-nightcore); text-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
.theme-nightcore:hover { border-color: var(--theme-nightcore); }

.theme-enola i { color: var(--theme-enola); text-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }
.theme-enola:hover { border-color: var(--theme-enola); }

.theme-twilight i { color: var(--theme-twilight); text-shadow: 0 0 15px rgba(99, 102, 241, 0.4); }
.theme-twilight:hover { border-color: var(--theme-twilight); }

.theme-stellar i { color: var(--theme-stellar); text-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
.theme-stellar:hover { border-color: var(--theme-stellar); }

.theme-blueprint i { color: var(--theme-blueprint); text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.theme-blueprint:hover { border-color: var(--theme-blueprint); }

.theme-recolor i { color: var(--theme-recolor); text-shadow: 0 0 15px rgba(236, 72, 153, 0.4); }
.theme-recolor:hover { border-color: var(--theme-recolor); }

/* Tabs */
.tabs {
    background: rgba(15, 23, 42, 0.5);
    padding: 0.35rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.tab-btn.active i {
    color: var(--accent);
}

/* Command Box */
.command-box {
    background: #0b1120;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

code {
    font-family: 'Courier New', monospace;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Steps */
.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-num {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.step p {
    font-weight: 600;
    color: var(--text-primary);
}

/* Note Box */
.note-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: start;
    font-size: 0.9rem;
    color: #fbbf24;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.view-script-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    width: 100%;
    border: 1px dashed var(--border-color);
    transition: all 0.2s;
}

.view-script-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-style: solid;
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 3rem;
    opacity: 0.7;
}

footer i {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}