/* ============================================================
   GOOGLE FONTS
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS DESIGN TOKENS
============================================================ */
:root {
    --primary:        #00695c;
    --primary-light:  #0fa67d;
    --primary-dark:   #004d40;
    --primary-glow:   rgba(0, 105, 92, 0.25);

    --accent:         #ff9800;
    --accent-dark:    #e65100;
    --accent-glow:    rgba(255, 152, 0, 0.3);

    --danger:         #e53935;
    --danger-light:   #ffebee;

    --info:           #1e88e5;
    --info-light:     #e3f2fd;

    --success:        #2e7d32;
    --success-light:  #e8f5e9;

    --warning:        #f57f17;
    --warning-light:  #fff8e1;

    --surface:        #ffffff;
    --surface-alt:    #f5f7fa;
    --surface-hover:  #f0faf6;

    --text-primary:   #1a2332;
    --text-secondary: #556677;
    --text-muted:     #8899aa;
    --border-color:   #e4eaf0;

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 999px;

    --shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
    --shadow-sm:  0 4px 12px rgba(0,0,0,0.08);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg:  0 16px 40px rgba(0,0,0,0.13);
    --shadow-xl:  0 24px 60px rgba(0,0,0,0.16);

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Poppins', system-ui, sans-serif;
}

/* ============================================================
   GLOBAL RESET & BASE
============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--surface-alt);
    font-family: var(--font);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    box-shadow: none !important;
}
:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================
   NAVBAR
============================================================ */
.travel-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    padding: 10px 0;
}

.travel-navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 6px 0;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.3px;
}

.navbar-brand i {
    color: var(--accent) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.1px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--surface-hover);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================================
   FOOTER
============================================================ */
.footer-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e3f 50%, #0d1b2a 100%);
    color: #cdd7e3;
    padding: 8px 0;
    border-top: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.footer-section h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #99aabb;
    font-size: 0.85rem;
}

/* ============================================================
   HERO (HOME PAGE)
============================================================ */
.hero-section {
    height: 90vh;
    min-height: 560px;
    background: url('/static/images/kenya.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 30, 25, 0.75) 0%,
        rgba(0, 60, 50, 0.60) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 5;
    padding: 20px;
}

.hero-content h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
.animate-fade {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-delayed {
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-delayed2 {
    animation: fadeUp 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* ============================================================
   STAT CARDS (HOME)
============================================================ */
.stats-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.stat-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ============================================================
   FEATURED PACKAGES SECTION (HOME)
============================================================ */
.featured-section {
    padding: 80px 0;
}

.featured-section h2, .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
}

.package-modern-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.package-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pmc-img {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #004d40, #0fa67d);
    position: relative;
}

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

.package-modern-card:hover .pmc-img img {
    transform: scale(1.06);
}

.placeholder-img {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

/* ============================================================
   WHY SECTION (HOME)
============================================================ */
.why-section {
    background: linear-gradient(135deg, #f0faf6 0%, #e8f5f2 100%);
}

.why-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.why-card .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
}

.why-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-modern {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    padding: 70px 30px;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-modern h2, .cta-modern p {
    position: relative;
    z-index: 1;
}

/* ============================================================
   PACKAGE LIST — HERO
============================================================ */
.packages-hero {
    height: 38vh;
    min-height: 260px;
    background: url('/static/images/kenya.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.packages-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,40,30,0.78) 0%, rgba(0,60,40,0.65) 100%);
}

.packages-hero .container {
    position: relative;
    z-index: 5;
}

/* ============================================================
   FILTER BAR
============================================================ */
.filter-bar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

.filter-bar label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   PACKAGE GRID / CARDS
============================================================ */
.package-card-modern {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.package-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pcm-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

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

.package-card-modern:hover img {
    transform: scale(1.07);
}

.no-img {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}

.no-img::after {
    content: '🌍';
    font-size: 4rem;
}

.badge-featured-modern {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.badge-discount-modern {
    background: linear-gradient(135deg, #b71c1c, var(--danger));
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.pcm-body h5 {
    height: 48px;
    overflow: hidden;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

/* ============================================================
   PACKAGE DETAIL — HEADER
============================================================ */
.package-detail-header {
    position: relative;
    height: 460px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 0;
}

.pd-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-header-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.pd-header-overlay {
    position: absolute;
    bottom: 24px;
    left: 28px;
    right: 28px;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
}

.pd-header-overlay h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
}

/* ============================================================
   MODERN CARDS (detail page)
============================================================ */
.modern-card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--surface-alt);
    margin-bottom: 18px;
}

.pre {
    white-space: pre-wrap;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================================
   DETAIL SIDEBAR
============================================================ */
.detail-sidebar {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 90px;
}

.price-box-modern {
    background: linear-gradient(135deg, #f0faf6, #e6f7f3);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,105,92,0.15);
    text-align: center;
    margin-bottom: 20px;
}

.price-box-modern h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
}

.sidebar-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.sidebar-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.93rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-info-list li:last-child {
    border-bottom: none;
}

.sidebar-info-list i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* ============================================================
   ITINERARY ITEMS
============================================================ */
.itinerary-item-modern {
    background: var(--surface-alt);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition);
}

.itinerary-item-modern:hover {
    border-left-color: var(--primary-light);
    background: var(--surface-hover);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff !important;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
    background: #1baf5d;
    border-color: #1baf5d;
    color: #fff !important;
}

.btn-success:hover {
    background: #148f49;
    border-color: #148f49;
    box-shadow: 0 6px 20px rgba(27, 175, 93, 0.3);
    color: #fff !important;
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #111 !important;
    font-weight: 700;
}

.btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff !important;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff !important;
}

.btn-danger:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff !important;
}

.btn-secondary {
    background: #546e7a;
    border-color: #546e7a;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #37474f;
    border-color: #37474f;
    color: #fff !important;
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--text-primary) !important;
}

.btn-light:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--text-primary) !important;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-success {
    background: transparent;
    border: 2px solid #1baf5d;
    color: #1baf5d !important;
}

.btn-outline-success:hover {
    background: #1baf5d;
    color: #fff !important;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #90a4ae;
    color: #546e7a !important;
}

.btn-outline-secondary:hover {
    background: #546e7a;
    color: #fff !important;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 992px) {
    .package-detail-header { height: 300px; }
    .stats-container { margin-top: 20px; }
}

@media (max-width: 768px) {
    .package-detail-header { height: 240px; }
    .pd-header-overlay { left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; }
}

/* ============================================================
   AUTH (LOGIN / REGISTER / CHANGE PASSWORD)
============================================================ */
.login-section,
.auth-page-section {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,105,92,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(15,166,125,0.10) 0%, transparent 60%),
        linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.login-section::before,
.auth-page-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(var(--primary-glow), transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.login-card-modern,
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.9);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-card {
    max-width: 500px;
    padding: 0;
    border-radius: var(--radius-xl);
}

.login-header-modern,
.auth-card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 38px 30px;
    position: relative;
    overflow: hidden;
}

.login-header-modern::after,
.auth-card-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}

.login-header-modern h2,
.auth-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-header-modern p,
.auth-card-header p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 0;
}

.login-icon,
.auth-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    border: 2px solid rgba(255,255,255,0.25);
}

.login-body-modern,
.auth-card-body {
    padding: 32px;
}

/* Auth Form Fields */
.form-group {
    margin-bottom: 18px;
}

.form-group label,
.auth-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    font-size: 0.93rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--surface);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 2px;
}

.toggle-password:hover {
    color: var(--primary);
}

.remember-me {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.link-modern {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.link-modern:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.login-footer-links {
    margin-top: 20px;
    display: flex;
    gap: 25px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.login-footer-links a:hover {
    color: var(--primary);
}

/* Auth alerts */
.auth-alert, .auth-wrapper .alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
}

.auth-alert.error, .alert-danger {
    background: var(--danger-light);
    color: #b71c1c;
    border-left: 4px solid var(--danger);
}

.auth-alert.success, .alert-success {
    background: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.auth-alert.info, .alert-info {
    background: var(--info-light);
    color: #1565c0;
    border-left: 4px solid var(--info);
}

.auth-footer {
    text-align: center;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Legacy auth-wrapper */
.auth-wrapper {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,105,92,0.12) 0%, transparent 60%),
        linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
    padding: 30px 20px;
}

/* ============================================================
   PROFILE PAGE
============================================================ */
.profile-section {
    min-height: 88vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 15px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,105,92,0.10) 0%, transparent 60%),
        linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
}

.profile-card {
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-xl) !important;
    animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 36px 28px;
    text-align: center;
    color: white;
    margin: -28px -28px 28px -28px;
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}

.profile-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: white;
}

.profile-header p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-list li:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

.profile-label i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.profile-value {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--text-primary);
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.profile-actions .btn {
    border-radius: var(--radius-sm);
    padding: 12px;
    justify-content: center;
}

@media (max-width: 576px) {
    .profile-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .profile-actions { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOKINGS LIST PAGE
============================================================ */
.page-section-top {
    min-height: 88vh;
    display: flex;
    justify-content: center;
    padding: 36px 12px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(0,105,92,0.10) 0%, transparent 60%),
        linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
}

.booking-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.booking-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    padding: 14px 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.booking-table td {
    padding: 16px;
    vertical-align: middle;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.booking-table tbody tr {
    transition: var(--transition);
}

.booking-table tbody tr:hover {
    background: var(--surface-hover);
}

/* Status pills */
.status-pill {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

.status-pill.success, .status-pill.confirmed, .status-pill.paid {
    background: var(--success-light);
    color: var(--success);
}

.status-pill.warning, .status-pill.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-pill.danger, .status-pill.cancelled {
    background: var(--danger-light);
    color: var(--danger);
}

.status-pill.info {
    background: var(--info-light);
    color: var(--info);
}

/* ============================================================
   BOOKING DETAIL PAGE
============================================================ */
.booking-detail {
    padding: 28px 0 60px;
    min-height: 90vh;
}

/* STATUS BANNER */
.status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.status-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    pointer-events: none;
}

.status-banner i {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.status-banner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 3px;
}

.status-banner p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.88;
}

/* Pulse indicator for status banner */
.status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    display: inline-block;
    animation: pulse-ring 1.5s ease-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.status-banner.confirmed { background: linear-gradient(135deg, #2e7d32, #43a047); }
.status-banner.paid      { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.status-banner.pending   { background: linear-gradient(135deg, #e65100, #fb8c00); }
.status-banner.cancelled { background: linear-gradient(135deg, #b71c1c, var(--danger)); }

/* BOOKING HEADER */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    margin-bottom: 28px;
}

.booking-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.booking-header > div > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* BOOKING GRID */
.booking-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

/* CARDS in booking detail */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card h2, .card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--surface-alt);
}

.card h2 i, .card h3 i, .card h4 i {
    color: var(--primary);
}

/* Info grid */
.package-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.package-grid img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-box {
    background: var(--surface-alt);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.info-box small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-box strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Participants */
.participants-summary {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    text-align: center;
}

.participants-summary > div { flex: 1; }

.participants-summary small {
    display: block;
    font-size: 0.75rem;
    color: #1565c0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 4px;
}

.participants-summary strong {
    font-size: 2rem;
    font-weight: 900;
    color: #1565c0;
    display: block;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
}

.participants-table th,
.participants-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.participants-table thead {
    background: var(--surface-alt);
}

.participants-table th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

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

.special-requests {
    margin-top: 16px;
    padding: 16px;
    background: var(--warning-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sidebar */
.booking-sidebar {
    position: sticky;
    top: 90px;
}

.price-card {
    background: linear-gradient(170deg, #fafbfc, var(--surface-alt));
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list .total {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    padding-top: 14px;
}

.support-card {
    background: linear-gradient(135deg, #e8f5f2, #f0faf6);
    border-color: rgba(0,105,92,0.15);
}

/* Booking detail responsiveness */
@media (max-width: 992px) {
    .booking-grid { grid-template-columns: 1fr; }
    .package-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .booking-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BOOKING CREATE PAGE
============================================================ */
.booking-create-section {
    min-height: 92vh;
    background:
        radial-gradient(ellipse at 10% 80%, rgba(0,105,92,0.10) 0%, transparent 55%),
        linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
    padding: 36px 16px;
}

.booking-create-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.booking-create-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    padding: 28px 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.booking-create-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.booking-create-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.booking-create-header p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    opacity: 0.85;
}

.booking-create-body {
    padding: 32px;
}

.package-summary-inline {
    background: linear-gradient(135deg, #f0faf6, #e6f7f3);
    border: 1px solid rgba(0,105,92,0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.package-summary-inline h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.package-summary-inline .pkg-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-badge-inline {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    text-align: center;
    min-width: 120px;
    flex-shrink: 0;
}

.price-badge-inline .price-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
    display: block;
}

.price-badge-inline .price-value {
    font-size: 1.6rem;
    font-weight: 900;
    display: block;
    line-height: 1.1;
}

.form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ============================================================
   STAFF PORTAL PAGES
============================================================ */
.staff-dashboard-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5f2 0%, #f5f7fa 100%);
    padding: 20px 0 60px;
}

/* ============================================================
   ERROR PAGES (404 / 500)
============================================================ */
.error-page {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,105,92,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #f5f7fa 0%, #e8f5f2 100%);
    padding: 40px 20px;
    text-align: center;
}

.error-code {
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.error-code.server-error {
    background: linear-gradient(135deg, var(--danger), #ef5350, #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-emoji {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    display: block;
    margin-bottom: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.error-card {
    max-width: 520px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: fadeUp 0.8s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.error-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   LICENSING PAGES (feature_locked / expired)
   — Styled via admin base_site, using inline-compatible classes
============================================================ */
.license-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    text-align: center;
}

.license-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 2.4rem;
}

.license-icon-wrap.warning {
    background: #fff8e1;
    color: #f57f17;
    border: 3px solid #ffe082;
}

.license-icon-wrap.danger {
    background: #ffebee;
    color: #c62828;
    border: 3px solid #ef9a9a;
}

.license-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a2332;
}

.license-card p {
    font-size: 0.97rem;
    color: #556677;
    line-height: 1.7;
    margin-bottom: 16px;
}

.license-info-box {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.6;
}

.license-info-box.warning {
    background: #fffde7;
    border: 1px solid #ffe082;
    color: #7c5d00;
}

.license-info-box.danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #8b0000;
}

.license-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    margin: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.license-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.license-btn.secondary {
    background: #546e7a;
    color: #fff;
}

.license-btn.secondary:hover { background: #37474f; color: #fff; }

.license-btn.primary {
    background: #1e88e5;
    color: #fff;
}

.license-btn.primary:hover { background: #1565c0; color: #fff; }

.license-btn.danger {
    background: #e53935;
    color: #fff;
}

.license-btn.danger:hover { background: #b71c1c; color: #fff; }
