/* ============================================
   خدامتي - Handymen & Maintenance Marketplace
   Premium World-Class Design
   ServePro Pink + Dark Theme | Cairo Font
   ============================================ */

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

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

:root {
    /* ── ServePro Theme Palette ── */
    --primary: #142935;
    --primary-dark: #0a1a24;
    --primary-deeper: #061018;
    --primary-light: #1b3a4d;
    --primary-lighter: #2a5570;
    --primary-50: #f0f5f7;
    --primary-100: #dce8ed;
    --primary-200: #b9d1dc;
    --primary-300: #8fb3c5;

    /* ── ServePro Pink/Magenta Palette ── */
    --accent: #ce1567;
    --accent-dark: #a8104f;
    --accent-light: #e8438a;
    --accent-lighter: #fce4ec;
    --accent-50: #fff0f5;
    --accent-100: #fdd6e4;
    --accent-200: #fbadc8;
    --accent-300: #f784ac;

    /* ── Status Colors ── */
    --success: #2E7D32;
    --success-dark: #1B5E20;
    --success-50: #E8F5E9;
    --success-100: #C8E6C9;
    --warning: #F9A825;
    --warning-50: #FFFDE7;
    --danger: #C62828;
    --danger-dark: #B71C1C;
    --danger-50: #FFEBEE;
    --danger-100: #FFCDD2;
    --info: #1565C0;
    --info-50: #E3F2FD;
    --info-100: #BBDEFB;

    /* ── Neutrals ── */
    --dark: #1A1A2E;
    --dark-800: #16213E;
    --dark-700: #374151;
    --dark-600: #4B5563;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* ── Shadows ── */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 60px -12px rgba(0,0,0,0.18);
    --shadow-primary: 0 10px 30px -5px rgba(20,41,53,0.35);
    --shadow-accent: 0 8px 25px -5px rgba(206,21,103,0.35);
    --shadow-navy: 0 15px 40px -10px rgba(10,26,36,0.3);

    /* ── Border Radius ── */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Font ── */
    --font: 'Cairo', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Gradients ── */
    --gradient-primary: linear-gradient(135deg, #142935 0%, #1b3a4d 50%, #2a5570 100%);
    --gradient-accent: linear-gradient(135deg, #ce1567 0%, #e8438a 50%, #f784ac 100%);
    --gradient-hero: linear-gradient(135deg, #061018 0%, #0a1a24 25%, #142935 55%, #1b3a4d 100%);
    --gradient-dark: linear-gradient(180deg, #061018 0%, #0a1a24 50%, #142935 100%);
    --gradient-navy-orange: linear-gradient(135deg, #142935 0%, #ce1567 100%);
    --gradient-warm: linear-gradient(135deg, #fff0f5 0%, #f0f5f7 100%);
    --gradient-card: linear-gradient(180deg, rgba(20,41,53,0.02) 0%, rgba(255,255,255,0) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: #F7F8FC;
    color: var(--dark);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0;
}

main {
    flex: 1;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent-200);
    color: var(--primary-dark);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   HEADER - ServePro Pill-Shaped Sticky
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0 36px;
    position: fixed;
    top: 20px;
    left: 4%;
    right: 4%;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-dark);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-navy-orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.logo-text {
    background: var(--gradient-navy-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--dark-700);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.nav-dropdown, .user-menu {
    position: relative;
}

.nav-dropdown-menu, .user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(27,58,107,0.08);
    min-width: 230px;
    padding: 8px;
    z-index: 100;
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu.show, .user-dropdown.show {
    display: block;
}

.nav-dropdown-menu a, .user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--dark-700);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-xs);
}

.nav-dropdown-menu a:hover, .user-dropdown a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 4px 8px;
}

.user-dropdown a.danger-link:hover {
    background: var(--danger-50);
    color: var(--danger);
}

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-btn:hover {
    border-color: var(--primary-100);
    background: var(--primary-50);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font);
    box-shadow: 0 2px 8px rgba(27,58,107,0.25);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 8px 10px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

/* ============================================
   BUTTONS - Premium
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0);
    transition: var(--transition-fast);
}

.btn:hover::before {
    background: rgba(255,255,255,0.12);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(27,58,107,0.45);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(245,124,0,0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-700);
    border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}
.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(46,125,50,0.3);
}

.btn-warning {
    background: var(--accent);
    color: var(--white);
}
.btn-warning:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(198,40,40,0.3);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.84rem;
    border-radius: var(--radius-xs);
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-200);
    color: var(--primary);
    font-weight: 600;
}
.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent-200);
    color: var(--accent-dark);
    font-weight: 600;
}
.btn-outline-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
}
.btn-ghost:hover {
    background: var(--primary-50);
}

/* ============================================
   ALERTS - Modern with icons
   ============================================ */
.alert {
    padding: 16px 22px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    line-height: 1.6;
    font-weight: 500;
}

.alert-success { 
    background: var(--success-50); 
    color: var(--success-dark); 
    border-color: var(--success-100); 
}
.alert-error { 
    background: var(--danger-50); 
    color: var(--danger-dark); 
    border-color: var(--danger-100); 
}
.alert-info { 
    background: var(--info-50); 
    color: var(--info); 
    border-color: var(--info-100); 
}
.alert-warning { 
    background: var(--accent-50); 
    color: #92400E; 
    border-color: var(--accent-200); 
}

/* ============================================
   CARDS - ServePro Service Layout
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-100);
}

.card:hover .card-img img,
.card:hover .card-img {
    transform: scale(1.05);
}

.card:hover .card-title {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,37,87,0.3) 100%);
}

/* ── ServePro Category Tag Overlay on Image ── */
.card-img-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(245,124,0,0.3);
}

.card-img-icon {
    font-size: 3.2rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--accent-50);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    border: 1px solid rgba(245,124,0,0.12);
}

/* ============================================
   CATEGORY ICON SIZING - Context-Aware
   كل أيقونة تأخذ حجمها من العنصر الأب
   ============================================ */

/* ── Base: الحجم الافتراضي لأيقونة الصورة ── */
.cat-icon-img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    /* الحجم الافتراضي للمواقف العامة */
    height: 22px;
    width: auto;
}

/* ── 1. بطاقات الأقسام الكبيرة (الصفحة الرئيسية) ── */
.sp-cat-icon-box .cat-icon-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* تحويل إلى أبيض للخلفيات الملونة */
}

/* ── 2. تاقات التصنيف الصغيرة في بطاقات الخدمات ── */
.card-category .cat-icon-img {
    height: 15px;
    width: auto;
    object-fit: contain;
}

.sp-service-cat-tag .cat-icon-img {
    height: 14px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* أبيض على خلفية وردية */
}

/* ── 3. البطاقة الكبيرة - صورة بديلة (placeholder) ── */
.card-img .cat-icon-img,
.card-img-icon.cat-icon-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sp-service-img-placeholder .cat-icon-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ── 4. شريط فلترة الأقسام (chips) ── */
.category-chip .cat-icon-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.category-chip.active .cat-icon-img {
    filter: brightness(0) invert(1); /* أبيض عند التفعيل */
}

/* ── 5. قائمة الأقسام في الهيدر (dropdown) ── */
.nav-dropdown-menu a .cat-icon-img,
.header-3-dropdown-menu a .cat-icon-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* ── 6. وسم التصنيف في صفحة الطلبات ── */
.request-card .card-category .cat-icon-img {
    height: 15px;
    width: auto;
    object-fit: contain;
}

/* ── 7. Hero Tags (الأكثر طلباً) ── */
.sp-hero-tags a .cat-icon-img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ── 8. قائمة الأقسام في النماذج (select/dropdown) ── */
.form-control option,
select .cat-icon-img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* ── ServePro Card Author Row ── */
.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--font);
    box-shadow: 0 2px 8px rgba(27,58,107,0.25);
    flex-shrink: 0;
}

.card-author-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark-600);
}

/* ── ServePro Title + Price Row ── */
.card-title-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title-price .card-title {
    margin-bottom: 0;
    flex: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.card-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* ── ServePro View Details Link ── */
.card-view-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent-dark);
    transition: var(--transition);
}

.card-view-details:hover {
    color: var(--accent);
    gap: 10px;
}

/* ── Card Meta: appears below the card box ── */
.card-meta {
    padding: 12px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-meta-seller {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta-seller .avatar {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    box-shadow: 0 1px 3px rgba(27,58,107,0.2);
}

.card-meta-seller a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.card-meta-seller a:hover {
    color: var(--accent-dark);
}

.card-meta-date {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.card-footer {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

/* ============================================
   GRID
   ============================================ */
.grid {
    display: grid;
    gap: 26px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   FORMS - Clean & Modern
   ============================================ */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-700);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(27,58,107,0.08);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--gray-light);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234B5563' d='M6 8L1 3h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.form-help {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 6px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section {
    padding: 56px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    margin-top: 8px;
    font-size: 1rem;
}

.section-link {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ============================================
   PAGE HEADER - Navy Gradient
   ============================================ */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 450px;
    height: 450px;
    background: rgba(245,124,0,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.page-header p {
    opacity: 0.88;
    font-size: 1.05rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION - ServePro Full Viewport
   ============================================ */
.hero {
    background: linear-gradient(135deg, #091A3E 0%, #0d1f3c 30%, #1B3A6B 60%, #0F2557 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,124,0,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(9,26,62,0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px;
    background: rgba(245,124,0,0.15);
    border: 1px solid rgba(245,124,0,0.25);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    color: var(--accent-lighter);
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 40px rgba(0,0,0,0.25);
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero > .container > .hero-content > p,
.hero-content > p {
    font-size: 1.22rem;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* ── Hero Search Bar ── */
.hero-search {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 680px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-search-category {
    padding: 14px 22px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 54px;
    font-family: var(--font);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 140px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.hero-search-category:hover {
    background: var(--accent-dark);
}

.hero-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    background: transparent;
    color: var(--dark);
    outline: none;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: var(--gray-light);
}

.hero-search-btn {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 54px;
    font-family: var(--font);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

/* ── Hero Suggest Tags ── */
.hero-suggest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-suggest-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.hero-suggest-tag:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 16px 40px;
    font-size: 1.02rem;
    border-radius: var(--radius);
    font-weight: 800;
}

.hero .btn-accent {
    box-shadow: 0 10px 35px rgba(245,124,0,0.35);
}
.hero .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 45px rgba(245,124,0,0.45);
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}
.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* Floating decorative elements */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    animation: float 25s infinite ease-in-out;
}

.hero-shape:nth-child(1) { width: 350px; height: 350px; top: 8%; right: 3%; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 220px; height: 220px; bottom: 18%; left: 6%; animation-delay: -7s; }
.hero-shape:nth-child(3) { width: 180px; height: 180px; top: 35%; left: 12%; animation-delay: -14s; border-color: rgba(245,124,0,0.08); }
.hero-shape:nth-child(4) { width: 120px; height: 120px; top: 15%; left: 25%; animation-delay: -4s; background: rgba(245,124,0,0.04); }
.hero-shape:nth-child(5) { width: 280px; height: 280px; bottom: 10%; right: 15%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(4deg); }
    66% { transform: translateY(12px) rotate(-2deg); }
}

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

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

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   STATS - Floating Cards
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: -56px 0 56px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    padding: 30px 22px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(27,58,107,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-navy-orange);
    opacity: 0;
    transition: var(--transition);
}

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

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: inline-block;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 600;
}

/* ============================================
   CATEGORIES - Modern Chips
   ============================================ */
.categories-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 28px;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    height: 0;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    color: var(--dark-600);
}

.category-chip:hover, .category-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* ── Category Slider (ServePro Style) ── */
.category-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.category-slider::-webkit-scrollbar {
    height: 0;
    display: none;
}

.category-slide {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.category-slide:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.category-slide-icon {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.category-slide-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
}

.category-slide:nth-child(6n+1) .category-slide-icon { background: linear-gradient(135deg, #1B3A6B, #2A5298); }
.category-slide:nth-child(6n+2) .category-slide-icon { background: linear-gradient(135deg, #F57C00, #FFB74D); }
.category-slide:nth-child(6n+3) .category-slide-icon { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.category-slide:nth-child(6n+4) .category-slide-icon { background: linear-gradient(135deg, #C62828, #EF5350); }
.category-slide:nth-child(6n+5) .category-slide-icon { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.category-slide:nth-child(6n+6) .category-slide-icon { background: linear-gradient(135deg, #6A1B9A, #AB47BC); }

.category-slide-body {
    padding: 16px;
    text-align: center;
}

.category-slide-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.category-slide-count {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

/* ── Slider Navigation Arrows ── */
.slider-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--dark-600);
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    transform: scale(1.08);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-pending { background: var(--accent-50); color: #92400E; border: 1px solid var(--accent-200); }
.badge-active { background: var(--success-50); color: var(--success-dark); border: 1px solid var(--success-100); }
.badge-completed { background: var(--info-50); color: var(--info); border: 1px solid var(--info-100); }
.badge-cancelled { background: var(--danger-50); color: var(--danger-dark); border: 1px solid var(--danger-100); }
.badge-expired { background: var(--danger-50); color: var(--danger-dark); border: 1px solid var(--danger-100); }
.badge-rejected { background: var(--danger-50); color: var(--danger-dark); border: 1px solid var(--danger-100); }
.badge-accepted { background: var(--success-50); color: var(--success-dark); border: 1px solid var(--success-100); }
.badge-open { background: var(--info-50); color: var(--info); border: 1px solid var(--info-100); }
.badge-closed { background: var(--gray-100); color: var(--dark-600); border: 1px solid var(--gray-200); }
.badge-hidden { background: var(--gray-100); color: var(--dark-600); border: 1px solid var(--gray-200); }
.badge-in_progress { background: var(--accent-50); color: #92400E; border: 1px solid var(--accent-200); }

/* ============================================
   TABLES - Premium Clean
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid var(--gray-100);
}

th {
    background: var(--primary-50);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

td {
    font-size: 0.93rem;
    vertical-align: middle;
}

tr:hover td {
    background: rgba(27,58,107,0.02);
}

/* ============================================
   TABS - Underline Style
   ============================================ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 26px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ============================================
   AUTH PAGES - Premium
   ============================================ */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 28px;
    background: linear-gradient(180deg, var(--gray-50) 0%, #EBF0FA 100%);
}

.auth-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(27,58,107,0.06);
    width: 100%;
    max-width: 480px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-navy-orange);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(27,58,107,0.03) 0%, transparent 70%);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 34px;
    font-size: 0.93rem;
}

.auth-card .form-group:last-of-type {
    margin-bottom: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 26px;
    font-size: 0.93rem;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
}

.auth-link a:hover {
    text-decoration: underline;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 26px;
}

.role-option {
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.role-option:hover {
    border-color: var(--primary-100);
    background: var(--primary-50);
}

.role-option.selected {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 4px rgba(27,58,107,0.08);
}

.role-option input {
    display: none;
}

.role-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.role-label {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--dark-700);
}

/* ============================================
   DASHBOARD - Stats
   ============================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.dash-stat {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.dash-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.dash-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.dash-stat-icon.purple { background: var(--primary-50); }
.dash-stat-icon.navy { background: var(--primary-50); }
.dash-stat-icon.green { background: var(--success-50); }
.dash-stat-icon.orange { background: var(--accent-50); }
.dash-stat-icon.red { background: var(--danger-50); }

.dash-stat-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.dash-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 28px;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(0.3);
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-weight: 800;
}

.empty-state p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   SUBSCRIPTION PLANS
   ============================================ */
.plan-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-navy-orange);
    opacity: 0;
    transition: var(--transition);
}

.plan-card:hover, .plan-card.featured {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.plan-card:hover::before, .plan-card.featured::before {
    opacity: 1;
}

.plan-card.featured {
    border-width: 2px;
}

.plan-badge {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 22px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-accent);
    letter-spacing: 0.02em;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 20px 0 8px;
    letter-spacing: -0.02em;
}

.plan-period {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    text-align: right;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.93rem;
    color: var(--dark-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    font-size: 0.85rem;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

.detail-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(27,58,107,0.06);
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--white);
}

.detail-content {
    padding: 36px;
}

.detail-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.detail-desc {
    line-height: 2;
    color: var(--dark-600);
    font-size: 0.97rem;
}

.detail-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(27,58,107,0.06);
    padding: 30px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.detail-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.detail-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 24px;
}

.seller-info .avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.seller-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.seller-role {
    font-size: 0.82rem;
    color: var(--gray);
}

/* ============================================
   OFFERS
   ============================================ */
.offer-card {
    background: var(--white);
    border: 1px solid rgba(27,58,107,0.06);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.offer-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
}

.offer-seller {
    font-weight: 700;
    color: var(--dark);
}

.offer-message {
    color: var(--dark-600);
    font-size: 0.93rem;
    margin-bottom: 16px;
    line-height: 1.75;
}

.offer-actions {
    display: flex;
    gap: 12px;
}

/* ============================================
   ADMIN PANEL (Old horizontal sidebar removed - using full sidebar layout)
   ============================================ */

.payment-proof-img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}

.payment-proof-img:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.action-btns {
    display: flex;
    gap: 8px;
}

/* ============================================
   FILTERS
   ============================================ */
.filters-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 13px 22px 13px 46px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.93rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(27,58,107,0.08);
}

/* ============================================
   FOOTER - ServePro Dark Navy
   ============================================ */
.main-footer {
    background: #142935;
    color: var(--gray-light);
    padding: 70px 0 0;
    margin-top: auto;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--primary-light) 50%, var(--accent) 70%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.12rem;
    font-weight: 800;
}

.footer-col p {
    line-height: 1.9;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

/* ── Footer Logo Area ── */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-navy-orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-right: 4px;
}

/* ── Footer Contact Info ── */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--accent-light);
    margin-top: 2px;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ── Footer Social Icons ── */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245,124,0,0.35);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.84rem;
    font-weight: 500;
}

/* ============================================
   CHAT
   ============================================ */
.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(27,58,107,0.06);
    overflow: hidden;
}

.chat-list {
    border-left: 1px solid var(--gray-100);
    overflow-y: auto;
}

.chat-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-list-item:hover, .chat-list-item.active {
    background: var(--primary-50);
}

.chat-list-item .avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.chat-list-item .chat-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
}

.chat-list-item .chat-preview {
    font-size: 0.82rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 70%;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.93rem;
    line-height: 1.65;
}

.chat-bubble.sent {
    background: var(--primary);
    color: var(--white);
    align-self: flex-start;
    border-bottom-right: 4px;
}

.chat-bubble.received {
    background: var(--gray-100);
    color: var(--dark);
    align-self: flex-end;
}

.chat-bubble .chat-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 6px;
    display: block;
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.93rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,58,107,0.08);
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
    background: var(--gradient-primary);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(245,124,0,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.profile-details {
    max-width: 700px;
    margin: -30px auto 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(27,58,107,0.06);
    padding: 32px;
    position: relative;
    z-index: 10;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.profile-detail-item:last-child {
    border-bottom: none;
}

.profile-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-detail-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.82rem;
}

.profile-detail-value {
    font-weight: 700;
    color: var(--dark);
}

/* ============================================
   RESPONSIVE - Premium Mobile
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin: -40px 0 40px;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-list {
        max-height: 200px;
    }

    /* Admin dashboard two-column */
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .dashboard-stats {
        flex-wrap: wrap;
    }

    .dash-stat {
        flex: 1 1 calc(33.33% - 12px);
        min-width: 160px;
    }

    /* ── Pill header tablet ── */
    .main-header {
        left: 2%;
        right: 2%;
        padding: 0 24px;
        border-radius: 40px;
    }

    /* ── Hero search responsive ── */
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        gap: 6px;
    }

    .hero-search-category {
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .hero-search-btn {
        border-radius: var(--radius-sm);
        width: 100%;
        justify-content: center;
    }

    /* ── Category slider tablet ── */
    .category-slide {
        flex: 0 0 180px;
    }

    /* ── Why Choose Us tablet ── */
    .why-choose {
        flex-direction: column;
    }

    .why-choose-image {
        min-height: 280px;
    }

    .why-choose-content {
        padding: 40px 30px;
    }

    /* ── Steps tablet ── */
    .steps-container::before {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    /* ── Footer tablet ── */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* ── Pill header mobile ── */
    .main-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 0 16px;
        box-shadow: var(--shadow-md);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        gap: 4px;
    }

    .main-nav.show {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-xs);
    }

    .nav-link:hover, .nav-link.active {
        background: var(--primary-50);
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* ── Hero mobile ── */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p,
    .hero > .container > .hero-content > p {
        font-size: 1.05rem;
    }

    .hero .btn {
        padding: 13px 30px;
        font-size: 0.93rem;
    }

    /* ── Hero search mobile ── */
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        gap: 6px;
    }

    .hero-search-category {
        border-radius: var(--radius-sm);
        width: 100%;
        text-align: center;
    }

    .hero-search-btn {
        border-radius: var(--radius-sm);
        width: 100%;
        justify-content: center;
    }

    .hero-suggest-tags {
        gap: 8px;
    }

    .hero-suggest-tag {
        font-size: 0.78rem;
        padding: 6px 16px;
    }

    /* ── Grids ── */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: -36px 16px 36px;
    }

    .stat-card {
        padding: 20px 14px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-header {
        padding: 44px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    /* ── Category slider mobile ── */
    .category-slide {
        flex: 0 0 160px;
    }

    .category-slide-icon {
        height: 110px;
    }

    /* ── Why Choose Us mobile ── */
    .why-choose {
        flex-direction: column;
    }

    .why-choose-image {
        min-height: 220px;
    }

    .why-choose-content {
        padding: 32px 24px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ── Steps mobile ── */
    .steps-container::before {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .step-number {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* ── Footer mobile ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* ── CTA mobile ── */
    .cta-section h2 {
        font-size: 1.7rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* ── Cards ── */
    .card-title-price {
        flex-direction: column;
        gap: 8px;
    }

    /* ── Existing components ── */
    .auth-card {
        padding: 32px 24px;
    }

    .profile-details {
        margin: -24px 16px 32px;
        padding: 24px;
    }

    .plan-card {
        padding: 30px 20px;
    }

    .dashboard-stats {
        flex-direction: column;
    }

    .dash-stat {
        flex: 1 1 100%;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .offer-actions {
        flex-direction: column;
    }

    .offer-actions .btn {
        width: 100%;
    }

    .user-menu-btn span:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p,
    .hero > .container > .hero-content > p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-search {
        padding: 6px;
        gap: 4px;
    }

    .hero-search-category,
    .hero-search-input,
    .hero-search-btn {
        font-size: 0.86rem;
        padding: 12px 16px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card-body {
        padding: 18px;
    }

    .detail-content {
        padding: 24px;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .category-slide {
        flex: 0 0 150px;
    }

    .cta-section {
        padding: 56px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--gray) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

/* ── Logo Header White variant for hero pages ── */
.main-header.header-transparent {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(255,255,255,0.06);
}

.main-header.header-transparent .logo-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.main-header.header-transparent .nav-link {
    color: rgba(255,255,255,0.85);
}

.main-header.header-transparent .nav-link:hover,
.main-header.header-transparent .nav-link.active {
    color: var(--white);
}

.main-header.header-transparent .user-menu-btn {
    border-color: rgba(255,255,255,0.15);
    color: var(--white);
}

/* ============================================
   WHY CHOOSE US - Split Layout
   ============================================ */
.why-choose {
    display: flex;
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.why-choose-image {
    flex: 1;
    background: linear-gradient(135deg, #091A3E 0%, #1B3A6B 50%, #2A5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.why-choose-image::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(245,124,0,0.12);
    border-radius: 50%;
}

.why-choose-image::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.why-choose-image-icon {
    font-size: 6rem;
    color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
    animation: floatSlow 6s ease-in-out infinite;
}

.why-choose-content {
    flex: 1;
    background: #0d1f3c;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-choose-content .section-title {
    color: var(--white);
    margin-bottom: 36px;
}

.why-choose-content .section-title::after {
    background: var(--gradient-accent);
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.reason-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reason-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(245,124,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-light);
    flex-shrink: 0;
    border: 1px solid rgba(245,124,0,0.15);
}

.reason-item h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.reason-item p {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ============================================
   FEATURES SECTION - How it works (Steps)
   ============================================ */
.steps-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

/* ── Dashed Connector Line ── */
.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.66% + 30px);
    right: calc(16.66% + 30px);
    height: 2px;
    border-top: 2px dashed var(--gray-300);
    z-index: 0;
}

.step-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0 auto 22px;
    transition: var(--transition);
    position: relative;
}

.step-item:hover .step-number {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    transform: scale(1.08);
}

.step-item h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
}

.features-section {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-primary);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
}

/* ============================================
   CTA Section - Orange Gradient
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 40%, #FFB74D 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--accent-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--accent-dark);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HEADER-3 - ServePro Pill-Shaped Navigation
   ============================================ */
.main-header.header-3 {
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0 12px;
    position: fixed;
    top: 16px;
    left: 3%;
    right: 3%;
    z-index: 1000;
    transition: var(--transition);
}

.header-3-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

/* Logo */
.header-3-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-dark);
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-decoration: none;
    flex-shrink: 0;
}

.header-3-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-navy-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.header-3-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
}

.header-3-logo-text {
    background: var(--gradient-navy-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.header-3-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-3-nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-700);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.header-3-nav-link i {
    font-size: 0.82rem;
    opacity: 0.7;
}

.header-3-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 22px;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.header-3-nav-link:hover,
.header-3-nav-link.active {
    color: var(--primary);
}

.header-3-nav-link:hover::after,
.header-3-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-3-chevron {
    font-size: 0.65rem !important;
    opacity: 0.5 !important;
    transition: var(--transition-fast);
}

/* Dropdown for header-3 */
.header-3-dropdown-menu {
    min-width: 240px;
    border-radius: var(--radius);
    padding: 8px;
}

.header-3-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--dark-700);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-xs);
}

.header-3-dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* Actions */
.header-3-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-3-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
    white-space: nowrap;
    border: none;
}

.header-3-btn i {
    font-size: 0.82rem;
}

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

.header-3-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -6px rgba(27,58,107,0.45);
}

.header-3-btn-outline {
    background: var(--white);
    color: var(--dark-700);
    border: 1.5px solid var(--gray-200);
}

.header-3-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.header-3-btn-warning {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.header-3-btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -6px rgba(245,124,0,0.45);
}

/* User Button */
.header-3-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.header-3-user-btn:hover {
    border-color: var(--primary-100);
    background: var(--primary-50);
}

.header-3-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font);
    box-shadow: 0 2px 8px rgba(27,58,107,0.25);
}

.header-3-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-700);
}

.header-3-chevron-sm {
    font-size: 0.6rem !important;
    color: var(--gray-light);
    transition: var(--transition-fast);
}

/* User Dropdown Override for header-3 */
.header-3-user-dropdown {
    min-width: 240px;
}

.header-3-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--dark-700);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-xs);
}

.header-3-user-dropdown a i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    color: var(--gray-light);
    transition: var(--transition-fast);
}

.header-3-user-dropdown a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.header-3-user-dropdown a:hover i {
    color: var(--primary);
}

/* Mobile Toggle */
.header-3-mobile-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 8px 10px;
    transition: var(--transition-fast);
}

.header-3-mobile-toggle:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

/* ── Header-3 Responsive ── */
@media (max-width: 1024px) {
    .main-header.header-3 {
        left: 2%;
        right: 2%;
        padding: 0 10px;
    }

    .header-3-nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .main-header.header-3 {
        border-radius: 18px;
        top: 10px;
        left: 12px;
        right: 12px;
        padding: 0 12px;
    }

    .header-3-wrapper {
        height: 60px;
    }

    .header-3-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius);
        border: 1px solid rgba(27,58,107,0.08);
        gap: 2px;
    }

    .header-3-nav.show {
        display: flex;
    }

    .header-3-nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-xs);
        width: 100%;
        justify-content: flex-start;
    }

    .header-3-nav-link::after {
        display: none;
    }

    .header-3-mobile-toggle {
        display: flex;
    }

    .header-3-user-name {
        display: none;
    }

    .header-3-chevron-sm {
        display: none;
    }

    .header-3-btn span {
        display: none;
    }

    .header-3-btn i {
        margin: 0;
    }

    .header-3-dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        min-width: 100%;
        display: none;
        animation: none;
    }

    .header-3-dropdown-menu.show {
        display: block;
    }

    .header-3-user-dropdown {
        position: static !important;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: 100%;
        display: none;
        animation: none;
    }

    .header-3-user-dropdown.show {
        display: block;
    }
}

/* ============================================
   SP-FOOTER - ServePro Dark Footer
   ============================================ */
.sp-footer {
    background: #0d1f3c;
    color: var(--gray-light);
    position: relative;
    margin-top: auto;
}

.sp-footer-wave {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    overflow: hidden;
    color: #0d1f3c;
    pointer-events: none;
}

.sp-footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sp-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 28px 0;
}

.sp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Footer Brand Column */
.sp-footer-brand {
    padding-left: 20px;
}

.sp-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sp-footer-logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.sp-footer-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
}

.sp-footer-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.01em;
}

.sp-footer-desc {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

/* Social Icons */
.sp-footer-social {
    display: flex;
    gap: 10px;
}

.sp-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.sp-social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245,124,0,0.3);
}

/* Footer Headings */
.sp-footer-heading {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.01em;
}

.sp-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
}

/* Footer Links */
.sp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-footer-links li {
    margin-bottom: 10px;
}

.sp-footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    padding: 4px 0;
}

.sp-footer-links li a i {
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.sp-footer-links li a:hover {
    color: var(--white);
    padding-right: 4px;
}

.sp-footer-links li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.sp-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.sp-footer-contact li i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245,124,0,0.1);
    border: 1px solid rgba(245,124,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Footer Bottom Bar */
.sp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sp-footer-copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-weight: 500;
}

.sp-footer-bottom-social {
    display: flex;
    gap: 8px;
}

.sp-footer-bottom-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.sp-footer-bottom-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Footer Responsive ── */
@media (max-width: 1024px) {
    .sp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .sp-footer-brand {
        grid-column: 1 / -1;
        padding-left: 0;
        text-align: center;
    }

    .sp-footer-logo {
        justify-content: center;
    }

    .sp-footer-social {
        justify-content: center;
    }

    .sp-footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 640px) {
    .sp-footer-container {
        padding: 40px 20px 0;
    }

    .sp-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .sp-footer-bottom-social {
        justify-content: center;
    }

    .sp-footer-contact li {
        flex-direction: row-reverse;
        text-align: right;
    }

    .sp-footer-heading::after {
        right: 0;
        transform: none;
    }
}

/* ============================================
   SELLER PANEL - Sidebar Layout
   ============================================ */
.seller-panel {
    display: flex;
    min-height: 100vh;
    position: relative;
    padding-top: 96px; /* Account for fixed header (16px top + 70px height + 10px gap) */
}

/* ── Sidebar Container ── */
.seller-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--primary-dark);
    position: sticky;
    top: 96px; /* Match header height + gap */
    height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: var(--transition);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-lighter) transparent;
}

.seller-sidebar::-webkit-scrollbar {
    width: 4px;
}

.seller-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.seller-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-lighter);
    border-radius: 4px;
}

/* ── Brand ── */
.seller-sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.seller-sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.seller-sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(206,21,103,0.3);
}

.seller-sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* ── Navigation ── */
.seller-sidebar-nav {
    padding: 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seller-sidebar-section {
    padding: 0 12px;
    margin-bottom: 8px;
}

.seller-sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 14px 6px;
    white-space: nowrap;
}

.seller-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.seller-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.seller-sidebar-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.seller-sidebar-link.active {
    color: var(--white);
    background: rgba(206,21,103,0.2);
    border-right: 3px solid var(--accent);
}

/* Sub-items */
.seller-sidebar-sub {
    padding-right: 28px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
}

.seller-sidebar-sub:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
}

.seller-sidebar-sub.active {
    color: var(--white);
    background: rgba(206,21,103,0.15);
    border-right-color: var(--accent-light);
}

/* Footer section */
.seller-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.seller-sidebar-logout {
    color: rgba(255,255,255,0.5);
}

.seller-sidebar-logout:hover {
    color: #ff6b6b;
    background: rgba(255,80,80,0.1);
}

/* ── Main Content ── */
.seller-main {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.seller-main .container {
    padding: 0 28px;
}

/* ── Page header inside panel (no margin-bottom, no full-width) ── */
.seller-panel .page-header {
    border-radius: 0;
    margin-bottom: 0;
    padding: 40px 0 36px;
}

/* ── Mobile Toggle ── */
.seller-sidebar-toggle {
    display: none;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    align-items: center;
    justify-content: center;
}

.seller-sidebar-toggle:hover {
    background: var(--primary-light);
}

/* ── Mobile Overlay ── */
.seller-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .seller-sidebar-toggle {
        display: flex;
    }

    .seller-panel {
        flex-direction: column;
    }

    .seller-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .seller-panel.sidebar-open .seller-sidebar {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .seller-panel.sidebar-open .seller-sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .seller-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .seller-sidebar {
        width: 280px;
        min-width: 280px;
    }
    
    .seller-panel {
        padding-top: 80px; /* Mobile header: 10px top + 60px height + 10px gap */
    }
    
    .seller-panel .page-header {
        padding: 30px 0 24px;
    }
    
    .seller-panel .page-header h1 {
        font-size: 1.5rem;
    }

    .seller-main .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ── Seller page content adjustments ── */
.seller-main .section {
    padding: 30px 0;
}

.seller-main .section-title {
    font-size: 1.3rem;
}

/* ── Order filter tabs ── */
.order-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.order-filter-tab {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--dark-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-filter-tab:hover {
    border-color: var(--primary-200);
    color: var(--primary);
    background: var(--primary-50);
}

.order-filter-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

/* ── Message conversation card ── */
.msg-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 12px;
}

.msg-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.msg-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font);
    flex-shrink: 0;
}

.msg-card-body {
    flex: 1;
    min-width: 0;
}

.msg-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.msg-card-preview {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-card-meta {
    text-align: left;
    flex-shrink: 0;
}

.msg-card-date {
    font-size: 0.78rem;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.msg-card-badge {
    display: inline-block;
}

/* ── Password tab styles ── */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 28px;
}

.profile-tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.profile-tab-btn:hover {
    color: var(--primary);
}

.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ============================================
   ADMIN PANEL - Full Sidebar Layout
   ============================================ */
.admin-panel {
    display: flex;
    min-height: 100vh;
    background: #F0F2F5;
}

.admin-sidebar {
    width: 280px;
    background: var(--gradient-primary);
    color: var(--white);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    overflow-y: auto;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.admin-sidebar-brand {
    padding: 24px 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.admin-sidebar-logo {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.admin-sidebar-brand-text {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.admin-sidebar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 20px 22px 8px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-sidebar-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 700;
}

.admin-sidebar-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.admin-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.admin-sidebar-section {
    margin-bottom: 4px;
}

.admin-sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    padding: 16px 16px 6px;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-logout:hover {
    background: rgba(244,67,54,0.15) !important;
    color: #FFCDD2 !important;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-right: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin Top Bar */
.admin-topbar {
    background: var(--white);
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
}

.admin-topbar-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 8px 10px;
    transition: var(--transition-fast);
}

.admin-topbar-toggle:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.admin-topbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar-title i {
    color: var(--accent);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    font-family: var(--font);
    border: none;
}

.admin-topbar-btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-200);
    color: var(--dark-600);
}

.admin-topbar-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.admin-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-navy-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font);
    cursor: pointer;
}

/* Admin Page Content */
.admin-content {
    flex: 1;
    padding: 32px;
}

/* Admin Page Header (inside admin panel - simplified) */
.admin-page-header {
    margin-bottom: 28px;
}

.admin-page-header h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-header h1 i {
    color: var(--accent);
}

.admin-page-header p {
    color: var(--gray);
    font-size: 0.93rem;
}

/* Admin Overlay for mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(100%);
        width: 300px;
    }

    .admin-panel.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-panel.sidebar-open .admin-sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .admin-main {
        margin-right: 0;
    }

    .admin-topbar-toggle {
        display: flex;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-topbar {
        padding: 0 20px;
    }
}

/* Admin card styles for inner pages */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    padding: 28px;
    margin-bottom: 24px;
}

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

.admin-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin stats row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,58,107,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.admin-stat-label {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 600;
}

/* Override auth-card max-width for admin pages */
.admin-panel .auth-card {
    max-width: 100%;
}
