/* ============================================================
   NewThaiMed — Premium Thai Massage & Spa Platform
   Full Responsive Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@400;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --green-darkest: #0f2e14;
    --green-dark:    #1b3c22;
    --green-medium:  #2d6a2f;
    --green-light:   #4caf50;
    --green-tint:    #e8f5e9;
    --green-surface: #f0f7f0;

    --gold:          #c8a96e;
    --gold-dark:     #a8894e;
    --gold-light:    #fdf8f0;
    --gold-tint:     #f9f0e0;

    --cream:         #fafaf7;
    --white:         #ffffff;
    --text-dark:     #1a2e1c;
    --text:          #2c3e2e;
    --text-muted:    #5a7060;
    --border:        #d8e6da;
    --border-light:  #edf4ee;

    --shadow-sm:  0 1px 3px rgba(15,46,20,.06), 0 1px 2px rgba(15,46,20,.04);
    --shadow-md:  0 4px 16px rgba(15,46,20,.08), 0 2px 6px rgba(15,46,20,.05);
    --shadow-lg:  0 12px 40px rgba(15,46,20,.12), 0 4px 12px rgba(15,46,20,.07);
    --shadow-xl:  0 24px 60px rgba(15,46,20,.16);

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --font-serif: 'Noto Serif Thai', 'Kanit', serif;
    --font-sans:  'Sarabun', 'Kanit', sans-serif;

    --transition: all .28s cubic-bezier(.4,0,.2,1);

    --navbar-h:   72px;
    --container:  1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-serif);
    color: var(--green-dark);
    line-height: 1.3;
    font-weight: 600;
}

a { color: var(--green-medium); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── Container ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 var(--border-light), var(--shadow-sm);
    height: var(--navbar-h);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(27,60,34,.3);
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text .logo-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: -.3px;
}
.logo-text .logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--green-medium);
    background: var(--green-surface);
}
.nav-links li a i { font-size: 13px; color: var(--green-medium); }

/* Cart badge */
.cart-link { position: relative; }
.cart-badge {
    position: absolute;
    top: 0; right: 0;
    transform: translate(30%, -30%);
    background: var(--gold);
    color: white;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* Nav buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-btn-outline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--green-dark);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-dark) !important;
    transition: var(--transition);
}
.nav-btn-outline:hover {
    background: var(--green-dark);
    color: white !important;
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(27,60,34,.25);
    transition: var(--transition);
}
.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27,60,34,.35);
    color: white !important;
}

/* User dropdown */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}
.user-menu-btn:hover { border-color: var(--green-medium); background: var(--green-surface); }
.user-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px;
}
.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: dropIn .18s ease;
}
/* Transparent bridge covers the small gap so mouse doesn't lose hover */
.user-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0; right: 0;
    height: 10px;
}
@keyframes dropIn {
    from { opacity:0; transform: translateY(-8px); }
    to   { opacity:1; transform: translateY(0); }
}
.user-menu.open .user-menu-dropdown { display: flex; }
.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.user-menu-dropdown a:last-child { border-bottom: none; }
.user-menu-dropdown a:hover { background: var(--green-surface); color: var(--green-dark); }
.user-menu-dropdown a.danger { color: #c0392b; }
.user-menu-dropdown a.danger:hover { background: #fff5f5; }

/* ── Hamburger (Mobile) ─────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--navbar-h) 0 0 0;
    background: rgba(15,46,20,.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.mobile-nav-panel a:hover { background: var(--green-surface); color: var(--green-medium); }
.mobile-nav-panel a i { width: 20px; text-align: center; color: var(--green-medium); }
.mobile-nav-divider { height: 1px; background: var(--border-light); margin: 10px 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }
.mobile-nav-actions .btn { justify-content: center; }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
main { flex: 1; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(15, 46, 20, 0.82), rgba(27, 60, 34, 0.88)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(200,169,110,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(76,175,80,.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 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='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    text-align: center;
    width: 100%;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,110,.15);
    border: 1px solid rgba(200,169,110,.3);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: white;
    margin-bottom: 22px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}
.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 300;
    line-height: 1.7;
}
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-divider {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}
.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 32px;
    border-right: 1px solid var(--border-light);
    flex: 1;
    min-width: 140px;
    justify-content: center;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
    width: 44px; height: 44px;
    background: var(--green-surface);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-medium);
    font-size: 18px;
    flex-shrink: 0;
}
.stat-info .stat-value { font-weight: 700; font-size: 20px; color: var(--green-dark); line-height: 1; }
.stat-info .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   SECTION STYLES
   ================================================================ */
.section { padding: 80px 0; }
.section-alt { background: white; }

.section-label {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; font-size: clamp(24px, 3.5vw, 36px); }
.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 560px;
    line-height: 1.6;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }
.section-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.section-divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
    margin-top: 14px;
}
.section-header.center .section-divider { margin-left: auto; margin-right: auto; }

/* ================================================================
   CARDS
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--green-surface);
}
.card-img img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.06); }

.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--gold);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    backdrop-filter: blur(4px);
}
.card-badge-green {
    background: rgba(27,60,34,.85);
    backdrop-filter: blur(4px);
}

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--green-dark); }
.card-body p { color: var(--text-muted); font-size: 14px; flex: 1; line-height: 1.6; margin-bottom: 16px; }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.card-price {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
}
.card-price-label { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--green-tint);
    color: var(--green-medium);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Course horizontal card ─────────────────────────────── */
.course-card {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-card .card-img { width: 220px; flex-shrink: 0; height: auto; border-radius: 0; }
.course-card .card-body { flex: 1; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    box-shadow: 0 4px 14px rgba(27,60,34,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,60,34,.35); color: white; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: white;
    box-shadow: 0 4px 14px rgba(200,169,110,.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,169,110,.45); color: white; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: white; }

.btn-outline-white {
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.6);
    color: white;
    backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: white; color: var(--green-dark); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }

.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; color: white; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: stretch;
}
.about-img {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
    min-height: 0;
}
.about-img img { width:100%; height:100%; object-fit:cover; }
.about-img-badge {
    position: absolute;
    bottom: 24px; left: 24px;
    background: white;
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-img-badge .badge-icon {
    width: 44px; height: 44px;
    background: var(--gold-tint);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--gold-dark);
}
.about-img-badge .badge-num { font-size: 22px; font-weight: 700; color: var(--green-dark); }
.about-img-badge .badge-label { font-size: 12px; color: var(--text-muted); }
.about-features { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--green-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.about-feature-icon {
    width: 44px; height: 44px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-medium); font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.about-feature h4 { font-size: 15px; margin-bottom: 4px; color: var(--green-dark); }
.about-feature p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ================================================================
   FORMS
   ================================================================ */
.form-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--green-medium);
    box-shadow: 0 0 0 3px rgba(45,106,47,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* ================================================================
   BOOKING WIZARD
   ================================================================ */
.booking-wizard {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}
.booking-wizard-header {
    background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
    padding: 32px 40px;
    color: white;
}
.booking-wizard-body { padding: 40px; }

.steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}
.step-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}
.step-indicator-item::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}
.step-indicator-item:last-child::after { display: none; }
.step-indicator-item.completed::after { background: var(--green-medium); }
.step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--border-light);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    color: var(--text-muted);
    position: relative; z-index: 1;
    transition: var(--transition);
}
.step-indicator-item.active .step-number {
    background: var(--green-dark); border-color: var(--green-dark); color: white;
    box-shadow: 0 0 0 4px rgba(27,60,34,.15);
}
.step-indicator-item.completed .step-number {
    background: var(--green-medium); border-color: var(--green-medium); color: white;
}
.step-title { font-size: 11px; font-weight: 500; color: var(--text-muted); text-align: center; }
.step-indicator-item.active .step-title { color: var(--green-dark); font-weight: 600; }

.booking-step { display: none; animation: fadeIn .3s ease; }
.booking-step.active { display: block; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.slot-btn {
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.slot-btn:hover:not(.disabled) { border-color: var(--green-medium); background: var(--green-surface); }
.slot-btn.selected { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.slot-btn.disabled { opacity: .4; cursor: not-allowed; }
.slot-time { font-weight: 700; font-size: 15px; }
.slot-capacity { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.slot-btn.selected .slot-capacity { color: rgba(255,255,255,.7); }

/* ================================================================
   TABLE
   ================================================================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius); }
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}
.table th {
    background: var(--green-surface);
    color: var(--green-dark);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}
.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--cream); }

/* Alias for cart-table */
.cart-table { width: 100%; border-collapse: collapse; background: white; font-size: 14px; }
.cart-table th { background: var(--green-surface); color: var(--green-dark); font-weight: 600; padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

/* ================================================================
   STATUS BADGES
   ================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-danger  { background: #fce4ec; color: #c62828; }
.badge-info    { background: #e3f2fd; color: #1565c0; }
.badge-muted   { background: var(--green-surface); color: var(--text-muted); }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid;
}
.alert-success { background: #e8f5e9; border-color: #4caf50; color: #1b5e20; }
.alert-danger  { background: #fce4ec; border-color: #e91e63; color: #880e4f; }
.alert-warning { background: #fff8e1; border-color: #ffc107; color: #7f5d00; }
.alert-info    { background: #e3f2fd; border-color: #2196f3; color: #0d47a1; }

/* ================================================================
   PDF VIEWER
   ================================================================ */
.pdf-viewer-container {
    background: #3a3d40;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 80vh;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
}
.pdf-viewer-toolbar {
    background: var(--green-dark);
    color: white;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.pdf-canvas-wrapper { margin-bottom: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* ================================================================
   MODAL / POPUP
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,30,12,.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gold);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    transform: scale(.93);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.modal-close-btn:hover { background: white; }

/* ================================================================
   ADMIN LAYOUT
   ================================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--green-darkest) 0%, var(--green-dark) 100%);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.admin-sidebar-logo .logo-icon { width:34px; height:34px; font-size:15px; box-shadow:none; }
.admin-sidebar-logo .logo-name { font-size: 17px; font-weight: 700; color: white; font-family: var(--font-serif); }
.admin-sidebar-header p { font-size: 12px; color: rgba(255,255,255,.45); }

.admin-menu { padding: 12px 0; flex: 1; }
.admin-menu-group-label {
    padding: 12px 20px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
}
.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    border-radius: 0;
}
.admin-menu-item a i { width: 18px; text-align: center; font-size: 15px; }
.admin-menu-item a:hover,
.admin-menu-item.active a {
    color: white;
    background: rgba(255,255,255,.07);
    border-left-color: var(--gold);
}
.admin-menu-item.active a { background: rgba(255,255,255,.1); }

.admin-content {
    flex: 1;
    background: #f5f6f5;
    overflow: auto;
}
.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-topbar h1 { font-size: 20px; }
.admin-page-content { padding: 28px 32px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card-info .stat-card-value { font-size: 26px; font-weight: 700; color: var(--green-dark); line-height: 1; }
.stat-card-info .stat-card-title { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Admin white card */
.admin-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-card-header h3 { font-size: 16px; color: var(--green-dark); }
.admin-card-body { padding: 24px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: linear-gradient(180deg, var(--green-darkest) 0%, #0a1f0c 100%);
    color: rgba(255,255,255,.8);
    padding: 64px 0 0;
    margin-top: auto;
    border-top: 3px solid var(--gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo-name { color: white; font-size: 22px; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0 22px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 15px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: white; }

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 18px;
    letter-spacing: .3px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.55);
    font-size: 14px;
    margin-bottom: 10px;
}
.footer-contact-item i { color: var(--gold); width: 16px; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,.35);
}

/* ================================================================
   QUANTITY CONTROL
   ================================================================ */
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    width: 100px;
}
.qty-btn {
    width: 30px; height: 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-medium);
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--green-surface); }
.qty-input { flex: 1; text-align: center; border: none; outline: none; font-family: var(--font-sans); font-size: 14px; }

/* ================================================================
   MISC UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold-dark); }
.text-green  { color: var(--green-medium); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-muted); margin-bottom: 8px; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
    padding: 44px 0;
    color: white;
}
.page-header h1 { color: white; font-size: clamp(24px, 3vw, 36px); }
.page-header p { color: rgba(255,255,255,.65); margin-top: 8px; font-size: 15px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.45); margin-top: 12px; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--gold); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

/* ================================================================
   RESPONSIVE — Tablet (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img { height: 360px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .course-card .card-img { width: 180px; }
    .admin-sidebar { width: 220px; }
    .admin-page-content { padding: 20px 24px; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤768px)
   ================================================================ */
@media (max-width: 768px) {
    :root { --navbar-h: 64px; }

    /* Navbar */
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    /* Hero */
    .hero-content { padding: 60px 0; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

    /* Stats */
    .stats-bar .container { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); width: 100%; }
    .stat-item:last-child { border-bottom: none; }

    /* Grids */
    .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }

    /* Section */
    .section { padding: 52px 0; }
    .section-header-line { flex-direction: column; align-items: flex-start; }

    /* Course card */
    .course-card { flex-direction: column; }
    .course-card .card-img { width: 100%; height: 200px; }

    /* About */
    .about-img { height: 280px; }

    /* Form */
    .form-container { padding: 28px 20px; }

    /* Booking Wizard */
    .booking-wizard-body { padding: 24px 20px; }
    .step-title { display: none; }

    /* Admin */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-sidebar { display: none; } /* toggle via JS on mobile */
    .admin-page-content { padding: 16px; }
    .admin-topbar { padding: 14px 16px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Slot grid */
    .slot-grid { grid-template-columns: repeat(3, 1fr); }

    /* Table */
    .table td, .table th,
    .cart-table td, .cart-table th { padding: 10px 12px; font-size: 13px; }
}

/* ================================================================
   RESPONSIVE — Small Mobile (≤480px)
   ================================================================ */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .stat-grid { grid-template-columns: 1fr; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 26px; }
    .btn { font-size: 14px; padding: 10px 20px; }
    .btn-lg { padding: 12px 26px; font-size: 15px; }
}

/* ================================================================
   PRINT (hide nav & footer)
   ================================================================ */
@media print {
    .navbar, footer, .hamburger, .mobile-nav { display: none !important; }
    body { background: white; }
}
