/* ============================================================
   PetroMine Global — Main Stylesheet
   style.css
   ============================================================ */

/* Slow spin animation */
.spin-slow {
    display: inline-block;
    animation: spinSlow 3s linear infinite;
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Lazy load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* ──────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (THEME VARIABLES)
   ────────────────────────────────────────────────────────── */
:root {
    /* Brand palette */
    --color-navy:        #0A192F;
    --color-navy-light:  #112240;
    --color-navy-mid:    #1B3358;
    --color-gold:        #FFB800;
    --color-gold-light:  #FFCA3A;
    --color-gold-dark:   #D99B00;

    /* Neutral / UI */
    --color-bg:          #FFFFFF;
    --color-bg-alt:      #F5F7FA;
    --color-bg-dark:     #0D1B2A;
    --color-text:        #1A1A2E;
    --color-text-muted:  #6C7589;
    --color-border:      #E5E9F0;
    --color-white:       #FFFFFF;

    /* Status colours */
    --color-pending:     #FFC107;
    --color-active:      #0D6EFD;
    --color-completed:   #198754;
    --color-rejected:    #DC3545;
    --color-info:        #0DCAF0;

    /* Typography */
    --font-heading:      'Montserrat', sans-serif;
    --font-body:         'Open Sans', sans-serif;

    /* Spacing */
    --section-py:        6rem;
    --section-py-sm:     3.5rem;
    --card-radius:       0.75rem;
    --btn-radius:        0.35rem;

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --shadow-md:  0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.18);

    /* Sidebar */
    --sidebar-width:        260px;
    --sidebar-collapsed-w:  72px;
    --topbar-height:        60px;

    /* Transitions */
    --transition-fast: .18s ease;
    --transition-med:  .3s ease;
}

/* ──────────────────────────────────────────────────────────
   2. GLOBAL RESET & BASE
   ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* accounts for fixed navbar height */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* prevents horizontal scroll WITHOUT creating a scroll container */
}

/* ─────────────────────────────────────────────────────────────
   SMOOTH SCROLL ENHANCEMENTS
   ───────────────────────────────────────────────────────────── */

/* Prevent janky scroll on fixed/sticky elements */
.navbar,
.admin-topbar,
.portal-topbar,
[class*="-header"],
[class*="topbar"] {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* GPU-promote backdrop-filter elements to avoid scroll repaint */
.card-glass,
.glass,
.glass-dark,
.glass-card,
#mainNavbar {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Paint containment on repeated card elements */
.card-hover,
.stat-card,
.service-card,
.glass-card {
    contain: layout style paint;
}

/* Cards that contain dropdowns must NOT use paint containment (clips overflow) */
.card {
    contain: layout style;
}

/* Off-screen rendering skip for heavy page sections */
.hero + section,
section + section,
.industry-gallery,
.service-section,
.project-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
}

a, .btn, .nav-link {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}
.card {
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

a { color: var(--color-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-gold-dark); }

img { max-width: 100%; height: auto; }

/* ──────────────────────────────────────────────────────────
   3. TYPOGRAPHY UTILITIES
   ────────────────────────────────────────────────────────── */
.text-gold   { color: var(--color-gold) !important; }
.text-navy   { color: var(--color-navy) !important; }
.text-muted-light { color: rgba(255,255,255,.65) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ──────────────────────────────────────────────────────────
   4. BUTTONS
   ────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .04em;
    border-radius: var(--btn-radius);
    padding: .5rem 1.4rem;
    transition: all var(--transition-fast);
}

/* Gold button */
.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy);
    border: 2px solid var(--color-gold);
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,184,0,.4);
}

/* Navy button */
.btn-navy {
    background: var(--color-navy);
    color: var(--color-white);
    border: 2px solid var(--color-navy);
}
.btn-navy:hover, .btn-navy:focus {
    background: var(--color-navy-mid);
    border-color: var(--color-navy-mid);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Outline gold */
.btn-outline-gold {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}
.btn-outline-gold:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* Override Bootstrap's .btn-primary → gold */
.btn-primary {
    --bs-btn-bg: var(--color-gold);
    --bs-btn-border-color: var(--color-gold);
    --bs-btn-color: var(--color-navy);
    --bs-btn-hover-bg: var(--color-gold-dark);
    --bs-btn-hover-border-color: var(--color-gold-dark);
    --bs-btn-hover-color: var(--color-navy);
    --bs-btn-active-bg: var(--color-gold-dark);
    font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
   5. SECTION SPACING & TITLES
   ────────────────────────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section-sm { padding: var(--section-py-sm) 0; }
.section-bg { background: var(--color-bg-alt); }
.section-dark { background: var(--color-navy); color: #fff; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
}
.section-title-white { color: #fff; }

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: .6rem;
}

.title-underline {
    display: block;
    width: 56px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 2px;
    margin: .75rem auto 0;
}
.title-underline-left { margin-left: 0; }

/* ──────────────────────────────────────────────────────────
   6. CARDS
   ────────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    background: var(--color-white);
}

.card-hover {
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Glassmorphism card */
.card-glass {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--card-radius);
    color: #fff;
}

/* ──────────────────────────────────────────────────────────
   7. PUBLIC NAVBAR
   ────────────────────────────────────────────────────────── */
#mainNavbar {
    background: rgba(10,25,47,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,184,0,.15);
    transition: background var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
    padding: .9rem 0;
}
#mainNavbar.scrolled {
    background: var(--color-navy);
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
    padding: .5rem 0;
}
#mainNavbar.transparent {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.nav-brand-icon {
    font-size: 1.7rem;
    color: var(--color-gold);
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255,184,0,.5));
}
.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
}

#mainNavbar .nav-link {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    padding: .4rem .9rem !important;
    position: relative;
    transition: color var(--transition-fast);
}
#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-fast), left var(--transition-fast);
    border-radius: 2px;
}
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--color-gold);
}
#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after {
    width: 0; left: 50%;
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: .75rem;
    font-weight: 700;
}

/* Flash wrapper below fixed navbar */
.flash-wrapper {
    position: fixed;
    top: calc(var(--topbar-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 92vw);
    z-index: 1055;
}
.flash-alert {
    border-left: 4px solid;
    border-radius: .5rem;
    font-size: .9rem;
    box-shadow: var(--shadow-md);
}

/* ──────────────────────────────────────────────────────────
   8. HERO SECTION
   ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-navy);
    padding-top: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .3;
    transition: opacity .6s;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,47,.95) 40%, rgba(10,25,47,.65));
}
.hero-content { position: relative; z-index: 2; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(255,184,0,.12);
    border: 1px solid rgba(255,184,0,.3);
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--color-gold); }

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Hero Carousel ── */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
    min-height: 100vh;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,25,47,.7);
    z-index: 1;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 150px;
}
.hero-gold-line {
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 2px;
    margin: 0 auto 2rem;
}

/* Hero carousel arrows */
.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,184,0,.15);
    border: 2px solid rgba(255,184,0,.4);
    color: var(--color-gold);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}
.hero-arrow:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* Hero carousel indicators */
#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
    opacity: .7;
    transition: all var(--transition-fast);
}
#heroCarousel .carousel-indicators button.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    opacity: 1;
    transform: scale(1.2);
}

/* Hero carousel crossfade */
.carousel-fade .carousel-item { transition: opacity .8s ease-in-out; }

/* ──────────────────────────────────────────────────────────
   9. STATS BAR
   ────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--color-gold);
    padding: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-navy);
    opacity: .8;
}

/* ── Stats Counter Section (Homepage Navy Bar) ── */
.stats-section {
    background: var(--color-navy);
    padding: 4rem 0;
    position: relative;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark), var(--color-gold));
}
.stat-counter-item { text-align: center; padding: 1rem 0; }
.stat-counter-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
    display: block;
    margin-bottom: .5rem;
}
.stat-counter-label {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.75);
}

/* ── About Image Wrapper ── */
.about-image-wrapper {
    position: relative;
}
.about-experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 1.25rem 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about-experience-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}
.about-experience-badge .badge-text {
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.4;
}

/* ── Project Cards ── */
.project-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.project-card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-card-img img {
    transform: scale(1.08);
}
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,25,47,.9) 0%, rgba(10,25,47,.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity .4s ease;
}
.project-card:hover .project-card-overlay {
    opacity: 1;
}
.project-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: .25rem .65rem;
    border-radius: 4px;
    margin-bottom: .5rem;
}
.project-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ── Project Filter Buttons ── */
.project-filter-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    background: rgba(10,25,47,.05);
    padding: .4rem;
    border-radius: 30px;
}
.filter-btn {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .5rem 1.25rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover {
    color: var(--color-navy);
    background: rgba(10,25,47,.08);
}
.filter-btn.active {
    background: var(--color-navy);
    color: #fff;
    box-shadow: 0 2px 10px rgba(10,25,47,.3);
}

/* ── Project items transition ── */
.project-item {
    transition: opacity .3s ease, transform .3s ease;
}

/* ── Feature Boxes (Why Choose Us) ── */
.feature-box {
    padding: 2rem 1.5rem;
    border-radius: var(--card-radius);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,184,0,.1);
    color: var(--color-gold);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-fast);
}
.feature-box:hover .feature-icon {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.05);
}

/* ── Testimonials Section ── */
.testimonials-section {
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.testimonial-card {
    padding: 2rem 1rem;
}
.testimonial-quote-icon {
    font-size: 4rem;
    color: var(--color-gold);
    opacity: .3;
    line-height: 1;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,.9);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-inline: auto;
}
.testimonial-stars {
    margin-bottom: 1rem;
}
.testimonial-stars i {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin: 0 .1rem;
}
.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: .2rem;
}
.testimonial-company {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
}

/* Testimonial carousel indicators */
#testimonialCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    background: transparent;
    opacity: .6;
}
#testimonialCarousel .carousel-indicators button.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    opacity: 1;
}

/* ── CTA Banner ── */
.cta-banner {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}
.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,25,47,.8);
}
.cta-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
}
.cta-banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────────────────
   10. SERVICE CARDS
   ────────────────────────────────────────────────────────── */
.service-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    border: 1px solid var(--color-border);
    background: #fff;
    height: 100%;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,184,0,.12);
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: background var(--transition-fast);
}
.service-card:hover .service-icon { background: var(--color-gold); color: var(--color-navy); }

/* ──────────────────────────────────────────────────────────
   11. FOOTER
   ────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,.75);
    font-size: .9rem;
}
.footer-top { padding: 5rem 0 3rem; }
.footer-desc { color: rgba(255,255,255,.6); line-height: 1.8; max-width: 320px; }

.footer-heading {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover { color: var(--color-gold); padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    gap: .75rem;
    margin-bottom: .85rem;
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    align-items: flex-start;
}
.footer-contact li i {
    color: var(--color-gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .15rem;
}
.footer-contact li a { color: rgba(255,255,255,.65); }
.footer-contact li a:hover { color: var(--color-gold); }

.social-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    transition: all var(--transition-fast);
}
.social-link:hover { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); transform: translateY(-2px); }

.footer-newsletter-label {
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: .6rem;
}
.footer-input {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
    color: #fff;
    border-radius: .3rem;
}
.footer-input:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--color-gold);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255,184,0,.25);
}
.footer-input::placeholder { color: rgba(255,255,255,.4); }

.footer-bottom {
    background: rgba(0,0,0,.25);
    padding: 1.25rem 0;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer-legal a { color: rgba(255,255,255,.5); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--color-gold); }

/* ──────────────────────────────────────────────────────────
   12. BADGE STATUSES
   ────────────────────────────────────────────────────────── */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: .04em;
}
.badge-status::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}

.status-pending    { background: rgba(255,193,7,.15);  color: #BB8500; }
.status-active     { background: rgba(13,110,253,.12); color: #0D6EFD; }
.status-processing { background: rgba(13,202,240,.12); color: #0AA2BA; }
.status-completed  { background: rgba(25,135,84,.12);  color: #198754; }
.status-rejected   { background: rgba(220,53,69,.12);  color: #DC3545; }
.status-cancelled  { background: rgba(108,117,125,.12);color: #495057; }

/* ──────────────────────────────────────────────────────────
   13. TABLES
   ────────────────────────────────────────────────────────── */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}
.table-custom thead tr:first-child th:first-child { border-top-left-radius: var(--card-radius); }
.table-custom thead tr:first-child th:last-child { border-top-right-radius: var(--card-radius); }
.table-custom tbody tr:last-child td:first-child { border-bottom-left-radius: var(--card-radius); }
.table-custom tbody tr:last-child td:last-child { border-bottom-right-radius: var(--card-radius); }

/* Allow dropdowns inside tables to overflow */
.table-responsive { overflow: visible !important; }
.card-body > .table-responsive { overflow: visible !important; }
.card-body { overflow: visible !important; }

@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}
.table-custom th {
    background: var(--color-navy);
    color: rgba(255,255,255,.85);
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .9rem 1rem;
    white-space: nowrap;
    border: none;
}
.table-custom td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .875rem;
    vertical-align: middle;
}
.table-custom tbody tr:last-child td { border-bottom: none; }
.table-custom tbody tr:hover td { background: var(--color-bg-alt); }

/* ──────────────────────────────────────────────────────────
   14. FORMS
   ────────────────────────────────────────────────────────── */
.form-control, .form-select {
    border-color: var(--color-border);
    border-radius: .4rem;
    font-size: .9rem;
    color: var(--color-text);
    padding: .55rem .85rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 .2rem rgba(255,184,0,.2);
    outline: none;
}
.form-label {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--color-navy);
    margin-bottom: .4rem;
}
.input-group-text {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

/* ──────────────────────────────────────────────────────────
   15. PORTAL & ADMIN SHARED LAYOUT
   ────────────────────────────────────────────────────────── */

/* ── Topbar ── */
.portal-topbar,
.admin-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--color-navy);
    border-bottom: 1px solid rgba(255,184,0,.15);
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.portal-topbar-inner,
.admin-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.portal-brand, .admin-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.admin-brand-text {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.admin-badge-label {
    font-family: var(--font-heading);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: .15rem .45rem;
    border-radius: 3px;
}

/* ── Topbar icon buttons ── */
.topbar-icon-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 1.2rem;
    padding: .35rem .5rem;
    border-radius: .4rem;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    line-height: 1;
}
.topbar-icon-btn:hover { color: var(--color-gold); background: rgba(255,184,0,.1); }

.topbar-user-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}
.topbar-user-btn:hover { background: rgba(255,184,0,.12); border-color: rgba(255,184,0,.4); color: #fff; }
.topbar-user-btn::after { display: none; }
.topbar-user-btn.dropdown-toggle::after { display: inline-block; margin-left: .5rem; opacity: .6; }

.topbar-avatar {
    width: 30px; height: 30px;
    background: var(--color-gold);
    color: var(--color-navy);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.admin-avatar { background: #E74C3C; color: #fff; }

/* ── Sidebar toggle button ── */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 1.5rem;
    line-height: 1;
    padding: .2rem .4rem;
    cursor: pointer;
    border-radius: .3rem;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.sidebar-toggle-btn:hover { color: var(--color-gold); background: rgba(255,184,0,.1); }

/* ── Layout wrapper ── */
.portal-wrapper,
.admin-wrapper {
    display: flex;
    padding-top: var(--topbar-height);
    min-height: 100vh;
}

/* ── Sidebar ── */
.portal-sidebar,
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--color-navy-light);
    border-right: 1px solid rgba(255,255,255,.06);
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1035;
    transition: transform var(--transition-med), width var(--transition-med);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.portal-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-scroll { padding-bottom: 2rem; }

/* ── Sidebar user card ── */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: .5rem;
}
.sidebar-user-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-user-name {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.sidebar-user-role {
    font-size: .7rem;
    color: rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.online { background: #2ECC71; }

/* ── Admin sidebar brand ── */
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: .5rem;
}
.sidebar-brand-text {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ── Sidebar section label ── */
.sidebar-section-label {
    font-family: var(--font-heading);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: .6rem 1rem .3rem;
}

/* ── Sidebar nav ── */
.sidebar-nav-menu { padding: 0 .5rem; }
.sidebar-nav-menu ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav-menu li { margin-bottom: 2px; }

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem .85rem;
    border-radius: .45rem;
    color: rgba(255,255,255,.65);
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.sidebar-nav-link:hover {
    color: var(--color-gold);
    background: rgba(255,184,0,.1);
    text-decoration: none;
}
.sidebar-nav-link.active {
    color: var(--color-navy);
    background: var(--color-gold);
    box-shadow: 0 2px 10px rgba(255,184,0,.35);
}
.sidebar-nav-link.active i { color: var(--color-navy); }

.sidebar-logout-link:hover { color: #FF6B6B; background: rgba(255,107,107,.1); }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.07); margin: .75rem .5rem; }

/* ── Submenu ── */
.sidebar-submenu { list-style: none; padding: .25rem 0 .25rem 2.2rem; margin: 0; }
.sidebar-sublink {
    font-size: .775rem;
    padding: .45rem .75rem;
    color: rgba(255,255,255,.55);
}
.sidebar-sublink:hover { color: var(--color-gold); }
.sidebar-sublink.active { color: var(--color-gold); background: rgba(255,184,0,.08); }
.submenu-arrow {
    font-size: .7rem;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
[aria-expanded="true"] .submenu-arrow { transform: rotate(180deg); }
.sidebar-collapse-btn { display: flex; align-items: center; gap: .8rem; }

/* ── Sidebar overlay (mobile) ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1034;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* Hide overlay on desktop — safety net */
@media (min-width: 992px) {
    .sidebar-overlay,
    .sidebar-overlay.active {
        display: none !important;
    }
}

/* ── Desktop sidebar collapse ── */
@media (min-width: 992px) {
    .sidebar-collapsed .portal-sidebar,
    .sidebar-collapsed .admin-sidebar {
        width: var(--sidebar-collapsed-w);
    }
    .sidebar-collapsed .portal-main,
    .sidebar-collapsed .admin-main {
        margin-left: var(--sidebar-collapsed-w);
    }
    /* Hide text labels when collapsed */
    .sidebar-collapsed .sidebar-nav-link span,
    .sidebar-collapsed .sidebar-section-label,
    .sidebar-collapsed .sidebar-brand-text,
    .sidebar-collapsed .admin-sidebar-brand .sidebar-brand-text,
    .sidebar-collapsed .submenu-arrow,
    .sidebar-collapsed .sidebar-submenu {
        display: none;
    }
    /* Center icons in collapsed sidebar */
    .sidebar-collapsed .sidebar-nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    .sidebar-collapsed .sidebar-nav-link i {
        margin: 0;
        font-size: 1.2rem;
    }
    .sidebar-collapsed .admin-sidebar-brand {
        justify-content: center;
    }
}

/* ── Portal / Admin main content ── */
.portal-main,
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: var(--color-bg-alt);
    min-height: calc(100vh - var(--topbar-height));
    transition: margin-left var(--transition-med);
}

/* ── Page header ── */
.portal-page-title,
.admin-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: .3rem;
}
.portal-breadcrumb,
.admin-breadcrumb {
    font-size: .8rem;
    background: none;
    padding: 0;
}
.portal-breadcrumb .breadcrumb-item a,
.admin-breadcrumb .breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.portal-breadcrumb .breadcrumb-item a:hover,
.admin-breadcrumb .breadcrumb-item a:hover { color: var(--color-gold); }

/* ── Portal stat cards ── */
.portal-stat-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow var(--transition-med);
}
.portal-stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon-box {
    width: 52px; height: 52px;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon-navy { background: rgba(10,25,47,.1); color: var(--color-navy); }
.stat-icon-gold  { background: rgba(255,184,0,.15); color: var(--color-gold-dark); }
.stat-icon-green { background: rgba(25,135,84,.12); color: #198754; }
.stat-icon-red   { background: rgba(220,53,69,.12); color: #DC3545; }
.stat-info { flex: 1; }
.stat-label-text {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: .2rem;
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}
.stat-change {
    font-size: .75rem;
    font-weight: 600;
    margin-top: .2rem;
}
.stat-change.up   { color: #198754; }
.stat-change.down { color: #DC3545; }

/* ── Admin search bar ── */
.admin-search-group { background: rgba(255,255,255,.06); border-radius: 20px; overflow: hidden; }
.admin-search-icon {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.45);
    border-right: none;
}
.admin-search-input {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    border-left: none;
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    min-width: 200px;
}
.admin-search-input:focus {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,184,0,.4);
    box-shadow: none;
    color: #fff;
}
.admin-search-input::placeholder { color: rgba(255,255,255,.3); }

/* ── Notifications dropdown ── */
.notif-dropdown {
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: .65rem;
    overflow: hidden;
    min-width: 320px;
}
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-size: .85rem;
}
.notif-view-all { font-size: .75rem; color: var(--color-gold); font-weight: 600; }
.notif-view-all:hover { color: var(--color-gold-dark); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
    align-items: flex-start;
}
.notif-item:hover { background: var(--color-bg-alt); color: var(--color-text); }
.notif-item.unread { background: rgba(255,184,0,.04); }
.notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
    margin-top: .4rem;
}
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-text { font-size: .82rem; margin-bottom: .2rem; line-height: 1.4; }
.notif-time { font-size: .7rem; color: var(--color-text-muted); }
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    font-size: .85rem;
}
.notif-empty i { font-size: 1.75rem; opacity: .5; }
.notif-badge {
    position: absolute;
    top: 4px; right: 2px;
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: .6rem;
    font-weight: 700;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-navy);
}

/* ──────────────────────────────────────────────────────────
   16. GLASSMORPHISM UTILITY
   ────────────────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
}
.glass-dark {
    background: rgba(10,25,47,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
}

/* ──────────────────────────────────────────────────────────
   17. MISC UTILITIES
   ────────────────────────────────────────────────────────── */
.divider-gold {
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    border: none;
    margin: 2rem 0;
}
.rounded-xl { border-radius: 1rem !important; }
.rounded-2xl { border-radius: 1.5rem !important; }

.img-cover { width: 100%; height: 100%; object-fit: cover; }

.overlay-dark {
    position: relative;
    overflow: hidden;
}
.overlay-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,25,47,.55);
    pointer-events: none;
}

/* Page top padding for fixed navbar */
.public-layout #mainContent > *:first-child { padding-top: 80px; }
.public-layout .hero { padding-top: 0; }

/* ──────────────────────────────────────────────────────────
   18. 404 ERROR PAGE
   ────────────────────────────────────────────────────────── */

/* Keyframes */
@keyframes error-ring-pulse {
    0%   { transform: translate(-50%,-50%) scale(1);   opacity: .18; }
    50%  { transform: translate(-50%,-50%) scale(1.08); opacity: .10; }
    100% { transform: translate(-50%,-50%) scale(1);   opacity: .18; }
}
@keyframes error-float {
    0%,100% { transform: translateY(0);   opacity: .55; }
    50%      { transform: translateY(-12px); opacity: 1; }
}
@keyframes error-particle-drift {
    0%,100% { transform: translate(0,0) scale(1); opacity: .6; }
    33%      { transform: translate(6px,-10px) scale(1.3); opacity: 1; }
    66%      { transform: translate(-5px, 5px) scale(.8); opacity: .4; }
}
@keyframes error-glow-pulse {
    0%,100% { text-shadow: 0 0 40px rgba(255,184,0,.25), 0 0 80px rgba(255,184,0,.1); }
    50%      { text-shadow: 0 0 60px rgba(255,184,0,.50), 0 0 120px rgba(255,184,0,.2); }
}
@keyframes error-badge-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,184,0,.45); }
    50%      { box-shadow: 0 0 0 16px rgba(255,184,0,0); }
}

/* Layout */
.page-404 #mainContent { padding-top: 0; }

.error-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-light) 60%, #0d1f3c 100%);
    padding: 2rem;
    text-align: center;
}

/* Decorative rings */
.error-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.error-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid var(--color-gold);
    transform: translate(-50%,-50%);
    animation: error-ring-pulse 5s ease-in-out infinite;
}
.error-ring--1 { width: 340px;  height: 340px;  animation-delay: 0s;    opacity: .18; }
.error-ring--2 { width: 560px;  height: 560px;  animation-delay: 1s;    opacity: .12; }
.error-ring--3 { width: 800px;  height: 800px;  animation-delay: 2s;    opacity: .07; }
.error-ring--4 { width: 1080px; height: 1080px; animation-delay: 3s;    opacity: .04; }

/* Floating particles */
.error-particles { position: absolute; inset: 0; pointer-events: none; }
.error-particle {
    position: absolute;
    left: var(--x); top: var(--y);
    width: var(--s); height: var(--s);
    border-radius: 50%;
    background: var(--color-gold);
    animation: error-particle-drift var(--d) ease-in-out infinite;
    opacity: .6;
}

/* Inner wrapper */
.error-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
}

/* Icon badge */
.error-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(255,184,0,.12);
    border: 1.5px solid rgba(255,184,0,.4);
    margin-bottom: 1.5rem;
    animation: error-badge-pulse 2.8s ease-in-out infinite;
}
.error-icon-badge i {
    font-size: 1.8rem;
    color: var(--color-gold);
    animation: error-float 3.2s ease-in-out infinite;
}

/* 404 number */
.error-404-number {
    font-family: var(--font-heading);
    font-size: clamp(5.5rem, 20vw, 13rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px var(--color-gold);
    line-height: 1;
    letter-spacing: -0.02em;
    animation: error-glow-pulse 3s ease-in-out infinite;
    margin-bottom: .25rem;
}

/* Divider */
.error-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 1rem 0 1.5rem;
}
.error-divider-line {
    display: block;
    height: 2px;
    width: 60px;
    background: rgba(255,184,0,.35);
    border-radius: 2px;
}

/* Title & description */
.error-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}
.error-desc {
    color: rgba(255,255,255,.58);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto 2.5rem;
    line-height: 1.85;
}

/* Quick-link pills */
.error-quicklinks {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.error-quicklinks-label {
    color: rgba(255,255,255,.35);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: .85rem;
}
.error-pill {
    display: inline-block;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    border: 1px solid rgba(255,255,255,.14);
    padding: .3rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast),
                background var(--transition-fast);
}
.error-pill:hover {
    color: var(--color-navy);
    background: var(--color-gold);
    border-color: var(--color-gold);
}

/* ──────────────────────────────────────────────────────────
   18B. RESPONSIVE — TABLET SIDEBAR (auto-collapse)
   ────────────────────────────────────────────────────────── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .portal-sidebar,
    .admin-sidebar {
        width: var(--sidebar-collapsed-w);
    }
    .portal-main,
    .admin-main {
        margin-left: var(--sidebar-collapsed-w);
    }
    /* Hide text labels on tablets */
    .sidebar-nav-link span,
    .sidebar-section-label,
    .sidebar-brand-text,
    .admin-sidebar-brand .sidebar-brand-text,
    .submenu-arrow,
    .sidebar-submenu,
    .sidebar-user-info,
    .sidebar-user-card {
        display: none;
    }
    /* Center icons */
    .sidebar-nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    .sidebar-nav-link i {
        margin: 0;
        font-size: 1.2rem;
    }
    .admin-sidebar-brand {
        justify-content: center;
    }
    /* Reduce main content padding */
    .portal-main,
    .admin-main {
        padding: 1.5rem;
    }
}

/* ──────────────────────────────────────────────────────────
   19. RESPONSIVE — MOBILE SIDEBAR
   ────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {

    .portal-sidebar,
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1045;
    }
    .portal-sidebar.open,
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .portal-main,
    .admin-main {
        margin-left: 0;
    }

    .portal-topbar-inner,
    .admin-topbar-inner {
        padding: 0 .75rem;
    }

    .flash-wrapper { width: 96vw; }
}

/* ──────────────────────────────────────────────────────────
   20. RESPONSIVE — GENERAL
   ────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .section { padding: 3.5rem 0; }
    .footer-top { padding: 3rem 0 2rem; }
    .admin-search { display: none !important; }
    .portal-main, .admin-main { padding: 1.25rem; }

    /* Generic table responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .hero-desc { font-size: .95rem; }
    .btn { padding: .45rem 1.1rem; font-size: .82rem; }
    .stat-value { font-size: 1.4rem; }
}

/* ──────────────────────────────────────────────────────────
   21. DROPDOWN OVERRIDES
   ────────────────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: .65rem;
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    font-size: .875rem;
    z-index: 1050 !important;
}
.dropdown-item {
    border-radius: .4rem;
    padding: .45rem .85rem;
    color: var(--color-text);
    font-size: .875rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item:hover { background: var(--color-bg-alt); color: var(--color-navy); }
.dropdown-item i { color: var(--color-text-muted); transition: color var(--transition-fast); }
.dropdown-item:hover i { color: var(--color-gold); }

/* ──────────────────────────────────────────────────────────
   22. PORTAL CUSTOM COMPONENTS (Payments, Tickets, Profile)
   ────────────────────────────────────────────────────────── */

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}
.glass-card:hover { box-shadow: var(--shadow-md); }

/* Custom badge colors */
.bg-purple { background-color: #7c3aed !important; color: #fff !important; }
.bg-navy { background-color: var(--color-navy) !important; color: #fff !important; }
.bg-indigo { background-color: #4f46e5 !important; color: #fff !important; }
.btn-indigo { background-color: #4f46e5; border-color: #4f46e5; color: #fff; }
.btn-indigo:hover { background-color: #4338ca; border-color: #4338ca; color: #fff; }
.text-indigo { color: #4f46e5 !important; }

/* Stat icon in portal cards */
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 0.65rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }

/* Payment method tabs */
.payment-method-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
}

/* Wallet address cards */
.wallet-card { background: var(--color-bg-alt); transition: border-color 0.2s; }
.wallet-card:hover { border-color: var(--color-gold) !important; }

/* Cursor pointer for clickable rows */
.cursor-pointer { cursor: pointer; }
.cursor-pointer:hover { background: var(--color-bg-alt); }

/* Payment instructions */
.payment-instructions .instruction-item { border-left: 3px solid transparent; padding-left: 0.75rem; }
.payment-instructions .instruction-item:hover { border-left-color: var(--color-gold); }

/* ──────────────────────────────────────────────────────────
   23. PORTAL DASHBOARD — WELCOME BANNER & PANELS
   ────────────────────────────────────────────────────────── */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
    border-radius: var(--card-radius);
    overflow: hidden;
}
.welcome-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}
.welcome-greeting { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .25rem; }
.welcome-name { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; }
.welcome-date { color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: 0; }
.wave { display: inline-block; animation: wave-hand 2.5s infinite; transform-origin: 70% 70%; }
@keyframes wave-hand { 0%,60%,100%{transform:rotate(0)} 10%,30%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 40%{transform:rotate(-4deg)} 50%{transform:rotate(10deg)} }

.portal-panel { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); overflow: hidden; }
.portal-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; gap: .5rem; }
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: .1rem; color: var(--color-navy); }
.panel-subtitle { font-size: .78rem; color: var(--color-text-muted); margin-bottom: 0; }

/* Quick actions row (mobile) */
.quick-actions-row { display: flex; gap: .5rem; }
.quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .8rem .5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    color: var(--color-navy);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.quick-action-btn i { font-size: 1.2rem; color: var(--color-gold); }
.quick-action-btn:hover { border-color: var(--color-gold); background: rgba(255,184,0,.04); color: var(--color-navy); }

/* ── Order filter tabs (Portal) ── */
.order-filter-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.order-filter-tab {
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem 1rem;
    border-radius: 20px;
    color: var(--color-text-muted);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}
.order-filter-tab:hover { color: var(--color-navy); border-color: var(--color-navy); }
.order-filter-tab.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon { font-size: 3rem; color: var(--color-text-muted); opacity: .4; margin-bottom: 1rem; }
.empty-state h5 { font-weight: 700; color: var(--color-navy); margin-bottom: .5rem; }
.empty-state p { color: var(--color-text-muted); font-size: .9rem; }

/* ── Chat / Ticket Conversation ── */
.ticket-conversation { max-height: 600px; overflow-y: auto; padding: .5rem 0; }
.chat-bubble { display: flex; margin-bottom: .75rem; }
.chat-bubble-inner { max-width: 75%; padding: 1rem 1.25rem; border-radius: .75rem; }
.chat-right { justify-content: flex-end; }
.chat-right .chat-bubble-inner { background: rgba(13,110,253,.08); border: 1px solid rgba(13,110,253,.15); }
.chat-left .chat-bubble-inner { background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.chat-message { font-size: .9rem; line-height: 1.7; }

/* ── Portal stat card color variants ── */
.portal-stat-card--blue { border-left: 4px solid #0D6EFD; }
.portal-stat-card--orange { border-left: 4px solid #FFA500; }
.portal-stat-card--red { border-left: 4px solid #DC3545; }
.portal-stat-card--purple { border-left: 4px solid #7C3AED; }
.stat-icon-blue   { background: rgba(13,110,253,.12); color: #0D6EFD; }
.stat-icon-orange { background: rgba(255,165,0,.12); color: #FFA500; }
.stat-icon-purple { background: rgba(124,58,237,.12); color: #7C3AED; }

/* ── Page banner ── */
.page-banner { min-height: 280px; display: flex; align-items: center; justify-content: center; position: relative; background-size: cover; background-position: center; }

/* ============================================================
   24. RESPONSIVE DESIGN — COMPREHENSIVE BREAKPOINTS
   ============================================================ */

/* ──────────────────────────────────────────────────
   GLOBAL RESPONSIVE UTILITIES
   ────────────────────────────────────────────────── */
canvas { max-width: 100%; }
.table-responsive-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ──────────────────────────────────────────────────
   LARGE TABLETS & SMALL DESKTOPS  (max-width: 1199.98px)
   ────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 230px;
    }

    /* Stats section columns tighten */
    .stat-counter-number { font-size: 2rem; }

    /* Admin charts — full width on smaller desktops */
    .admin-main .col-lg-8,
    .admin-main .col-lg-4 {
        /* allow Bootstrap to handle but tighten card padding */
    }
    .admin-main .card-body { padding: 1rem; }

    /* CTA banner reduces padding */
    .cta-banner { padding: 4.5rem 0; }

    /* Topbar search bar narrower */
    .admin-search-input { min-width: 160px; }

    /* Portal page title */
    .portal-page-title,
    .admin-page-title { font-size: 1.35rem; }
}

/* ──────────────────────────────────────────────────
   TABLETS  (max-width: 991.98px)
   ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    /* ── Sidebar (hide + slide) — already in section 19 ── */
    .portal-sidebar,
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1045;
        width: var(--sidebar-width);
    }
    .portal-sidebar.open,
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .portal-main,
    .admin-main {
        margin-left: 0;
    }

    /* Show sidebar toggle prominently */
    .sidebar-toggle-btn { display: inline-flex; }

    /* Hero section adjustments */
    .hero { min-height: 85vh; }
    .hero .carousel,
    .hero .carousel-inner,
    .hero .carousel-item { min-height: 85vh; }
    .hero-slide-content { padding-top: 120px; max-width: 600px; }
    .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
    .hero-desc { font-size: 1rem; }
    .hero-tag { font-size: .7rem; padding: .3rem .75rem; }

    /* Hero arrows smaller on tablet */
    .hero-arrow { width: 42px; height: 42px; font-size: 1rem; }

    /* Stats bar */
    .stats-bar { padding: 1.25rem 0; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: .72rem; }

    /* Stats counter section */
    .stats-section { padding: 3rem 0; }
    .stat-counter-number { font-size: 1.8rem; }

    /* Service cards — 2 columns handled by Bootstrap but ensure spacing */
    .service-card-img { height: 180px; }

    /* Project cards */
    .project-card-img { height: 240px; }

    /* Feature boxes */
    .feature-box { padding: 1.5rem 1.25rem; }
    .feature-icon { width: 58px; height: 58px; font-size: 1.5rem; }

    /* Testimonials */
    .testimonial-text { font-size: 1rem; }
    .testimonial-quote-icon { font-size: 3rem; }

    /* CTA Banner */
    .cta-banner { padding: 4rem 0; }
    .cta-banner-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

    /* Footer adjustments */
    .footer-top { padding: 3.5rem 0 2.5rem; }
    .footer-desc { max-width: 100%; }

    /* Portal welcome banner */
    .welcome-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .welcome-name { font-size: 1.3rem; }

    /* Tables — ensure scroll on overflow */
    .table-custom { font-size: .82rem; }
    .table-custom th { padding: .7rem .75rem; font-size: .7rem; }
    .table-custom td { padding: .7rem .75rem; }

    /* Portal stat cards */
    .portal-stat-card { padding: 1.25rem; }
    .stat-value { font-size: 1.5rem; }

    /* Portal panel */
    .portal-panel-header { padding: 1rem 1.25rem; }

    /* Admin page header flex-wrap */
    .admin-page-header .d-flex { flex-direction: column; gap: .75rem; }

    /* Notification dropdown — fit on tablet */
    .notif-dropdown { min-width: 280px; }

    /* Navbar mobile: improve dropdown on collapse */
    #mainNavbar .navbar-collapse { background: rgba(10,25,47,.98); padding: 1rem; border-radius: 0 0 .75rem .75rem; margin-top: .5rem; }
    #mainNavbar .nav-link { padding: .6rem .75rem !important; }
    #mainNavbar .nav-link::after { display: none; }

    /* Ensure navbar brand + toggler stay on same row */
    #mainNavbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    #mainNavbar .navbar-toggler {
        display: flex;
        flex-shrink: 0;
    }

    /* Project filter buttons scroll */
    .project-filter-btns { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }

    /* Contact page banner */
    .page-banner { min-height: 220px; }
    .page-banner h1 { font-size: 2rem; }
}

/* ──────────────────────────────────────────────────
   LARGE PHONES / SMALL TABLETS  (max-width: 767.98px)
   ────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* ── Section spacing tighter ── */
    .section { padding: 3rem 0; }
    .section-sm { padding: 2rem 0; }

    /* ── Hero ── */
    .hero { min-height: 75vh; }
    .hero .carousel,
    .hero .carousel-inner,
    .hero .carousel-item { min-height: 75vh; }
    .hero-slide-content { padding-top: 100px; max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .hero-title { font-size: 1.75rem; margin-bottom: 1rem; }
    .hero-desc { font-size: .9rem; margin-bottom: 1.5rem; line-height: 1.7; }
    .hero-tag { font-size: .65rem; padding: .25rem .6rem; margin-bottom: 1rem; }
    .hero-gold-line { width: 40px; margin-bottom: 1.25rem; }
    .hero-actions { justify-content: center; }
    .hero-actions .btn { font-size: .82rem; padding: .5rem 1rem; }
    .hero-actions .btn-lg { font-size: .85rem; padding: .55rem 1.2rem; }

    /* Hero carousel arrows — hide on small screens or shrink */
    .carousel-control-prev,
    .carousel-control-next { width: 12%; }
    .hero-arrow { width: 36px; height: 36px; font-size: .85rem; }

    /* Hero carousel indicators */
    #heroCarousel .carousel-indicators { bottom: 10px; }
    #heroCarousel .carousel-indicators button { width: 10px; height: 10px; }

    /* ── Section titles ── */
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: .88rem; }

    /* ── Stats bar ── */
    .stats-bar { padding: 1rem 0; }
    .stat-number { font-size: 1.35rem; }
    .stat-label { font-size: .65rem; }

    /* Stats counter */
    .stats-section { padding: 2.5rem 0; }
    .stat-counter-number { font-size: 1.5rem; }
    .stat-counter-label { font-size: .7rem; }

    /* ── About section ── */
    .about-experience-badge { bottom: -10px; left: -10px; padding: 1rem; }
    .about-experience-badge .badge-number { font-size: 1.6rem; }
    .about-experience-badge .badge-text { font-size: .6rem; }

    /* ── Service cards ── */
    .service-card-img { height: 180px; }

    /* ── Project cards ── */
    .project-card-img { height: 220px; }
    .project-card-overlay { opacity: 1; }  /* Always show on mobile since no hover */

    /* ── Feature boxes ── */
    .feature-box { padding: 1.5rem 1rem; }
    .feature-icon { width: 52px; height: 52px; font-size: 1.3rem; }

    /* ── Testimonials ── */
    .testimonial-card { padding: 1.5rem .75rem; }
    .testimonial-text { font-size: .95rem; line-height: 1.7; }
    .testimonial-quote-icon { font-size: 2.5rem; }
    .testimonial-name { font-size: .9rem; }
    .testimonial-company { font-size: .78rem; }

    /* ── CTA Banner ── */
    .cta-banner { padding: 3rem 0; background-attachment: scroll; }
    .cta-banner-title { font-size: 1.5rem; }
    .cta-banner-subtitle { font-size: .95rem; }

    /* ── Footer ── */
    .footer-top { padding: 2.5rem 0 1.5rem; }
    .footer-brand { margin-bottom: .5rem; }
    .footer-heading { margin-bottom: 1rem; margin-top: .5rem; }
    .footer-desc { max-width: 100%; }
    .social-links { margin-top: 1.5rem !important; }
    .footer-newsletter .d-flex { flex-direction: column; }
    .footer-newsletter .btn { width: 100%; }
    .footer-bottom { padding: 1rem 0; }
    .footer-bottom .row > div { text-align: center !important; }
    .footer-legal { margin-top: .5rem; }

    /* ── Portal & Admin layout ── */
    .portal-main,
    .admin-main { padding: 1rem; }
    .flash-wrapper { width: min(500px, 95vw); }
    .admin-search { display: none !important; }

    /* Portal welcome banner */
    .welcome-inner { padding: 1.25rem; }
    .welcome-name { font-size: 1.15rem; }
    .welcome-date { font-size: .78rem; }

    /* Portal page title */
    .portal-page-title,
    .admin-page-title { font-size: 1.2rem; }

    /* ── Stat cards (Portal & Admin) ── */
    .portal-stat-card { padding: 1rem; gap: .75rem; }
    .stat-icon-box { width: 44px; height: 44px; font-size: 1.15rem; }
    .stat-value { font-size: 1.35rem; }
    .stat-label-text { font-size: .68rem; }
    .stat-change { font-size: .68rem; }

    /* ── Tables — horizontal scroll ── */
    .table-custom { font-size: .8rem; }
    .table-custom th { padding: .6rem .65rem; font-size: .68rem; }
    .table-custom td { padding: .6rem .65rem; font-size: .8rem; }

    /* Force table parents to scroll */
    .portal-panel > .table-custom,
    .card > .table-custom,
    .portal-panel > div > .table-custom,
    .card > div > .table-custom,
    .card-body > .table-custom { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.table-custom { min-width: 600px; }

    /* ── Ticket chat bubbles — full width on mobile ── */
    .chat-bubble-inner { max-width: 92%; }

    /* ── Payment tabs — scrollable ── */
    .payment-method-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
    .payment-method-tabs .nav-link { white-space: nowrap; flex-shrink: 0; }

    /* ── Order filter tabs — scrollable ── */
    .order-filter-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .35rem; }
    .order-filter-tab { white-space: nowrap; flex-shrink: 0; }

    /* ── Buttons — touch-friendly ── */
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 38px; }

    /* ── Forms — full width ── */
    .form-control,
    .form-select { font-size: .88rem; padding: .6rem .8rem; }

/* — Modals — */
.modal-content { border-radius: var(--card-radius); }
.modal-body { padding: 1rem; }
.modal-header { padding: .75rem 1rem; }
.modal-footer { padding: .75rem 1rem; flex-wrap: wrap; gap: .5rem; }
.modal-footer .btn { flex: 1; min-width: 0; }
/* On mobile only: nearly full width */
@media (max-width: 575.98px) {
    .modal-dialog { margin: .75rem; max-width: calc(100vw - 1.5rem); }
}
    /* ── Dropdowns — prevent overflow ── */
    .dropdown-menu { max-width: calc(100vw - 1.5rem); }
    .dropdown-menu-end { right: 0; left: auto; }
    .notif-dropdown { min-width: 280px; max-width: calc(100vw - 2rem); }

    /* ── Charts — full width ── */
    .card canvas { max-width: 100%; height: auto !important; }

    /* ── Navbar (public) — already handled by Bootstrap toggler ── */
    #mainNavbar .navbar-collapse {
        background: rgba(10,25,47,.98);
        padding: 1rem;
        border-radius: 0 0 .75rem .75rem;
        margin-top: .25rem;
        border: 1px solid rgba(255,184,0,.1);
        border-top: none;
    }
    #mainNavbar .nav-link { padding: .65rem .75rem !important; font-size: .8rem; }
    #mainNavbar .nav-link::after { display: none; }
    #mainNavbar .navbar-collapse .d-flex.align-items-center { flex-direction: column; width: 100%; gap: .5rem; margin-top: .75rem; }
    #mainNavbar .navbar-collapse .d-flex.align-items-center .btn { width: 100%; }
    #mainNavbar .navbar-collapse .d-flex.align-items-center .dropdown { width: 100%; }
    #mainNavbar .navbar-collapse .d-flex.align-items-center .dropdown .btn { width: 100%; justify-content: center; }

    /* Ensure navbar brand + toggler stay on same row */
    #mainNavbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    #mainNavbar .navbar-brand {
        flex-shrink: 1;
        margin-right: auto;
        max-width: calc(100% - 50px);
    }
    #mainNavbar .navbar-toggler {
        display: flex;
        flex-shrink: 0;
    }

    /* ── Admin filter rows — stack vertically ── */
    .admin-page-header .d-flex { flex-direction: column; align-items: flex-start !important; }
    .page-actions { width: 100%; }
    .page-actions .btn { width: 100%; }

    /* ── Contact page banner ── */
    .page-banner { min-height: 180px; }
    .page-banner h1 { font-size: 1.75rem; }
    .page-banner .display-5 { font-size: 1.75rem !important; }

    /* ── Breadcrumbs ── */
    .portal-breadcrumb,
    .admin-breadcrumb { font-size: .75rem; }

    /* ── Portal panel ── */
    .portal-panel-header { padding: .85rem 1rem; flex-direction: column; align-items: flex-start; gap: .5rem; }

    /* ── Glass card ── */
    .glass-card { padding: 1rem; }

    /* ── About image wrapper (responsive offset) ── */
    .about-image-wrapper img { border-radius: var(--card-radius); }
}

/* ──────────────────────────────────────────────────
   SMALL PHONES  (max-width: 575.98px)
   ────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    /* ── Even tighter spacing ── */
    .section { padding: 2.5rem 0; }

    /* ── Hero — extra small ── */
    .hero { min-height: 70vh; }
    .hero .carousel,
    .hero .carousel-inner,
    .hero .carousel-item { min-height: 70vh; }
    .hero-slide-content { padding-top: 80px; }
    .hero-title { font-size: 1.5rem; line-height: 1.15; }
    .hero-desc { font-size: .88rem; line-height: 1.65; }
    .hero-tag { font-size: .6rem; gap: .35rem; margin-bottom: .75rem; }
    .hero-actions { flex-direction: row; flex-wrap: nowrap; gap: 8px; justify-content: center; }
    .hero-actions .btn { font-size: 0.95rem; padding: 12px 20px; white-space: nowrap; }

    /* ── Stats ── */
    .stat-number { font-size: 1.2rem; }
    .stat-counter-number { font-size: 1.3rem; }
    .stat-value { font-size: 1.2rem; }

    /* ── Buttons ── */
    .btn { padding: .45rem 1rem; font-size: .82rem; }
    .btn-lg { font-size: .88rem; padding: .55rem 1.15rem; }

    /* ── Portal stat cards stacked ── */
    .portal-stat-card { padding: .85rem; gap: .6rem; }
    .stat-icon-box { width: 40px; height: 40px; font-size: 1.1rem; border-radius: .5rem; }
    .stat-value { font-size: 1.15rem; }
    .stat-label-text { font-size: .65rem; letter-spacing: .04em; }

    /* ── Tables even smaller ── */
    .table-custom th { font-size: .65rem; padding: .5rem; }
    .table-custom td { font-size: .75rem; padding: .5rem; }
    table.table-custom { min-width: 500px; }

    /* ── Chat bubbles — nearly full width ── */
    .chat-bubble-inner { max-width: 96%; }
    .chat-message { font-size: .85rem; }

    /* ── Section titles ── */
    .section-title { font-size: 1.35rem; }
    .title-underline { width: 42px; height: 3px; }

    /* ── Footer ── */
    .footer-top { padding: 2rem 0 1.25rem; }
    .footer-heading { font-size: .72rem; margin-bottom: .85rem; }
    .footer-links a { font-size: .8rem; }
    .footer-contact li { font-size: .8rem; }
    .social-link { width: 34px; height: 34px; font-size: .9rem; }
    .footer-bottom { font-size: .75rem; padding: .85rem 0; }

    /* ── Portal / Admin main ── */
    .portal-main,
    .admin-main { padding: .75rem; }
    .portal-page-title,
    .admin-page-title { font-size: 1.1rem; }

    /* ── Navbar brand ── */
    .nav-brand-text { font-size: 1rem; }
    .nav-brand-icon { font-size: 1.4rem; }

    /* ── Admin topbar ── */
    .portal-topbar-inner,
    .admin-topbar-inner { padding: 0 .5rem; }

    /* ── Modals ── */
    .modal-dialog { margin: .5rem; max-width: calc(100vw - 1rem); }

    /* ── Welcome banner ── */
    .welcome-inner { padding: 1rem; }
    .welcome-name { font-size: 1.05rem; }
    .welcome-greeting { font-size: .82rem; }

    /* ── Quick action buttons ── */
    .quick-action-btn { padding: .6rem .35rem; font-size: .68rem; }
    .quick-action-btn i { font-size: 1rem; }

    /* ── CTA banner ── */
    .cta-banner { padding: 2.5rem 0; }
    .cta-banner-title { font-size: 1.3rem; }
    .cta-banner-subtitle { font-size: .88rem; }

    /* ── Error page ── */
    .error-404-number { -webkit-text-stroke: 2px var(--color-gold); }
    .error-title { font-size: 1.3rem; }
    .error-desc { font-size: .88rem; }
    .error-ring--3,
    .error-ring--4 { display: none; } /* hide huge rings on small screens */
    .error-icon-badge { width: 56px; height: 56px; }
    .error-icon-badge i { font-size: 1.5rem; }

    /* ── Flash messages ── */
    .flash-wrapper { width: 98vw; }
    .flash-alert { font-size: .82rem; padding: .6rem .75rem; }

    /* ── Badge status ── */
    .badge-status { font-size: .68rem; padding: .25rem .55rem; }

    /* ── Contact cards ── */
    .page-banner h1,
    .page-banner .display-5 { font-size: 1.5rem !important; }

    /* ── Dropdown notification ── */
    .notif-dropdown { min-width: 260px; }
    .notif-text { font-size: .78rem; }
    .notif-time { font-size: .65rem; }

    /* ── Project filter buttons ── */
    .filter-btn { font-size: .72rem; padding: .4rem 1rem; }

    /* ── Background attachment fix for iOS ── */
    .cta-banner-bg { background-attachment: scroll; }

    /* ── Forms ── */
    .form-label { font-size: .75rem; }
    .form-control, .form-select { font-size: .85rem; }

    /* ── Sidebar topbar button spacing ── */
    .sidebar-toggle-btn { font-size: 1.3rem; padding: .15rem .3rem; }
}

/* ──────────────────────────────────────────────────
   MOBILE CENTER-ALIGNMENT — Public Pages Only
   Scoped to #mainContent so navbar, footer, forms,
   tables, and admin/portal layouts are unaffected.
   ────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* ── Center headings ── */
    #mainContent h1,
    #mainContent h2,
    #mainContent h3,
    #mainContent h4,
    #mainContent h5,
    #mainContent h6,
    #mainContent .section-title,
    #mainContent .section-subtitle {
        text-align: center !important;
    }

    /* ── Center paragraphs & lead text ── */
    #mainContent p,
    #mainContent .lead {
        text-align: center !important;
    }

    /* ── Center buttons ── */
    #mainContent .btn {
        display: inline-flex;
        justify-content: center;
    }
    #mainContent .hero-actions,
    #mainContent .cta-buttons {
        justify-content: center !important;
        text-align: center;
    }

    /* ── Center button parent containers ── */
    #mainContent .col-lg-6,
    #mainContent .col-lg-8,
    #mainContent .col-md-6,
    #mainContent .col-md-8 {
        text-align: center;
    }

    /* ── Center icons ── */
    #mainContent .feature-icon,
    #mainContent .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* ── Center card content ── */
    #mainContent .card-body {
        text-align: center;
    }

    /* ── Center section tags ── */
    #mainContent .section-tag {
        display: block;
        text-align: center;
    }

    /* ── Center title underline decoration ── */
    #mainContent .title-underline,
    #mainContent .title-underline-left {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ── Center flex containers in content area (not navbar) ── */
    #mainContent .d-flex:not(.align-items-center):not(.nav) {
        justify-content: center;
    }

    /* ── Exclude forms from centering ── */
    #mainContent form,
    #mainContent form p,
    #mainContent form label,
    #mainContent .form-group,
    #mainContent .form-label,
    #mainContent .form-control,
    #mainContent .form-select,
    #mainContent form h1,
    #mainContent form h2,
    #mainContent form h3,
    #mainContent form h4,
    #mainContent form h5,
    #mainContent form h6 {
        text-align: left !important;
    }

    /* ── Exclude tables from centering ── */
    #mainContent table,
    #mainContent table th,
    #mainContent table td,
    #mainContent .table-custom {
        text-align: left !important;
    }
}

/* ============================================================
   INDUSTRY PAGES — Dedicated Industry Page Styles
   ============================================================ */

/* ── Industry Hero Banner ── */
.industry-hero {
    height: 60vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.industry-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,25,47,0.75) 0%, rgba(10,25,47,0.85) 100%);
}

/* ── Industry Service Cards ── */
.industry-service-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.industry-service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.industry-service-icon i {
    font-size: 1.8rem;
    color: var(--color-navy);
}

/* ── Industry Image Gallery ── */
.industry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,25,47,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay i {
    font-size: 2rem;
    color: var(--color-gold);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item-tall {
    grid-row: span 2;
}
.gallery-item-wide {
    grid-column: span 2;
}

/* ── Industry Statistics Section ── */
.industry-stats-section {
    background: var(--color-navy);
    padding: 4rem 0;
}
.industry-stat-item {
    padding: 1.5rem;
}
.industry-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}
.industry-stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Industry Gallery Responsive ── */
@media (max-width: 991.98px) {
    .industry-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-item-wide {
        grid-column: span 1;
    }
}
@media (max-width: 575.98px) {
    .industry-hero {
        height: 50vh;
        min-height: 350px;
        background-attachment: scroll;
    }
    .industry-hero h1 {
        font-size: 2rem !important;
    }
    .industry-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-item-tall {
        grid-row: span 1;
    }
    .gallery-item-wide {
        grid-column: span 1;
    }
    .industry-stat-number {
        font-size: 1.8rem;
    }
    .industry-stat-label {
        font-size: 0.8rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ══════════════════════════════════════════════════════════════ */
#imageLightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}
#imageLightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
#imageLightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}
#imageLightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}
#imageLightbox .lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease;
}
#imageLightbox .lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}
#imageLightbox .lightbox-close:hover {
    color: var(--color-gold, #FFB800);
}
#imageLightbox .lightbox-prev,
#imageLightbox .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease;
}
#imageLightbox .lightbox-prev { left: 20px; }
#imageLightbox .lightbox-next { right: 20px; }
#imageLightbox .lightbox-prev:hover,
#imageLightbox .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-gold, #FFB800);
}
#imageLightbox .lightbox-caption {
    color: #ccc;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    max-width: 80vw;
}

/* Hide nav arrows when only one image */
#imageLightbox.single-image .lightbox-prev,
#imageLightbox.single-image .lightbox-next {
    display: none;
}

@media (max-width: 575.98px) {
    #imageLightbox .lightbox-prev,
    #imageLightbox .lightbox-next {
        padding: 10px 14px;
        font-size: 22px;
    }
    #imageLightbox .lightbox-prev { left: 8px; }
    #imageLightbox .lightbox-next { right: 8px; }
    #imageLightbox .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }
}

/* ===== INCREASE HEADER HEIGHT ON DESKTOP ===== */
@media (min-width: 992px) {
    #mainNavbar {
        padding: 1rem 0;
    }
    #mainNavbar.scrolled {
        padding: .65rem 0;
    }
    .navbar-brand-logo {
        height: 50px !important;
    }
    .portal-topbar,
    .admin-topbar {
        height: 70px;
    }
}

/* ===== MOBILE HORIZONTAL SCROLL ===== */
@media (max-width: 767.98px) {
    /* Allow horizontal scrolling on mobile to view overflow content */
    .admin-main,
    .portal-main {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure tables are scrollable */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure content doesn't get clipped */
    .card-body {
        overflow-x: auto;
    }
}

