/* ==========================================================================
   1. CORE VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #4f46e5;         /* Premium Indigo */
    --primary-light: #eef2ff;
    --secondary: #10b981;       /* Success Green */
    --navy: #0f172a;            /* Dark Slate Navy */
    
    /* Neutral Palette */
    --white: #ffffff;
    --bg: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    
    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-indigo: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================================================
   2. NAVIGATION (Glassmorphism & Branding)
   ========================================================================== */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bento-logo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.sq { width: 8px; height: 8px; background: var(--primary); border-radius: 2px; }

.brand-text h1 { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.brand-text .tagline { 
    font-size: 0.65rem; text-transform: uppercase; color: var(--primary); 
    font-weight: 700; letter-spacing: 1px; 
}

.nav-links { display: flex; gap: 30px; }
.nav-item {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s;
}
.nav-item.active, .nav-item:hover { color: var(--primary); }
.nav-item.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; 
    height: 3px; background: var(--primary); border-radius: 10px;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }
.search-input { 
    display: flex; align-items: center; background: var(--slate-100); 
    padding: 8px 16px; border-radius: 10px; border: 1px solid var(--slate-200);
}
.search-input input { border: none; background: transparent; outline: none; margin-left: 8px; width: 180px; font-family: inherit; }

.avatar-sm { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); box-shadow: var(--shadow-sm); transition: 0.2s; }
.profile-trigger { position: relative; cursor: pointer; display: flex; align-items: center; }

/* ==========================================================================
   3. PRECISION BREADCRUMB BOX (Floating & Centered)
   ========================================================================== */
.breadcrumb-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: fit-content;
    z-index: 999;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 16px;
}

/* Home-Only Hover Trigger */
.glass-nav:has(#homeTrigger:hover) + .breadcrumb-bar,
.breadcrumb-bar:hover,
.breadcrumb-bar.is-active {
    max-height: 55px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(15px);
    padding: 10px 20px;
}

.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; white-space: nowrap; }
.breadcrumbs a { text-decoration: none; color: var(--slate-600); font-weight: 500; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--slate-200); display: flex; align-items: center; }
.breadcrumbs .current { font-weight: 700; color: var(--navy); }

/* ==========================================================================
   4. HERO HUB & GLOBAL BUTTONS (Side-by-Side)
   ========================================================================== */
.hero-hub { background: radial-gradient(circle at top right, #eef2ff, var(--bg)); padding: 100px 0; }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 600px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin: 20px 0; }
.hero-title span { color: var(--primary); }

.hero-btns { 
    display: flex; flex-direction: row; gap: 16px; margin-top: 32px; justify-content: flex-start;
}

/* Standard Premium Buttons */
.btn {
    padding: 14px 32px; border-radius: 12px; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; text-decoration: none; min-width: 160px; outline: none;
}

.btn-dark { background: var(--navy); color: white; box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-3px); background: #1e293b; box-shadow: var(--shadow-md); }

.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-indigo); }
.btn-primary:hover { transform: translateY(-3px); background: #4338ca; box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; min-width: unset; }

.hero-stats { display: flex; gap: 20px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 16px; border: 1px solid var(--slate-200); text-align: center; min-width: 140px; box-shadow: var(--shadow-sm); }
.stat-card h3 { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card p { font-size: 0.8rem; color: var(--slate-400); font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   5. MAIN CONTENT LAYOUT (Sidebar & Area)
   ========================================================================== */
.main-layout { display: flex; gap: 40px; padding: 40px 0 80px; }
.sidebar { width: 280px; flex-shrink: 0; }
.content-area { flex: 1; }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.header-main h3 { font-size: 1.4rem; font-weight: 800; }
.header-main p { font-size: 0.85rem; color: var(--slate-600); }

.view-all { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 4px; }

/* ==========================================================================
   6. SERVICES SLIDER (Home Page)
   ========================================================================== */
.services-scroll-container {
    display: flex; gap: 20px; overflow-x: auto; padding: 10px 5px 25px 5px; 
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; cursor: grab;
}
.services-scroll-container:active { cursor: grabbing; }
.services-scroll-container::-webkit-scrollbar { display: none; }

.service-mini-card {
    flex: 0 0 280px; background: var(--white); border: 1px solid var(--slate-200); 
    border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s;
}
.service-mini-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-md); }

/* Slider Track */
.custom-scroll-track {
    width: 200px; height: 4px; background: var(--slate-200); 
    margin: 10px auto 30px auto; border-radius: 10px; position: relative; overflow: hidden;
}
.custom-scroll-thumb {
    position: absolute; top: 0; left: 0; height: 100%; width: 60px; 
    background: var(--primary); border-radius: 10px; transition: transform 0.1s ease-out;
}

.status-badge { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; display: inline-block; }
.online { background: #ecfdf5; color: var(--secondary); border: 1px solid rgba(16, 185, 129, 0.2); }
.offline { background: var(--slate-100); color: var(--slate-400); }

.contact-btn-whatsapp { 
    width: 100%; background: #25d366; color: white; border: none; padding: 10px; 
    border-radius: 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; 
}

/* ==========================================================================
   7. PROFILE DASHBOARD & REPUTATION (REVAMPED)
   ========================================================================== */
.profile-card-main { 
    background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--slate-200); 
    overflow: hidden; text-align: center; padding-bottom: 25px; box-shadow: var(--shadow-sm);
}
.profile-banner { height: 80px; background: linear-gradient(135deg, var(--primary), #818cf8); }

.avatar-large-wrapper { margin-top: -45px; margin-bottom: 15px; position: relative; display: inline-block; }
.avatar-lg { width: 110px; height: 110px; border-radius: 50%; border: 5px solid var(--white); box-shadow: var(--shadow-md); }

.trust-badge-large { 
    display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; 
    color: var(--secondary); padding: 8px 18px; border-radius: 100px; font-weight: 800; font-size: 0.85rem; 
}

.badge-shelf { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
.t-badge { 
    width: 42px; height: 42px; background: var(--slate-100); border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; color: var(--slate-400); transition: 0.3s;
}
.t-badge:hover { color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }

.profile-tabs { display: flex; gap: 15px; border-bottom: 1px solid var(--slate-200); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.tab-btn { padding: 12px 20px; background: none; border: none; font-weight: 700; color: var(--slate-600); cursor: pointer; position: relative; white-space: nowrap; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--primary); }

/* Vouch Styling */
.vouch-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.vouch-card { background: var(--white); padding: 24px; border-radius: 16px; border: 1px solid var(--slate-200); border-left: 5px solid var(--primary); }
.vouch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* Management Buttons in Profile Cards */
.card-footer-btns { display: flex; gap: 10px; margin-top: 15px; }
.btn-icon { flex: 1; padding: 10px; background: var(--slate-100); border: none; border-radius: 10px; cursor: pointer; transition: 0.2s; color: var(--navy); }
.btn-icon:hover { background: var(--primary-light); color: var(--primary); }
.btn-icon.delete:hover { background: #fee2e2; color: #ef4444; }

/* ==========================================================================
   8. MARKETPLACE & CATEGORIES
   ========================================================================== */
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item { 
    width: 100%; text-align: left; padding: 12px 16px; background: var(--white); 
    border: 1px solid var(--slate-200); border-radius: 10px; font-weight: 600; color: var(--slate-600); transition: 0.2s; 
}
.cat-item.active { background: var(--primary); color: white; border-color: var(--primary); }

.product-image { width: 100%; height: 180px; background: var(--slate-100); position: relative; overflow: hidden; }
.product-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }

/* ==========================================================================
   9. FORMS & WORKFLOWS (Verification)
   ========================================================================== */
.workflow-card { background: var(--white); max-width: 650px; margin: 0 auto; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow-md); }
.flow-state.hidden { display: none; }

.input-group { margin-bottom: 18px; text-align: left; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--slate-600); margin-bottom: 8px; }
input[type="text"], input[type="number"], select, textarea {
    width: 100%; padding: 14px; border: 1px solid var(--slate-200); border-radius: 10px; font-family: inherit; font-size: 0.95rem; outline: none; transition: 0.2s;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

.upload-area { border: 2px dashed var(--slate-200); border-radius: var(--radius-md); padding: 40px 20px; text-align: center; margin: 20px 0; cursor: pointer; transition: 0.2s; }
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }

/* ==========================================================================
   10. FOOTER & SKELETONS
   ========================================================================== */
.monolith-footer { background: var(--navy); color: var(--white); padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { color: var(--slate-400); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--white); text-decoration: none; opacity: 0.7; margin-bottom: 12px; font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--primary-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-top: 40px; text-align: center; font-size: 0.8rem; color: var(--slate-400); }

.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: loading 1.5s infinite; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .hero-grid { flex-direction: column; text-align: center; padding: 60px 0; }
    .hero-btns { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .hero-stats { margin-top: 30px; justify-content: center; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   DORM BULLETIN REFINEMENT
   ========================================================================== */
.section-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.header-icon { width: 18px; color: var(--slate-400); }

.news-item {
    background: var(--white);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid var(--slate-200);
    transition: transform 0.2s ease;
}
.news-item:hover { transform: scale(1.02); }

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

.news-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.news-item p { font-size: 0.8rem; color: var(--slate-600); line-height: 1.4; }
.news-time { font-size: 0.7rem; font-weight: 600; color: var(--slate-400); }

/* Notice Block Colors */
.blok-e-notice { border-left: 4px solid #3b82f6; } /* Blue for E */
.blok-f-notice { border-left: 4px solid #ef4444; } /* Red for F */

.news-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.news-tag.blok-e { background: #eff6ff; color: #1e40af; }
.news-tag.blok-f { background: #fef2f2; color: #b91c1c; }

/* Safety Card Glow */
.premium-safety {
    background: var(--navy);
    color: white;
    padding: 24px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.shield-glow {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 12px;
}
.safety-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

/* ==========================================================================
   MARKETPLACE CARD REFINEMENT
   ========================================================================== */
.product-img-container {
    width: 100%;
    height: 160px;
    background: var(--slate-100);
    position: relative;
}
.img-placeholder { width: 100%; height: 100%; }

.product-info-box { padding: 18px; }
.p-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.p-cat { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.p-price { font-size: 1.1rem; font-weight: 800; color: var(--navy); }

.bento-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-desc { font-size: 0.8rem; color: var(--slate-600); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
}
.p-seller { font-size: 0.75rem; color: var(--slate-400); display: flex; align-items: center; gap: 4px; }

.btn-quick-view {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--slate-100);
    border: none;
    color: var(--navy);
    cursor: pointer;
    transition: 0.2s;
}
.btn-quick-view:hover { background: var(--primary); color: white; }

/* Featured Card Special Height */
.featured-product { grid-row: span 1; } /* Keeping it tidy */
/* ==========================================================================
   STUNNING BLURRED HEADER EFFECT
   ========================================================================== */
.hero-hub {
    position: relative;
    overflow: hidden; /* Clips the blur edges */
    background: var(--bg); /* Fallback */
    padding: 120px 0; /* Extra breathing room */
}

.hero-bg-image {
    position: absolute;
    top: -10%; /* Slight offset to ensure blur covers edges */
    left: -5%;
    width: 110%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(0.01px) brightness(0.90); /* THE BLUR EFFECT */
    z-index: 0;
    transform: scale(1.05); /* Prevents white edges from blur */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient goes from clear to slightly white to blend into the news section below */
    background: linear-gradient(
        to bottom, 
        rgba(248, 250, 252, 0.4) 0%, 
        rgba(248, 250, 252, 0.8) 70%, 
        var(--bg) 100%
    );
    z-index: 1;
}

/* Enhancing the text on top of the image */
.hero-title {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    color: var(--navy);
    font-weight: 600;
}
/* ==========================================================================
   MARKETPLACE SPECIFIC ENHANCEMENTS
   ========================================================================== */

.market-hero {
    background: var(--navy);
    padding: 60px 0 40px;
    color: white;
    margin-bottom: 20px;
}

.market-hero h2 { font-size: 2.2rem; font-weight: 800; }
.market-hero p { opacity: 0.6; font-size: 1rem; }

/* Filter Sidebar Cards */
.filter-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.cat-list-market {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-pill {
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--slate-50);
    border: 1px solid transparent;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Modern Checkboxes */
.check-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.check-item-modern input { display: none; }

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--slate-200);
    border-radius: 6px;
    position: relative;
    transition: 0.2s;
}

.check-item-modern input:checked + .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.check-item-modern input:checked + .custom-check::after {
    content: '';
    position: absolute;
    top: 2px; left: 6px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Catalog Top Controls */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}

.stat-bubble {
    background: var(--navy);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.sort-select-premium {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--navy);
    outline: none;
    cursor: pointer;
}

/* Featured Card in Market */
.featured-product {
    grid-column: span 2;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
}

.sidebar-help {
    margin-top: 30px;
    padding: 15px;
    background: #fffbeb;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #92400e;
    border: 1px solid #fde68a;
}
/* ==========================================================================
   SERVICES HUB - PREMIUM ENHANCEMENTS
   ========================================================================== */

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-stats-mini {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Sidebar Specifics */
.search-input-inner {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-inner i {
    position: absolute;
    left: 12px;
    width: 16px;
    color: var(--slate-400);
}
.search-input-inner input {
    padding-left: 38px !important;
}

/* Service Row Cards */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-row-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.service-row-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.s-card-main {
    display: flex;
    gap: 24px;
    align-items: center;
}

.s-icon-box {
    width: 64px;
    height: 64px;
    background: var(--slate-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.demanded-icon { background: #fffbeb; color: #f59e0b; }

.s-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.s-tag {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--slate-100);
    color: var(--slate-600);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.service-row-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.s-desc {
    color: var(--slate-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
    max-width: 500px;
}

.s-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-400);
}

.s-meta i { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }

.price-tag { color: var(--secondary); font-weight: 800; }

/* Special Highlights */
.status-online { border-left: 6px solid var(--secondary); }
.status-later { border-left: 6px solid #3b82f6; }
.demanded-highlight { 
    border: 2px dashed #fcd34d; 
    background: #fffcf0;
    border-left: 6px solid #f97316;
}

.s-card-actions {
    flex-shrink: 0;
}

/* Responsiveness */
@media (max-width: 900px) {
    .service-row-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .s-card-actions { width: 100%; }
    .s-card-actions button { width: 100%; }
}
/* ==========================================================================
   PROFILE COMPACT MODE
   ========================================================================== */

/* Shrink the overall hero height */
.hero-hub.profile-mode {
    padding: 50px 0; /* Reduced from 100px */
    min-height: auto;
}

/* Reduce the giant font size */
.hero-hub.profile-mode .hero-title {
    font-size: 2.2rem; /* Reduced from 3.5rem */
    margin: 10px 0;
}

.hero-hub.profile-mode .hero-subtitle {
    font-size: 0.9rem;
    max-width: 450px;
}

/* Shrink the Stat Cards */
.hero-hub.profile-mode .stat-card {
    padding: 15px;
    min-width: 120px;
}

.hero-hub.profile-mode .stat-card h3 {
    font-size: 1.4rem;
}

/* Tighten the button spacing */
.hero-hub.profile-mode .hero-btns {
    margin-top: 20px;
    gap: 12px;
}

.hero-hub.profile-mode .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-width: 140px;
}

/* Sidebar fix: prevent the user card from being too wide */
.sidebar {
    width: 260px; /* Locked width */
}

.profile-card-main {
    padding-bottom: 20px;
}

.avatar-lg {
    width: 90px; /* Reduced from 110px */
    height: 90px;
}
/* ==========================================================================
   URGENT MOBILE REPAIR (Fixes the "Cursed" View)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Prevent Horizontal Scrolling (The White Space Fix) */
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* 2. Fix Navigation Overlap */
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    .nav-links {
        display: flex;
        overflow-x: auto; /* Allows links to slide left/right on small screens */
        width: 100%;
        padding: 5px 0;
        gap: 15px;
        justify-content: flex-start;
        white-space: nowrap;
        scrollbar-width: none; /* Hide scrollbar */
    }
    
    .search-input {
        display: none; /* Hide search on mobile header to save space, or make it 100% */
    }

    .brand-text h1 {
        font-size: 1.1rem;
    }

    /* 3. Fix Hero Section Scaling */
    .hero-hub {
        padding: 40px 16px;
        width: 100% !important;
        left: 0 !important;
        text-align: center;
    }

    .hero-bg-image {
        width: 100% !important;
        left: 0 !important;
        transform: scale(1.2); /* Zoom in a bit so it covers the phone screen */
    }

    .hero-grid {
        flex-direction: column;
        display: block; /* Force vertical stacking */
    }

    .hero-title {
        font-size: 1.8rem !important; /* Smaller text so it doesn't break lines weirdly */
        line-height: 1.2;
    }

    /* 4. Fix Buttons Stacking */
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100% !important;
        min-width: unset !important;
    }

    /* 5. Fix Stats Cards (The 3 active / 45 items) */
    .hero-stats {
        display: flex;
        flex-direction: row; /* Keep them side-by-side but smaller */
        gap: 10px;
        margin-top: 25px;
        justify-content: center;
    }

    .stat-card {
        flex: 1;
        min-width: 0;
        padding: 12px;
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }

    /* 6. Fix Main Layout & Sidebar */
    .main-layout {
        flex-direction: column;
        padding: 20px 16px;
    }

    .sidebar {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* 7. Fix Services & Marketplace Grid */
    .service-mini-card {
        flex: 0 0 80%; /* Show part of the next card so people know they can scroll */
    }

    .bento-grid {
        grid-template-columns: 1fr !important; /* Single column for products */
    }

    .featured-product {
        grid-column: span 1 !important;
    }
}
/* ==========================================================================
   MOBILE NAVIGATION FIX (App-Style)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Force the page to fit the screen */
    html, body {
        overflow-x: hidden;
        width: 100vw;
    }

    /* 2. Make Header height flexible */
    .glass-nav {
        height: auto;
        padding: 10px 0;
    }

    /* 3. Stack Navigation into two rows */
    .nav-wrapper {
        flex-direction: column; 
        gap: 12px;
    }

    /* 4. Row 1: Brand and Profile side-by-side */
    .brand {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 5. Row 2: LINKS - THE KEY FIX 
       This makes links swipeable left-to-right so they don't break the screen width 
    */
    .nav-links {
        display: flex;
        flex-direction: row !important; /* Force horizontal */
        width: 100vw;
        overflow-x: auto; /* Enable horizontal swipe */
        padding: 5px 20px;
        gap: 20px;
        margin-left: -24px; /* Align with screen edge */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for clean look */
    }

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

    .nav-item {
        white-space: nowrap; /* Prevent "Marketplace" from splitting into 2 lines */
        font-size: 0.9rem;
    }

    /* 6. Hide Search Bar on Mobile Header 
       It's too big. Users usually look for it in the main content area 
    */
    .nav-actions .search-input {
        display: none; 
    }

    /* 7. Align Profile Icon to the right of the logo */
    .nav-actions {
        position: absolute;
        top: 15px;
        right: 20px;
    }

    /* 8. Fix the Breadcrumb Box for Mobile */
    .breadcrumb-bar {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin: 10px 0;
        border-radius: 0; /* Full width box on mobile */
    }
    
    header:has(#homeTrigger:hover) + .breadcrumb-bar,
    .breadcrumb-bar.is-active {
        transform: none;
        max-height: 100px;
    }
}
@media (max-width: 768px) {
    .hero-hub {
        padding: 40px 16px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem !important; /* Smaller, readable title */
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin: 0 auto;
    }

    .hero-btns {
        flex-direction: column; /* Stack buttons vertically for easy thumb clicking */
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%; /* Full width buttons */
        min-width: unset;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }
}
/* ==========================================================================
   NEWS INTERFACE STYLES
   ========================================================================== */

.news-article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Large Featured Card */
.news-card-large {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: 0.3s;
}

.news-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-image {
    width: 100%;
    position: relative;
    background: var(--slate-100);
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.article-badge.trending { background: #f59e0b; color: white; }

.article-body {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--slate-400);
    font-weight: 600;
    margin-bottom: 15px;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-body p {
    color: var(--slate-600);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* News Grid for smaller articles */
.news-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card-small {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.news-card-small .article-body {
    padding: 20px;
}

.news-card-small h4 {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Mobile Fix for News */
@media (max-width: 768px) {
    .news-grid-two {
        grid-template-columns: 1fr;
    }
    .article-body h2 {
        font-size: 1.4rem;
    }
}
/* ==========================================================================
   AUTH PAGE SPECIFICS
   ========================================================================== */

.auth-bg {
    background: radial-gradient(circle at top right, #eef2ff, var(--bg));
    min-height: 100vh;
}

.auth-card {
    background: var(--white);
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.signup-card {
    max-width: 550px; /* Wider for the grid */
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--slate-400);
    margin-bottom: 30px;
}

/* Input Wrappers for Icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 14px;
    width: 18px;
    color: var(--slate-400);
}

.input-wrapper input {
    padding-left: 44px !important;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toggle-pass:hover { color: var(--primary); }

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-100);
    font-size: 0.9rem;
    color: var(--slate-600);
}

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

/* Responsive Auth */
@media (max-width: 480px) {
    .auth-card {
        margin: 20px auto;
        padding: 30px 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
}