/* ============================================
   Taiba Leicester - Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    /* Colors */
    --primary: #5F255F;
    --primary-dark: #4C1E4C;
    --primary-light: #7A3A7A;
    --gold: #C5A059;
    --gold-light: #E5C585;
    --gold-dark: #A58540;
    --cream: #FDFBF7;
    --cream-dark: #F5F0E6;
    --white: #FFFFFF;
    --black: #000000;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-300: #D6D3D1;
    --stone-400: #A8A29E;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --stone-700: #44403C;
    --stone-800: #292524;
    --stone-900: #1C1917;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px rgba(95, 37, 95, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

/* Smooth scroll only for anchor links */
html:focus-within {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--stone-800);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ---- Utility Classes ---- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

.bg-white { background-color: var(--white); }
.bg-cream { background-color: var(--cream); }
.bg-primary { background-color: var(--primary); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ---- Section Styles ---- */
.section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

.section-header {
    margin-bottom: 48px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--stone-900);
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.98);
	height: 75px;
}

.header.scrolled .nav {
    height: 64px;
    transition: height 0.3s ease;
}


.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--stone-700);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary);
}

.nav-phone i {
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger animates to X when mobile menu is open */
body.menu-open .hamburger {
    background-color: transparent;
}
body.menu-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}
body.menu-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 1024px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    transition: var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--stone-100);
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--stone-600);
}

.mobile-nav {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--stone-700);
    border-bottom: 1px solid var(--stone-100);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav .btn {
    margin-top: 16px;
}

.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid var(--stone-100);
    margin-top: auto;
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 8px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.hero-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.hero-nav.prev { left: 24px; }
.hero-nav.next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
    padding: 16px;
    background-clip: content-box;
    margin: -16px;
}

.hero-dot.active {
    width: 32px;
    border-radius: 6px;
    background-color: var(--gold);
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-nav {
        display: none;
    }
}

/* ---- Page Hero (for inner pages) ---- */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(95, 37, 95, 0.7), rgba(95, 37, 95, 0.5));
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

.page-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--gold);
}

.page-hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-top: 8px;
}

.page-hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--cream);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background-color: rgba(95, 37, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--stone-500);
}

/* ---- Cards ---- */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(95, 37, 95, 0.8), transparent);
}

.card-title {
    font-size: 1.5rem;
    color: var(--white);
}

/* Card title variant for normal (white) cards */
.card-title-dark {
    font-size: 1.5rem;
    color: var(--stone-900);
}

.card-body {
    padding: 24px;
}

/* Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Gallery ---- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 24px;
    font-weight: 500;
    color: var(--stone-700);
    background-color: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-info {
    color: var(--white);
}

.gallery-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-item-category {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: capitalize;
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--white);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 16px;
}

.lightbox-caption p {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.lightbox-caption span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--stone-700);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    background-color: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(95, 37, 95, 0.1);
}

.form-control::placeholder {
    color: var(--stone-400);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ---- Footer ---- */
.footer {
    background-color: var(--primary);
    color: var(--white);
}

.footer-reviews {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.review-stars {
    margin-bottom: 16px;
}

.review-stars i {
    color: var(--gold);
    font-size: 1rem;
}

.review-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(197, 160, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
}

.review-name {
    display: block;
    font-weight: 600;
}

.review-event {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-main {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

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

.footer-social a:hover {
    background-color: var(--gold);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
    color: var(--white);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-contact ul li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact ul li i {
    color: var(--gold);
    margin-top: 4px;
}

.footer-contact ul li a {
    opacity: 0.8;
    transition: var(--transition);
    color: var(--white);
}

.footer-contact ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 24px;
    font-weight: 500;
    color: var(--stone-700);
    background-color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- Menu Items Grid ---- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--cream);
    border-radius: var(--radius);
}

.menu-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold);
    flex-shrink: 0;
}

/* ---- Package Cards ---- */
.package-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.package-section:nth-child(even) {
    direction: rtl;
}

.package-section:nth-child(even) > * {
    direction: ltr;
}

@media (max-width: 1024px) {
    .package-section,
    .package-section:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

.package-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.package-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.package-content {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.package-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.package-desc {
    color: var(--stone-600);
    margin-bottom: 24px;
    line-height: 1.7;
}

.package-features {
    margin-bottom: 24px;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.package-features li i {
    color: var(--gold);
    margin-top: 4px;
}

/* ---- Contact Page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(95, 37, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    color: var(--primary);
    font-size: 1.25rem;
}

.contact-card-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card-text {
    font-size: 0.875rem;
    color: var(--stone-600);
}

.contact-card-text a {
    color: var(--primary);
}

.contact-card-text a:hover {
    color: var(--primary-dark);
}

.contact-map {
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-form-text {
    color: var(--stone-600);
    margin-bottom: 24px;
}

/* ---- Account Page ---- */
.account-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.account-logo {
    text-align: center;
    margin-bottom: 24px;
}

.account-logo img {
    height: 60px;
    margin: 0 auto;
}

.account-intro {
    text-align: center;
    color: var(--stone-600);
    margin-bottom: 32px;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.account-tab {
    padding: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    background-color: var(--stone-100);
    color: var(--stone-600);
    transition: var(--transition);
}

.account-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

.account-form-section {
    display: none;
}

.account-form-section.active {
    display: block;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--stone-400);
    font-size: 0.875rem;
}

.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--stone-200);
}

.account-link {
    text-align: center;
    margin-top: 24px;
    color: var(--stone-600);
}

.account-link a {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Account Dashboard (My Account - logged in) ---- */
.page-hero--compact {
    height: 26vh;
    min-height: 200px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .account-grid { grid-template-columns: 1fr; }
}

/* Make dashboard cards feel like clear sections */
.account-card--dashboard{
    padding: 24px;
    background: linear-gradient(180deg, var(--white), var(--stone-50));
    border: 1px solid var(--stone-200);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.card-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--stone-100);
}

.account-details {
    display: grid;
    gap: 10px;
}

.account-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: start;
}

@media (max-width: 700px) {
    .account-row { grid-template-columns: 1fr; }
}

.account-label {
    font-weight: 700;
    color: var(--stone-700);
}

.account-value {
    color: var(--stone-900);
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.card-actions {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.divider {
    border: none;
    border-top: 1px solid var(--stone-100);
    margin: 16px 0;
}

.subsection {
    margin-top: 14px;
}

/* Clear section headers */
.subsection-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
    font-weight: 800;
    color: var(--stone-900);
    margin: 12px 0 10px;
}

/* Visible divider between upcoming and past */
.orders-separator{
    height: 1px;
    background: var(--stone-200);
    margin: 16px 0;
}

.orders-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--stone-100);
    border-radius: var(--radius);
    background: var(--white);
}

.order-item:hover {
    border-color: var(--stone-200);
    transform: translateY(-1px);
}

.order-title {
    font-weight: 800;
    color: var(--stone-900);
}

.order-sub {
    margin-top: 2px;
    color: var(--stone-600);
    font-weight: 600;
}

.order-status {
    display: flex;
    align-items: center;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: .85rem;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.25);
    color: var(--stone-900);
}

.badge-danger {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.25);
    color: var(--stone-900);
}

.badge-warn {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.25);
    color: var(--stone-900);
}

/* ---- Admin Gallery ---- */
.admin-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 0;
    margin-top: 80px;
}

.admin-header h1 {
    color: var(--white);
    font-size: 1.5rem;
}

.admin-content {
    padding: 40px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-form-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.admin-form-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stone-100);
}

.file-upload {
    border: 2px dashed var(--stone-200);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background-color: rgba(95, 37, 95, 0.02);
}

.file-upload i {
    font-size: 3rem;
    color: var(--stone-300);
    margin-bottom: 16px;
}

.file-upload p {
    color: var(--stone-500);
}

.file-upload input {
    display: none;
}

.image-preview {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .admin-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.admin-gallery-item:hover .admin-gallery-overlay {
    opacity: 1;
}

.admin-gallery-info {
    color: var(--white);
    margin-bottom: 12px;
}

.admin-gallery-info p {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.admin-gallery-info span {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: capitalize;
}

.admin-gallery-actions {
    display: flex;
    gap: 8px;
}

.admin-gallery-actions button {
    padding: 8px 16px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-edit {
    background-color: var(--gold);
    color: var(--white);
}

.btn-delete {
    background-color: #dc2626;
    color: var(--white);
}

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* ---- Mobile Responsive Fixes ---- */
@media (max-width: 768px) {
    /* Events grid on Events page - Why Choose Us section */
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Features grid on Catering page */
    .section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Package section layout */
    .package-section {
        margin-bottom: 40px;
    }
    
    .package-content {
        padding: 24px;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Tabs on smaller screens */
    .tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Menu grid spacing */
    .menu-grid {
        gap: 12px;
    }
    
    .menu-item {
        padding: 12px;
    }
    
    /* Card padding adjustments */
    .card[style*="padding: 64px"] {
        padding: 32px 20px !important;
    }
    
    /* About image height */
    .about-image img {
        height: 300px !important;
    }
}

/* ---- Print Styles ---- */
@media print {
    .header,
    .footer,
    .back-to-top,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .page-hero {
        height: auto;
        min-height: auto;
        margin-top: 0;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* ---- Error States ---- */
.form-control.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ---- Success Message ---- */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---- Loading State ---- */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}





/* ======================================================
   LEGACY TABLE SUPPORT (merged from old CSS)
   Safe additive styles – does NOT override new layout
   ====================================================== */

/* Base table */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  font-family: OpenSans-Regular, Arial, sans-serif;
}

table tbody tr {
  height: 22px;
  vertical-align: middle;
}

/* Header cells */
.tableheader {
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
  background: #5F255F;
  border: 0;
  padding: 6px 8px;
}

/* Default table cell */
td {
  font-size: 15px;
  color: #ffffff;
  background: #00a3c9;
  padding: 6px 8px;
}

/* Cell variants */
.tabletd {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  background: #00b2dc;
}

.tabletd2 {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  background: #00a3c9;
}

.tabletd3 {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  background: #c80000;
}

.tabletd4 {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  background: darkgreen;
}

/* Optional table container background */
.tablebg {
  background: #FCE3FF;
  border: 1px solid #9F00FF;
  box-shadow: 2px 1px 5px #5700FF;
  padding: 5px;
}

/* ======================================================
   PRINT SUPPORT (table-focused only)
   ====================================================== */

@media print {

  table tbody tr {
    height: 18px;
  }

  th,
  .tableheader {
    height: 18px;
  }

  td {
    font-size: 13px !important;
    font-weight: bold !important;
  }

  .tabletd,
  .tabletd2,
  .tabletd3,
  .tabletd4 {
    background-color: #ffffff !important;
    color: #5d0400 !important;
  }
}

.aone{
width:50%;
}

.aonebig{
width:60%;
}

.asecond{
float:left !important;
width:47% !important;
}
.asecondgap{
float:left !important;
width:2% !important;
}

@media print and (color) {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* ======================================================
   MY ACCOUNT DASHBOARD (Logged-in page panels)
   Strong card background + overrides account-card max-width
   ====================================================== */

.account-card--dashboard{
    /* override the login card sizing rules */
    max-width: none !important;
    margin: 0 !important;

    /* strong visible panel */
    background: var(--white) !important;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    padding: 0 !important; /* we’ll pad inside header/body for cleaner look */
    overflow: hidden;
}

.account-panel-header{
    padding: 18px 20px;
    background: var(--white);
    border-bottom: 2px solid var(--gold);
}

.account-panel-title{
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--stone-900);
    margin: 0;
}

.account-panel-body{
    padding: 18px;
}

/* Make the two panels clearly separate and spaced */
.account-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 900px){
    .account-grid{ grid-template-columns: 1fr; }
}

/* Extra-strong section split between upcoming/past */
.orders-separator{
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
    margin: 24px 0;
}

/* Slightly stronger order row card */
.order-item{
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.order-item:hover{
    border-color: var(--stone-300);
    box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}

.account-card--dashboard{
    position: relative;
}

.account-card--dashboard::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}


/* ================================
   MY ACCOUNT – warmer, less dull
   (override at bottom of CSS)
   ================================ */

/* Make the main area feel warmer (not grey) */
.section.bg-cream{
  background: var(--cream) !important;
}

/* Remove any “grey panel” look from dashboard cards */
.account-card--dashboard{
  background: var(--white) !important;
  border: 1px solid rgba(197,160,89,0.35) !important; /* soft gold tint */
  box-shadow: 0 14px 40px rgba(0,0,0,0.08) !important;
}

/* Keep the gold underline (good) but ensure header is white */
.account-panel-header{
  background: var(--white) !important;
  border-bottom: 2px solid var(--gold) !important;
}

/* REMOVE the vertical gold strip if it exists */
.account-card--dashboard::before{
  display: none !important;
  content: none !important;
}

/* Upcoming/Past headings: remove grey bars, use clean text + gold underline */
.subsection-title{
  background: transparent !important;
  border: none !important;
  padding: 10px 0 !important;
  font-weight: 800;
  color: var(--stone-900);
  border-bottom: 1px solid rgba(197,160,89,0.55) !important;
  border-radius: 0 !important;
  margin: 16px 0 12px !important;
}

/* Divider between upcoming and past: thin gold fade (not grey slab) */
.orders-separator{
  height: 1px !important;
  background: linear-gradient(to right, transparent, var(--gold), transparent) !important;
  border: none !important;
  margin: 20px 0 !important;
}

/* Optional: slightly warmer order row backgrounds so it doesn’t feel clinical */
.order-item{
  background: #FFFEFC !important; /* tiny warm white */
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.order-item:hover{
  border-color: rgba(197,160,89,0.35) !important;
}





/* ============================================================
   MODERN DASHBOARD STYLES (Admin Area)
   ============================================================ */

/* 1. Main Grid Layout */
.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .admin-grid-layout { grid-template-columns: 1fr; }
}

/* 2. The Clean White Card */
.dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 0; /* padding handled by inner elements */
    overflow: hidden;
    margin-bottom: 24px;
}

/* Card Header (Purple Line) */
.dashboard-card-header {
    background: #fff;
    padding: 16px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #C5A059; /* Gold line */
}

/* Card Body */
.dashboard-card-body {
    padding: 20px;
}

/* 3. Modern Inputs & Buttons */
.modern-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}
.modern-input:focus {
    outline: none;
    border-color: #5F255F;
    box-shadow: 0 0 0 3px rgba(95, 37, 95, 0.1);
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #5F255F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn-modern:hover {
    background-color: #4C1E4C;
    color: #fff;
}

/* 4. Modern Table (Replaces the blue legacy table) */
.modern-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    min-width: 600px;
}

/* Header Row */
.modern-table td.modern-th {
    background-color: #5F255F !important;
    color: #fff !important;
    font-weight: 700;
    padding: 14px 16px;
    border: none;
    font-size: 1rem;
}
.modern-table td.modern-th a { color: #fff; text-decoration: none; }

/* Body Rows */
.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    background: #fff; /* White background */
    font-size: 0.95rem;
    vertical-align: middle;
}
.modern-table tr:hover td {
    background-color: #f9fafb; /* Light hover effect */
}

/* Links inside table */
.modern-table a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}
.modern-table a:hover {
    color: #5F255F;
    text-decoration: underline;
}

/* Status Dots (Kept exactly as you had them) */
.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.dot-gray { background-color: #bbb; }
.dot-yellow { background-color: yellow; }
.dot-purple { background-color: #7300ff; }
.dot-green { background-color: green; }

/* Form Layout Table (Invisible structure) */
.form-layout-table { width: 100%; border-collapse: collapse; background: transparent; }
.form-layout-table td { padding: 8px 0; border: none; background: transparent; color: #111; font-weight: 600; }
.form-layout-table td:first-child { width: 130px; }

/* Autocomplete List */
.ac-list {
    margin-top: 5px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
}
.ac-item { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.ac-item:hover { background-color: #f9fafb; }



/* ============================================================
   DONE / INACTIVE ROW STYLING
   ============================================================ */

/* 1. Force grey background and muted text for "Done" rows */
.modern-table tr.row-done td {
    background-color: #f3f4f6 !important; /* Light Grey */
    color: #9ca3af !important; /* Muted Text */
}

/* 2. Disable the hover effect for these rows */
.modern-table tr.row-done:hover td {
    background-color: #f3f4f6 !important; /* Stays Grey */
    cursor: default;
}

/* 3. Ensure links inside done rows are also muted */
.modern-table tr.row-done a {
    color: #6b7280; 
}
.modern-table tr.row-done a:hover {
    color: #5F255F; /* Allow hover on links only */
}

/* 4. Visual indicator for New rows */
.modern-table tr.row-new td:first-child {
    border-left: 4px solid #5F255F;
}


/* ============================================================
   STAFF & STRIKE STYLES (Added for Stafftimings.php)
   ============================================================ */

/* 1. Strike Badges (Pills) */
.badge-strike {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.badge-yellow { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.badge-orange { background: #FFEDD5; color: #9A3412; border-color: #FDBA74; }
.badge-red    { background: #FEE2E2; color: #B91C1C; border-color: #FCA5A5; }
.badge-status { background: #F3F4F6; color: #374151; border-color: #E5E7EB; }

/* 2. Availability Reason Dropdown (The tiny 'x' or info icon) */
.reason-details { display: inline-block; vertical-align: middle; margin-left: 6px; }
.reason-summary { cursor: pointer; list-style: none; color: #DC2626; font-weight: 800; }
.reason-summary::-webkit-details-marker { display: none; }

.reason-popup {
    margin-top: 6px;
    padding: 10px;
    background: #1f2937;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 6px;
    position: absolute;
    z-index: 50;
    max-width: 250px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 3. Staff Alerts (Success/Fail messages) */
.staff-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    border: 1px solid transparent;
}
.staff-alert-success { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.staff-alert-fail    { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }

/* 4. Last Updated Badge */
.last-update-pill {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #F3F4F6;
    color: #4B5563;
    font-weight: 600;
    margin-left: 8px;
}



/* ============================================================
   SECTION DIVIDERS (For Stafftimings.php)
   ============================================================ */

/* 1. Clear Divider between tools (e.g. between Countdown and Strikes) */
.tool-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb; /* Light grey line */
}
.tool-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 2. Sub-headers (The titles inside the card) */
.tool-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #5F255F; /* Purple to stand out */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}my
.tool-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f3f4f6; /* Subtle line after title */
}

/* 3. Reason/Note Box (Dark grey box for "Reason required") */
.info-box-dark {
    background: #1f2937;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; /* Hidden by default */
}


/* ============================================================
   STAFF TIMINGS - IMPROVED LAYOUT
   ============================================================ */

/* 1. Distinct Form Boxes (Grey areas for inputting data) */
.form-box {
    background-color: #f9fafb; /* Very light grey */
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

/* 2. Section Headers (Inside Cards) */
.section-header-inner {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5F255F;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Helper Text */
.helper-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
    font-style: italic;
}

/* 4. Split Layout for Forms (Label vs Input) */
.form-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; gap: 6px; }
}

/* 5. Label Styling */
.form-label-bold {
    font-weight: 700;
    color: #374151;
    font-size: 0.95rem;
}



/* ============================================================
   MY ACCOUNT STYLES (Modernized)
   ============================================================ */

/* 1. Account Details Rows (Name: Value) */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: 700;
    color: #57534E; /* Stone 600 */
}
.detail-value {
    font-weight: 600;
    color: #1C1917; /* Stone 900 */
    text-align: right;
}

/* 2. Admin Link Buttons (Grid of large buttons) */
.admin-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.admin-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}
.admin-link-card:hover {
    background: #fff;
    border-color: #5F255F;
    color: #5F255F;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.admin-link-badge {
    background: #DC2626;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 6px;
}

/* 3. Section Titles (Upcoming / Past Orders) */
.section-sub-header {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e5e7eb;
}


/* ============================================================
   MY ACCOUNT - LINK LIST STYLES
   ============================================================ */

/* Force links to be 1 per line (Stacked) */
.admin-link-stack {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between buttons */
}

/* The Button Style */
.admin-link-btn {
    display: flex;
    justify-content: space-between; /* Text left, icon right */
    align-items: center;
    padding: 14px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.admin-link-btn:hover {
    background: #fff;
    border-color: #5F255F;
    color: #5F255F;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateX(4px); /* Slight slide effect */
}

/* Badge for "New" counts */
.count-badge {
    background: #DC2626;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 800;
}



/* ============================================================
   MY ACCOUNT - FINAL POLISH
   ============================================================ */

/* 1. Admin Links: Single on a line (Stacked) */
.admin-link-grid {
    display: flex;       /* Changed from grid to flex */
    flex-direction: column; /* Stack vertically */
    gap: 10px;           /* Space between buttons */
}

.admin-link-card {
    display: flex;
    justify-content: space-between; /* Text left, arrow right */
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.admin-link-card:hover {
    background: #fff;
    border-color: #5F255F;
    color: #5F255F;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateX(4px); /* Slight slide right on hover */
}

.admin-link-card::after {
    content: '\f054'; /* FontAwesome Chevron Right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    opacity: 0.3;
}
.admin-link-card:hover::after { opacity: 1; }

.admin-link-badge {
    background: #DC2626;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
}

/* 2. Order List Table (The "Improved Bit") */
.order-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px; /* Forces scroll on small screens */
}

.order-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #1f2937;
    font-size: 0.95rem;
}

.order-table tr:last-child td { border-bottom: none; }
.order-table tr:hover td { background-color: #f9fafb; }

/* Column Specifics */
.col-date   { width: 30%; font-weight: 700; color: #111; }
.col-type   { width: 25%; color: #4b5563; }
.col-status { width: 25%; text-align: center; white-space: nowrap; }
.col-action { width: 20%; text-align: right; }

/* Status Badges - No Wrapping */
.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap; /* Prevents "Deposit Unpaid" splitting */
}

.status-confirmed { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-unpaid    { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* View Button */
.btn-view {
    padding: 8px 16px;
    background: #5F255F;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.btn-view:hover { background: #4C1E4C; color: #fff; }


/* ============================================================
   FIX FOR BLUE TABLES
   ============================================================ */

/* Force the modern tables to be WHITE, overriding the old global 'td' blue */
.order-table td, 
.modern-table td, 
.form-layout-table td {
    background-color: #ffffff !important;
    color: #1f2937 !important; /* Dark Grey Text */
}

/* Ensure hover effect is light grey, not blue */
.order-table tr:hover td,
.modern-table tr:hover td {
    background-color: #f9fafb !important;
}


/* ============================================================
   ADD EVENT PAGE STYLES (Booking Engine)
   ============================================================ */

/* 1. Header Bars (Cyan & Purple from screenshots) */
.header-cyan {
    background-color: #00a3c9;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.header-purple {
    background-color: #5F255F; /* Taiba Purple */
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

/* 2. Content Boxes under headers */
.content-box-cyan {
    background-color: #00a3c9; /* Full cyan background for content */
    color: #ffffff;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}
.content-box-cyan a { color: #fff; text-decoration: underline; }

.content-box-white {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none; /* Connected to header */
    padding: 15px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

/* 3. Package Grid (For Silver/Gold/Plat) */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .package-grid { grid-template-columns: 1fr; }
}

/* 4. Form Labels in Cyan Box */
.cyan-label {
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 10px;
}

/* 5. Input override for Cyan boxes (White text input) */
.input-cyan-box {
    width: 100%;
    padding: 6px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #333;
}

/* 6. Flex Row for Forms */
.form-row-split {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.form-row-split .label-side { flex: 0 0 160px; text-align: right; padding-right: 15px; font-weight: 700; }
.form-row-split .input-side { flex: 1; }

/* 7. Footer Total Bar */
.footer-total-bar {
    background-color: #00a3c9;
    color: white;
    padding: 10px;
    font-weight: 800;
    text-align: right;
    border-radius: 4px;
    margin-top: 10px;
}

/* ============================================================
   ADD EVENT - COMPACT ADMIN STYLES
   ============================================================ */

/* 1. Admin Cards (Purple/Cyan Headers, WHITE Body) */
.admin-card-purple {
    border: 1px solid #5F255F;
    border-radius: 4px;
    background: #fff; /* Force White */
    margin-bottom: 20px;
    overflow: hidden;
}
.admin-card-cyan {
    border: 1px solid #00a3c9;
    border-radius: 4px;
    background: #fff; /* Force White */
    margin-bottom: 20px;
    overflow: hidden;
}

.header-purple {
    background-color: #5F255F;
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}
.header-cyan {
    background-color: #00a3c9;
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.card-body-white {
    background-color: #ffffff !important;
    padding: 15px;
    color: #333;
}

/* 2. Compact Inputs (Not too tall) */
.compact-input {
    width: 100%;
    padding: 4px 8px; /* Tighter padding */
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 32px; /* Fixed small height */
}
textarea.compact-input {
    height: auto;
    padding: 8px;
}

/* 3. Form Layout Table (Clean, Compact, White) */
.form-table-compact {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.form-table-compact td {
    padding: 4px 8px; /* Tighter cell spacing */
    vertical-align: middle;
    border: none !important; /* Remove grid lines */
    background: #fff !important; /* NO BLUE */
    font-size: 0.9rem;
}
.form-table-compact td:first-child {
    font-weight: 700;
    width: 35%;
    text-align: right;
    padding-right: 15px;
    color: #444;
}

/* 4. Package Boxes (Silver/Gold/Diamond) */
.package-box {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}
.package-list {
    padding: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}



/* ============================================================
   ADD EVENT - RESTORED LAYOUT STYLES
   ============================================================ */

/* 1. The "Add Item" Lists (Restoring the 'secret links' visibility) */
.add-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.add-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    text-decoration: none !important;
}
.add-item-row:last-child { border-bottom: none; }
.add-item-row:hover {
    background-color: #f0f9ff; /* Slight blue tint on hover */
}
.add-item-name {
    font-weight: 700;
    color: #374151; /* Dark Grey */
}
.add-item-row:hover .add-item-name {
    color: #00a3c9; /* Cyan on hover */
}
.add-item-price {
    font-weight: 800;
    color: #1f2937;
}

/* 2. Package Details Text (Restoring the missing text) */
.package-details-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    padding: 15px;
    text-align: left;
}

/* 3. Input Fields (Fixing White-on-White) */
.admin-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db; /* Grey border */
    background-color: #ffffff; /* White bg */
    color: #111111; /* Black text */
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box; /* Fix width issues */
}
.admin-input:focus {
    border-color: #5F255F;
    outline: none;
}

/* 4. Layout Grid Override for AddEvent */
.addevent-split {
    display: grid;
    grid-template-columns: 40% 60%; /* Left form smaller, Right side bigger */
    gap: 20px;
    align-items: start;
}
@media (max-width: 1000px) { .addevent-split { grid-template-columns: 1fr; } }

/* 5. Three Column Grid (For Bottom Sections) */
.three-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 900px) { .three-col-grid { grid-template-columns: 1fr; } }


/* ============================================================
   ADD EVENT - STRUCTURE RESTORED
   ============================================================ */

/* 1. The Main Split Layout (Left: Details+Serving, Right: Items+Files) */
.addevent-grid {
    display: grid;
    grid-template-columns: 45% 53%; /* Matches your original width ratios */
    gap: 2%;
    align-items: start;
    margin-bottom: 40px;
}
@media (max-width: 1000px) { .addevent-grid { grid-template-columns: 1fr; } }

/* 2. Card Containers */
.admin-card {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* 3. Headers (Cyan & Purple) */
.header-cyan {
    background-color: #00a3c9;
    color: #ffffff;
    padding: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
}
.header-purple {
    background-color: #5F255F;
    color: #ffffff;
    padding: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
}

/* 4. Content Areas */
.card-content {
    padding: 20px;
    background: #fff;
}

/* 5. The "Add Item" Lists (Clickable Rows) */
.item-list-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}
.item-list-row:hover {
    background-color: #f0f9ff;
    color: #00a3c9;
}
.item-list-row b { font-weight: 700; }

/* 6. Form Inputs (Strictly Black Text) */
.modern-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #000 !important; /* Force Black */
    background: #fff !important; /* Force White */
    box-sizing: border-box;
}
.modern-input:focus { border-color: #5F255F; outline: none; }

/* 7. Package Boxes (Bottom Grid) */
.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } }

.package-box {
    border: 1px solid #5F255F;
    border-radius: 4px;
    background: #fff;
}
.package-body {
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
}

/* 8. Financials Section (Bottom) */
.financials-box {
    background: #f9fafb;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 8px;
}



/* ============================================================
   ADD EVENT - STRICT LEGACY RESTORATION
   ============================================================ */

/* 1. Global Input Fix (Solves White-on-White text) */
.modern-input, 
input[type="text"], 
input[type="password"], 
input[type="date"], 
textarea, 
select {
    color: #111 !important;        /* Force Black Text */
    background-color: #fff !important; /* Force White BG */
    border: 1px solid #ccc !important; /* Visible Border */
    border-radius: 4px;
    padding: 8px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}
.modern-input:focus {
    border-color: #5F255F !important;
    outline: none;
}

/* 2. Containers (Replacing old tables with Cards) */
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-content {
    padding: 15px;
}

/* 3. Headers */
.header-cyan {
    background-color: #00a3c9;
    color: white;
    padding: 10px;
    font-weight: 700;
    text-align: center;
}
.header-purple {
    background-color: #5F255F;
    color: white;
    padding: 10px;
    font-weight: 700;
    text-align: center;
}

/* 4. Link Rows (The "Secret Links" made visible) */
.link-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none !important;
    transition: background 0.2s;
}
.link-row:hover {
    background-color: #f0f9ff;
    color: #00a3c9; /* Highlight on hover */
}
.link-row b { font-weight: 700; }

/* 5. Package Details Text */
.package-text {
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333; /* Ensure visible */
    background: #fff;
}

/* 6. Main Grid Layout (Mimics your Table structure) */
.split-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.split-left { width: 40%; }
.split-right { width: 60%; }

/* 3-Column Grid for Bottom */
.tri-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .split-layout, .tri-layout { flex-direction: column; display: flex; }
    .split-left, .split-right { width: 100%; }
}


/* ============================================================
   ADD EVENT - STRUCTURE RESTORED (No Tables)
   ============================================================ */

/* 1. Main Grid Layout (Matches your original columns) */
.addevent-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.addevent-left { width: 40%; display: flex; flex-direction: column; gap: 20px; }
.addevent-right { width: 60%; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1000px) {
    .addevent-grid { flex-direction: column; }
    .addevent-left, .addevent-right { width: 100%; }
}

/* 2. Admin Cards (Replacing the tables) */
.admin-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header-purple {
    background-color: #5F255F;
    color: #fff;
    padding: 10px;
    font-weight: 700;
    text-align: center;
}
.card-header-cyan {
    background-color: #00a3c9;
    color: #fff;
    padding: 10px;
    font-weight: 700;
    text-align: center;
}
.card-header-cyan a { color: #fff; text-decoration: underline; }

.card-body {
    padding: 15px;
    background: #fff; /* Ensures white background */
    color: #333;
}

/* 3. Inputs (Force visible) */
.admin-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #999 !important;
    background-color: #fff !important;
    color: #000 !important;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.admin-input:focus { border-color: #5F255F !important; outline: none; }

/* 4. "Secret Links" List */
.link-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none !important;
    transition: background 0.1s;
    font-size: 0.9rem;
}
.link-list-item:hover {
    background-color: #f2f2f2;
    color: #00a3c9;
}
.link-list-item b { font-weight: 700; }

/* 5. Bottom 3-Column Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 800px) { .bottom-grid { grid-template-columns: 1fr; } }

/* 6. Package Details Text */
.package-details {
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
}

/* 7. Label/Field Rows */
.field-row {
    margin-bottom: 8px;
}
.field-label {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: #333;
    font-size: 0.9rem;
}


/* ============================================================
   MY ACCOUNT - FINAL VISUALS (No Blue Tables)
   ============================================================ */

/* 1. Stacked Admin Links */
.admin-link-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-link-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    color: #374151;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.admin-link-btn:hover {
    border-color: #5F255F;
    color: #5F255F;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* 2. Notification Badge */
.count-badge {
    background: #DC2626;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
    font-weight: 800;
}

/* 3. Account Details Rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #333;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 700; color: #57534E; }
.detail-value { font-weight: 600; color: #1C1917; text-align: right; }

/* 4. Order List (Div Based - Prevents Blue Table Issue) */
.order-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.order-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    text-decoration: none !important;
    color: #333;
}
.order-card-row:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}
.ocr-date { flex: 2; font-weight: 800; color: #1f2937; }
.ocr-type { flex: 2; color: #4b5563; font-size: 0.9rem; }
.ocr-status { flex: 1.5; text-align: center; }
.ocr-action { flex: 1; text-align: right; }

/* 5. Status Pills */
.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-confirmed { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-unpaid    { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* 6. View Button */
.btn-view-small {
    padding: 8px 16px;
    background: #5F255F;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.btn-view-small:hover { background: #4C1E4C; color: #fff; }

/* 7. Renewal Rows */
.renewal-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.renewal-label { font-weight: 700; color: #374151; font-size: 0.9rem; }

/* ============================================
   ADDITIONS — Mobile, Modernisation
   ============================================ */

/* ---- Floating WhatsApp Button ---- */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 9000;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
    color: #fff;
}

/* ---- GDPR Cookie Banner ---- */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.88rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}
.gdpr-banner p {
    margin: 0;
    color: #e0e0e0;
    flex: 1;
    min-width: 200px;
    font-size: 0.88rem;
}
.gdpr-banner a {
    color: var(--gold);
    text-decoration: underline;
}
.gdpr-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.gdpr-accept {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-body);
}
.gdpr-accept:hover {
    background: #c9a227;
}

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-slide img { animation: none; }
    .hero-slide { transition: none; }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}