/* ========================================
   OccaServe - Professional Catering Platform
   Premium Slate & Vibrant Orange Palette
   ======================================== */

/* ===== GLOBAL RESPONSIVE ALERTS ===== */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.alert-info {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

@media (max-width: 768px) {
    .alert {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.25rem 1rem !important;
        gap: 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 1rem !important;
    }

    .alert i {
        font-size: 1.25rem;
    }

    .alert button,
    .alert .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

:root {
    /* ===== PREMIUM PALETTE ===== */
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #171717;
    /* Replaced slate blue with pure charcoal */
    --accent-color: #fb923c;
    --background-soft: #fafafa;
    --text-color: #171717;
    /* Replaced slate blue with pure charcoal */
    --text-light: #737373;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(249, 115, 22, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Typography Refinement */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(53, 94, 56, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(1, 68, 33, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--background-light);
    border-color: var(--olive);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.btn-text {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.btn-text-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text-arrow:hover {
    gap: 0.75rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-white:hover {
    background-color: #f0f0f0;
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 0.375rem;
    display: inline-block;
    margin-top: 1rem;
}

.btn-sm:hover {
    background-color: var(--evergreen);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--sand);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 72px;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

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

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--sand);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.lang-selector {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(1, 50, 32, 0.6), rgba(53, 94, 56, 0.5)), url('https://images.unsplash.com/photo-1555244162-803834f70033?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-container {
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== CATERERS GRID ===== */
.caterers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.caterer-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

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

.caterer-logo img {
    width: 110px;
    height: 110px;
    border-radius: 2.5rem;
    object-fit: cover;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

.caterer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--background-soft);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HOW IT WORKS ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    padding-top: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 90px;
    height: 90px;
    background-color: var(--background-soft);
    color: var(--secondary-color);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin: 0 auto 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(1, 50, 32, 0.08);
}

.step:hover .step-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-10px) rotate(5deg);
}

.step h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.step p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

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

.review {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
}

.review::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    object-fit: cover;
}

.reviewer h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.stars {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--white);
    padding: 7rem 0;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-45deg);
    pointer-events: none;
}

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

.cta-content h2 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: var(--transition);
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--background-soft);
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-col p {
    color: #c0cbb8;
    /* lighter sand tint */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #c0cbb8;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: 0.2s;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-facebook {
    background-color: #1877f2;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-instagram:hover {
    opacity: 0.9;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

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

.auth-divider span {
    padding: 0 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== AUTH & FORMS ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.auth-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition);
    font-size: 1rem;
    background-color: var(--background-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(53, 94, 56, 0.1);
    background-color: var(--white);
}

.btn-auth {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}
.occ-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 9999;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000; /* High priority */
        background: rgba(15, 23, 42, 0.45); /* Deep slate with glass alpha */
        display: none;
        align-items: center;
        justify-content: center;
        padding: 2.5rem;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

    .occ-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .occ-modal-box {
        background: var(--modal-glass-bg);
        border-radius: 1.5rem;
        width: 100%;
        max-width: 720px;
        max-height: 90vh;
        min-height: 0;
        /* Important for flex-child scrolling */
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: var(--modal-border);
        box-shadow: var(--modal-shadow);
        transform: translateY(20px) scale(0.96);
        opacity: 0;
        transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        position: relative;
        z-index: 3001;
        pointer-events: auto !important;
        will-change: transform, opacity;
    }

    /* Fix for modals using forms: Ensure the form fills the box and allows the body to scroll */
    .occ-modal-box>form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        height: 100%;
        width: 100%;
        pointer-events: auto;
    }

    .occ-modal-overlay.active .occ-modal-box {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* ─── Entry Animation Variants ─── */
    .occ-content-pop {
        transform: scale(0.88) translateY(10px);
    }

    .occ-content-slide-down {
        transform: translateY(-50px) scale(0.98);
    }

    .occ-content-slide-right {
        transform: translateX(50px) scale(0.98);
    }

    .occ-content-slide-up {
        transform: translateY(50px) scale(0.98);
    }

    .occ-modal-overlay.active .occ-modal-box.occ-content-pop,
    .occ-modal-overlay.active .occ-modal-box.occ-content-slide-down,
    .occ-modal-overlay.active .occ-modal-box.occ-content-slide-right,
    .occ-modal-overlay.active .occ-modal-box.occ-content-slide-up {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    .occ-modal-header {
        padding: 1.5rem 2.5rem;
        background: var(--modal-header-bg);
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .occ-modal-title {
        margin: 0;
        font-size: var(--text-xl);
        font-weight: 800;
        color: #0f172a;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        letter-spacing: -0.01em;
    }

    .occ-modal-subtitle {
        font-size: var(--text-sm);
        color: #64748b;
        margin-top: 0.25rem;
        font-weight: 400;
    }

    .occ-modal-close {
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        cursor: pointer;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

    .occ-modal-close:hover {
        background: #fee2e2;
        color: #ef4444;
        transform: rotate(90deg);
    }

    .occ-modal-body {
        padding: var(--modal-body-padding);
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--modal-gap);
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .occ-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .occ-modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .occ-modal-body::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 10px;
    }

    .occ-modal-body::-webkit-scrollbar-thumb:hover {
        background: #cbd5e1;
    }

    .occ-modal-footer {
        padding: 1.5rem 2.5rem;
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.25rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    /* Professional Utility: Center buttons for specific modals */
    .occ-modal-footer.modal-footer-centered {
        justify-content: center;
    }

    /* ─── Premium Modal Button Standardization (Applied Globally) ─── */
    .occ-modal-footer .btn-primary,
    .occ-modal-footer .btn-primary-pro,
    .occ-modal-footer button[type="submit"],
    .occ-modal-footer button:not(.btn-secondary):not(.btn-secondary-pro):not([onclick*="closeModal"]):not([onclick*="hide"]) {
        background: var(--secondary-color) !important;
        color: white !important;
        padding: 0 1.75rem !important;
        border-radius: 8px !important;
        font-weight: 800 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: inherit !important;
    }

    .occ-modal-footer .btn-primary:hover,
    .occ-modal-footer .btn-primary-pro:hover,
    .occ-modal-footer button[type="submit"]:hover,
    .occ-modal-footer button:not(.btn-secondary):not(.btn-secondary-pro):not([onclick*="closeModal"]):not([onclick*="hide"]):hover {
        transform: translateY(-2px) scale(1.02) !important;
        filter: brightness(1.1) !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .occ-modal-footer .btn-secondary,
    .occ-modal-footer .btn-secondary-pro,
    .occ-modal-footer button[onclick*="closeModal"],
    .occ-modal-footer button[onclick*="hide"] {
        background: #f8fafc !important;
        color: var(--primary-color) !important;
        padding: 0 1.75rem !important;
        border-radius: 8px !important;
        font-weight: 800 !important;
        border: 2px solid var(--primary-color) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: inherit !important;
    }

    .occ-modal-footer .btn-secondary:hover,
    .occ-modal-footer .btn-secondary-pro:hover,
    .occ-modal-footer button[onclick*="closeModal"]:hover,
    .occ-modal-footer button[onclick*="hide"]:hover {
        background: rgba(var(--primary-color-rgb, 239, 68, 68), 0.1) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }

    .occ-modal-footer.modal-footer-balanced {
        justify-content: space-between;
    }

    /* Modal Form Grid */
    .occ-form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .occ-form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .occ-form-group.full-width {
        grid-column: span 2;
    }

    .occ-form-label {
        font-size: var(--text-sm);
        font-weight: 700;
        color: #475569;
    }

    .occ-form-input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.75rem;
        font-family: inherit;
        font-size: var(--text-base);
        transition: all 0.2s;
        background: #ffffff;
    }

    .occ-form-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
    }

    /* Size Variants */
    .occ-modal-box.sz-sm {
        max-width: 480px;
    }

    .occ-modal-box.sz-md {
        max-width: 640px;
    }

    .occ-modal-box.sz-lg {
        max-width: 850px;
    }

    .occ-modal-box.sz-xl {
        max-width: 1100px;
    }

    /* ─── Mobile Responsiveness (Floating Bottom Sheet) ─── */
    @media (max-width: 640px) {
        .occ-modal-overlay {
            padding: 1rem;
            align-items: flex-end;
            justify-content: center;
        }

        .occ-modal-box {
            border-radius: 1.5rem;
            max-height: 85vh;
            width: 100%;
            max-width: 420px;
            margin-bottom: 0.5rem;
            /* Slight float from bottom */
            transform: translateY(105%);
            transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .occ-modal-overlay.active .occ-modal-box {
            transform: translateY(0);
        }

        /* Animation overrides for mobile sheet */
        .occ-content-pop,
        .occ-content-slide-down,
        .occ-content-slide-right,
        .occ-content-slide-up {
            transform: translateY(100%);
        }

        .occ-modal-overlay.active .occ-modal-box.occ-content-pop,
        .occ-modal-overlay.active .occ-modal-box.occ-content-slide-down,
        .occ-modal-overlay.active .occ-modal-box.occ-content-slide-right,
        .occ-modal-overlay.active .occ-modal-box.occ-content-slide-up {
            transform: translateY(0);
        }

        .occ-modal-body {
            padding: 1.25rem 1.5rem;
            gap: 1.25rem;
        }

        .occ-modal-header {
            padding: 1.25rem 1.5rem;
        }

        .occ-modal-footer {
            padding: 1.25rem 1.5rem;
        }

        .occ-form-grid {
            grid-template-columns: 1fr;
        }

        .occ-form-group.full-width {
            grid-column: span 1;
        }
    }

    /* SweetAlert2 Mobile Override */
    @media (max-width: 640px) {
        div.swal2-popup {
            width: 90% !important;
            max-width: 360px !important;
            border-radius: 1.5rem !important;
            padding: 1.25em !important;
        }
    }

    /* ─── Validation UI ─── */
    
