:root {
    /* Deep Space Colors */
    --bg-deep: #020203; /* Almost pure black */
    --bg-gradient-start: #050508;
    --bg-gradient-end: #0a0a12;

    --primary-accent: #8e44ad;
    --secondary-accent: #6c5ce7;
    --highlight: #d980fa;
    --text-main: #ffffff;
    --text-muted: #aab7c4;

    --glass-bg: rgba(20, 20, 30, 0.4); /* Darker glass */
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.03);

    /* Electric Border Variables */
    --electric-border-color: #dd8448;
    --electric-light-color: #ffb07c;
    --gradient-color: rgba(221, 132, 72, 0.4);
    --color-neutral-900: #1a1a1a;

    /* Glow Card Variables */
    --glow-sens: 30;
    --glow-card-bg: linear-gradient(8deg, #0a0a0a 75%, #1a1a1a 75.5%);
    --glow-blend: plus-lighter;
    --glow-color: 280deg 80% 80%;
    --glow-boost: 0%;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative; /* Needed for pseudo-element positioning */
}

/* Grid Background Effect */
body::before {
    --size: 45px;
    /* Dark purple/blue line color, very subtle */
    --line: rgba(108, 92, 231, 0.1);
    content: '';
    height: 100vh;
    width: 100vw;
    position: fixed;
    background:
        linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)) calc(var(--size) * 0.36) 50% / var(--size) var(--size),
        linear-gradient(var(--line) 1px, transparent 1px var(--size)) 0% calc(var(--size) * 0.32) / var(--size) var(--size);
    mask: linear-gradient(-20deg, transparent 40%, white); /* Fade out at top */
    top: 0;
    left: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -2; /* Behind Matrix Rain */
}

/* Matrix Canvas Background */
#code-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content, in front of grid */
    opacity: 0.4; /* Subtle effect */
    pointer-events: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    z-index: 1000;
    background: rgba(2, 2, 3, 0.8); /* Darker header */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.logo::after {
    content: 'STUDIOS';
    position: absolute;
    bottom: -12px;
    right: 0;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    font-weight: 400;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(217, 128, 250, 0.5);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-accent), var(--highlight));
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 100%;
}

/* Header Actions (Cart & Login) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.cart-trigger:hover {
    color: var(--highlight);
}

.cart-trigger i {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-count.visible {
    opacity: 1;
}

/* Main Content */
main {
    padding-top: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero-badge {
    background: rgba(142, 68, 173, 0.1);
    border: 1px solid rgba(142, 68, 173, 0.3);
    color: var(--highlight);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #aab7c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
}

/* Features Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg);
    border-color: rgba(217, 128, 250, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- ABOUT SECTION STYLES --- */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #aab7c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--highlight);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(142, 68, 173, 0.3);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dev-signature {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dev-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.dev-info h5 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.dev-info span {
    font-size: 0.9rem;
    color: var(--highlight);
}

/* --- Electric Border Card Styles --- */
.electric-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
    opacity: 0; /* For scroll reveal */
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.electric-card-wrapper.reveal {
    opacity: 1;
    transform: translateY(0);
}

.electric-card-container {
    padding: 2px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(
            -30deg,
            var(--gradient-color),
            transparent,
            var(--gradient-color)
    ),
    linear-gradient(
            to bottom,
            var(--color-neutral-900),
            var(--color-neutral-900)
    );
    width: 350px;
    height: 500px;
}

.electric-inner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.electric-border-outer {
    border: 2px solid rgba(221, 132, 72, 0.5);
    border-radius: 24px;
    padding-right: 4px;
    padding-bottom: 4px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.electric-main-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 2px solid var(--electric-border-color);
    margin-top: -4px;
    margin-left: -4px;
    filter: url(#turbulent-displace);
    position: absolute;
}

.electric-glow-layer-1 {
    border: 2px solid rgba(221, 132, 72, 0.6);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(1px);
}

.electric-glow-layer-2 {
    border: 2px solid var(--electric-light-color);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(4px);
}

.electric-overlay-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 24px;
    opacity: 1;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(
            -30deg,
            white,
            transparent 30%,
            transparent 70%,
            white
    );
    pointer-events: none;
}

.electric-overlay-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 24px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(
            -30deg,
            white,
            transparent 30%,
            transparent 70%,
            white
    );
    pointer-events: none;
}

.electric-background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 24px;
    filter: blur(32px);
    transform: scale(1.1);
    opacity: 0.3;
    z-index: -1;
    background: linear-gradient(
            -30deg,
            var(--electric-light-color),
            transparent,
            var(--electric-border-color)
    );
}

.electric-content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.electric-content-top {
    display: flex;
    flex-direction: column;
    padding: 48px;
    padding-bottom: 16px;
    height: 100%;
}

.electric-content-bottom {
    display: flex;
    flex-direction: column;
    padding: 32px 48px 48px 48px;
    padding-top: 16px;
}

.electric-scrollbar-glass {
    background: radial-gradient(
            47.2% 50% at 50.39% 88.37%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 100%
    ),
    rgba(255, 255, 255, 0.04);
    position: relative;
    transition: background 0.3s ease;
    border-radius: 14px;
    width: fit-content;
    height: fit-content;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.electric-title {
    font-size: 36px;
    font-weight: 500;
    margin-top: auto;
    color: white;
}

.electric-description {
    opacity: 0.7;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.electric-divider {
    margin-top: auto;
    border: none;
    height: 1px;
    background-color: white;
    opacity: 0.1;
    mask-image: linear-gradient(to right, transparent, black, transparent);
    -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black,
            transparent
    );
}

/* New Action Row for Electric Card */
.electric-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.electric-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--electric-light-color);
    text-shadow: 0 0 10px rgba(221, 132, 72, 0.4);
}

.electric-btn-details {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.electric-btn-details:hover {
    background: var(--electric-border-color);
    border-color: var(--electric-light-color);
    color: #000;
    box-shadow: 0 0 15px rgba(221, 132, 72, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* --- LUMINOUS CARD STYLES --- */
.luminous-card {
    --sz: clamp(10px, min(2vw, 3vh), 24px);
    position: relative;
    background: radial-gradient(circle at 50% 0%, #3a3a3a 0%, #1a1a1a 64%);
    box-shadow: inset 0 1.01rem 0.2rem -1rem #fff0,
        inset 0 -1.01rem 0.2rem -1rem #0000, 0 -1.02rem 0.2rem -1rem #fff0,
        0 1rem 0.2rem -1rem #0000, 0 0 0 1px #fff3, 0 4px 4px 0 #0004, 0 0 0 1px #333;
    width: 28rem; /* Increased width for content */
    height: 40rem; /* Increased height for content */
    border-radius: 1.8rem;
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: all 0.4s ease-in-out, translate 0.4s ease-out;
    font-size: var(--sz);
    transform: scale(1);
}

.luminous-card::before {
    content: "";
    display: block;
    --offset: 1rem;
    width: calc(100% + 2 * var(--offset));
    height: calc(100% + 2 * var(--offset));
    position: absolute;
    left: calc(-1 * var(--offset));
    right: calc(-1 * var(--offset));
    top: calc(-1 * var(--offset));
    bottom: calc(-1 * var(--offset));
    margin: auto;
    box-shadow: inset 0 0 0px 0.06rem #fff2;
    border-radius: 2.6rem;
    --ax: 4rem;
    clip-path: polygon(
        var(--ax) 0,
        0 0,
        0 var(--ax),
        var(--ax) var(--ax),
        var(--ax) calc(100% - var(--ax)),
        0 calc(100% - var(--ax)),
        0 100%,
        var(--ax) 100%,
        var(--ax) calc(100% - var(--ax)),
        calc(100% - var(--ax)) calc(100% - var(--ax)),
        calc(100% - var(--ax)) 100%,
        100% 100%,
        100% calc(100% - var(--ax)),
        calc(100% - var(--ax)) calc(100% - var(--ax)),
        calc(100% - var(--ax)) var(--ax),
        100% var(--ax),
        100% 0,
        calc(100% - var(--ax)) 0,
        calc(100% - var(--ax)) var(--ax),
        var(--ax) var(--ax)
    );
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}

.luminous-card:hover {
    translate: 0 -0.2rem;
}

.luminous-card:hover::before {
    --offset: 0.5rem;
    --ax: 8rem;
    border-radius: 2.2rem;
    box-shadow: inset 0 0 0 0.08rem #fff1;
}

.luminous-card .light-layer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 400px;
    pointer-events: none;
}

.luminous-card .slit {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 64%;
    height: 1.2rem;
    transform: rotateX(-76deg);
    background: #121212;
    box-shadow: 0 0 4px 0 #fff0;
    transition: all 0.4s ease-in-out;
}

.luminous-card .lumen {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    pointer-events: none;
    perspective: 400px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.luminous-card .lumen .min {
    width: 70%;
    height: 3rem;
    background: linear-gradient(#fff0, #fffa);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 2.5rem;
    margin: auto;
    transform: rotateX(-42deg);
    opacity: 0.4;
}

.luminous-card .lumen .mid {
    width: 74%;
    height: 13rem;
    background: linear-gradient(#fff0, #fffa);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 10em;
    margin: auto;
    transform: rotateX(-42deg);
    filter: blur(1rem);
    opacity: 0.8;
    border-radius: 100% 100% 0 0;
}

.luminous-card .lumen .hi {
    width: 50%;
    height: 13rem;
    background: linear-gradient(#fff0, #fffa);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 12em;
    margin: auto;
    transform: rotateX(22deg);
    filter: blur(1rem);
    opacity: 0.6;
    border-radius: 100% 100% 0 0;
}

.luminous-card .darken {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    pointer-events: none;
    perspective: 400px;
    transition: opacity 0.4s ease-in-out;
    opacity: 0.5;
}

.luminous-card .darken > * {
    transition: opacity 0.4s ease-in-out;
}

.luminous-card .darken .sl {
    width: 64%;
    height: 10rem;
    background: linear-gradient(#000, #0000);
    position: absolute;
    left: 0;
    right: 0;
    top: 9.6em;
    bottom: 0;
    margin: auto;
    filter: blur(0.2rem);
    opacity: 0.1;
    border-radius: 0 0 100% 100%;
    transform: rotateX(-22deg);
}

.luminous-card .darken .ll {
    width: 62%;
    height: 10rem;
    background: linear-gradient(#000a, #0000);
    position: absolute;
    left: 0;
    right: 0;
    top: 11em;
    bottom: 0;
    margin: auto;
    filter: blur(0.8rem);
    opacity: 0.4;
    border-radius: 0 0 100% 100%;
    transform: rotateX(22deg);
}

.luminous-card .darken .slt {
    width: 0.5rem;
    height: 4rem;
    background: linear-gradient(#0005, #0000);
    position: absolute;
    left: 0;
    right: 11.5rem;
    top: 3.9em;
    bottom: 0;
    margin: auto;
    opacity: 0.6;
    border-radius: 0 0 100% 100%;
    transform: skewY(42deg);
}

.luminous-card .darken .srt {
    width: 0.5rem;
    height: 4rem;
    background: linear-gradient(#0005, #0000);
    position: absolute;
    right: 0;
    left: 11.5rem;
    top: 3.9em;
    bottom: 0;
    margin: auto;
    opacity: 0.6;
    border-radius: 0 0 100% 100%;
    transform: skewY(-42deg);
}

.luminous-card .content .icon {
    position: absolute;
    top: 2rem; /* Moved up */
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    filter: drop-shadow(0 -1.2rem 1px transparent);
    transition: filter 0.4s ease-in-out;
}

/* --- UPDATED TITLE POSITIONING --- */
.luminous-card .content > h4 {
    margin: 0;
    margin-top: 6.5rem; /* Moved up */
    margin-bottom: 1.5rem; /* Added spacing */
    font-size: 1.6rem;
    color: #ccc;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.luminous-card .content .bottom {
    position: relative;
    padding-bottom: 3rem; /* Space for button */
}

/* --- COMMAND LIST STYLES --- */
.luminous-card .content .bottom .description-scroll {
    max-height: 280px; /* Increased height */
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.command-group {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.command-group:last-child {
    border-bottom: none;
}

.cmd-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.cmd-tag {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(217, 128, 250, 0.3);
    color: var(--highlight);
    font-family: 'Courier New', monospace;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.cmd-desc {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.cmd-detail {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    padding-left: 0.5rem;
    line-height: 1.4;
}

.luminous-card .content .bottom .toggle {
    position: absolute;
    right: 0;
    top: -2.5rem; /* Moved up */
    height: 2rem;
    width: 4.8rem;
    border-radius: 0.6rem;
    background: #000;
    box-shadow: inset 0 -8px 8px 0.3rem #0004, inset 0 0 1px 0.3rem #ddd,
        inset 0 -2px 1px 0.3rem #fff, inset 0 1px 2px 0.3rem #0006,
        inset 0 0 1px 0.8rem #aaa;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    z-index: 20; /* Added z-index to ensure clickability */
}

.luminous-card .content .bottom .toggle::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 3.4rem;
    height: 0.68rem;
    border-radius: 0.2rem;
    background: #000;
    transition: all 0.4s ease-in-out;
}

.luminous-card .content .bottom .toggle .handle {
    position: absolute;
    top: 0;
    bottom: 0.04rem;
    margin: auto;
    left: 0.68rem;
    width: 40%;
    height: 30%;
    background: #aaa;
    border-radius: 0.2rem;
    box-shadow: inset 0 1px 4px 0 #fff, inset 0 -1px 1px 0 #000a,
        0 0 1px 1px #0003, 1px 3px 6px 1px #000a;
    transition: all 0.4s ease-in-out;
}

.luminous-card .content .bottom .toggle.active .handle {
    transform: translateX(1.58rem);
}

.luminous-card .content .bottom .toggle span {
    pointer-events: none;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: calc(100% + 0.4rem);
    font-size: 0.6rem;
    font-weight: 100;
    color: #555;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.luminous-card .content .bottom .toggle:hover span {
    opacity: 1;
}

.luminous-card .content .bottom .toggle:not(.active):hover .handle {
    transform: translateX(0.2rem);
}

/* Active State for Luminous Card (Using class instead of :has) */
.luminous-card.light-on {
    box-shadow: inset 0 1.01rem 0.1rem -1rem #fffa, inset 0 -4rem 3rem -3rem #000a,
        0 -1.02rem 0.2rem -1rem #fffa, 0 1rem 0.2rem -1rem #000, 0 0 0 1px #fff2,
        0 4px 4px 0 #0004, 0 0 0 1px #333;
}

.luminous-card.light-on .slit {
    background: #fff;
    box-shadow: 0 0 4px 0 #fff;
}

.luminous-card.light-on .lumen {
    opacity: 0.5;
}

.luminous-card.light-on .darken {
    opacity: 0.8;
}

.luminous-card.light-on .darken .sl {
    opacity: 0.2;
}

.luminous-card.light-on .darken .ll {
    opacity: 1;
}

.luminous-card.light-on .darken .slt {
    opacity: 1;
}

.luminous-card.light-on .darken .srt {
    opacity: 1;
}

.luminous-card.light-on .content .icon {
    filter: drop-shadow(0 -1.2rem 2px #0003) brightness(1.64);
}

.luminous-card.light-on .content .bottom .toggle::before {
    background: #fffc;
    box-shadow: 0 0 0.3rem 0.2rem #fff7;
}

.luminous-card.light-on .content .bottom .toggle .handle {
    box-shadow: inset 0 1px 12px 0 #fff, inset 0 -1px 1px 0 #fffa,
        0 0 2px 1px #4443, 1px 3px 6px 1px #0004;
}

/* Close button for luminous card */
.close-luminous-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-luminous-modal:hover {
    color: #fff;
}

/* --- ADD TO CART BUTTON STYLES (DARK THEME) --- */
@property --complete {
  initial-value: 0;
  inherits: true;
  syntax: '<number>';
}

.atc {
    user-select: none;
    -webkit-tap-highlight-color: #0000;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    border-radius: 100px;
    color: #fff; /* White text */
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0;
    border: 0;
    border: 2px solid #333; /* Dark border */
    cursor: pointer;
    background: #000; /* Dark background */
    transition-property: translate, scale;
    transition-duration: 0.16s;
    transition-timing-function: ease-out;
    z-index: 20;
}

.atc:active {
    translate: 0 1px;
    scale: 0.99;
}

.atc__content {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0.375rem;
    padding: 0.5rem .875rem;
    padding-right: 1rem;
    border-radius: inherit;
    position: relative;
    z-index: 2;
}

.atc__content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #000; /* Dark background */
    opacity: 1;
    z-index: -1;
}

.atc__cart, .atc__cart--dummy, .atc__check {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.atc__check,
.atc__cart--dummy {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    translate: -50% -50%;
}

.atc__cart-content {
    fill: hsl(140 90% 50%);
}

.atc__check {
    stroke: hsl(140 90% 50%);
}

.atc__icon {
    overflow: visible !important;
    width: 100%;
    height: 100%;
    fill: #fff; /* White icon */
}

.atc__text {
    font-size: .875rem;
}

.atc__border {
    position: absolute;
    inset: -2px;
    container-type: inline-size;
    border: 2px solid transparent;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
    border-radius: inherit;
}

.atc__border--demo {
    mask: unset;
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.atc__border--demo::before {
    content: '';
    width: calc(100cqi + 4px);
    height: calc(100cqi + 4px);
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    border-radius: inherit;
    background: #000; /* Dark background */
    opacity: 0.75;
    z-index: 2;
    animation: spin 2s infinite linear;
}

.atc__border--static {
    opacity: 0;
    border-color: #555; /* Darker static border */
}

.atc__border--complete {
    border-color: hsl(140 90% 50%);
    opacity: 0;
}

.atc__border--animated::after {
    content: '';
    width: calc(100cqi + 4px);
    height: calc(100cqi + 4px);
    background: conic-gradient(
        from calc(var(--complete, 0) * 180deg) in hsl increasing hue,
        #0000 0 calc((1 - var(--complete)) * 20%),
        hsl(0 100% 65%) calc((1 - var(--complete)) * 30%),
        hsl(339 100% 65%) calc(100% - ((1 - var(--complete)) * 30%)),
        #0000 calc(100% - ((1 - var(--complete)) * 20%)) 100%
    );
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    animation: spin 2s infinite linear;
    transition: --complete 0.22s ease-out;
}

[data-complete='true'] .atc__border::after {
    --complete: 1;
}

.atc__cart {
    transform-origin: 0 100%;
}

.atc__border--demo, .atc__content::before {
    transition: opacity 0.26s ease-out;
}

[data-reveal='true'] .atc__content::before {
    opacity: 0.75;
}

[data-reveal='true'] .atc__border--demo {
    opacity: 1;
}

[data-reveal='true'] .atc__border--animated:not(.atc__border--demo) {
    mask: linear-gradient(#ffffff50 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

/* --- CART MODAL STYLES --- */
.cart-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0b0d17);
    border: 1px solid var(--glass-border);
    margin: auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: white;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: bold;
    color: var(--electric-light-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

/* 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); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    header { grid-template-columns: 1fr auto; padding: 1rem; }
    nav { display: none; } /* Mobile menu to be implemented */
    .grid-container { grid-template-columns: 1fr; }
}