/* FogScript Custom Stylesheet - Expanded */
:root {
    --bg-dark: #050508;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #8a2be2;
    --accent-secondary: #00d2ff;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
}

/* Navbar Scrolled State */
nav.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Custom Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -20px rgba(138, 43, 226, 0.3);
}

/* Gradient Text & Buttons */
.text-gradient {
    background: linear-gradient(to right, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-gradient:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hero Image Section Specific Styles */
.hero-container-border {
    border: 1px solid rgba(138, 43, 226, 0.4);
    position: relative;
}

/* The purple highlight on the top border */
.hero-container-border::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    width: 15%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 10px;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: bold;
}

.dashboard-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* Footer Specific Styles */
.footer-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    color: white;
    outline: none;
}

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

.footer-link {
    color: #94a3b8;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin-top: 60px;
}

.scroll-top-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Contact Section Specific Styles */
.contact-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.contact-input:focus {
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.05);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 210, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

/* Dashboard Specific Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed nav */
}

.dashboard-sidebar {
    width: 280px;
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.sidebar-link {
    display: flex;
    items-center: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-dim);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.sidebar-link.active, .sidebar-link:hover {
    background: rgba(138, 43, 226, 0.1);
    color: white;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Table Styles */
.custom-table-container {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.custom-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-dim);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.status-pending { background: rgba(234, 179, 8, 0.1); color: #eab308; }

/* Product Page Specific Styles */
.product-grid {
    display: grid;
    gap: 2rem;
}

/* 1 column for small, 3 for large */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}



/* Product Details Specific Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rating-star {
    font-size: 1.5rem;
    color: #4b5563; /* Default Gray */
    cursor: pointer;
    transition: color 0.2s;
}

.rating-star.active, .rating-star:hover {
    color: #fbbf24; /* Gold */
}

.tab-btn {
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: var(--text-dim);
}

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

/* Affiliate Page Specific Styles */
.commission-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.step-card {
    position: relative;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.step-line {
    position: absolute;
    top: 50%;
    right: -25px;
    width: 50px;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
    z-index: 1;
}



/* Mobile Sidebar */
#mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #0a0a0c;
    z-index: 1000;
    transition: 0.4s ease-in-out;
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
}

#mobile-sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Accordion Styles */
.faq-item {
    cursor: pointer;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1rem;
}
.faq-item.active .arrow-icon {
    transform: rotate(180deg);
}

/* Section Spacing */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}