/* ═══════════════════════════════════════════════════════════════════════════
   Ekam Yoga Care – Design System
   Theme: Saffron Gold & Sacred Green with Glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
    /* Primary Palette – Saffron & Gold */
    --saffron-50:  #FFF8E1;
    --saffron-100: #FFECB3;
    --saffron-200: #FFE082;
    --saffron-300: #FFD54F;
    --saffron-400: #FFCA28;
    --saffron-500: #FFC107;
    --saffron-600: #FFB300;
    --saffron-700: #FFA000;
    --saffron-800: #FF8F00;
    --saffron-900: #FF6F00;

    /* Secondary Palette – Sacred Green */
    --green-50:  #E8F5E9;
    --green-100: #C8E6C9;
    --green-200: #A5D6A7;
    --green-300: #81C784;
    --green-400: #66BB6A;
    --green-500: #4CAF50;
    --green-600: #43A047;
    --green-700: #2E7D32;
    --green-800: #1B5E20;
    --green-900: #0D3B13;

    /* Accent */
    --accent-warm: #E65100;
    --accent-cool: #01579B;

    /* Neutrals */
    --neutral-50:  #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;

    /* Semantic */
    --success: #2E7D32;
    --error:   #C62828;
    --warning: #F57F17;
    --info:    #01579B;

    /* Surfaces */
    --bg-primary:   #FEFDF8;
    --bg-secondary: #FFF8E1;
    --bg-card:      rgba(255, 255, 255, 0.85);
    --bg-glass:     rgba(255, 255, 255, 0.6);
    --bg-dark:      #1A1A2E;
    --bg-dark-card: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary:   #1A1A2E;
    --text-secondary: #4A4A5A;
    --text-muted:     #8A8A9A;
    --text-light:     #FFFFFF;

    /* Gradients */
    --grad-saffron: linear-gradient(135deg, #FF8F00, #FFB300, #FFC107);
    --grad-green:   linear-gradient(135deg, #1B5E20, #2E7D32, #43A047);
    --grad-hero:    linear-gradient(135deg, #1A1A2E 0%, #2D1B4E 30%, #1B5E20 70%, #FF8F00 100%);
    --grad-warm:    linear-gradient(135deg, #FF6F00, #FF8F00, #FFC107);

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:   0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl:   0 20px 50px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(255,193,7,0.3);

    /* Borders */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Font */
    --font-primary: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--green-700); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--saffron-700); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Top Banner ───────────────────────────────────────────────────────────── */
.top-banner {
    background: var(--grad-green);
    color: var(--text-light);
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}
.top-banner strong { color: var(--saffron-300); }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s var(--ease-out);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.92); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon { font-size: 28px; }
.logo-main {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green-800);
    display: block;
    line-height: 1.2;
}
.logo-sub {
    font-size: 0.65rem;
    color: var(--saffron-700);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}
.nav-menu a {
    padding: 8px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    color: var(--text-secondary);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-btn {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.nav-btn-primary {
    background: var(--grad-saffron) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-sm);
}
.nav-btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.nav-btn-outline {
    border: 2px solid var(--green-600) !important;
    color: var(--green-700) !important;
    background: transparent !important;
}
.nav-btn-outline:hover { background: var(--green-600) !important; color: white !important; }
.nav-btn-secondary {
    background: var(--neutral-200) !important;
    color: var(--text-secondary) !important;
}
.nav-btn-admin {
    background: var(--grad-green) !important;
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

/* ── Flash Messages ───────────────────────────────────────────────────────── */
.flash-container { position: fixed; top: 80px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.flash {
    padding: 14px 40px 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s var(--ease-out);
    position: relative;
    min-width: 280px;
    backdrop-filter: blur(10px);
}
.flash-success { background: rgba(46,125,50,0.95); color: white; }
.flash-error   { background: rgba(198,40,40,0.95); color: white; }
.flash-info    { background: rgba(1,87,155,0.95); color: white; }
.flash-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    background: var(--grad-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,193,7,0.15), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.5px;
}
.hero-badge .badge-dot {
    width: 8px; height: 8px;
    background: var(--saffron-400);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}
.hero h1 span {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.85;
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.6;
}
.hero-address {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-float-circle {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,125,50,0.15), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--grad-saffron);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255,143,0,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,143,0,0.5);
    color: var(--text-primary);
}
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: white;
}
.btn-green {
    background: var(--grad-green);
    color: white;
    box-shadow: 0 4px 15px rgba(46,125,50,0.35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(46,125,50,0.5); color: white; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--green-600);
    color: var(--green-700);
}
.btn-outline:hover { background: var(--green-600); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #B71C1C; color: white; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 { color: var(--text-primary); margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--saffron-50);
    color: var(--saffron-800);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-alt { background: var(--bg-secondary); }

/* ── Stats Bar ────────────────────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s var(--ease-out);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-50);
}
.card-header h3 { font-size: 1.1rem; }

/* ── About / Features Grid ────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-saffron);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--green-50);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Exam Table ───────────────────────────────────────────────────────────── */
.exam-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}
.exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.exam-table thead {
    background: var(--grad-green);
    color: white;
}
.exam-table th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.exam-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--neutral-200);
    vertical-align: middle;
}
.exam-table tbody tr {
    transition: background 0.2s;
}
.exam-table tbody tr:hover { background: var(--saffron-50); }
.exam-table tbody tr:last-child td { border-bottom: none; }

.exam-name-link {
    color: var(--green-700);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.exam-name-link:hover { color: var(--saffron-700); }
.exam-name-link .dl-icon { font-size: 14px; opacity: 0.6; }

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--green-50);
    color: var(--green-800);
}
.fee-amount {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
}
.exam-note {
    text-align: center;
    padding: 12px;
    background: var(--saffron-50);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid var(--neutral-200);
}

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.calendar-month {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}
.calendar-month-header {
    background: var(--grad-green);
    color: white;
    padding: 16px;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px;
    gap: 4px;
}
.calendar-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 4px;
    text-transform: uppercase;
}
.calendar-day {
    text-align: center;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: default;
    transition: all 0.2s;
    position: relative;
}
.calendar-day.empty { visibility: hidden; }
.calendar-day.past { color: var(--neutral-400); }
.calendar-day.today {
    background: var(--saffron-100);
    font-weight: 700;
    color: var(--saffron-800);
}
.calendar-day.has-exam {
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--green-300);
}
.calendar-day.has-exam:hover {
    background: var(--green-200);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}
.calendar-day.has-exam::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--green-600);
    border-radius: 50%;
}
.calendar-day.selected {
    background: var(--green-600) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(46,125,50,0.4);
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-primary);
}
.form-label .required { color: var(--error); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s var(--ease-out);
    outline: none;
}
.form-control:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(76,175,80,0.12);
}
.form-control:disabled, .form-control[readonly] {
    background: var(--neutral-100);
    color: var(--text-muted);
    cursor: not-allowed;
}
.form-control.error { border-color: var(--error); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--error); margin-top: 4px; display: none; }
.form-control.error + .form-error { display: block; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23757575' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

/* ── Photo Upload & Cropper ───────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    background: var(--neutral-50);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--green-400);
    background: var(--green-50);
}
.upload-zone .upload-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.upload-zone p { color: var(--text-muted); font-size: 0.85rem; }
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-preview {
    margin-top: 16px;
    display: none;
}
.upload-preview img {
    max-width: 207px;
    max-height: 266px;
    border-radius: var(--radius-md);
    border: 3px solid var(--green-300);
    box-shadow: var(--shadow-md);
}
.upload-preview.visible { display: block; }
.upload-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Cropper Modal */
.cropper-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cropper-modal.active { display: flex; }
.cropper-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.2);
    animation: modalIn 0.3s var(--ease-out);
}
.cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cropper-header h3 { font-size: 1.2rem; color: var(--green-800); margin: 0; }
.cropper-canvas-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}
.cropper-canvas-wrapper canvas {
    display: block;
    max-width: 100%;
    max-height: 46vh;
    object-fit: contain;
    cursor: grab;
}
.cropper-canvas-wrapper canvas:active {
    cursor: grabbing;
}
.cropper-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-100);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    font-size: 0.82rem;
}
.cropper-badge-bar .badge-spec {
    font-weight: 600;
    color: var(--green-800);
}
.cropper-controls {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    background: var(--neutral-50);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
}
.cropper-controls label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.cropper-controls input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--green-600); }
.cropper-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
}
.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255,255,255,0.4);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--green-800);
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-footer a { font-weight: 600; }

/* OTP Modal */
.otp-section { margin-top: 20px; text-align: center; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.otp-inputs input {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}
.otp-inputs input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(76,175,80,0.15); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-header {
    background: var(--grad-green);
    color: white;
    padding: 40px 0;
}
.dashboard-header h1 { margin-bottom: 6px; }
.dashboard-header p { opacity: 0.8; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s;
}
.dash-card:hover { box-shadow: var(--shadow-lg); }
.dash-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-card-header .dash-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.dash-card-header h3 { font-size: 1rem; }
.dash-card-body { padding: 24px; }

/* ── Booking / Payment ────────────────────────────────────────────────────── */
.booking-summary {
    background: var(--saffron-50);
    border: 2px solid var(--saffron-300);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}
.booking-summary h3 { color: var(--saffron-800); margin-bottom: 12px; }
.booking-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--saffron-200);
    font-size: 0.9rem;
}
.booking-row:last-child { border-bottom: none; }
.booking-row .label { color: var(--text-secondary); }
.booking-row .value { font-weight: 600; }
.booking-total {
    font-size: 1.3rem;
    color: var(--green-800);
    font-weight: 700;
    margin-top: 8px;
    text-align: right;
}
.reappear-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--warning);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── Receipt ──────────────────────────────────────────────────────────────── */
.receipt {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.receipt-header { text-align: center; border-bottom: 2px solid var(--green-600); padding-bottom: 20px; margin-bottom: 24px; }
.receipt-header h2 { color: var(--green-800); }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.receipt-field label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.receipt-field span { font-weight: 600; font-size: 0.95rem; }
.receipt-stamp {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed var(--neutral-300);
    color: var(--green-700);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 100px); }
.admin-sidebar {
    width: 250px;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .sidebar-menu { list-style: none; }
.admin-sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.admin-sidebar .sidebar-menu a:hover,
.admin-sidebar .sidebar-menu a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left: 3px solid var(--saffron-400);
}
.admin-content { flex: 1; padding: 30px; overflow-x: auto; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}
.admin-stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}
.admin-stat-card h4 {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    margin-bottom: 4px;
}
.admin-stat-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Admin table */
.admin-table-wrapper { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.admin-table th {
    padding: 12px 14px;
    text-align: left;
    background: var(--neutral-100);
    font-weight: 600;
    border-bottom: 2px solid var(--neutral-300);
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--neutral-200);
    vertical-align: middle;
}
.admin-table tbody tr:hover { background: var(--saffron-50); }

.admin-actions { display: flex; gap: 6px; }
.admin-actions .btn { padding: 6px 12px; font-size: 0.78rem; }

/* Admin toolbar */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-toolbar .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-toolbar .search-box input {
    padding: 8px 14px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    width: 260px;
    outline: none;
}
.admin-toolbar .search-box input:focus { border-color: var(--green-500); }
.admin-toolbar .toolbar-actions { display: flex; gap: 8px; }

/* ── Contact Section ──────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}
.contact-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.85rem; color: var(--text-secondary); }

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--neutral-200);
    margin-top: 32px;
}
.map-wrapper iframe { display: block; width: 100%; height: 350px; border: 0; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s var(--ease-out);
}
.modal h3 { margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo h3 { color: white; font-size: 1.1rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; opacity: 0.8; margin-bottom: 12px; }
.footer-accreditation {
    font-size: 0.8rem;
    padding: 8px 14px;
    background: rgba(255,193,7,0.12);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,193,7,0.25);
    display: inline-block;
}
.footer-accreditation strong { color: var(--saffron-400); }

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--saffron-500);
    border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--saffron-400); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; opacity: 0.7; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.6;
}
.footer-ministry { margin-top: 4px; font-size: 0.75rem; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--neutral-300);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.pagination a:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-700); }
.pagination .active { background: var(--green-600); color: white; border-color: var(--green-600); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(20px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
    opacity: 0;
}
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--neutral-200);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 16px; width: 100%; }

    .hero { min-height: 70vh; padding: 60px 20px; }
    .hero h1 { font-size: 2rem; }
    .hero-float-circle { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .section { padding: 50px 0; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }

    .form-grid { grid-template-columns: 1fr; }
    .calendar-wrapper { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-content { padding: 16px; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .admin-toolbar .search-box input { width: 100%; }

    .receipt { padding: 24px; margin: 20px auto; }
    .receipt-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; }
    .otp-inputs input { width: 40px; height: 46px; font-size: 1.1rem; }
    .auth-card { padding: 24px; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
    .navbar, .top-banner, .footer, .flash-container, .btn, .nav-toggle { display: none !important; }
    .receipt { box-shadow: none; border: 1px solid #ccc; }
    body { background: white; }
}
