@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-dark: #34495e;
    --accent-color: #ff9f43;
    --food-green: #6ab04c;
    --food-red: #eb4d4b;
    --food-purple: #9b59b6;
    --food-yellow: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-dark);
    line-height: 1.6;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(3%, -15%); }
    50% { transform: translate(12%, 9%); }
    70% { transform: translate(9%, 4%); }
    90% { transform: translate(-1%, 7%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Erugah Template Navbar - Exact Match */
.navbar {
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    transition: 0.5s;
}

/* Sticky Navbar for Scroll Visibility */
.navbar.sticky-top {
    background-color: #ffffff !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FEA116 !important;
    margin: 0;
    transition: 0.5s;
}

.navbar-brand i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 20px 0;
    font-size: 15px;
    color: #F1F8FF !important;
    text-transform: uppercase;
    font-weight: 500;
    outline: none;
    transition: 0.5s;
    font-family: 'Inter', sans-serif;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #FEA116 !important;
}

/* Smaller font for home page admin links */
.navbar-dark .navbar-nav .nav-link-sm {
    font-size: 12px;
    margin-left: 15px;
    padding: 15px 0;
}

.navbar-dark .navbar-toggler {
    border-color: #F1F8FF;
    color: #F1F8FF !important;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F1F8FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-family: 'Inter', sans-serif !important;
}

.nav-link i {
    margin-right: 0.4rem;
    transition: transform 0.3s ease;
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }
}

/* Erugah Button Styling */
.btn-primary {
    background: #FEA116 !important;
    border: none !important;
    color: #FFFFFF !important;
    transition: 0.5s;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
}

.btn-primary:hover {
    background: #FEA116 !important;
    opacity: 0.9;
    box-shadow: 0 0 0 0.2rem rgba(254, 161, 22, 0.5);
    transform: translateY(-2px);
}

.btn-primary:focus {
    background: #FEA116 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 161, 22, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
    border: none;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
}

.btn-success:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
    background-position: right center;
}

.btn-outline-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline-secondary:hover::before {
    left: 0;
}

.btn-outline-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-danger,
.btn-warning,
.btn-info,
.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4) !important;
}

.btn-danger:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-secondary:focus {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5) !important;
}

.btn-add,
.btn-remove,
.btn-submit,
.btn-approve,
.btn-reject,
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-add:hover,
.btn-remove:hover,
.btn-submit:hover,
.btn-approve:hover,
.btn-reject:hover,
.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-add:focus,
.btn-remove:focus,
.btn-submit:focus,
.btn-approve:focus,
.btn-reject:focus,
.btn-primary-gradient:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5);
}

.card {
    border: none;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    background: white;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400%;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: shimmer 8s linear infinite;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 25px;
}

.card-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Modern Hero Section */
.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    margin-top: -76px;
    padding-top: 76px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -3%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: slideInLeft 1s ease-out;
}

/* Hero Header Group */
.hero-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    animation: fadeInDown 0.8s ease-out 0.2s both;
    align-self: flex-start;
}

.badge-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-accent {
    display: block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.title-sub {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Hero Description Group */
.hero-description-section {
    margin: 0.5rem 0;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    max-width: 500px;
}

.hero-description strong {
    color: #ff6b35;
    font-weight: 700;
}

/* Hero Features Group */
.hero-features-section {
    margin: 0.5rem 0;
}

.features-header {
    margin-bottom: 1.5rem;
}

.features-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Hero Actions Group */
.hero-actions-section {
    margin: 0.5rem 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 56px;
}

.primary-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.cta-arrow,
.cta-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.primary-cta:hover .cta-arrow {
    transform: translateX(3px);
}

/* Social Proof */
.hero-social-proof {
    margin-top: 1rem;
}

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hero Stats Group */
.hero-stats-section {
    margin: 0.5rem 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.stat-bar {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
    opacity: 0.7;
}

.hero-visual-section {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #6ab04c 100%);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.card-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.step-item.active {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: #ff6b35;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step-content h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.testimonial-card {
    position: absolute;
    bottom: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideInUp 1s ease-out 0.5s both;
}

.testimonial-stars {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-content p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.author-title {
    color: #666;
    font-size: 0.75rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text-section {
        gap: 2rem;
    }

    .hero-visual-section {
        order: -1;
    }

    .testimonial-card {
        position: static;
        margin-top: 2rem;
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-description {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-text-section {
        gap: 1.5rem;
        text-align: center;
    }

    .hero-header {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .hero-features {
        align-items: stretch;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
        gap: 1rem;
    }

    .hero-stats {
        justify-content: space-around;
        gap: 1rem;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 0.75rem;
    }

    .hero-text-section {
        gap: 1.25rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .feature-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .stat-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
}

.display-4 {
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
    animation: slideIn 0.8s ease-out;
}

.lead {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 400;
    animation: slideIn 1s ease-out;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: pulse 2s ease-in-out infinite;
}

.feature-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.how-it-works-item {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.how-it-works-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.how-it-works-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.how-it-works-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(247, 147, 30, 0.03));
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.how-it-works-item i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    color: white;
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 45px rgba(255, 107, 53, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    animation: grain 20s linear infinite;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(-1deg);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.6);
    background-position: right center;
}

.stats-card h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.stats-card h5 {
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    padding: 0.85rem 1.2rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.15), 0 8px 20px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, var(--dark-color), #1a252f);
    color: white;
}

.table thead th {
    border: none;
    padding: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table tbody td {
    padding: 1.2rem;
    vertical-align: middle;
}

.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

.alert {
    border: none;
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(76, 209, 55, 0.12));
    color: #27ae60;
    border-left: 5px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(235, 77, 75, 0.12));
    color: #c0392b;
    border-left: 5px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.12), rgba(255, 159, 67, 0.12));
    color: #e67e22;
    border-left: 5px solid var(--secondary-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(41, 128, 185, 0.12));
    color: #2980b9;
    border-left: 5px solid #3498db;
}

footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a252f 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0;
    margin-top: 5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grain 15s linear infinite;
}

footer p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.chef-card {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chef-card::before {
    content: '👨‍🍳';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    top: -3rem;
    right: -3rem;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.chef-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.chef-card .card-footer {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
    border-top: none;
    padding: 1.8rem;
}

.menu-item-card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.menu-item-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.payment-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--food-green), #4cd137);
    color: white;
    box-shadow: 0 15px 45px rgba(106, 176, 76, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.payment-icon.pending {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 15px 45px rgba(247, 147, 30, 0.4);
}

.payment-icon.failed {
    background: linear-gradient(135deg, var(--danger-color), var(--food-red));
    box-shadow: 0 15px 45px rgba(231, 76, 60, 0.4);
}

.section-title {
    position: relative;
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.food-pattern {
    position: relative;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    color: white;
    padding: 2.5rem;
    border-radius: 25px;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 45px rgba(255, 107, 53, 0.4);
    animation: slideIn 0.6s ease-out, shimmer 8s linear infinite;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: grain 15s linear infinite;
}

.page-header h2 {
    margin: 0;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
    border-left: 5px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.info-card strong {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-sm {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-sm:hover {
    transform: translateY(-3px) scale(1.05);
}

.table-responsive {
    border-radius: 20px;
    overflow: hidden;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.15rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
    }
    
    .hero-section small {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
        border-radius: 25px;
    }
    
    .stats-card h2 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .feature-image-card {
        height: 250px;
    }
    
    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .food-gallery-item {
        height: 220px;
    }
    
    .food-gallery-item::after {
        font-size: 1.2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-page {
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .hero-section small {
        font-size: 0.75rem;
        display: block;
        line-height: 1.8;
    }
    
    .hero-section small i {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .feature-image-card {
        height: 200px;
        margin-bottom: 2rem;
    }
    
    .food-gallery {
        grid-template-columns: 1fr;
    }
    
    .food-gallery-item {
        height: 250px;
    }
    
    .food-gallery-item::after {
        font-size: 1.1rem;
    }
    
    .stats-card {
        padding: 2rem;
    }
    
    .stats-card h2 {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.food-emoji {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    font-size: 1.2em;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.feature-image-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-image-card:hover img {
    transform: scale(1.1);
}

.feature-image-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(247, 147, 30, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-image-card:hover .overlay {
    opacity: 1;
}

.feature-image-card .overlay h4 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05)),
                url('/static/images/pexels-kyleroxas-2122294.jpg') center/cover fixed;
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    animation: slideIn 0.6s ease-out;
    position: relative;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c, #9b59b6, #3498db);
    background-size: 300% auto;
    animation: shimmer 4s linear infinite;
    clip-path: polygon(0% 100%, 10% 80%, 20% 100%, 30% 80%, 40% 100%, 50% 80%, 60% 100%, 70% 80%, 80% 100%, 90% 80%, 100% 100%);
    z-index: 1;
}

.auth-card .card-title {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff9f43, #ff6b35);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.auth-card .text-muted {
    color: rgba(108, 117, 125, 0.9);
    font-weight: 500;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.dashboard-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.food-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.food-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.food-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.food-gallery-item::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(247, 147, 30, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.food-gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.food-gallery-item:hover img {
    transform: scale(1.15);
}

.food-gallery-item:hover::after {
    opacity: 1;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Form field animations and styling */
.form-control {
	font-size: 0.9rem;
	transition: all 0.3s ease;
	border: 2px solid #e9ecef;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
	animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
	from {
		box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
	}
	to {
		box-shadow: 0 0 0 0.3rem rgba(255, 107, 53, 0.5);
	}
}

.form-floating > label {
	font-size: 0.85rem;
	transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
	color: var(--primary-color);
	transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.auth-card h2 {
	font-size: 1.8rem;
}

.auth-card p {
	font-size: 0.95rem;
}

/* Modern Login Modal Styles */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1)),
                url('/static/images/pexels-kyleroxas-2122294.jpg') center/cover;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    display: none;
    animation: fadeInBackdrop 0.3s ease-out;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1051;
    padding: 1rem;
}

.modal-content-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header-custom {
    padding: 1.5rem 2rem 0;
    display: flex;
    justify-content: flex-end;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    transform: rotate(90deg);
}

.modal-body-custom {
    padding: 0 2rem 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.auth-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 500px;
}

.brand-section {
    text-align: center;
    padding: 2rem 0;
}

.brand-icon {
    margin-bottom: 2rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff9f43);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
}

.icon-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff9f43);
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff9f43);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: shimmer 4s linear infinite;
}

.brand-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.form-section {
    padding: 2rem 0;
}

.login-form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
    color: transparent;
}

.form-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    z-index: 2;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0.5rem;
    left: 3rem;
    font-size: 0.85rem;
    color: #ff6b35;
    font-weight: 600;
}

.input-wrapper.focused .input-icon {
    color: #ff6b35;
    transform: translateY(-50%) scale(1.1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff9f43);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.form-input:focus ~ .input-border {
    transform: scaleX(1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.form-actions {
    margin-top: 2rem;
}

.login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff9f43);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    background-position: right center;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-loader {
    position: relative;
    z-index: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.auth-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

.auth-link:hover {
    color: #e55a2b;
}

.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1051;
    padding: 1rem;
}

.register-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60, #229954);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.register-btn:hover::before {
    width: 300px;
    height: 300px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    background-position: right center;
}

.register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-link-secondary {
    color: #f7931e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f7931e;
    transition: width 0.3s ease;
}

.auth-link-secondary:hover::after {
    width: 100%;
}

.auth-link-secondary:hover {
    color: #e67e22;
}

/* Chef Registration Modal Styles */
.chef-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1051;
    padding: 1rem;
}

.chef-modal-content {
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
}

.chef-auth-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
    min-height: 600px;
}

.chef-brand-section {
    text-align: center;
    padding: 2rem 0;
    position: sticky;
    top: 0;
}

.chef-form-section {
    padding: 2rem 0;
    max-height: 80vh;
    overflow-y: auto;
}

.chef-form {
    max-width: 100%;
}

.form-section-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.form-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.section-title {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.meal-limit {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 1;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.form-textarea + .form-label {
    top: 1rem;
}

.meals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.meal-input-wrapper {
    position: relative;
}

.meal-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.meal-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.chef-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22, #d35400);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chef-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.chef-btn:hover::before {
    width: 300px;
    height: 300px;
}

.chef-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    background-position: right center;
}

.chef-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design for Chef Modal */
@media (max-width: 1024px) {
    .chef-auth-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chef-brand-section {
        position: static;
        padding: 1rem 0;
    }

    .chef-modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .form-section-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half,
    .form-group.third {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .chef-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-body-custom {
        padding: 0 1rem 1rem;
    }

    .form-section-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title::before {
        width: 3px;
        height: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .modal-content-custom {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-body-custom {
        padding: 0 1.5rem 1.5rem;
    }

    .login-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content-custom {
        margin: 0.5rem;
        border-radius: 16px;
    }

    .modal-body-custom {
        padding: 0 1rem 1rem;
    }

    .brand-section {
        padding: 1rem 0;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .auth-section {
        min-height: 400px;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --primary-color: #ff6b35;
        --secondary-color: #f7931e;
    }

    body {
        line-height: 1.5;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 0;
        padding: 8px 0;
        font-size: 13px;
    }

    .display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.75rem);
    }

    h4 {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    h5, h6 {
        font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    }

    .lead {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    p {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .btn, button, .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        min-width: unset;
    }

    .btn-lg {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .card {
        border-radius: 15px;
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }

    .form-control, .form-select, .form-input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
    }

    .table thead th {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .table tbody td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .modal-content-custom {
        margin: 0.5rem;
        border-radius: 15px;
        max-height: 95vh;
    }

    .modal-body-custom {
        padding: 0 1rem 1rem;
        max-height: calc(95vh - 60px);
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .auth-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .brand-subtitle {
        font-size: 0.95rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-card h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
    }

    .page-header {
        padding: 1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .food-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .food-gallery-item {
        height: 200px;
    }

    .feature-image-card {
        height: 200px;
    }

    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }

    .chef-modal-content {
        max-height: 95vh;
    }

    .form-section-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Touch-friendly spacing for mobile */
    button, a.btn, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    .input-wrapper {
        margin-bottom: 1rem;
    }

    .form-input {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .login-btn, .register-btn, .chef-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .how-it-works-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .menu-item-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .chef-card {
        margin-bottom: 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* Small Devices (481px - 640px) */
@media (max-width: 640px) and (min-width: 481px) {
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.9rem);
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    .form-control {
        padding: 0.8rem 1.2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .stats-card h2 {
        font-size: 2rem;
    }

    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .page-header {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }
}

/* Medium Devices (641px - 768px) */
@media (max-width: 768px) and (min-width: 641px) {
    h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    h2 {
        font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.85rem 1.8rem;
    }

    .card-body {
        padding: 1.75rem;
    }

    .stats-card h2 {
        font-size: 2.2rem;
    }

    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* Tablets/Landscape Small (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 15px;
        padding: 15px 0;
        font-size: 14px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
    }

    .stats-card {
        padding: 2rem;
    }

    .auth-section {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .card-body {
        padding: 2rem;
    }

    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .how-it-works-item {
        padding: 1.5rem;
    }
}

/* Large Devices (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container-lg {
        max-width: 1140px;
    }

    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    .hero-content {
        gap: 3rem;
    }
}

/* Extra Large Devices (1281px and up) */
@media (min-width: 1281px) {
    .container-xl {
        max-width: 1320px;
    }

    .food-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* Responsive Images */
img, .img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead {
        font-size: 0.8rem;
    }

    .table thead th {
        padding: 0.5rem;
    }

    .table tbody td {
        padding: 0.5rem;
        word-break: break-word;
    }

    .table tbody tr {
        margin-bottom: 0.5rem;
    }

    table.stack {
        width: 100% !important;
    }

    table.stack thead {
        display: none;
    }

    table.stack tbody,
    table.stack tr,
    table.stack td {
        display: block;
        width: 100%;
    }

    table.stack tr {
        margin-bottom: 1.5rem;
    }

    table.stack td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table.stack td:before {
        content: attr(data-title);
        position: absolute;
        left: 6px;
        font-weight: bold;
        text-align: left;
    }
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-check {
        margin-bottom: 0.75rem;
    }

    .form-check-input {
        margin-top: 0.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        flex: 1 0 100%;
    }

    label {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: 0.5rem;
    }

    .invalid-feedback,
    .valid-feedback {
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal-content-custom {
        margin: 1rem;
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-body-custom {
        padding: 1rem;
    }

    .modal-header-custom {
        padding: 1rem;
    }
}

/* Responsive Text Utilities */
.text-responsive {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.text-title-responsive {
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1.2;
}

.text-subtitle-responsive {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.4;
}

/* Responsive Spacing Utilities */
@media (max-width: 768px) {
    .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .px-md {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-md {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .px-lg {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .py-lg {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .modern-hero {
        min-height: auto;
        padding: 3rem 0;
        margin-top: -60px;
    }

    .hero-visual-section {
        order: -1;
    }

    .testimonial-card {
        position: static;
        margin-top: 2rem;
        max-width: 100%;
    }

    .hero-badge {
        align-self: center;
    }
}

/* Responsive Flexbox Utilities */
@media (max-width: 768px) {
    .flex-md-column {
        flex-direction: column;
    }

    .flex-md-wrap {
        flex-wrap: wrap;
    }
}

/* Responsive Grid Utilities */
@media (max-width: 768px) {
    .grid-cols-auto {
        grid-template-columns: 1fr;
    }

    .grid-gap-2 {
        gap: 1rem;
    }

    .grid-gap-3 {
        gap: 1.5rem;
    }
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Responsive Navbar Brand */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand i {
        margin-right: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Print Responsive */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .no-print,
    .navbar,
    .footer {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    img {
        max-width: 100%;
    }

    a[href]:after {
        content: none !important;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .card-body {
        padding: 1rem;
    }
}
