/* --------------------------------------------------------
    shopyetu - Main Stylesheet
    --------------------------------------------------------
    1. CSS Variables & Theming
    2. Global & Reset Styles
    3. Layout & Grid System
    4. Reusable Components (Buttons, Badges, Forms)
    5. Page Sections (Header, Hero, Cards, Leaderboard)
    6. Dashboard Specific Styles
    7. Modal & Toast Notifications
    8. Animations & Transitions
    9. Responsive Design & Media Queries
    -------------------------------------------------------- */

/* --------------------------------------------------------
    1. CSS VARIABLES & THEMING
    -------------------------------------------------------- */
:root {
    --primary: #f59e0b; /* Amber 500 */
    --primary-dark: #d97706;
    --secondary: #1f2937; /* Gray 800 */
    --accent: #ef4444; /* Red 500 for urgency */
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --success: #10b981;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-height: 80px; /* Increased to accommodate new header */
    --transition-speed: 0.2s;
}

/* --------------------------------------------------------
    2. GLOBAL & RESET STYLES
    -------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height); /* Updated for new header height */
}

img {
    max-width: 100%;
    display: block;
}

/* --------------------------------------------------------
    3. LAYOUT & GRID SYSTEM
    -------------------------------------------------------- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* --------------------------------------------------------
    4. REUSABLE COMPONENTS
    -------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    will-change: transform;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-amber { background: #fef3c7; color: #d97706; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-green { background: #d1fae5; color: #059669; }
.badge-purple { background: #ede9fe; color: #7c3aed; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group .error-message {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border-left: 5px solid;
}

.alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: var(--success);
}

.alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: var(--accent);
}

/* --------------------------------------------------------
    5. PAGE SECTIONS
    -------------------------------------------------------- */

/* --------------------------------------------------------
    HEADER & NAVIGATION
    -------------------------------------------------------- */

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.logo span {
    color: var(--primary);
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* User Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fffbeb;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid #fcd34d;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pointsGlow 3s infinite alternate;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

@keyframes pointsGlow {
    from { box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1); }
    to { box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 500px;
    overflow-y: auto;
}

.mobile-nav .container {
    padding: 1rem 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    padding: 0.75rem 0;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    margin: 0 1rem;
}

.mobile-nav .nav-link:hover {
    background: var(--bg);
    color: var(--primary);
}

.mobile-nav-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0.5rem 0;
}

/* Header Shadow on Scroll */
.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #374151 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: #d1d5db; margin-bottom: 2rem; }

/* --------------------------------------------------------
    5. PAGE SECTIONS (Enhanced Deal Cards) - COMPACT VERSION
    -------------------------------------------------------- */

/* Deal Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px; /* Slightly smaller radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px); /* Slightly smaller lift */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.deal-img {
    height: 140px; /* Reduced from 180px */
    width: 100%;
    object-fit: cover;
    background: #e5e7eb;
    transition: transform 0.3s ease;
}

.card:hover .deal-img {
    transform: scale(1.03); /* Slightly less zoom */
    filter: brightness(1.05) contrast(1.05);
}

.deal-body {
    padding: 1rem; /* Reduced from 1.5rem */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.deal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem; /* Smaller font */
    color: var(--text-muted);
    margin-bottom: 0.5rem; /* Reduced margin */
}

.deal-title {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 700;
    margin-bottom: 0.5rem; /* Reduced margin */
    color: var(--secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Publisher info */
.publisher-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem; /* Smaller font */
    color: var(--text-muted);
}

/* Deal description - new class */
.deal-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-price {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    color: var(--primary-dark);
    font-weight: 800;
    margin-top: auto;
    padding-top: 0.75rem; /* Reduced from 1.25rem */
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.deal-price small {
    font-size: 0.9rem; /* Reduced from 1rem */
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
}

/* Enhanced Discount Badge */
.card .badge-red {
    position: absolute;
    top: 8px; /* Reduced from 12px */
    right: 8px; /* Reduced from 12px */
    background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.6rem; /* Smaller padding */
    border-radius: 16px; /* Smaller radius */
    font-size: 0.65rem; /* Smaller font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Enhanced Category Badge */
.badge-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.2rem 0.6rem; /* Smaller padding */
    border-radius: 10px; /* Smaller radius */
    font-size: 0.6rem; /* Smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* Enhanced Countdown Timer */
.countdown {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.7rem; /* Reduced from 0.85rem */
    background: rgba(239, 68, 68, 0.1);
    padding: 0.2rem 0.5rem; /* Smaller padding */
    border-radius: 6px; /* Smaller radius */
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
    display: inline-block;
}

/* Enhanced Progress Bar */
.progress-container {
    background: #f3f4f6;
    border-radius: 6px; /* Smaller radius */
    height: 6px; /* Reduced from 8px */
    width: 100%;
    margin: 0.5rem 0; /* Reduced from 1rem */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

/* Progress colors */
.progress-low {
    background: linear-gradient(90deg, var(--accent) 0%, #ef4444 100%);
}

.progress-good {
    background: linear-gradient(90deg, var(--success) 0%, #10b981 100%);
}

/* Deal Stats */
.deal-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem; /* Smaller font */
    color: var(--text-muted);
    margin: 0.35rem 0; /* Reduced from 0.75rem */
}

.deal-stats-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.deal-stats-right {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem; /* Smaller font */
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem; /* Reduced from 1.25rem */
}

/* Enhanced Claim Button */
.card .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem; /* Reduced from 0.75rem 1.5rem */
    border-radius: 8px; /* Smaller radius */
    font-weight: 600;
    font-size: 0.85rem; /* Smaller font */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.card .btn-primary:hover::before {
    left: 100%;
}

.card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.4);
}

.card .btn-primary:active {
    transform: translateY(0);
}

/* Enhanced Save Button */
.card .btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem; /* Reduced from 0.75rem */
    border-radius: 8px; /* Smaller radius */
    font-weight: 600;
    font-size: 0.85rem; /* Smaller font */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 40px; /* Fixed width for heart button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Countdown Timers - Updated Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
}

.category-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    min-width: 150px;
}

/* Sticky Leaderboard Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.leaderboard-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color var(--transition-speed);
}

.leaderboard-item:hover { background-color: #f9fafb; }
.leaderboard-item:last-child { border-bottom: none; }

.rank {
    width: 24px;
    font-weight: bold;
    color: var(--text-muted);
}

.rank-1 { color: #fbbf24; } /* Gold */
.rank-2 { color: #9ca3af; } /* Silver */
.rank-3 { color: #b45309; } /* Bronze */


/* --------------------------------------------------------
    6. DASHBOARD SPECIFIC STYLES
    -------------------------------------------------------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.dash-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-speed);
}

.dash-nav button:hover { background: #f9fafb; color: var(--text-main); }
.dash-nav button.active {
    background: #fffbeb;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}

.dash-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform var(--transition-speed);
}

.stat-card:hover { transform: translateY(-3px); }

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* --------------------------------------------------------
    7. MODAL & TOAST NOTIFICATIONS
    -------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pop-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .pop-modal { transform: scale(1); }
.pop-header {
    background: var(--secondary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pop-body { padding: 1.5rem; text-align: center; }
.pop-timer {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1rem 0;
    font-family: monospace;
}
.close-pop {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}
.close-pop:hover { opacity: 1; }

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--secondary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success { border-left: 5px solid var(--success); }
.toast.error { border-left: 5px solid var(--accent); }

/* --------------------------------------------------------
    8. ANIMATIONS & TRANSITIONS
    -------------------------------------------------------- */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------
    9. RESPONSIVE DESIGN & MEDIA QUERIES
    -------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 2rem; }
    
    .main-nav ul {
        gap: 1.5rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    main { padding: 1rem; }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    .hero h1 { font-size: 2rem; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dash-nav {
        display: flex;
        overflow-x: auto;
        margin-bottom: 1rem;
    }
    .dash-nav button { white-space: nowrap; border-bottom: none; border-right: 1px solid #e5e7eb; }
    .stat-grid { grid-template-columns: 1fr; }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .nav-actions {
        display: none;
    }
    
    .user-points {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Responsive improvements for deal cards */
    .card {
        border-radius: 12px;
    }
    
    .deal-img {
        height: 160px;
    }
    
    .deal-body {
        padding: 1.25rem;
    }
    
    .deal-title {
        font-size: 1.1rem;
    }
    
    .deal-price {
        font-size: 1.3rem;
    }
    
    .card .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .deal-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; }
    .search-bar { margin-bottom: 0.5rem; }
    .category-select { width: 100%; }
    .user-points { display: none; } /* Hide on small screens for space */
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav .nav-link {
        margin: 0 0.5rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Responsive improvements for deal cards */
    .deal-img {
        height: 140px;
    }
    
    .deal-body {
        padding: 1rem;
    }
    
    .deal-title {
        font-size: 1rem;
    }
    
    .deal-price {
        font-size: 1.2rem;
    }
    
    .card .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------
    10. HOMEPAGE UI IMPROVEMENTS
    -------------------------------------------------------- */

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Slider - Full Width with Better Image Handling */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 80vh; /* Changed from fixed 600px to 80vh for better responsiveness */
    min-height: 500px; /* Minimum height to ensure content is visible */
    max-height: 800px; /* Maximum height to prevent too tall on large screens */
    overflow: hidden;
    margin-bottom: 4rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center; /* Ensure center positioning */
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.7) 100%); /* Improved gradient for better text visibility */
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInFromBottom 1s ease-out;
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem); /* Responsive font size */
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: slideInFromBottom 1s ease-out 0.2s both;
    max-width: 600px;
    line-height: 1.4;
}

.slide-content .btn {
    animation: slideInFromBottom 1s ease-out 0.4s both;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem); /* Responsive font size */
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.slider-dot.active::before,
.slider-dot:hover::before {
    width: 100%;
    height: 100%;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Slider Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .slide-content h1 {
        margin-bottom: 0.75rem;
    }
    
    .slide-content p {
        margin-bottom: 1.5rem;
    }
    
    .btn-large {
        padding: 0.6rem 1.5rem;
    }
    
    .slider-dots {
        bottom: 15px;
    }
}

/* Ultra-wide screens (21:9 aspect ratio and above) */
@media (min-width: 2560px) {
    .hero-slider {
        height: 70vh;
        max-height: 900px;
    }
    
    .slide-content h1 {
        font-size: 4rem;
    }
    
    .slide-content p {
        font-size: 1.6rem;
    }
}

/* Feature Highlights */
.feature-highlights {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 2rem auto 1.5rem;
    color: var(--primary);
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
    POPULAR CATEGORIES - IMAGE VERSION - FIXED COVERAGE
    ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 220px; /* Slightly taller */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the entire area */
    object-position: center; /* Centers the image */
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3) 60%, transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.category-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Call to Action */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #374151 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    color: white;
    border-color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}/* --------------------------------------------------------
    11. INFORMATION PAGES STYLES
    -------------------------------------------------------- */

/* Page Headers */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* About Page */
.about-content {
    padding: 2rem 0 4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sidebar */
.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.stats-list {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-buttons {
    margin-top: 1.5rem;
}

/* How It Works Page */
.how-it-works-page {
    padding: 2rem 0 4rem;
}

.steps-timeline {
    position: relative;
    margin-bottom: 4rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.step-item:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 2rem;
}

.step-item:nth-child(even) .step-content {
    margin-left: 0;
    margin-right: 2rem;
}

.step-item:nth-child(odd) .step-content {
    margin-left: 2rem;
    margin-right: 0;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fffbeb;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.step-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    text-align: center;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.step-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Tips Section */
.tips-section {
    background: var(--bg);
    padding: 3rem 0;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.tips-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tip-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.tip-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Register Pages */
.register-page {
    padding: 2rem 0 4rem;
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.register-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.benefits-list {
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.benefit-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.publisher-features {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.publisher-features h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-small svg {
    color: var(--primary);
    flex-shrink: 0;
}

.feature-small span {
    font-size: 0.9rem;
    color: var(--text-main);
}

.register-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #374151 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.register-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.register-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.register-form-container {
    max-width: 400px;
}

.register-form-container .card {
    padding: 2rem;
    box-shadow: var(--shadow);
}

.register-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.register-form-container > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .steps-timeline::before {
        left: 20px;
    }
    
    .step-item {
        flex-direction: column !important;
        margin-bottom: 3rem;
    }
    
    .step-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .step-content {
        margin: 0 !important;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* Make cards more interactive */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure buttons inside cards don't trigger card click */
.card .btn {
    position: relative;
    z-index: 10;
}
/* --------------------------------------------------------
    12. DEAL IMAGE GALLERY STYLES
    -------------------------------------------------------- */

/* Image Gallery Container */
.deal-gallery {
    position: relative;
    overflow: hidden;
}

/* Main Image Container */
.main-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #f9fafb;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Image Thumbnails */
.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f3f4f6;
}

.image-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.image-thumbnails::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 158, 11, 0.1);
    pointer-events: none;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Upload Preview */
.image-upload-container {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 1rem;
    background: #f9fafb;
    transition: border-color 0.3s ease;
}

.image-upload-container:hover {
    border-color: var(--primary);
}

.image-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.image-preview-item .remove-image:hover {
    background: var(--accent);
}

.image-upload-button {
    text-align: center;
}

.image-upload-button input[type="file"] {
    display: none;
}

.image-upload-button label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-image-container {
        height: 300px;
    }
    
    .gallery-nav {
        width: 30px;
        height: 30px;
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .image-preview-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }
    
    .thumbnail {
        width: 45px;
        height: 45px;
    }
}
/* ============================================
    13. RANDOM POPUP STYLES - CLEAN VERSION
    ============================================ */

/* --- Random Popup Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pop-modal {
    background: white;
    width: 90%;
    max-width: 400px; /* Reduced from 500px to 400px */
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .pop-modal {
    transform: scale(1);
}

.pop-header {
    background: var(--secondary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pop-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pop-header h3::before {
    content: "⚡";
    font-size: 1.4rem;
}

.close-pop {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.close-pop:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.pop-body {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
}

/* Popup Content Styles */
.popup-deal {
    text-align: center;
}

.popup-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.popup-image {
    position: relative;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    height: 150px; /* Reduced from 180px */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.popup-image:hover img {
    transform: scale(1.1);
}

.popup-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.popup-title {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.35rem; /* Reduced from 0.5rem */
    line-height: 1.2;
    padding: 0 0.5rem;
}

.popup-description {
    color: var(--text-muted);
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    line-height: 1.4;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-price {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popup-price .current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.popup-price .original-price {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: var(--text-muted);
    text-decoration: line-through;
}

.popup-timer-container {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 0.75rem; /* Reduced from 1rem */
    border-radius: 10px; /* Slightly smaller radius */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.popup-timer-label {
    font-size: 0.7rem; /* Reduced from 0.8rem */
    opacity: 0.8;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-timer {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 800;
    font-family: 'Courier New', monospace;
    line-height: 1;
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

.popup-stock {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    padding: 0 0.5rem;
}

.stock-bar {
    height: 6px; /* Reduced from 8px */
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stock-text {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: var(--text-muted);
    font-weight: 500;
}

.popup-actions {
    display: flex;
    gap: 0.5rem; /* Reduced from 0.75rem */
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
}

.popup-claim-btn {
    flex: 2;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.6rem !important; /* Reduced from 0.8rem */
    font-size: 0.9rem !important; /* Reduced from 1rem */
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.popup-claim-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.popup-claim-btn:hover::before {
    left: 100%;
}

.popup-later-btn {
    flex: 1;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    color: var(--text-muted) !important;
    padding: 0.6rem !important; /* Reduced from 0.8rem */
    font-size: 0.9rem !important; /* Reduced from 1rem */
}

.popup-later-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Entrance animation for popup content */
.popup-deal > * {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.popup-deal > *:nth-child(1) { animation-delay: 0.1s; }
.popup-deal > *:nth-child(2) { animation-delay: 0.2s; }
.popup-deal > *:nth-child(3) { animation-delay: 0.3s; }
.popup-deal > *:nth-child(4) { animation-delay: 0.4s; }
.popup-deal > *:nth-child(5) { animation-delay: 0.5s; }
.popup-deal > *:nth-child(6) { animation-delay: 0.6s; }
.popup-deal > *:nth-child(7) { animation-delay: 0.7s; }
.popup-deal > *:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Popup */
@media (max-width: 480px) {
    .pop-modal {
        width: 95%;
        max-width: 320px; /* Reduced from 350px */
    }
    
    .pop-body {
        padding: 0.75rem; /* Reduced from 1rem */
    }
    
    .popup-image {
        height: 130px; /* Reduced from 150px */
    }
    
    .popup-title {
        font-size: 1rem; /* Reduced from 1.1rem */
    }
    
    .popup-price .current-price {
        font-size: 1.2rem; /* Reduced from 1.3rem */
    }
    
    .popup-timer {
        font-size: 1.8rem; /* Reduced from 2rem */
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .popup-claim-btn,
    .popup-later-btn {
        width: 100%;
    }
}

/* ============================================
   PROFESSIONAL AD SLOTS
   ============================================ */
.header-ad-slot {
    width: 100%;
    max-width: 728px;
    margin: 20px auto;
    text-align: center;
}

.sidebar-ad-slot {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.header-ad-slot img {
    width: 100%;
    max-width: 728px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity 0.8s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.sidebar-ad-slot img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.8s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.fade-out {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-ad-slot {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .header-ad-slot img {
        height: auto;
        max-height: 90px;
    }
}