/* ============================================
   Sahara Roofing Techno Solutions
   Custom Theme - Red + White Corporate Branding
   ============================================ */

:root {
    --sahara-red: #c8102e;
    --sahara-dark-red: #8b0000;
    --sahara-light-red: #e63946;
    --sahara-white: #ffffff;
    --sahara-off-white: #f8f9fa;
    --sahara-gray: #6c757d;
    --sahara-dark: #212529;
    --sahara-gold: #d4a017;
    --sahara-gradient: linear-gradient(135deg, #c8102e 0%, #8b0000 100%);
    --sahara-gradient-soft: linear-gradient(135deg, #e63946 0%, #c8102e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--sahara-dark);
    line-height: 1.7;
    background: #f5f5f8;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--sahara-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--sahara-dark-red); }

/* ============ LOGO + BRAND ============ */
.sahara-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: var(--sahara-red);
    text-decoration: none;
}
.sahara-logo-icon {
    width: 50px; height: 50px;
    background: transparent;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.sahara-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sahara-logo:hover .sahara-logo-icon {
    transform: rotate(15deg) scale(1.05);
    box-shadow: var(--shadow-md);
}
.sahara-logo-icon::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
}
.sahara-logo-text {
    display: flex; flex-direction: column;
    line-height: 1.1;
}
.sahara-logo-text strong { font-size: 1.1rem; color: var(--sahara-red); }
.sahara-logo-text small { font-size: 0.7rem; color: var(--sahara-gray); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================
   PAGE LOADER — Branded, multi-ring, animated
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #ffffff 0%, #f5f5f8 70%, #ececf2 100%);
    overflow: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(200,16,46,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139,0,0,0.06) 0%, transparent 40%);
    animation: loader-bg-pan 8s ease-in-out infinite;
}
@keyframes loader-bg-pan {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.1) rotate(5deg); }
}
.page-loader.page-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader-inner {
    position: relative;
    text-align: center;
    padding: 1rem;
    z-index: 1;
}
.page-loader-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-loader-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: white;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(200,16,46,0.25);
    position: relative;
    z-index: 3;
    animation: logo-pulse 1.6s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
/* Multi-ring spinner around the logo */
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.loader-ring.r1 {
    border-top-color: var(--sahara-red);
    border-right-color: var(--sahara-light-red);
    animation: spin 1s linear infinite;
}
.loader-ring.r2 {
    inset: 10px;
    border-bottom-color: var(--sahara-dark-red);
    border-left-color: var(--sahara-red);
    animation: spin 1.4s linear infinite reverse;
    opacity: 0.6;
}
.loader-ring.r3 {
    inset: 20px;
    border-top-color: var(--sahara-gold);
    animation: spin 2s linear infinite;
    opacity: 0.4;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--sahara-dark);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}
.loader-brand span {
    color: var(--sahara-red);
}
.loader-tagline {
    font-size: 0.7rem;
    color: var(--sahara-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
}
.loader-progress {
    width: 180px;
    height: 3px;
    background: rgba(200,16,46,0.15);
    border-radius: 4px;
    margin: 18px auto 0;
    overflow: hidden;
    position: relative;
}
.loader-progress-bar {
    position: absolute;
    top: 0; left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--sahara-red), transparent);
    border-radius: 4px;
    animation: loader-progress-slide 1.2s ease-in-out infinite;
}
@keyframes loader-progress-slide {
    0%   { left: -40%; }
    100% { left: 100%; }
}
.loader-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
}
.loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sahara-red);
    opacity: 0.4;
    animation: dot-bounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-6px); opacity: 1; }
}

/* ============ TOP BAR ============ */
.top-bar {
    background: var(--sahara-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: white; }
.top-bar i { color: var(--sahara-red); margin-right: 6px; }

/* ============ NAVBAR ============ */
.navbar-sahara {
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 14px 0;
    transition: var(--transition);
}
.navbar-sahara.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}
.navbar-sahara .nav-link {
    font-weight: 500;
    color: var(--sahara-dark);
    padding: 0.6rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.navbar-sahara .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--sahara-red);
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar-sahara .nav-link:hover::after,
.navbar-sahara .nav-link.active::after { width: 70%; }
.navbar-sahara .nav-link:hover { color: var(--sahara-red); }
.navbar-sahara .nav-link.active { color: var(--sahara-red); }

.btn-sahara-primary {
    background: var(--sahara-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}
.btn-sahara-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
    color: white;
}
.btn-sahara-outline {
    background: transparent;
    color: var(--sahara-red);
    border: 2px solid var(--sahara-red);
    padding: 8px 22px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-sahara-outline:hover {
    background: var(--sahara-red);
    color: white;
    transform: translateY(-2px);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(139,0,0,0.72) 100%),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920') center/cover;
    background-attachment: fixed;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, white, transparent);
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero .highlight {
    color: var(--sahara-light-red);
    display: inline-block;
    position: relative;
}
.hero .lead { font-size: 1.2rem; opacity: 0.95; max-width: 600px; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}
.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sahara-light-red);
    line-height: 1;
}
.hero-stat span { font-size: 0.9rem; opacity: 0.85; }

/* Floating gear animation */
.floating-gear {
    position: absolute;
    color: rgba(255,255,255,0.08);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ============ SECTION TITLE ============ */
.section {
    padding: 90px 0;
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title small {
    color: var(--sahara-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}
.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0.5rem 0;
    color: var(--sahara-dark);
}
.section-title h2 span { color: var(--sahara-red); }
.section-title p { color: var(--sahara-gray); max-width: 700px; margin: 0 auto; }
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--sahara-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ============ QUICK SERVICE TILES ============ */
.service-tile {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.service-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--sahara-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.service-tile:hover::before { transform: scaleX(1); }
.service-tile .icon {
    width: 80px; height: 80px;
    background: var(--sahara-off-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--sahara-red);
    font-size: 2rem;
    transition: var(--transition);
}
.service-tile:hover .icon {
    background: var(--sahara-gradient);
    color: white;
    transform: rotate(360deg);
}
.service-tile h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-tile p { color: var(--sahara-gray); font-size: 0.9rem; margin: 0; }

/* ============ ABOUT SECTION ============ */
.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-experience {
    position: absolute;
    bottom: 30px; left: -30px;
    background: var(--sahara-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.about-experience strong { display: block; font-size: 2.5rem; line-height: 1; }
.about-experience span { font-size: 0.85rem; }

.about-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.about-feature i {
    width: 40px; height: 40px;
    background: var(--sahara-off-white);
    color: var(--sahara-red);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.about-feature h5 { font-size: 1rem; margin: 0 0 4px; }
.about-feature p { color: var(--sahara-gray); font-size: 0.9rem; margin: 0; }

/* ============ SERVICES GRID ============ */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .image {
    height: 200px;
    background: var(--sahara-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.service-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.service-card .image::after {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 200px;
}
.service-card .body { padding: 1.5rem; }
.service-card h4 { color: var(--sahara-dark); margin-bottom: 0.75rem; }
.service-card p { color: var(--sahara-gray); font-size: 0.9rem; }
.service-card .read-more {
    color: var(--sahara-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ PRODUCT GRID ============ */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .image {
    height: 220px;
    overflow: hidden;
    background: var(--sahara-off-white);
    position: relative;
}
.product-card .image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .image img { transform: scale(1.08); }
.product-card .image .badge-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--sahara-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-card .body { padding: 1.25rem; }
.product-card h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-card p { color: var(--sahara-gray); font-size: 0.85rem; margin: 0; }

/* ============ CLIENTS ============ */
.client-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sahara-red); }
.client-card .logo-wrap {
    height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.client-card .logo-wrap i {
    font-size: 3rem;
    color: var(--sahara-red);
    opacity: 0.85;
}
.client-card h5 { margin-bottom: 0.5rem; }
.client-card p { color: var(--sahara-gray); font-size: 0.85rem; margin: 0; }

/* ============ STATS / COUNTERS ============ */
.stats-band {
    background: var(--sahara-gradient);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="1.5" fill="white" opacity="0.1"/><circle cx="30" cy="70" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 100px;
}
.stat-box { text-align: center; position: relative; z-index: 1; }
.stat-box strong {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
}
.stat-box span { display: block; opacity: 0.9; margin-top: 0.5rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    position: relative;
}
.testimonial-card .quote {
    position: absolute;
    top: 20px; right: 20px;
    color: var(--sahara-red);
    opacity: 0.15;
    font-size: 3rem;
    line-height: 1;
}
.testimonial-card .stars { color: var(--sahara-gold); margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--sahara-gray); font-style: italic; margin-bottom: 1rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .author-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--sahara-gradient);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.testimonial-card .author strong { display: block; color: var(--sahara-dark); }
.testimonial-card .author small { color: var(--sahara-gray); }

/* ============ FOOTER ============ */
footer {
    background: #16181c;
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    position: relative;
}
footer h5 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 3px;
    background: var(--sahara-red);
    border-radius: 2px;
}
footer a { color: rgba(255,255,255,0.7); transition: var(--transition); }
footer a:hover { color: var(--sahara-red); padding-left: 4px; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer .social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}
footer .social a:hover { background: var(--sahara-red); padding-left: 0; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--sahara-red); }

/* ============ CONTACT ============ */
.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex; gap: 1rem; align-items: flex-start;
    height: 100%;
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-info-card .icon {
    width: 50px; height: 50px;
    background: var(--sahara-off-white);
    color: var(--sahara-red);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-info-card h5 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-info-card p, .contact-info-card a { color: var(--sahara-gray); font-size: 0.9rem; margin: 0; }

.form-control, .form-select {
    border: 1.5px solid #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--sahara-red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.12);
}
.form-label { font-weight: 500; margin-bottom: 0.4rem; }

/* ============ POLICY PAGES ============ */
.policy-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.policy-content h2 { color: var(--sahara-red); margin-top: 2rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p, .policy-content li { color: #444; line-height: 1.9; }

/* ============ ADMIN PANEL ============ */
body.admin-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 100%);
}
.admin-sidebar {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
    min-height: 100vh;
    width: 270px;
    position: fixed;
    top: 0; left: 0;
    padding: 1.4rem 0 1.2rem;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 18px 0 40px rgba(17,24,39,0.16);
}
.admin-sidebar .brand {
    padding: 0 1.4rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 1.2rem;
}
.admin-sidebar .brand .sahara-logo {
    display: flex; align-items: center; gap: 0.85rem;
    text-decoration: none;
}
.admin-sidebar .brand .sahara-logo-icon {
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.8rem 1.4rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    display: flex; align-items: center; gap: 0.75rem;
    margin: 0.15rem 0.75rem;
    border-radius: 10px;
}
.admin-sidebar .nav-link i { font-size: 1.05rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: white;
    background: linear-gradient(90deg, rgba(200,16,46,0.22), rgba(200,16,46,0.08));
    border-left-color: var(--sahara-red);
    transform: translateX(2px);
}
.admin-content {
    margin-left: 270px;
    padding: 1.4rem 1.6rem 2rem;
    min-height: 100vh;
    background: transparent;
}
.admin-header {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid rgba(200,16,46,0.08);
}
.admin-header-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(200,16,46,0.08);
    color: var(--sahara-red);
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}
.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff6f7 100%);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: auto -30px -30px auto;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(200,16,46,0.18), transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(200,16,46,0.08);
    color: var(--sahara-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end;
}
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    display: flex; gap: 1rem; align-items: center;
    border-left: 4px solid var(--sahara-red);
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.stat-card .icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #fff1f3 0%, #ffe7eb 100%);
    color: var(--sahara-red);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}
.stat-card strong { display: block; font-size: 1.55rem; line-height: 1; color: var(--sahara-dark); }
.stat-card small { color: var(--sahara-gray); }

.table thead {
    background: linear-gradient(90deg, #fdf2f4 0%, #f9fafb 100%);
    color: var(--sahara-dark);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.table thead th { border: none; padding: 0.85rem 1rem; }
.table tbody td { vertical-align: middle; padding: 0.85rem 1rem; }
.table-hover tbody tr:hover {
    background: rgba(200,16,46,0.04);
}

.badge-status-active { background: #10b981; }
.badge-status-inactive { background: #6b7280; }
.badge-status-pending { background: #f59e0b; }
.badge-status-approved { background: #10b981; }
.badge-status-rejected { background: #ef4444; }

@media (max-width: 992px) {
    .admin-sidebar {
        left: -270px;
    }
    .admin-sidebar.open {
        left: 0;
    }
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
    .hero-actions {
        justify-content: flex-start;
    }
}

/* Login page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8e8eb 0%, #fff 45%, #ffe8e8 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.login-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 2.4rem 2rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(200,16,46,0.08);
    overflow: hidden;
}
.login-card-accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--sahara-red), #ff7b7b);
}
.login-card h2 { color: var(--sahara-dark); font-weight: 700; }
.login-card .subtitle { color: var(--sahara-gray); margin-bottom: 1.2rem; }
.login-card .input-group-text {
    background: #fff5f6;
    color: var(--sahara-red);
    border-color: #f2d5db;
}
.login-card .form-control {
    border-color: #f2d5db;
    box-shadow: none;
}
.login-card .form-control:focus {
    border-color: var(--sahara-red);
    box-shadow: 0 0 0 0.2rem rgba(200,16,46,0.15);
}
.login-card .btn-sahara-primary {
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

/* ============ CHATBOT ============ */
.chatbot-toggle {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: var(--sahara-gradient);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-window {
    position: fixed;
    bottom: 100px; right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.chatbot-window.open { display: flex; }
.chatbot-header {
    background: var(--sahara-gradient);
    color: white;
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.chatbot-header .avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.chatbot-header strong { display: block; }
.chatbot-header small { font-size: 0.75rem; opacity: 0.85; }
.chatbot-header .online-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}
.chat-message {
    display: flex;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }
.chat-message .bubble {
    max-width: 75%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-message.bot .bubble {
    background: white;
    color: var(--sahara-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.chat-message.user .bubble {
    background: var(--sahara-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}
.chatbot-suggestions {
    padding: 0 1rem 0.5rem;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.chatbot-suggestions button {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--sahara-dark);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}
.chatbot-suggestions button:hover {
    background: var(--sahara-red);
    color: white;
    border-color: var(--sahara-red);
}
.chatbot-input {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex; gap: 0.5rem;
}
.chatbot-input input {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
    transition: var(--transition);
}
.chatbot-input input:focus { border-color: var(--sahara-red); }
.chatbot-input button {
    background: var(--sahara-gradient);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.chatbot-input button:hover { transform: scale(1.05); }
.chatbot-typing { display: flex; gap: 4px; padding: 8px 12px; }
.chatbot-typing span {
    width: 8px; height: 8px;
    background: var(--sahara-gray);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ============ UTILITIES ============ */
img, svg, video {
    max-width: 100%;
    height: auto;
}

button, .btn, input, textarea, select {
    font-family: inherit;
}

.navbar-sahara .navbar-toggler {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(200, 16, 46, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.navbar-sahara .navbar-toggler-icon {
    width: 26px;
    height: 2px;
    background: var(--sahara-dark);
    position: relative;
}

.navbar-sahara .navbar-toggler-icon::before,
.navbar-sahara .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: var(--sahara-dark);
}

.navbar-sahara .navbar-toggler-icon::before { top: -8px; }
.navbar-sahara .navbar-toggler-icon::after { bottom: -8px; }

.hero {
    padding: 4rem 0;
    min-height: calc(100vh - 100px);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 30%),
                radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.08), transparent 18%);
    pointer-events: none;
}

.hero .lead { max-width: 640px; }

.section { padding: 90px 0; }
.section.bg-light { background: #fbfbfb; }

.admin-card, .contact-info-card, .service-card, .product-card, .testimonial-card {
    border-radius: 22px;
}

.admin-card {
    transition: var(--transition);
}

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

.page-banner {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.96), rgba(139, 0, 0, 0.92)),
                url('https://images.unsplash.com/photo-1523381211470-f1d326d8f8f2?w=1600') center/cover no-repeat;
    background-blend-mode: overlay;
    padding: 90px 0 60px;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-banner > .container { position: relative; z-index: 1; }

.page-banner h1, .page-banner .breadcrumb-item, .page-banner .breadcrumb-item a {
    color: white !important;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.7); }

.text-sahara { color: var(--sahara-red) !important; }
.bg-sahara { background: var(--sahara-red) !important; }
.bg-sahara-gradient { background: var(--sahara-gradient) !important; }
.border-sahara { border-color: var(--sahara-red) !important; }
.btn-sahara { background: var(--sahara-red); color: white; }
.btn-sahara:hover { background: var(--sahara-dark-red); color: white; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
    .hero { min-height: 75vh; }
    .hero-stats { justify-content: flex-start; }
    .hero-stat { flex: 1 1 45%; }
    .hero-stat strong { font-size: 2rem; }
    .hero .lead { font-size: 1rem; }
}

@media (max-width: 991px) {
    .navbar-sahara { padding: 10px 0; }
    .navbar-sahara .nav-link { padding: 0.5rem 0.75rem !important; }
    .hero { min-height: 70vh; }
    .hero .hero-stats { gap: 1rem; }
    .about-experience { left: 0; position: static; margin: 1.5rem auto 0; }
    .about-img-wrapper { min-height: 420px; }
    .service-card .image { height: 180px; }
    .product-card .image { height: 180px; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-title { margin-bottom: 2rem; }
    .hero { min-height: 60vh; padding: 3rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .section-title h2 { font-size: 2rem; }
    .service-tile, .service-card, .product-card, .client-card, .admin-card, .testimonial-card { padding: 1.4rem; }
    .service-card .image, .product-card .image { height: 160px; }
    .about-img-wrapper { min-height: 340px; }
    .contact-info-card { flex-direction: column; align-items: flex-start; }
    .contact-info-card .icon { width: 48px; height: 48px; min-width: 48px; }
    .chatbot-window { width: calc(100vw - 24px); right: 12px; bottom: 80px; }
    .chatbot-toggle { right: 12px; bottom: 12px; }
}

@media (max-width: 576px) {
    .top-bar { display: none; }
    .navbar-sahara .nav-link { text-align: center; }
    .navbar-sahara .navbar-collapse { background: white; padding: 1rem; border-radius: 20px; margin-top: 0.75rem; }
    .navbar-sahara .navbar-collapse.show { box-shadow: var(--shadow-lg); }
    .hero { min-height: 55vh; }
    .hero h1 { font-size: 1.9rem; }
    .hero .lead { font-size: 0.95rem; }
    .hero .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; }
    .section { padding: 40px 0; }
    .page-banner { padding: 70px 0 50px; }
    .page-banner .breadcrumb { flex-direction: column; gap: 0.5rem; }
    .contact-info-card { gap: 0.75rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
