:root {
    --bg-dark: #060816;
    --bg-panel: #0c1024;
    --border-light: rgba(188, 176, 255, 0.10);
    --border-hover: rgba(210, 202, 255, 0.24);
    
    --text-main: #ffffff;
    --text-dim: #888888;
    
    --accent-primary: #8b5cf6;
    --accent-hover: #a78bfa;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: #050714;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.18) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 50px 30px, -40px -50px, 30px -20px, -50px 40px;
    }
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    opacity: .25;
    background-image:
        linear-gradient(rgba(139, 92, 246, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

body::after {
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(59, 130, 246, 0.15), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    body::after { transform: none; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Global Background Setup */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}



/* Typography Utilities */
.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.heading-md {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-dimmed {
    color: var(--text-dim);
}

.accent-text {
    color: var(--accent-primary);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-hover);
}

.btn-outline:hover {
    background: var(--border-hover);
    border-color: var(--text-main);
}

.btn-accent {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-accent:hover {
    background: var(--text-main);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.4s var(--easing), padding 0.4s var(--easing);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.nav-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    transition: transform 0.3s var(--easing), filter 0.3s var(--easing);
}

.nav-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.7));
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s var(--easing);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-hover);
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border-radius: 100px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin: 2rem 0 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Features Panel */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.feature-card {
    background: var(--bg-dark);
    padding: 4rem 3rem;
    transition: transform 0.4s var(--easing), background 0.4s var(--easing), box-shadow 0.4s var(--easing);
    border-radius: 8px;
}

.feature-card:hover {
    background: var(--bg-panel);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    z-index: 10;
    position: relative;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Code Showcase / Editor Mockup */
.code-showcase {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4rem;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: #08080a;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-hover);
}

.code-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.code-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #a9b7c6;
    overflow-x: auto;
}

.code-keyword { color: #cc7832; }
.code-string { color: #6a8759; }
.code-comment { color: #808080; }
.code-func { color: #ffc66d; }

/* Catalog Page */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.01));
}

.page-header p {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
}

.filter-tab.active {
    color: var(--text-main);
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.filter-tab.active::after {
    width: 100%;
}

.search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--text-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border-radius: 8px;
    gap: 0.75rem;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.status-tag {
    color: var(--accent-primary);
    font-weight: 600;
}

.status-tag.offline {
    color: var(--text-dim);
}

.product-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-main);
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 0.5rem;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.add-to-cart-btn {
    padding: 0.4rem 0.8rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 6px;
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Forms & Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--text-main);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--accent-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 6rem 0 3rem;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .heading-xl { font-size: 3.5rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .catalog-toolbar { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .filter-group { flex-wrap: wrap; }
    .search-input { width: 100%; }
}



.product-card > p.text-dimmed {
    display: none;
}

/* Link Discord Page */
.link-page { min-height: 100vh; display: grid; place-items: center; padding: 7rem 2rem 3rem; }
.link-card { width: min(100%, 620px); padding: 3rem; background: var(--bg-panel); border: 1px solid var(--border-hover); text-align: center; }
.link-code { font: 700 clamp(2rem, 9vw, 4.5rem)/1 var(--font-heading); letter-spacing: .16em; color: var(--accent-hover); margin: 2rem 0 .8rem; }
.link-steps { color: var(--text-dim); text-align: left; margin: 2rem auto; max-width: 410px; }
.link-status { min-height: 1.6rem; color: var(--text-dim); margin-top: 1rem; }
.catalog-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-hero .hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Catalog Layout */
.catalog-filters-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.categories-scroll {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.05);
}

.category-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-dark);
}

.category-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Search */
.search-wrapper {
    position: relative;
    width: 250px;
}

.search-wrapper .search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-wrapper .search-input:focus {
    border-color: var(--accent-primary);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.results-count {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.view-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-dark);
}

.catalog-main {
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    padding-right: 0.5rem;
    padding-bottom: 4rem;
}

.catalog-main::-webkit-scrollbar {
    width: 4px;
}

.catalog-main::-webkit-scrollbar-track {
    background: transparent;
}

.catalog-main::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

.product-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(7, 12, 26, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 3000; display: none; align-items: flex-start; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; overflow-y: auto;
}
.product-modal-overlay.active { display: flex; opacity: 1; }

.product-modal-container {
    width: 95vw; max-width: 1300px; margin: 0 auto; padding: 2rem 0;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.product-modal-overlay.active .product-modal-container { transform: translateY(0); }

.modal-header { margin-bottom: 2rem; display: flex; align-items: center; }
.back-link {
    color: #888; cursor: pointer; transition: color 0.2s; font-size: 0.9rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0;
}
.back-link:hover { color: #fff; }

.modal-content-grid {
    display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: stretch;
}

.modal-panel-left {
    background: var(--bg-panel); border: 1px solid var(--border-light);
    border-radius: 16px; padding: 1.5rem;
}
.modal-image-wrapper {
    border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; height: 400px; background: #000;
}
.modal-img { width: 100%; height: 100%; object-fit: cover; }

.modal-tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.modal-tag {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: #aaa;
}
.tag-green { color: #4ade80; background: rgba(74, 222, 128, 0.05); border-color: rgba(74, 222, 128, 0.2); }

.modal-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: #fff; letter-spacing: -0.02em; }
.modal-desc { color: #888; line-height: 1.6; margin-bottom: 2rem; font-size: 1.05rem; }

.modal-panel-right {
    background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: 16px;
    display: flex; flex-direction: column; position: sticky; top: 2rem;
}
.plan-header { padding: 1.5rem; display: flex; gap: 1rem; align-items: center; border-bottom: 1px solid var(--border-light); }
.plan-icon { background: rgba(255,255,255,0.05); padding: 0.8rem; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; }
.plan-header h2 { font-size: 1.25rem; margin-bottom: 0.2rem; font-weight: 700; color: #fff; }
.plan-header p { color: #888; font-size: 0.85rem; line-height: 1.4; margin: 0; }

.plan-list { padding: 1.5rem; }
.plan-card {
    border: 1px solid #444; background: rgba(255,255,255,0.03); border-radius: 12px;
    padding: 1.2rem; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 0 0 1px transparent;
}
.plan-card.active { border-color: #777; background: rgba(255,255,255,0.06); box-shadow: 0 0 0 1px #777; }
.plan-info h3 { font-size: 1.1rem; margin-bottom: 0.2rem; font-weight: 700; color: #fff; }
.plan-info p { color: #888; font-size: 0.8rem; margin: 0; }
.plan-price { font-weight: 700; font-size: 1.25rem; color: #fff; }

.plan-checkout {
    padding: 1.5rem; border-top: 1px solid var(--border-light);
    background: rgba(0,0,0,0.2); border-radius: 0 0 16px 16px;
}
.checkout-summary { display: flex; justify-content: space-between; margin-bottom: 1.2rem; font-size: 0.85rem; color: #888; }
.checkout-selected-plan { color: #fff; font-weight: 700; }

.checkout-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-add-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-now {
    flex: 1;
    background: #ccc;
    color: #000;
    font-weight: 700;
    padding: 1.2rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}
.btn-buy-now:hover { background: #fff; transform: translateY(-2px); }
.btn-buy-now:active { transform: translateY(0); }

@media (max-width: 1024px) {
    .modal-content-grid { grid-template-columns: 1fr; }
    .modal-panel-right { position: relative; top: 0; }
    
    .catalog-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-filters-bar {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-light);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-modal.open { right: 0; }
.cart-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.close-cart { cursor: pointer; color: var(--text-dim); }
.cart-items { flex-grow: 1; overflow-y: auto; }
.cart-item {
    display: flex; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light);
}
.cart-item img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h4 {
    font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text-main);
}
.cart-item-info p {
    font-size: 0.85rem; color: var(--text-dim); margin: 0;
}
.cart-total { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; text-align: right;}
#cart-toggle { cursor: pointer; }
.cart-badge { background: var(--accent-primary); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.75rem; margin-left: 5px; }

/* Background Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
        linear-gradient(225deg, rgba(167, 139, 250, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Admin Dashboard */
.admin-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.admin-table th, .admin-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.admin-table img {
    max-width: 60px;
    border-radius: 4px;
}
.admin-actions {
    display: flex;
    gap: 0.5rem;
}
.order-items { min-width: 220px; color: var(--text-dim); font-size: .9rem; }
.order-status { min-width: 130px; }
.order-total { white-space: nowrap; font-weight: 600; }
@media (max-width: 900px) {
    .admin-section { overflow-x: auto; }
    .admin-table { min-width: 860px; }
}
