/* ============================================================
   CASHBACK HUB - Main Stylesheet
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --warning: #f59e0b;
    --success: #10b981;
    --dark: #111827;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #374151;
    background: #f9fafb;
}

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
.min-vh-60 { min-height: 60vh; }

/* HERO */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #7c3aed 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.text-white-75 { color: rgba(255,255,255,0.75); }
.hero-img { max-height: 400px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }

.hero-stat {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .stat-number { font-size: 1.5rem; font-weight: 800; color: #fcd34d; }
.hero-stat .stat-label  { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* HOW IT WORKS */
.how-card {
    background: #fff;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.how-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.how-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.bg-primary-soft { background: rgba(37,99,235,0.1); }
.bg-warning-soft { background: rgba(245,158,11,0.1); }
.bg-success-soft { background: rgba(16,185,129,0.1); }

/* CATEGORY CARDS */
.category-card {
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}
.category-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(37,99,235,0.08);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* STORE CARDS */
.store-card {
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.store-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important; }
.store-logo-wrap { border-bottom: 1px solid #f3f4f6; background: #fafafa; border-radius: var(--radius) var(--radius) 0 0; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.store-logo { max-width: 120px; max-height: 70px; object-fit: contain; }
.store-logo-placeholder { padding: 1.5rem; }

/* HOT DEAL CARDS */
.hot-deal-card {
    border-left: 4px solid #ef4444 !important;
    transition: all 0.2s;
}
.hot-deal-card:hover { transform: translateX(4px); }

/* COUPON CARDS */
.coupon-card { border-radius: var(--radius); transition: all 0.2s; }
.coupon-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }
.coupon-code {
    letter-spacing: 2px;
    background: #f3f4f6 !important;
    border: 2px dashed #d1d5db !important;
    cursor: pointer;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #059669, #2563eb);
}

/* DASHBOARD */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
}
.stat-card.green  { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.red    { border-left-color: #ef4444; }

.stat-card .stat-value { font-size: 2rem; font-weight: 800; }
.stat-card .stat-label { color: #6b7280; font-size: 0.875rem; }

/* STATUS BADGES */
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-paid      { background: #dbeafe; color: #1e40af; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }

/* ADMIN SIDEBAR */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #1e293b;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 1000;
    transition: transform 0.3s;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-left: 2rem;
}
.admin-sidebar .nav-link i { width: 20px; }
.admin-main { margin-left: 260px; min-height: 100vh; background: #f1f5f9; }
.admin-header { background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; }

/* UTILITIES */
.border-dashed { border-style: dashed !important; }
.cursor-pointer { cursor: pointer; }
.rounded-xl { border-radius: var(--radius) !important; }

/* TABLE */
.table th { font-weight: 600; color: #374151; background: #f9fafb; }

/* NAVBAR */
.navbar .badge { font-size: 0.7rem; }

/* FORMS */
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.15); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-section { padding: 3rem 0; }
    .hero-stat .stat-number { font-size: 1.2rem; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
