/* ==========================================================================
   BIYAA Premium Classifieds - Custom Design System
   Theme: Crimson Red & Luxury White
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    color-scheme: dark;
    /* Color Palette */
    --primary-red: #A30000;          /* Bloody Red */
    --primary-red-hover: #7A0000;    /* Darker Blood Red */
    --primary-red-light: rgba(163, 0, 0, 0.15); /* Dark Crimson Bg Accent */
    --accent-gold: #FFB300;          /* Premium gold highlights */
    
    --neutral-dark: #FFFFFF;         /* White (Text) */
    --neutral-medium: #8E92A8;       /* Cool Grey/Slate (Subtitles/Icons) */
    --neutral-light: #0A0A0C;        /* Rich Black Page Bg */
    --border-color: #241A1A;         /* Dark Subtle Red-tinted Border */
    --card-bg: #121217;              /* Deep Charcoal/Black Card Bg */
    --header-bg: rgba(10, 10, 12, 0.85); /* Dark Translucent Header Bg */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Elevation / Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
    --shadow-hover: 0 12px 32px rgba(163, 0, 0, 0.35); /* Glow of blood red on hover */
    
    /* Layout & Motion */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
    color-scheme: light;
    --neutral-dark: #0F172A;         /* Deep Slate / Black Text */
    --neutral-medium: #64748B;       /* Cool Slate Grey Subtext */
    --neutral-light: #F8FAFC;        /* Light Background */
    --border-color: #E2E8F0;         /* Light Grey Border */
    --card-bg: #FFFFFF;              /* Pure White Card Bg */
    --primary-red-light: rgba(163, 0, 0, 0.08); /* Lighter Crimson Bg Accent */
    --header-bg: rgba(255, 255, 255, 0.85); /* Light Translucent Header Bg */
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(163, 0, 0, 0.18);
}

/* --- Global Resets & Baseline --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbars globally */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    font-family: var(--font-body);
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Anti-Copy & Content Protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text input selection so typing in forms remains smooth */
input, textarea, select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Prevent image dragging and downloading */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button, select, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

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

/* --- App Header & Navigation --- */
.app-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Official Brand Logo Image Styling - Transparent & Larger */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-img {
    height: 58px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(179, 0, 0, 0.4));
    transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
    transform: scale(1.04);
}

.footer-logo-img {
    height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2));
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-main-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -1px;
}

.logo-sub-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
    letter-spacing: -0.5px;
    margin-top: -2px;
}

/* Header Logo: Disable Pulse Animation as requested */
.app-header .logo {
    animation: none !important;
    transform: none !important;
}
    }
}

@keyframes logo-red-shift {
    0%, 100% { color: var(--primary-red); }
    50% { color: var(--primary-red-hover); }
}

@keyframes logo-dark-shift {
    0%, 100% { color: var(--neutral-dark); }
    50% { color: var(--neutral-medium); }
}

/* Location Selector */
.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background-color: var(--card-bg);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.location-selector:hover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}

.location-selector .icon {
    width: 18px;
    height: 18px;
}

.location-selector .chevron {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Header Search */
.header-search-bar {
    display: flex;
    align-items: center;
    background-color: var(--neutral-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 4px 4px 16px;
    width: 35%;
    max-width: 450px;
    transition: all var(--transition-fast);
}

.header-search-bar:focus-within {
    border-color: var(--primary-red);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.header-search-bar input {
    flex: 1;
    font-size: 14px;
    background: transparent;
}

.header-search-bar button {
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.header-search-bar button:hover {
    background-color: var(--primary-red-hover);
}

.header-search-bar button .icon {
    width: 16px;
    height: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: all var(--transition-fast);
    position: relative;
}

.action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.action-btn .icon {
    width: 20px;
    height: 20px;
}

.action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.auth-btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.auth-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.sell-btn {
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(163, 0, 0, 0.4);
}

.sell-btn:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(163, 0, 0, 0.6);
}

.sell-btn:active {
    transform: translateY(0);
}

.sell-btn .icon {
    width: 18px;
    height: 18px;
}

/* --- Sub Navigation Bar --- */
.sub-nav {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.sub-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.sub-nav-container {
    display: flex;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    align-items: center;
}

.sub-nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-medium);
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.sub-nav-item:hover,
.sub-nav-item.active {
    color: var(--primary-red);
}

.sub-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.sub-nav-item.active::after {
    transform: scaleX(1);
}

/* --- Views and Layout Visibility --- */
.view-section {
    display: none;
    padding-top: 40px;
    padding-bottom: 60px;
    animation: fadeIn var(--transition-smooth);
}

.view-section.active {
    display: block;
}

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

/* --- Hero Banner Section --- */
.hero-banner {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    padding: 80px 24px;
    text-align: center;
    color: white;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.4);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

/* Search Widget overlay on Hero */
.search-widget {
    background-color: var(--card-bg);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    color: var(--neutral-dark);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

.keyword-field {
    flex: 1.8;
}

.select-field {
    flex: 1;
}

.border-left {
    border-left: 1px solid var(--border-color);
}

.field-icon {
    width: 20px;
    height: 20px;
    color: var(--neutral-medium);
}

.search-field input {
    width: 100%;
    font-size: 15px;
}

.search-field select {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background-color: transparent !important;
    color: var(--neutral-dark) !important;
    border: none;
    outline: none;
}
.search-field select option {
    background-color: var(--card-bg) !important;
    color: var(--neutral-dark) !important;
}

.search-submit-btn {
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.search-submit-btn:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.02);
}

/* --- Category Circle Grid --- */
.categories-grid-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.categories-circles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.category-circle-card:hover {
    transform: translateY(-6px);
}

.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    color: var(--neutral-dark);
}

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

.category-circle-card:hover .circle-icon {
    border-color: var(--primary-red);
    color: white;
    background-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
}

.category-circle-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
}

/* --- Listings Grid and Cards --- */
.featured-listings-section {
    margin-bottom: 60px;
}

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

.view-all-link {
    font-weight: 600;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--transition-fast);
}

.view-all-link:hover {
    opacity: 0.8;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* Luxury Ad Card */
.ad-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.ad-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-hover);
}

.card-img-container {
    height: 180px;
    position: relative;
    background-color: var(--neutral-light);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

/* Dynamic badges overlay on image */
.badge-premium {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
    z-index: 2;
}

.badge-condition {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(21, 21, 28, 0.8);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(20, 20, 26, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-medium);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
    z-index: 2;
}

.card-fav-btn:hover {
    transform: scale(1.1);
    color: var(--primary-red);
    background-color: var(--neutral-light);
}

.card-fav-btn.active {
    color: var(--primary-red);
    fill: var(--primary-red);
}

.card-fav-btn svg {
    width: 16px;
    height: 16px;
}

/* Card content details */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* Fixed height for consistency */
}

.card-meta-flex {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--neutral-medium);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta-item svg {
    width: 14px;
    height: 14px;
}

/* --- Promos Banner Section --- */
.promo-section {
    margin-bottom: 60px;
}

.promo-card {
    background: linear-gradient(135deg, #180303 0%, #050508 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(163, 0, 0, 0.15);
}

.promo-text {
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.promo-text h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.promo-text p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.promo-btn {
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.promo-btn:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.02);
}

.promo-visual {
    width: 300px;
    height: 150px;
    position: relative;
}

.circle-mesh {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), transparent);
    opacity: 0.8;
    right: 20px;
    top: -20px;
    animation: pulseCircle 4s infinite alternate;
}

.circle-mesh::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--card-bg);
    opacity: 0.15;
    bottom: -10px;
    left: -10px;
}

@keyframes pulseCircle {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

/* --- Browse/Search Layout --- */
.breadcrumbs {
    font-size: 13px;
    color: var(--neutral-medium);
    margin-bottom: 24px;
}

.breadcrumbs a:hover {
    color: var(--primary-red);
}

.browse-layout {
    display: flex;
    gap: 32px;
}

.browse-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.filter-header h3 {
    font-size: 18px;
}

.filter-header button {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--neutral-light);
    cursor: pointer;
    font-size: 14px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--neutral-light);
    font-size: 14px;
}

.range-dash {
    color: var(--neutral-medium);
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
}

/* Results section */
.browse-results-area {
    flex: 1;
}

.results-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header-info h2 {
    font-size: 20px;
    font-weight: 600;
}

.results-header-info h2 span {
    color: var(--primary-red);
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 24px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--neutral-medium);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: var(--neutral-medium);
    max-width: 400px;
    margin: 0 auto;
}

/* --- App Footer --- */
.app-footer {
    background: linear-gradient(180deg, #070709 0%, #120202 100%);
    color: #e2e4eb;
    padding-top: 60px;
    border-top: 4px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(circle, rgba(163, 0, 0, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    grid-column: span 2;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.app-footer .logo-white {
    color: white;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-icon {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 0px;
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 24px;
    transition: margin-bottom var(--transition-fast);
}

.footer-links h4::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-red);
    transition: transform var(--transition-fast);
}

.footer-links.active h4::before {
    content: '-';
}

.footer-links.no-toggle h4::before {
    content: none !important;
    display: none !important;
}

.footer-links.no-toggle h4 {
    cursor: default;
    padding-right: 0;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

.footer-links.active ul {
    max-height: 300px;
    opacity: 1;
    margin-top: 20px;
}

.footer-links ul a {
    font-size: 14px;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer-links ul a:hover {
    opacity: 1;
    color: var(--primary-red);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 24px;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
    position: relative;
    z-index: 2;
}

/* --- Modals Overlay and Cards --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(21, 21, 28, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: modalSlideUp var(--transition-smooth);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

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

.modal-header h2 {
    font-size: 22px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-medium);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Location Selector Grid */
.locations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.location-btn {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.location-btn:hover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}

.location-btn.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* --- Listing Detail Modal Layout --- */
.modal-card.detail-card {
    max-width: 1000px;
    height: 85vh;
    position: relative;
}

.circle-close.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
    overflow: hidden;
}

.detail-gallery-section {
    background-color: #050507;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.detail-gallery-main {
    width: 100%;
    height: 100%;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.detail-info-section {
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.price-fav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-red);
}

.favorite-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-medium);
    transition: all var(--transition-fast);
}

.favorite-toggle:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.favorite-toggle.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.detail-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--neutral-medium);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 16px;
    height: 16px;
}

/* Attributes Grid */
.detail-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.attr-item {
    background-color: var(--neutral-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attr-label {
    font-size: 12px;
    color: var(--neutral-medium);
    font-weight: 500;
}

.attr-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.detail-description h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.detail-description p {
    font-size: 14px;
    color: var(--neutral-medium);
    white-space: pre-line;
}

/* Seller Profile Card */
.seller-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--neutral-light);
    margin-top: auto;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-info-text h4 {
    font-size: 16px;
}

.seller-info-text p {
    font-size: 12px;
    color: var(--neutral-medium);
}

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

.seller-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.phone-reveal-btn {
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    background-color: var(--card-bg);
}

.phone-reveal-btn:hover {
    background-color: var(--primary-red-light);
}

.phone-reveal-btn svg {
    width: 16px;
    height: 16px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #20BA56;
}

.whatsapp-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Post An Ad Form Modal --- */
.modal-card.post-ad-card {
    max-width: 750px;
}

.form-steps-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--neutral-light);
}

.step-indicator {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-medium);
    border-bottom: 3px solid transparent;
}

.step-indicator.active {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background-color: var(--card-bg);
}

.post-ad-body {
    padding: 32px;
    overflow-y: auto;
}

.post-step-section {
    display: none;
    animation: fadeIn var(--transition-fast);
}

.post-step-section.active {
    display: block;
}

.post-step-section h3 {
    margin-bottom: 24px;
    font-size: 18px;
}

/* Step 1 category select grid */
.category-select-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cat-select-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: left;
}

.cat-select-btn:hover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    transform: translateY(-2px);
}

.cat-icon {
    font-size: 28px;
}

.cat-label strong {
    display: block;
    font-size: 15px;
    color: var(--neutral-dark);
}

.cat-label p {
    font-size: 12px;
    color: var(--neutral-medium);
}

/* Step 2 Inputs styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--neutral-light);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    background-color: var(--card-bg);
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.form-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.form-nav-btn {
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.primary-red-btn {
    background-color: var(--primary-red);
    color: white;
}

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

.secondary-btn {
    border: 1px solid var(--border-color);
    color: var(--neutral-medium);
}

.secondary-btn:hover {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
}

/* Step 3 Seller profile inputs */
.phone-input-group {
    display: flex;
    align-items: center;
}

.phone-prefix {
    background-color: var(--border-color);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.phone-input-group input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Image selection library picker */
.image-select-desc {
    font-size: 13px;
    color: var(--neutral-medium);
    margin-bottom: 12px;
}

.mock-image-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-img-option {
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: border-color var(--transition-fast);
    background-color: var(--neutral-light);
}

.mock-img-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-img-option:hover {
    border-color: var(--border-color);
}

.mock-img-option.selected {
    border-color: var(--primary-red);
}

/* --- Sign In / Auth Modal --- */
.auth-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.auth-option:hover {
    background-color: var(--neutral-light);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--neutral-medium);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

.auth-submit-btn {
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: var(--radius-pill);
    width: 100%;
    margin-top: 8px;
    transition: background-color var(--transition-fast);
}

.auth-submit-btn:hover {
    background-color: var(--primary-red-hover);
}

/* --- Toast Notifications --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #121217;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all var(--transition-smooth);
    border-bottom: 3px solid var(--primary-red);
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .header-search-bar {
        width: 28%;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 350px 1fr;
    }
    
    .detail-gallery-section {
        height: 350px;
    }
}

@media (max-width: 768px) {
    /* Header layout changes */
    .app-header {
        height: 60px;
    }
    
    .location-selector {
        display: none; /* Hide location selector on mobile header to save space */
    }
    
    .header-search-bar {
        display: none; /* Hide header search bar on home view */
    }
    
    .logo {
        font-size: 22px;
    }
    
    .header-container {
        padding: 0 12px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .action-btn {
        width: 38px;
        height: 38px;
    }
    
    .auth-btn .auth-text {
        display: none;
    }
    
    .auth-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        background-color: var(--card-bg);
    }
    
    .auth-btn .icon {
        margin: 0;
    }
    
    .sell-btn .sell-text {
        display: none;
    }
    
    .sell-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        box-shadow: none;
    }
    
    .profile-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        background-color: var(--card-bg);
    }
    
    .profile-btn .profile-name {
        display: none;
    }

    .profile-btn .avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 0;
    }
    
    /* Hero Section */
    .hero-banner {
        padding: 50px 16px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    /* Search widget collapses into vertical list on mobile */
    .search-widget {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 8px;
    }
    
    .border-left {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .search-field {
        width: 100%;
        padding: 10px 4px;
    }
    
    .search-submit-btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    
    /* Grids collapse */
    .categories-circles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .circle-icon {
        width: 68px;
        height: 68px;
    }
    
    .circle-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
    
    .promo-text {
        max-width: 100%;
        margin-bottom: 24px;
    }
    
    .promo-visual {
        display: none;
    }
    
    /* Browse page layout */
    .browse-layout {
        flex-direction: column;
    }
    
    .browse-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    /* Add ad wizard grid collapses */
    .category-select-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Footer columns */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* --- Premium Theme Toggle Transition --- */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--neutral-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

/* Theme Toggle Icons - Clean display rules */
.theme-toggle-btn .sun-icon {
    display: block !important;
}

.theme-toggle-btn .moon-icon {
    display: none !important;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: none !important;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: block !important;
}

/* --- Mobile Interactive Tweaks --- */
a, button, select, input[type="submit"], .location-selector, .sub-nav-item, .category-circle-card, .location-btn, .action-btn, .sell-btn, .profile-btn {
    -webkit-tap-highlight-color: transparent;
}

button, .sub-nav-item, .category-circle-card, .location-btn, .action-btn, .sell-btn, .profile-btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Micro-animations and active scaling feedback */
.action-btn:active, .sell-btn:active, .location-btn:active, .profile-btn:active {
    transform: scale(0.92);
}

.action-btn svg, .sell-btn svg, .profile-btn svg {
    transition: transform var(--transition-fast);
}

.action-btn:hover svg, .sell-btn:hover svg, .profile-btn:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   BIYAA Theme Extensions: Auth Switcher, User Dashboard & Admin Dashboard
   ========================================================================== */

/* Auth Tabs styling */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--neutral-medium);
    transition: all var(--transition-fast);
}
.auth-tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}
.auth-tab-content {
    display: none;
}
.auth-tab-content.active {
    display: block;
}

/* User & Admin Dashboard components */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.dashboard-stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.dashboard-stat-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-medium);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.dashboard-stat-info p {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-dark);
}

/* Table styling for Admin and User panels */
.dashboard-table-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}
.dashboard-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.dashboard-table-header h2 {
    font-size: 18px;
    font-weight: 700;
}
.dashboard-table-container {
    width: 100%;
    overflow-x: auto;
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.dashboard-table th {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-medium);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}
.dashboard-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}
.dashboard-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}
:root[data-theme="light"] .dashboard-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Badges styling */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}
.status-badge.approved {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}
.status-badge.rejected {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Action button icons/text sizes */
.action-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}
.action-btn-sm.approve {
    background-color: #10B981;
    color: white;
}
.action-btn-sm.approve:hover {
    background-color: #059669;
}
.action-btn-sm.reject {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.action-btn-sm.reject:hover {
    background-color: #EF4444;
    color: white;
}
.action-btn-sm.danger {
    background-color: #EF4444;
    color: white;
}
.action-btn-sm.danger:hover {
    background-color: #DC2626;
}
.action-btn-sm.danger.confirming {
    background-color: #DC2626 !important;
    animation: pulseConfirm 1.2s infinite;
}
@keyframes pulseConfirm {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.action-btn-sm.secondary {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    border-color: var(--border-color);
}
.action-btn-sm.secondary:hover {
    border-color: var(--neutral-medium);
}
.table-actions {
    display: flex;
    gap: 8px;
}

/* Admin Dashboard View layout */
.admin-section {
    padding: 40px 0;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-title-area h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 6px;
}
.admin-title-area p {
    color: var(--neutral-medium);
    font-size: 14px;
}
.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.admin-tab {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    color: var(--neutral-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.admin-tab:hover {
    color: var(--neutral-dark);
}
.admin-tab.active {
    background-color: var(--primary-red);
    color: white;
}
.admin-pane {
    display: none;
}
.admin-pane.active {
    display: block;
}

/* Header User Profile Menu style changes */
.profile-btn {
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: var(--card-bg);
    transition: all var(--transition-fast);
}
.profile-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}
.profile-btn .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #dc2626);
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(163, 0, 0, 0.35);
}

/* --- File Upload Button Premium Styling --- */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
}
.file-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background-color: var(--neutral-light);
    color: var(--neutral-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    font-weight: 500;
}
.file-upload-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: rgba(239, 68, 68, 0.05);
}
.file-upload-btn.selected {
    border-color: #10B981;
    color: #10B981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* --- Multi-Image Upload Grid Styles --- */
.multi-image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}
.image-upload-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.image-upload-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-upload-card .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all var(--transition-fast);
    padding: 0;
}
.image-upload-card .remove-btn:hover {
    background: #EF4444;
    transform: scale(1.1);
}
.image-upload-card .remove-btn svg {
    width: 12px;
    height: 12px;
}
.add-image-card {
    aspect-ratio: 4/3;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--neutral-medium);
    cursor: pointer;
    background: var(--neutral-light);
    transition: all var(--transition-fast);
}
.add-image-card:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: rgba(239, 68, 68, 0.05);
}
.image-upload-status {
    font-size: 14px;
    color: var(--neutral-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.image-upload-status .required-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}
.image-upload-status .valid-tag {
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* --- Gallery Slider Premium Styles --- */
.detail-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    opacity: 0.8;
    padding: 0;
}
.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}
.gallery-nav.prev {
    left: 10px;
}
.gallery-nav.next {
    right: 10px;
}
.gallery-nav svg {
    width: 18px;
    height: 18px;
}
.detail-gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}
.thumb-img {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.thumb-img:hover {
    opacity: 0.8;
}
.thumb-img.active {
    border-color: var(--primary-red);
}

/* --- Global Select Option styling --- */
select option {
    background-color: var(--card-bg) !important;
    color: var(--neutral-dark) !important;
}

@keyframes pulse-border {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(163, 0, 0, 0.4); }
    100% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(163, 0, 0, 0); }
}
