:root {
    --bg-dark: #0a0e17;
    --bg-panel: #111827;
    --bg-card: #161f32;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --orange: #ea580c;
    --orange-light: #fb923c;
    --border-color: #1e293b;
    --green: #10b981;
    --red: #ef4444;
}

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

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

h1, h2, h3, .oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.text-orange { color: var(--orange-light); }
.text-green { color: var(--green); }

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.nav-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 40px 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.radar-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: radar-spin 4s linear infinite;
}

@keyframes radar-spin {
    100% { transform: rotate(360deg); }
}

.domain-label {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
}

.stats-panel {
    display: flex;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
}

.stat-item.border-left {
    border-left: 1px solid var(--border-color);
}

.stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Sections Common */
section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.section-header {
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.section-subtitle::after {
    content: "";
    height: 1px;
    width: 60px;
    background: var(--border-color);
    margin-left: 15px;
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 15px;
}

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

.max-w-lg { max-width: 800px; }

/* Products Grid */
.subsection-title {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(234, 88, 12, 0.4);
}

.img-placeholder {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    flex-shrink: 0;
}

.img-placeholder svg { width: 40px; height: 40px; }

.card-info {
    flex-grow: 1;
}

.retailer-name {
    color: var(--orange-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-box {
    text-align: right;
    min-width: 70px;
}

.current-price {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--orange-light);
    font-weight: 700;
    line-height: 1;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.discount {
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Feature Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.icon-box svg { width: 20px; height: 20px; }

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Benefit Grid (Why Us) */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 15px;
}

.b-icon {
    color: var(--text-muted);
    width: 24px;
    flex-shrink: 0;
}
.b-icon svg { width: 100%; height: auto; }

.b-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.b-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-section { margin-bottom: 60px; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-q {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

details[open] .faq-q::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-a {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fixed Bottom Console */
.bottom-console {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5), 0 -2px 15px rgba(234, 88, 12, 0.3);
    animation: console-glow 3s ease-in-out infinite alternate;
}

@keyframes console-glow {
    0% {
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5), 0 -2px 10px rgba(234, 88, 12, 0.2);
    }
    100% {
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5), 0 -4px 25px rgba(234, 88, 12, 0.5);
    }
}

.console-inner {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--bg-dark);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--orange);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
    animation: inner-console-glow 3s ease-in-out infinite alternate;
}

@keyframes inner-console-glow {
    0% {
        border-color: rgba(234, 88, 12, 0.5);
        box-shadow: 0 0 10px rgba(234, 88, 12, 0.2);
    }
    100% {
        border-color: rgba(234, 88, 12, 1);
        box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    }
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    flex-grow: 1;
}

.dropdown-checkbox {
    display: none;
}

.dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    border-color: var(--orange);
}

.dropdown-trigger .arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.5);
}

.dropdown-checkbox:checked ~ .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 4px;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-option:hover {
    background: rgba(255,255,255,0.05);
}

.dropdown-option.selected {
    background: var(--orange);
    color: white;
}

.dropdown-option .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 12px;
}

.scan-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.scan-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    cursor: pointer;
}

.scan-btn.active:hover {
    background: var(--orange-light);
    transform: scale(1.02);
}

.scan-btn svg { width: 18px; height: 18px; }

/* Scanning Overlay */
.scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.98);
    z-index: 2000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.scan-modal {
    text-align: center;
}

.radar-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
}

.radar-animate {
    width: 100%;
    height: 100%;
    animation: radar-spin 2s linear infinite;
}

.scan-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--orange-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-link {
    margin-top: 15px;
}
.footer-link a {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.footer-link a:hover { color: var(--text-main); }

/* Clearance Page Styles */
.page-clearance {
    background-color: #0d1117;
}

.product-card-horizontal {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    transition: transform 0.2s;
    height: auto !important;
    padding: 20px;
    gap: 20px;
    margin-bottom: 20px;
}

.product-img-box {
    width: 150px;
    height: 150px;
    background: #ffffff;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details {
    padding: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-details h3 {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    color: #c9d1d9;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price-info .price {
    color: #f8fafc;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.badge-discount {
    background: #c69026;
    color: #000000;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-share-link {
    width: 100%;
    background: #161b22;
    border: 1px solid #30363d;
    color: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.btn-share-link:hover {
    background: #21262d;
    border-color: #8b949e;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8b949e;
    font-size: 0.85rem;
}

.stores-count, .publish-time {
    display: flex;
    align-items: center;
}

.blinking-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .product-card-horizontal {
        flex-direction: column;
        height: auto !important;
    }
    .product-img-box {
        width: 100%;
        height: 200px;
    }
    .tab-content {
        grid-template-columns: 1fr !important;
    }
}

/* Sidebar Filter Styles */
.clearance-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sidebar-filters {
    width: 280px;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    position: sticky;
    top: 120px;
    flex-shrink: 0;
}

.filter-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.filters-content {
    display: none;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.filters-content.active {
    display: block;
}

.filter-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.filter-arrow.rotate {
    transform: rotate(180deg);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-select {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-select:focus {
    border-color: var(--orange);
}

.custom-discount-field {
    margin-top: 12px;
}

.custom-discount-input {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.custom-discount-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

/* Page Header Deals Styles */
.page-header-deals h1 {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    color: #f8fafc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header-deals h1 .retailer-name-highlight {
    color: var(--orange-light);
}

@media (max-width: 1024px) {
    .clearance-container {
        flex-direction: column;
    }
    .sidebar-filters {
        width: 100%;
        position: static;
    }
}

.product-card-horizontal.live-drop {
    animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both, flash-orange 2s ease-out;
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
}

@keyframes flash-orange {
    0% {
        background-color: rgba(234, 88, 12, 0.4);
        border-color: var(--orange-light);
    }
    100% {
        background-color: #161b22;
        border-color: #30363d;
    }
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.live-badge {
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .radar-bg { top: 30%; width: 80%; max-width: 400px; }
    .hero h1 { font-size: 4rem; }
    .tagline { margin: 0 auto 30px; }
    .stats-panel { margin-top: 20px; }
    .benefit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .top-nav { padding: 15px 20px; left: 0; right: 0; }
    section { padding: 40px 20px; width: 100%; }
    .hero { padding: 120px 20px 80px; width: 100%; }
    .hero h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
    .product-grid { grid-template-columns: 1fr; width: 100%; }
    .product-card { flex-direction: column; align-items: flex-start; width: 100%; }
    .price-box { text-align: left; margin-top: 10px; display: flex; gap: 15px; align-items: baseline; }
    .original-price { margin: 0; }
    .stat-num { font-size: 1.2rem; }
    .stat-item { padding: 0 10px; }
    
    .console-inner { width: 95%; flex-direction: column; padding: 15px; }
    .custom-dropdown { width: 100%; }
    .scan-btn { width: 100%; justify-content: center; }
}