/* ===================================================================
   Deal Hunter — Public Website Stylesheet
   Mobile-first responsive design with warm cream theme
   =================================================================== */

/* --- CSS VARIABLES --- */
:root {
    --bg: #f0eff4;
    --bg2: #e8e6f0;
    --card: rgba(255, 255, 255, 0.65);
    --card-solid: #ffffff;
    --border: rgba(255, 255, 255, 0.45);
    --border2: rgba(200, 200, 220, 0.35);
    --accent: #c66d20;
    --accent2: #a85a18;
    --accentBg: rgba(255, 240, 224, 0.6);
    --green: #2d8f4e;
    --greenBg: rgba(232, 245, 233, 0.7);
    --red: #c0392b;
    --redBg: #fdeaea;
    --blue: #2874a6;
    --text: #1a1a2e;
    --textMd: #3d3d5c;
    --textLt: #7a7a9e;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-blur: 12px;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
}

/* --- DARK MODE (system preference) --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #121218;
        --bg2: #1a1a24;
        --card: rgba(30, 30, 45, 0.65);
        --card-solid: #1e1e2d;
        --border: rgba(255, 255, 255, 0.08);
        --border2: rgba(255, 255, 255, 0.06);
        --accent: #e07b28;
        --accent2: #f09040;
        --accentBg: rgba(224, 123, 40, 0.15);
        --green: #3daf62;
        --greenBg: rgba(61, 175, 98, 0.12);
        --red: #e05545;
        --redBg: rgba(224, 85, 69, 0.12);
        --blue: #4a9ed6;
        --text: #e8e6f0;
        --textMd: #b0b0c8;
        --textLt: #8a8aa4;
        --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
        --glass-bg: rgba(30, 30, 45, 0.55);
        --glass-border: rgba(255, 255, 255, 0.06);
    }
}

/* --- DARK MODE (manual toggle) --- */
:root[data-theme="dark"] {
    --bg: #121218;
    --bg2: #1a1a24;
    --card: rgba(30, 30, 45, 0.65);
    --card-solid: #1e1e2d;
    --border: rgba(255, 255, 255, 0.08);
    --border2: rgba(255, 255, 255, 0.06);
    --accent: #e07b28;
    --accent2: #f09040;
    --accentBg: rgba(224, 123, 40, 0.15);
    --green: #3daf62;
    --greenBg: rgba(61, 175, 98, 0.12);
    --red: #e05545;
    --redBg: rgba(224, 85, 69, 0.12);
    --blue: #4a9ed6;
    --text: #e8e6f0;
    --textMd: #b0b0c8;
    --textLt: #8a8aa4;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(30, 30, 45, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
}

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(198, 109, 32, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 143, 78, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(40, 116, 166, 0.04) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 64px; /* space for mobile bottom nav */
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- HEADER --- */
.site-header {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

/* --- SEARCH --- */
.search-bar {
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(240, 239, 244, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    overflow: hidden;
    transition: all var(--transition);
}

.search-form:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(198, 109, 32, 0.12);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
}

.search-input::placeholder {
    color: var(--textLt);
}

.search-btn {
    padding: 8px 14px;
    color: var(--textMd);
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: var(--accent);
}

/* --- DESKTOP NAV --- */
.desktop-nav {
    display: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--textMd);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--accentBg);
    color: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu-btn {
    display: flex;
    padding: 6px;
    color: var(--textMd);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 201;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border-bottom: 1px solid rgba(200, 200, 220, 0.3);
}

.mobile-close-btn {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--textLt);
    padding: 4px 8px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--textMd);
    border-bottom: 1px solid rgba(200, 200, 220, 0.2);
    transition: background var(--transition);
}

.mobile-nav-link:hover {
    background: rgba(255, 240, 224, 0.5);
    color: var(--accent);
}

.mobile-nav-divider {
    height: 8px;
    background: var(--bg);
}

.mobile-nav-label {
    padding: 12px 16px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--textLt);
    letter-spacing: 0.5px;
}

/* --- MAIN CONTENT --- */
.main-content {
    min-height: 60vh;
    padding: 0 0 40px;
}

/* --- HERO --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
    color: #fff;
    padding: 48px 16px;
    margin: 0 -16px 24px;
    text-align: center;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Decorative floating shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(198, 109, 32, 0.6), transparent 70%);
    top: -80px;
    right: -60px;
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(83, 52, 131, 0.5), transparent 70%);
    bottom: -60px;
    left: -40px;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(45, 143, 78, 0.4), transparent 70%);
    top: 30%;
    left: 50%;
    animation: float-shape 12s ease-in-out infinite 2s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin: 0 auto;
    padding: 28px 32px;
}

.hero-content.glass-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 0.92rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(198, 109, 32, 0.35);
}

.btn-hero:hover {
    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(198, 109, 32, 0.45);
}

/* --- SECTIONS --- */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--textLt);
    margin-top: 2px;
}

.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.section-link:hover {
    text-decoration: underline;
}

.section-more {
    text-align: center;
    margin-top: 20px;
}

/* --- CATEGORY PILLS --- */
.categories-section {
    margin-bottom: 24px;
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--textMd);
    transition: all var(--transition);
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(255, 240, 224, 0.7);
    border-color: rgba(198, 109, 32, 0.4);
    color: var(--accent);
    box-shadow: 0 2px 12px rgba(198, 109, 32, 0.15);
}

/* --- DEALS GRID --- */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* --- DEAL CARD --- */
.deal-card {
    background: var(--card);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.deal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(198, 109, 32, 0.4);
    background: rgba(255, 255, 255, 0.8);
}

.deal-card-lowest {
    border-color: var(--green);
    border-width: 2px;
}

/* --- DEAL BADGE --- */
.deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    color: #fff;
}

.badge-hot {
    background: var(--red);
}

.badge-good {
    background: var(--accent);
}

.badge-normal {
    background: var(--textMd);
}

.lowest-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--green);
    color: #fff;
    z-index: 2;
}

/* --- DEAL IMAGE --- */
.deal-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(248, 246, 243, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.deal-image.no-image {
    background: linear-gradient(135deg, #f0ebe4, #e8ddd0);
}

.deal-image.no-image::after {
    content: 'No Image';
    font-size: 0.8rem;
    color: var(--textLt);
}

/* --- DEAL INFO --- */
.deal-info {
    padding: 10px 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.deal-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.deal-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.deal-mrp {
    font-size: 0.8rem;
    color: var(--textLt);
    text-decoration: line-through;
}

.deal-coupon-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--greenBg);
    color: var(--green);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.deal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.deal-time,
.deal-source,
.deal-category {
    font-size: 0.72rem;
    color: var(--textLt);
}

.deal-source {
    font-weight: 600;
}

/* --- DEAL CTA --- */
.deal-cta {
    padding: 8px 12px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--transition);
}

.deal-card:hover .deal-cta {
    background: var(--accent2);
}

/* --- EXPIRED CARD --- */
.deal-card-expired {
    opacity: 0.65;
    filter: grayscale(20%);
}

.deal-card-expired:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.deal-card-expired .deal-cta {
    background: var(--textLt);
}

.expired-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(192, 57, 43, 0.92);
    color: #fff;
    padding: 10px 28px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.expired-oos {
    background: rgba(192, 57, 43, 0.92);
    font-size: 0.95rem;
}

.expired-price {
    background: rgba(198, 109, 32, 0.9);
    box-shadow: 0 4px 16px rgba(198, 109, 32, 0.4);
}

.expired-reposted {
    background: rgba(45, 143, 78, 0.85);
    box-shadow: 0 4px 16px rgba(45, 143, 78, 0.4);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent2);
    box-shadow: 0 4px 12px rgba(198, 109, 32, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-social {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #fff;
}

.btn-telegram {
    background: #0088cc;
}

.btn-telegram:hover {
    background: #006699;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-facebook {
    background: #1877F2;
}

.btn-facebook:hover {
    background: #1565c0;
}

/* --- SOCIAL CTA SECTION --- */
.social-cta {
    text-align: center;
    padding: 40px 16px;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    margin: 0 -16px;
    border-radius: 0;
}

.social-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.social-cta p {
    color: var(--textMd);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination a {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--textMd);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: rgba(198, 109, 32, 0.4);
    color: var(--accent);
    background: rgba(255, 240, 224, 0.6);
}

.pagination .current {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* --- DEAL DETAIL PAGE --- */
.deal-detail {
    max-width: 800px;
    margin: 24px auto;
}

.deal-detail-card {
    background: var(--card);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-image {
    width: 100%;
    max-height: 400px;
    background: #f8f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    max-height: 400px;
    object-fit: contain;
    padding: 16px;
}

.detail-body {
    padding: 20px;
}

.detail-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-live {
    background: var(--greenBg);
    color: var(--green);
}

.status-expired {
    background: var(--redBg);
    color: var(--red);
}

.detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.detail-price-box {
    background: rgba(240, 239, 244, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.detail-price-label {
    font-size: 0.9rem;
    color: var(--textMd);
}

.detail-price-value {
    font-weight: 600;
}

.detail-deal-price {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
}

.detail-mrp {
    text-decoration: line-through;
    color: var(--textLt);
}

.detail-discount {
    color: var(--green);
    font-weight: 700;
}

.detail-lowest {
    color: var(--blue);
}

.detail-coupon {
    background: var(--greenBg);
    border: 1px dashed var(--green);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-coupon-text {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
}

.copy-btn {
    padding: 6px 14px;
    background: var(--green);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}

.copy-btn:hover {
    background: #248a3d;
}

.buy-now-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
}

.buy-now-btn:hover {
    background: var(--accent2);
    box-shadow: 0 4px 16px rgba(198, 109, 32, 0.3);
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--textLt);
    margin-bottom: 16px;
}

.detail-share {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition);
}

.share-btn:hover {
    opacity: 0.85;
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-facebook { background: #1877F2; }
.share-copy { background: var(--textMd); }

/* --- PRICE HISTORY CHART --- */
.price-chart-section {
    margin-top: 16px;
    padding: 12px;
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.price-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-chart-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.price-chart-expand {
    background: none;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: pointer;
    color: var(--textMd);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    transition: all var(--transition);
}

.price-chart-expand:hover {
    background: var(--accentBg);
    color: var(--accent);
    border-color: var(--accent);
}

#price-chart-mini {
    width: 100%;
    max-height: 180px;
}

/* Price History Modal */
.price-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.price-modal {
    background: var(--card-solid);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    margin: auto;
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.price-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--textMd);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.price-modal-close:hover {
    background: var(--accentBg);
    color: var(--text);
}

.price-modal-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    background: var(--accentBg);
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--textMd);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.stat-low .stat-value { color: #27ae60; }
.stat-high .stat-value { color: #e74c3c; }

.price-modal-range {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.chart-range-btn {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border2);
    background: var(--card-solid);
    color: var(--textMd);
    cursor: pointer;
    transition: all var(--transition);
}

.chart-range-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chart-range-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.price-modal-chart {
    position: relative;
    height: 300px;
}

/* --- FILTER BAR --- */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--textMd);
    cursor: pointer;
}

.filter-toggle input {
    accent-color: var(--accent);
}

/* --- CATEGORY PAGE SIDEBAR --- */
.page-with-sidebar {
    display: flex;
    gap: 24px;
}

.page-main {
    flex: 1;
    min-width: 0;
}

.page-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: none;
}

.sidebar-card {
    background: var(--card);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    position: sticky;
    top: 76px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 2px;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: var(--textMd);
    border-radius: 6px;
    transition: all var(--transition);
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: var(--accentBg);
    color: var(--accent);
}

.sidebar-count {
    font-size: 0.75rem;
    color: var(--textLt);
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 100px;
}

/* --- SEARCH PAGE --- */
.search-header {
    margin-bottom: 24px;
}

.search-header h1 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.search-header p {
    color: var(--textLt);
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--textLt);
}

.no-results h2 {
    font-size: 1.2rem;
    color: var(--textMd);
    margin-bottom: 8px;
}

/* --- BANNER ZONES --- */
.banner-zone {
    text-align: center;
    margin: 8px 0;
}

.banner-top {
    margin-bottom: 0;
}

.banner-footer {
    margin-top: 24px;
}

.banner-img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.banner-card {
    grid-column: 1 / -1;
    border: none;
    background: none;
    padding: 8px 0;
}

.banner-inline-img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.sidebar-banners-mobile {
    margin-bottom: 24px;
}

/* --- ERROR PAGE --- */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--textLt);
    margin-bottom: 8px;
}

.error-page p {
    color: var(--textMd);
    margin-bottom: 24px;
}

/* --- FOOTER --- */
.site-footer {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    padding-bottom: 80px; /* extra space above mobile bottom nav */
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 8px;
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-brand .logo-icon {
    font-size: 1.3rem;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--textLt);
    margin-top: 4px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--textMd);
}

.footer-links a,
.footer-social a {
    display: block;
    font-size: 0.85rem;
    color: var(--textLt);
    padding: 3px 0;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(200, 200, 220, 0.3);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--textLt);
}

.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.72rem !important;
}

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    z-index: 100;
    padding: 4px 0;
    padding-bottom: env(safe-area-inset-bottom, 4px);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 0.68rem;
    color: var(--textLt);
    transition: color var(--transition);
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item:hover {
    color: var(--accent);
}

/* --- PAGE HEADER --- */
.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.page-header p {
    font-size: 0.9rem;
    color: var(--textLt);
    margin-top: 4px;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--textLt);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--accent);
}

/* --- RELATED DEALS SECTION --- */
.related-section {
    max-width: 800px;
    margin: 32px auto 0;
    padding: 0 16px;
}
.related-section .section-title {
    margin-bottom: 16px;
}
.related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Small Mobile (< 380px) - single column */
@media (max-width: 379px) {
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .deal-card {
        max-width: 100%;
    }

    .hero {
        padding: 32px 12px;
        margin: 0 -16px 16px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .deal-info {
        padding: 8px 10px 6px;
    }

    .deal-title {
        font-size: 0.78rem;
    }

    .deal-price {
        font-size: 0.95rem;
    }

    .detail-body {
        padding: 14px;
    }

    .detail-title {
        font-size: 1rem;
    }

    .detail-share {
        flex-wrap: wrap;
        gap: 6px;
    }

    .share-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Mobile (380px - 639px) */
@media (min-width: 380px) and (max-width: 639px) {
    .hero {
        padding: 36px 16px;
        margin: 0 -16px 20px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .detail-share {
        flex-wrap: wrap;
    }
}

/* Tablet (>= 640px) */
@media (min-width: 640px) {
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hero {
        padding: 56px 24px;
        border-radius: var(--radius);
        margin: 16px 0 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 32px 40px;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: auto;
    }

    .detail-image {
        max-height: 450px;
    }

    .detail-share {
        flex-wrap: nowrap;
    }
}

/* Desktop (>= 960px) */
@media (min-width: 960px) {
    body {
        padding-bottom: 0;
    }

    .container {
        padding: 0 24px;
    }

    .header-inner {
        gap: 16px;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .deals-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-sidebar {
        display: block;
    }

    .hero {
        padding: 64px 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-content {
        padding: 36px 48px;
    }

    .deal-title {
        font-size: 0.88rem;
    }

    .deal-price {
        font-size: 1.1rem;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .sidebar-banners-mobile {
        display: none;
    }

    .social-cta {
        border-radius: var(--radius);
        margin: 0;
    }
}

/* Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
    .container {
        padding: 0 32px;
    }

    .deals-grid {
        gap: 20px;
    }
}

/* --- LOADING SKELETON --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, var(--bg2) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* ===================================================================
   DARK MODE — Component Overrides (hardcoded backgrounds)
   =================================================================== */

/* Shared dark mode mixin via selector */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body {
        background-image:
            radial-gradient(ellipse at 20% 50%, rgba(224, 123, 40, 0.04) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(61, 175, 98, 0.03) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 80%, rgba(74, 158, 214, 0.03) 0%, transparent 50%);
    }
    :root:not([data-theme="light"]) .site-header {
        background: rgba(18, 18, 24, 0.8);
    }
    :root:not([data-theme="light"]) .mobile-menu {
        background: rgba(26, 26, 36, 0.95);
    }
    :root:not([data-theme="light"]) .mobile-bottom-nav {
        background: rgba(18, 18, 24, 0.88);
    }
    :root:not([data-theme="light"]) .site-footer {
        background: rgba(18, 18, 24, 0.65);
    }
    :root:not([data-theme="light"]) .search-form {
        background: rgba(30, 30, 45, 0.6);
    }
    :root:not([data-theme="light"]) .search-form:focus-within {
        background: rgba(30, 30, 45, 0.8);
    }
    :root:not([data-theme="light"]) .deal-image,
    :root:not([data-theme="light"]) .detail-image {
        background: rgba(26, 26, 36, 0.6);
    }
    :root:not([data-theme="light"]) .detail-price-box {
        background: rgba(26, 26, 36, 0.5);
    }
    :root:not([data-theme="light"]) .deal-card:hover {
        background: rgba(40, 40, 60, 0.7);
    }
    :root:not([data-theme="light"]) img {
        opacity: 0.92;
    }
    :root:not([data-theme="light"]) .pagination a {
        background: rgba(30, 30, 45, 0.55);
    }
}

/* Same overrides for manual dark toggle */
:root[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(224, 123, 40, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(61, 175, 98, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(74, 158, 214, 0.03) 0%, transparent 50%);
}
:root[data-theme="dark"] .site-header {
    background: rgba(18, 18, 24, 0.8);
}
:root[data-theme="dark"] .mobile-menu {
    background: rgba(26, 26, 36, 0.95);
}
:root[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(18, 18, 24, 0.88);
}
:root[data-theme="dark"] .site-footer {
    background: rgba(18, 18, 24, 0.65);
}
:root[data-theme="dark"] .search-form {
    background: rgba(30, 30, 45, 0.6);
}
:root[data-theme="dark"] .search-form:focus-within {
    background: rgba(30, 30, 45, 0.8);
}
:root[data-theme="dark"] .deal-image,
:root[data-theme="dark"] .detail-image {
    background: rgba(26, 26, 36, 0.6);
}
:root[data-theme="dark"] .detail-price-box {
    background: rgba(26, 26, 36, 0.5);
}
:root[data-theme="dark"] .deal-card:hover {
    background: rgba(40, 40, 60, 0.7);
}
:root[data-theme="dark"] img {
    opacity: 0.92;
}
:root[data-theme="dark"] .pagination a {
    background: rgba(30, 30, 45, 0.55);
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    color: var(--textMd);
}
.theme-toggle:hover {
    background: var(--accentBg);
    border-color: rgba(198, 109, 32, 0.4);
    color: var(--accent);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* --- SEARCH AUTOCOMPLETE --- */
.search-autocomplete-wrap {
    position: relative;
    max-width: 500px;
    margin-bottom: 24px;
}
.ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-solid);
    border: 1px solid var(--border2);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}
.ac-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.ac-item:hover { background: var(--accentBg); }
.ac-item:last-child { border-bottom: none; }
.ac-title { font-size: 0.85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.ac-price { font-size: 0.85rem; font-weight: 600; color: var(--green); white-space: nowrap; }

/* --- SEARCH FILTERS --- */
.search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.search-filters select {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border2);
    background: var(--card-solid);
    color: var(--text);
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
}

/* --- PUSH NOTIFICATION BELL --- */
.push-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background var(--transition);
    color: var(--textMd);
    flex-shrink: 0;
}
.push-bell:hover {
    background: var(--accentBg);
    color: var(--accent);
}
.push-bell .bell-icon {
    width: 20px;
    height: 20px;
}
.push-bell .bell-dot {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #2d8f4e;
    border-radius: 50%;
    border: 2px solid var(--bg);
}
.push-bell.subscribed {
    color: var(--accent);
}
.push-bell.subscribed .bell-dot {
    display: block;
}
.push-bell.subscribed .bell-icon {
    fill: var(--accent);
    stroke: var(--accent);
}

/* ===================================================================
   DEAL FINDER PAGE
   =================================================================== */

.df-page {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Hero */
.df-hero {
    text-align: center;
    padding: 40px 16px 24px;
}
.df-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}
.df-accent {
    color: var(--accent);
}
.df-hero-sub {
    font-size: 0.95rem;
    color: var(--textLt);
    margin-top: 8px;
}

/* Card */
.df-card {
    background: var(--card);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent);
}

/* Labels */
.df-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--textMd);
    margin-bottom: 8px;
    margin-top: 20px;
}
.df-label:first-child {
    margin-top: 0;
}

/* Inputs */
.df-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: var(--card-solid);
    color: var(--text);
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.df-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 109, 32, 0.12);
}
.df-input::placeholder {
    color: var(--textLt);
}

/* Select */
.df-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    background: var(--card-solid);
    color: var(--text);
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    appearance: auto;
    transition: border-color var(--transition);
}
.df-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* OR divider */
.df-or {
    text-align: center;
    font-size: 0.82rem;
    color: var(--textLt);
    font-weight: 600;
    margin: 16px 0;
    position: relative;
}
.df-or::before,
.df-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border2);
}
.df-or::before { left: 0; }
.df-or::after { right: 0; }

/* Discount range */
.df-range-display {
    font-size: 0.88rem;
    color: var(--textMd);
    margin-bottom: 8px;
}
.df-range-num {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.df-dual-range {
    position: relative;
    height: 36px;
}
.df-dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 36px;
    margin: 0;
}

.df-dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--border2);
}
.df-dual-range input[type="range"]:first-child::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--border2) 0%, var(--accent) 50%, var(--border2) 100%);
}
.df-dual-range input[type="range"]:last-child::-webkit-slider-runnable-track {
    background: transparent;
}

.df-dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -8px;
    transition: transform 0.15s ease;
}
.df-dual-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Firefox */
.df-dual-range input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--border2);
    border: none;
}
.df-dual-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    pointer-events: auto;
}

/* Row (price min/max) */
.df-row {
    display: flex;
    gap: 12px;
}
.df-input-half {
    flex: 1;
}

/* Sort buttons */
.df-sort-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.df-sort-btn {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid var(--border2);
    background: var(--card-solid);
    color: var(--textMd);
    cursor: pointer;
    transition: all var(--transition);
}
.df-sort-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.df-sort-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Checkbox */
.df-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--textMd);
    cursor: pointer;
}
.df-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Action buttons */
.df-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}
.df-btn-outline {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--border2);
    border-radius: var(--radius-sm);
    background: var(--card-solid);
    color: var(--textMd);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}
.df-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.df-btn-primary {
    flex: 1.5;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(198, 109, 32, 0.25);
}
.df-btn-primary:hover {
    background: var(--accent2);
    box-shadow: 0 6px 24px rgba(198, 109, 32, 0.35);
}

/* Feature highlights */
.df-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
    padding: 0 8px;
}
.df-feature {
    text-align: center;
    padding: 24px 16px;
}
.df-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.df-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.df-feature p {
    font-size: 0.85rem;
    color: var(--textLt);
    line-height: 1.5;
}

/* Sub-category levels */
.df-sub-level {
    margin-top: 12px;
    animation: dfSlideIn 0.25s ease-out;
}
@keyframes dfSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.df-sub-level .df-label {
    font-size: 0.72rem;
    color: var(--accent);
}
.df-sub-loading {
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--textLt);
    text-align: center;
    background: var(--accentBg);
    border-radius: var(--radius-sm);
    animation: dfPulse 1.2s ease-in-out infinite;
}
@keyframes dfPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (min-width: 640px) {
    .df-hero-title {
        font-size: 2.8rem;
    }
    .df-card {
        padding: 32px;
    }
    .df-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 379px) {
    .df-hero-title {
        font-size: 1.8rem;
    }
    .df-card {
        padding: 16px;
    }
    .df-sort-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
