/* ================================================================
   SUZE CASHBACK PORTAL — PREMIUM ENTERPRISE THEME
   Primary: #FF6B00 | Secondary: #FFB000 | Sidebar: #1E293B
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary: #FF6B00;
    --primary-light: #FF8C38;
    --primary-dark: #E55A00;
    --secondary: #FFB000;
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --sidebar-bg: #1E293B;
    --sidebar-hover: #334155;
    --sidebar-active: #FF6B00;
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #FFFFFF;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
    --bg: #0F172A;
    --card-bg: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #334155;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --sidebar-bg: #0F172A;
    --sidebar-hover: #1E293B;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── App Shell Layout ──────────────────────────────────────── */
.app-wrapper { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand .brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white;
    box-shadow: 0 4px 12px rgba(255,107,0,0.35);
    flex-shrink: 0;
}

.sidebar-brand .brand-text { flex: 1; overflow: hidden; }
.sidebar-brand .brand-name {
    font-size: 14px; font-weight: 700;
    color: #fff; line-height: 1.2;
    white-space: nowrap;
}
.sidebar-brand .brand-sub {
    font-size: 10px; font-weight: 400;
    color: var(--sidebar-text);
    text-transform: uppercase; letter-spacing: 1px;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 0;
    list-style: none;
}

.sidebar-section-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #475569;
    padding: 12px 20px 6px; margin-top: 4px;
}

.sidebar-item { margin: 1px 8px; }

.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--sidebar-text);
    font-size: 13px; font-weight: 500;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    user-select: none;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #cbd5e1;
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

.sidebar-link.active .nav-icon { color: white; }

.nav-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--sidebar-text);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 20px;
    min-width: 18px; text-align: center;
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    transition: var(--transition);
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-search {
    flex: 1; max-width: 360px;
    position: relative;
}

.topbar-search input {
    width: 100%; padding: 8px 16px 8px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 13px; color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

.topbar-search .search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px;
}

.topbar-actions {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto;
}

.topbar-btn {
    width: 38px; height: 38px;
    border-radius: 10px; border: none;
    background: var(--bg);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.topbar-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.topbar-badge {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--danger); border-radius: 50%;
    border: 1.5px solid var(--card-bg);
}

.topbar-date {
    font-size: 12px; color: var(--text-muted);
    font-weight: 500; white-space: nowrap;
}

.admin-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 14px;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,107,0,0.25);
}

/* ── PAGE CONTENT ───────────────────────────────────────────── */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}

.page-title {
    font-size: 22px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 13px; color: var(--text-muted);
    margin-top: 2px;
}

.breadcrumb-custom {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-muted);
}

.breadcrumb-custom span { color: var(--primary); }

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 16px;
    transition: var(--transition);
    cursor: default;
    animation: slideUp 0.4s ease both;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}

.stat-card.primary::before { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.stat-card.success::before { background: var(--success); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }
.stat-card.warning::before { background: var(--warning); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.stat-icon.primary { background: rgba(255,107,0,0.12); color: var(--primary); }
.stat-icon.success { background: rgba(34,197,94,0.12); color: var(--success); }
.stat-icon.danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.stat-icon.info    { background: rgba(59,130,246,0.12);  color: var(--info); }
.stat-icon.warning { background: rgba(245,158,11,0.12);  color: var(--warning); }
.stat-icon.purple  { background: rgba(139,92,246,0.12);  color: #8B5CF6; }

.stat-content { flex: 1; min-width: 0; }
.stat-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-muted);
}
.stat-value {
    font-size: 28px; font-weight: 800;
    color: var(--text-primary); line-height: 1.2;
    letter-spacing: -1px;
}
.stat-change {
    font-size: 11px; font-weight: 600;
    display: flex; align-items: center; gap: 3px;
    margin-top: 4px;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 15px; font-weight: 700;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}

.card-body { padding: 20px; }
.card-body-sm { padding: 14px 20px; }

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
}

.premium-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}

.premium-table thead th {
    background: var(--bg);
    padding: 12px 14px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.premium-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.premium-table tbody tr:hover { background: rgba(255,107,0,0.03); }

.premium-table tbody td {
    padding: 13px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.premium-table tbody tr:last-child { border-bottom: none; }

/* ── STATUS BADGES ──────────────────────────────────────────── */
.badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}

.badge-status::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0;
}

.badge-pending  { background: rgba(245,158,11,0.12); color: #D97706; }
.badge-pending::before  { background: #F59E0B; }

.badge-approved { background: rgba(59,130,246,0.12); color: #2563EB; }
.badge-approved::before { background: #3B82F6; }

.badge-rejected { background: rgba(239,68,68,0.12);  color: #DC2626; }
.badge-rejected::before { background: #EF4444; }

.badge-paid     { background: rgba(34,197,94,0.12);  color: #16A34A; }
.badge-paid::before     { background: #22C55E; }

.badge-sent     { background: rgba(34,197,94,0.12);  color: #16A34A; }
.badge-failed   { background: rgba(239,68,68,0.12);  color: #DC2626; }
.badge-skipped  { background: rgba(100,116,139,0.12); color: #64748B; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; font-family: 'Inter', sans-serif; font-weight: 600; border-radius: 10px; transition: var(--transition); }
.btn:focus { outline: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; padding: 9px 18px; font-size: 13px;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,0,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, var(--success), #16A34A);
    color: white; padding: 9px 18px; font-size: 13px;
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.35); }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white; padding: 9px 18px; font-size: 13px;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,0.35); }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 8px 16px; font-size: 13px;
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost {
    background: var(--bg); color: var(--text-secondary);
    padding: 8px 14px; font-size: 12px;
}
.btn-ghost:hover { background: var(--border); }

.btn-sm { padding: 6px 12px !important; font-size: 12px !important; border-radius: 8px !important; }
.btn-xs { padding: 4px 9px !important; font-size: 11px !important; border-radius: 6px !important; }
.btn-icon { padding: 8px !important; width: 34px; height: 34px; justify-content: center; }
.btn-icon.sm { width: 28px; height: 28px; padding: 5px !important; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
}

.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px; background: var(--card-bg);
    color: var(--text-primary); font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.form-control::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── FILE DROP ZONE ─────────────────────────────────────────── */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(255,107,0,0.04);
}
.drop-zone .drop-icon { font-size: 40px; color: var(--text-muted); margin-bottom: 10px; }
.drop-zone p { font-size: 13px; color: var(--text-muted); }
.drop-zone .drop-highlight { color: var(--primary); font-weight: 600; }

/* ── MODALS ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.25s ease;
}

.modal-box.lg { max-width: 800px; }
.modal-box.sm { max-width: 440px; }

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.modal-close {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--bg); border: none; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 20px 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 10px;
}

/* ── SCREENSHOT PREVIEW ─────────────────────────────────────── */
.screenshot-thumb {
    width: 56px; height: 40px;
    border-radius: 6px; object-fit: cover;
    cursor: zoom-in;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.screenshot-thumb:hover { transform: scale(1.05); }

.screenshot-large {
    width: 100%; max-height: 60vh;
    object-fit: contain; border-radius: 12px;
    background: var(--bg);
}

/* ── CHART CONTAINER ────────────────────────────────────────── */
.chart-container {
    position: relative;
    height: 280px;
}

/* ── SEARCH & FILTER BAR ────────────────────────────────────── */
.filter-bar {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.filter-bar .form-control { max-width: 240px; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; flex-wrap: wrap; gap: 8px;
}
.pagination-info { font-size: 12px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: var(--bg); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.page-btn:hover { background: var(--primary); color: white; }
.page-btn.active { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(255,107,0,0.3); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up { animation: slideUp 0.4s ease both; }
.animate-fade-in  { animation: fadeIn 0.3s ease both; }

/* ── SKELETON LOADER ────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 100px; border-radius: var(--radius); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}

.toast-item {
    padding: 12px 18px;
    border-radius: 12px; background: var(--card-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-left: 4px solid var(--success);
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    animation: slideIn 0.3s ease;
    max-width: 320px;
}

.toast-item.error   { border-left-color: var(--danger); }
.toast-item.warning { border-left-color: var(--warning); }
.toast-item.info    { border-left-color: var(--info); }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
}

.login-left {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1a1040 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 40px; position: relative; overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,107,0,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(255,176,0,0.08) 0%, transparent 50%);
}

.login-illustration {
    position: relative; z-index: 1; text-align: center;
}

.cashback-graphic {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,176,0,0.1));
    border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 2px solid rgba(255,107,0,0.2);
    backdrop-filter: blur(10px);
    margin: 0 auto 32px;
    animation: pulse 3s ease-in-out infinite;
}

.cashback-graphic .rupee {
    font-size: 80px; font-weight: 800; color: var(--primary);
    line-height: 1; text-shadow: 0 0 40px rgba(255,107,0,0.5);
}

.cashback-graphic .cashback-label {
    font-size: 18px; font-weight: 700; color: #fff; margin-top: 4px;
}

.login-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 22px; font-weight: 700; line-height: 1.4;
    text-align: center;
}

.login-tagline span { color: var(--primary); }

.login-features {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 32px; list-style: none; z-index: 1; position: relative;
}

.login-features li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
}

.login-features li i { color: var(--primary); font-size: 16px; }

.login-right {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; background: var(--bg);
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: 0 6px 20px rgba(255,107,0,0.3);
}

.login-logo .logo-text .site-name {
    font-size: 18px; font-weight: 800; color: var(--text-primary);
}

.login-logo .logo-text .site-sub {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.login-title {
    font-size: 26px; font-weight: 800;
    color: var(--text-primary); margin-bottom: 6px;
}
.login-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.password-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 16px;
    transition: var(--transition);
}
.password-toggle:hover { color: var(--primary); }

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

.form-check-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; cursor: pointer; }
.forgot-link { font-size: 12px; color: var(--primary); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* ── CUSTOMER FORM ───────────────────────────────────────────── */
.customer-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.customer-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%; max-width: 480px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.customer-header { text-align: center; margin-bottom: 28px; }
.customer-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 12px 0 6px; }
.customer-subtitle { font-size: 13px; color: var(--text-muted); }
.star-rating { font-size: 22px; color: var(--warning); margin-bottom: 4px; letter-spacing: 2px; }

/* ── SUCCESS PAGE ───────────────────────────────────────────── */
.success-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.success-card {
    background: white; border-radius: var(--radius-lg);
    padding: 48px 40px; width: 100%; max-width: 440px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.success-tick {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--success), #16A34A);
    border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: white;
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
    animation: pulse 2s ease-in-out infinite;
}

.success-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.success-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.claim-info-box {
    background: var(--bg); border-radius: 12px;
    padding: 16px; text-align: left; margin-bottom: 24px;
}

.claim-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.claim-info-row:last-child { border-bottom: none; }
.claim-info-row .label { color: var(--text-muted); font-weight: 500; }
.claim-info-row .value { font-weight: 700; color: var(--text-primary); }
.claim-info-row .value.claimid { color: var(--primary); font-size: 14px; }

/* ── TABS ───────────────────────────────────────────────────── */
.tab-nav {
    display: flex; gap: 4px;
    background: var(--bg); padding: 4px;
    border-radius: 12px; width: fit-content; margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px; border-radius: 9px;
    border: none; background: transparent;
    font-size: 13px; font-weight: 600;
    color: var(--text-muted); cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}

.tab-btn.active {
    background: var(--card-bg); color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── QR ANALYTICS ───────────────────────────────────────────── */
.progress-bar-container { margin-bottom: 10px; }
.progress-bar-label {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 4px;
}
.progress-bar-track {
    height: 6px; background: var(--border);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px; transition: width 0.8s ease;
}

/* ── WHATSAPP LOG ───────────────────────────────────────────── */
.wa-message-preview {
    background: #E9FBF0; border-radius: 12px;
    padding: 10px 14px; font-size: 12px;
    color: #1a1a1a; line-height: 1.5;
    max-width: 280px; border: 1px solid #D1FAE5;
}

/* ── SETTINGS ───────────────────────────────────────────────── */
.settings-section { margin-bottom: 28px; }
.settings-section-title {
    font-size: 13px; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border); padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ── PROFILE ────────────────────────────────────────────────── */
.profile-avatar-wrapper {
    position: relative; width: 100px; height: 100px; margin: 0 auto 16px;
}

.profile-avatar {
    width: 100px; height: 100px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: white; font-weight: 700;
    box-shadow: 0 8px 24px rgba(255,107,0,0.3);
}

.avatar-edit-btn {
    position: absolute; bottom: -4px; right: -4px;
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--primary); color: white;
    border: 2px solid var(--card-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer;
}

/* ── ACTIVITY LOGS ──────────────────────────────────────────── */
.activity-item {
    display: flex; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
    margin-top: 6px;
}
.activity-text { font-size: 13px; color: var(--text-primary); }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── ALERT BOXES ────────────────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: 10px;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; margin-bottom: 16px;
}
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #92400E; }
.alert-success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #065F46; }
.alert-danger  { background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.3);  color: #991B1B; }
.alert-info    { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.3); color: #1E40AF; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .login-page { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .topbar-search { display: none; }
    .page-content { padding: 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .customer-card { padding: 24px 20px; }
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius); }

/* ── MENU TOGGLE (mobile) ───────────────────────────────────── */
.menu-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px; border: none;
    background: var(--bg); color: var(--text-secondary);
    align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
}

/* ── OVERLAY ─────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.5);
}
.sidebar-overlay.show { display: block; }
