/* ================================================
   DAGGAH (دقة) - Modern Auto Parts Bidding Platform
   Complete Redesign - Mobile-First Approach
   ================================================ */

/* ===== CSS Variables - Modern Color System ===== */
:root {
    /* Primary Colors */
    --primary: #d4edf4;
    --primary-light: #e6f4f9;
    --primary-dark: #b8dde8;
    --primary-text: #91c5d4;
    --primary-gradient: linear-gradient(135deg, #d4edf4 0%, #b8dde8 100%);
    
    /* Secondary/Accent Colors */
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    
    /* Neutral Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 14px rgba(212, 237, 244, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Typography */
    --font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ===== Container ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== Modern Header ===== */
.app-header {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.header-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-menu-btn:hover {
    background: var(--border-light);
}

.header-menu-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--font-xs);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-item.active {
    background: rgba(212, 237, 244, 0.1);
    color: var(--primary-text);
}

.nav-item:hover {
    color: var(--primary-text);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* ===== Side Menu (Slide) ===== */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1200;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-menu.active {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

.side-menu-header {
    padding: var(--space-xl) var(--space-lg);
    background: var(--primary-gradient);
    color: var(--text-primary);
}

.side-menu-title {
    font-size: var(--font-xl);
    font-weight: 700;
}

.side-menu-subtitle {
    font-size: var(--font-sm);
    opacity: 0.8;
}

.side-menu-links {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.side-menu-link:hover, .side-menu-link.active {
    background: rgba(212, 237, 244, 0.1);
    color: var(--primary-text);
}

.side-menu-link svg {
    width: 22px;
    height: 22px;
}

.menu-section-title {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);
}

.menu-section-title:first-child {
    margin-top: 0;
}

.menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-sm) 0;
}

.logout-link {
    color: var(--accent-red) !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.side-menu-close {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-footer {
    padding: var(--space-md) var(--space-lg);
    background: white;
}

.certification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.certification-badge:hover {
    opacity: 0.8;
}

.certification-badge img {
    width: 80px;
    height: auto;
}

/* ===== Page Header ===== */
.page-header {
    padding: var(--space-xl) 0;
    text-align: center;
}

.page-header h1 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text-primary);
}

.filter-btn svg {
    flex-shrink: 0;
}

/* ===== Hero Section (Home) ===== */
.hero-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-md) 0;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    max-width: 220px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.side-menu-logo {
    max-width: 104px;
    height: auto;
    filter: brightness(0);
}

.hero-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--font-base);
    opacity: 0.9;
}

/* ===== Modern Cards ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(212, 237, 244, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input, .form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-text);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(212, 237, 244, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

/* ===== File Upload ===== */
.file-upload {
    position: relative;
}

.file-upload-area {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
}

.file-upload-area:hover {
    border-color: var(--primary-text);
    background: rgba(212, 237, 244, 0.05);
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--primary-text);
}

.file-upload-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.file-upload-text span {
    color: var(--primary-text);
    font-weight: 600;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 237, 244, 0.35);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ===== Pill Buttons / Tags ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.pill.active {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary-text);
}

.pill:hover {
    border-color: var(--primary-text);
}

/* ===== Category Selection Pills ===== */
.category-pills {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.category-pill {
    flex: 1;
    min-width: 80px;
    padding: var(--space-md);
    text-align: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: var(--font-sm);
}

.category-pill.original {
    color: var(--accent-green);
}

.category-pill.commercial {
    color: var(--primary-text);
}

.category-pill.used {
    color: var(--accent-orange);
}

.category-pill.active, .category-pill:hover {
    transform: translateY(-2px);
}

.category-pill.original.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-green);
}

.category-pill.commercial.active {
    background: rgba(212, 237, 244, 0.1);
    border-color: var(--primary-text);
}

.category-pill.used.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-orange);
}

/* ===== Order Cards ===== */
.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

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

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.order-number {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-text);
    background: rgba(212, 237, 244, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 600;
}

.order-status.open {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.order-status.closed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.order-card-body h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.order-car-info {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.order-stats {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-light);
}

.order-stat {
    text-align: center;
}

.order-stat-value {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-text);
}

.order-stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.order-card-actions {
    margin-top: var(--space-md);
}

/* ===== Price Result Cards ===== */
.price-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.price-card.original::before {
    background: var(--accent-green);
}

.price-card.commercial::before {
    background: var(--primary);
}

.price-card.used::before {
    background: var(--accent-orange);
}

.price-card-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.price-card.original .price-card-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.price-card.commercial .price-card-badge {
    background: rgba(212, 237, 244, 0.1);
    color: var(--primary-text);
}

.price-card.used .price-card-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

.price-amount {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.price-amount .currency {
    font-size: var(--font-lg);
    font-weight: 500;
    color: var(--text-secondary);
}

.price-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.dealer-info-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-md);
}

.dealer-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-lg);
}

.dealer-details h4 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
}

.dealer-details span {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* ===== Bid Entry Modern ===== */
.bid-entry {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.bid-field {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bid-field:last-child {
    border-bottom: none;
}

/* ===== Bid Input Modern ===== */
.bid-input-container {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    overflow: hidden;
}

.bid-input-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    border: none;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.bid-input-btn:hover {
    background: var(--primary-dark);
}

.bid-input {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

.bid-input:focus {
    outline: none;
}

/* ===== Dashboard Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(212, 237, 244, 0.1);
    color: var(--primary-text);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* ===== Login/Auth Cards ===== */
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: rgba(212, 237, 244, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
}

.auth-icon svg {
    width: 32px;
    height: 32px;
}

.auth-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.auth-footer a {
    color: var(--primary-text);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Flash Messages ===== */
.flash {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.flash.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.flash.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.flash.info {
    background: rgba(212, 237, 244, 0.1);
    color: var(--primary-text);
    border: 1px solid var(--primary);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* ===== Tables (Admin) ===== */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.data-table th {
    background: var(--bg-secondary);
    padding: var(--space-md);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.data-table td {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    font-size: var(--font-sm);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* ===== Action Buttons ===== */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn.approve {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.action-btn.approve:hover {
    background: var(--accent-green);
    color: white;
}

.action-btn.reject {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.action-btn.reject:hover {
    background: var(--accent-red);
    color: white;
}

.action-btn.view {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    text-decoration: none;
}

.action-btn.view:hover {
    background: var(--primary-dark);
    color: white;
}

.action-btn.edit {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    text-decoration: none;
}

.action-btn.edit:hover {
    background: var(--accent-purple);
    color: white;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}

.badge.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
}

.badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.badge.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

.badge.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* ===== Back Link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
}

.back-link:hover {
    color: var(--text-primary);
}

/* ===== Countdown Timer ===== */
.countdown {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 237, 244, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-text);
}

.countdown svg {
    width: 16px;
    height: 16px;
}

/* ===== Image Preview ===== */
.image-preview {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: var(--space-md);
    position: relative;
}

/* ===== Image Modal ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.image-modal-close:hover {
    color: var(--accent-red);
}

.image-modal-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Terms Page ===== */
.terms-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.terms-content h2 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: var(--space-md);
    margin-top: var(--space-lg);
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.terms-content ul {
    padding-right: var(--space-lg);
    color: var(--text-secondary);
}

.terms-content li {
    margin-bottom: var(--space-sm);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utilities ===== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.hidden { display: none; }
