/* ============================================================
   style.css - Moovatar Main Stylesheet
   Theme: Purple #4a148c / Gold #ffd700 / Font: Kanit
   ============================================================ */

:root {
    --primary:       #4a148c;
    --primary-light: #7c43bd;
    --primary-dark:  #38006b;
    --accent:        #ffd700;
    --accent-dark:   #e6c200;
    --text-dark:     #333;
    --text-gray:     #666;
    --bg-light:      #f9f9f9;
    --white:         #ffffff;
    --border:        #eee;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
    --shadow-md:     0 5px 15px rgba(0,0,0,.1);
    --radius:        10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Kanit', sans-serif; background: var(--bg-light); color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Alert ────────────────────────────────────────────── */
.flash-container { max-width: 1200px; margin: 10px auto; padding: 0 20px; width: 100%; }
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-danger  { background: #fce4ec; color: #c62828; border-left: 4px solid #e53935; }
.alert-warning { background: #fff8e1; color: #f57f17; border-left: 4px solid #ffc107; }
.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
    background: var(--white);
    padding: 0 20px;
    height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
    transition: background .3s, box-shadow .3s;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }

/* ── Nav links — icon + label ──────────────────────────── */
.nav-links {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #6b7280;
    font-size: 1rem;
    transition: background .15s, color .15s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    white-space: nowrap;
}
.nav-item:hover {
    background: #f3e5f5;
    color: var(--primary);
}
.nav-item.active {
    background: var(--primary);
    color: #fff;
}
.nav-label {
    font-size: .82rem;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
}

/* Special highlight items */
.nav-item.nav-avatar { color: #9c27b0; }
.nav-item.nav-avatar:hover { background: #f3e5f5; color: #6a1b9a; }
.nav-item.nav-avatar.active { background: var(--primary); color: #fff; }

/* nav-right: user menu / login — grid column 3 */
.nav-right {
    display: none;
    align-items: center;
    justify-content: flex-end;
}
@media (min-width: 768px) { .nav-right { display: flex; } }

.btn-login  { padding: 8px 18px; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 8px; font-weight: 500; font-family: 'Kanit', sans-serif; font-size: .88rem; transition: .2s; white-space: nowrap; }
.btn-login:hover  { background: var(--primary); color: var(--white); }

/* Hamburger hidden — bottom nav replaces it on mobile */
.nav-mobile-toggle { display: none; }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-wallet-btn {
    background: none; border: 1px solid var(--primary); color: var(--primary);
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: 'Kanit', sans-serif;
    font-size: .9rem; display: flex; align-items: center; gap: 6px;
}
.nav-dropdown {
    /* show/hide controlled by JS (.show class) — no display:none here */
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
    min-width: 200px; z-index: 300; overflow: hidden;
}
.nav-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; color: var(--text-dark); font-size: .9rem;
    transition: background .15s;
}
.nav-dropdown a:hover { background: var(--bg-light); }
.text-danger { color: #e53935 !important; }

/* ── Homepage Dark Navbar (hero top) ──────────────────── */
/* Logo: show dark logo by default, white logo hidden */
.logo-white   { display: none; }
.logo-default { display: block; }

.has-hero .navbar {
    background: rgba(8, 0, 22, 0.75);
    box-shadow: none;
}
.has-hero .navbar.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* Logo swap */
.has-hero .navbar:not(.scrolled) .logo-default { display: none; }
.has-hero .navbar:not(.scrolled) .logo-white   { display: block; }

/* Nav icons + labels white when dark */
.has-hero .navbar:not(.scrolled) .nav-item           { color: rgba(255,255,255,.9); }
.has-hero .navbar:not(.scrolled) .nav-item .nav-label { color: rgba(255,255,255,.9); }
.has-hero .navbar:not(.scrolled) .nav-item:hover      { background: rgba(255,255,255,.15); color: #fff; }
.has-hero .navbar:not(.scrolled) .nav-item.active     { background: rgba(255,255,255,.25); color: #fff; }

/* Login / wallet buttons white */
.has-hero .navbar:not(.scrolled) .btn-login           { border-color: rgba(255,255,255,.7); color: #fff; }
.has-hero .navbar:not(.scrolled) .btn-login:hover     { background: rgba(255,255,255,.15); }
.has-hero .navbar:not(.scrolled) .mobile-wallet-chip  { background: rgba(255,255,255,.15); color: #fff; }
.has-hero .navbar:not(.scrolled) .mobile-login-chip   { background: rgba(255,255,255,.2);  color: #fff; }
.has-hero .navbar:not(.scrolled) .nav-wallet-btn      { border-color: rgba(255,255,255,.5); color: #fff; }
.has-hero .navbar:not(.scrolled) .nav-balance-text    { color: #fff; }

/* Flash container: no margin on hero page (avoid gap above banner) */
.has-hero .flash-container { margin-top: 0; margin-bottom: 0; padding: 0; }

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0d001a 0%, #1a0033 35%, #2d0060 65%, #150028 100%);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.5px at 12% 18%, rgba(255,255,255,.75) 0%, transparent 100%),
        radial-gradient(circle 1px  at 28% 12%, rgba(255,255,255,.5)  0%, transparent 100%),
        radial-gradient(circle 2px  at 52% 28%, rgba(255,215,0,.4)    0%, transparent 100%),
        radial-gradient(circle 1px  at 68% 18%, rgba(255,255,255,.6)  0%, transparent 100%),
        radial-gradient(circle 1.5px at 84% 40%, rgba(255,255,255,.5) 0%, transparent 100%),
        radial-gradient(circle 1px  at 18% 72%, rgba(255,255,255,.4)  0%, transparent 100%),
        radial-gradient(circle 1px  at 44% 82%, rgba(255,255,255,.3)  0%, transparent 100%),
        radial-gradient(circle 1.5px at 88% 78%, rgba(255,215,0,.3)   0%, transparent 100%),
        radial-gradient(circle 1px  at 62% 62%, rgba(255,255,255,.45) 0%, transparent 100%),
        radial-gradient(circle 1px  at 78% 8%,  rgba(255,255,255,.6)  0%, transparent 100%),
        radial-gradient(circle 1px  at 5%  50%, rgba(255,255,255,.35) 0%, transparent 100%),
        radial-gradient(circle 2px  at 38% 50%, rgba(200,150,255,.25) 0%, transparent 100%);
    pointer-events: none;
}
.hero-planet { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-planet-1 { width: 130px; height: 130px; background: radial-gradient(circle at 35% 35%, #7b1fa2, #2d0060); top: -40px; right: 13%; opacity: .65; box-shadow: inset -12px -12px 24px rgba(0,0,0,.5); }
.hero-planet-2 { width: 55px;  height: 55px;  background: radial-gradient(circle at 35% 35%, #ff9800, #e65100); bottom: 130px; right: 7%;  opacity: .45; }
.hero-planet-3 { width: 38px;  height: 38px;  background: radial-gradient(circle at 35% 35%, #4fc3f7, #0288d1); top: 42%; left: 4%;   opacity: .35; }

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 28px 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* Left: mascot */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-mascot {
    max-width: 100%; max-height: 440px; object-fit: contain;
    filter: drop-shadow(0 24px 64px rgba(150,50,255,.45));
    animation: heroFloat 3.5s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}
.hero-bubble {
    position: absolute;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: .8rem;
    color: #fff;
    white-space: nowrap;
    z-index: 2;
    font-weight: 500;
}
.hero-bubble-left  { top: 8%; left: -10px; }
.hero-bubble-right { bottom: 18%; right: -10px; }

/* Right: text content */
.hero-content { color: #fff; }
.hero-title {
    font-size: 3rem; font-weight: 700; line-height: 1.2;
    margin-bottom: 16px; color: #fff;
}
.hero-title-ai { color: #ffd700; }
.hero-desc {
    font-size: .98rem; color: rgba(255,255,255,.8);
    line-height: 1.75; margin-bottom: 28px;
}
.hero-features {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 32px;
}
.hero-feat-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 8px; font-size: .76rem;
    color: rgba(255,255,255,.85); line-height: 1.4;
}
.hero-feat-box {
    width: 58px; height: 58px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: background .2s;
}
.hero-feat-item:hover .hero-feat-box { background: rgba(255,255,255,.18); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a0033; font-weight: 700; font-size: 1rem; font-family: 'Kanit', sans-serif;
    padding: 15px 30px; border-radius: 50px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255,215,0,.4);
    transition: filter .2s, transform .2s;
}
.hero-btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.hero-btn-outline {
    background: rgba(255,255,255,.1); color: #fff;
    border: 1.5px solid rgba(255,255,255,.5); font-weight: 500;
    font-size: .95rem; font-family: 'Kanit', sans-serif;
    padding: 14px 24px; border-radius: 50px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    transition: background .2s;
}
.hero-btn-outline:hover { background: rgba(255,255,255,.18); }

/* Stats bar */
.hero-stats-bar {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    padding: 20px 24px; position: relative; z-index: 1;
}
.hero-stat { display: flex; align-items: center; gap: 14px; padding: 0 36px; flex: 1; justify-content: center; }
.hero-stat-emoji { font-size: 2.4rem; flex-shrink: 0; }
.hero-stat-num   { font-size: 1.6rem; font-weight: 700; color: #ffd700; line-height: 1; }
.hero-stat-label { font-size: .73rem; color: rgba(255,255,255,.7); margin-top: 4px; }
.hero-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* Responsive hero */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 44px 20px 32px; text-align: center; gap: 32px; }
    .hero-visual { order: 2; }
    .hero-content { order: 1; }
    .hero-title { font-size: 2.2rem; }
    .hero-features { grid-template-columns: repeat(4, 1fr); }
    .hero-cta { justify-content: center; }
    .hero-bubble { display: none; }
    .hero-mascot { max-height: 260px; }
}
@media (max-width: 600px) {
    .hero-title { font-size: 1.8rem; }
    .hero-features { grid-template-columns: repeat(2, 1fr); }
    .hero-stats-bar { flex-wrap: wrap; gap: 16px 0; }
    .hero-stat { flex: 0 0 50%; padding: 8px 16px; justify-content: flex-start; }
    .hero-stat-divider { display: none; }
    .hero-btn-primary { font-size: .9rem; padding: 13px 22px; }
}

/* ── Hero Banner ──────────────────────────────────────── */
.hero-banner {
    width: 100%;
    line-height: 0;
    margin-top: -58px; /* ลอดขึ้นไปอยู่ใต้ navbar */
}
.hero-banner-link { display: block; width: 100%; }
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 720px;
}
@media (max-width: 767px) {
    /* บน mobile: รูปไม่ซ้อนทับ navbar แต่ navbar ยังคงสีเข้มเหมือน desktop */
    .hero-banner { margin-top: 0; }
    .hero-banner-img { max-height: 220px; }
}
@media (max-width: 480px) {
    .hero-banner-img { max-height: 180px; }
}

/* ── Section ──────────────────────────────────────────── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; width: 100%; }
.section-title     { font-size: 1.4rem; margin-bottom: 22px; font-weight: 600; }

/* ── Category Grid ────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px; margin-bottom: 50px; }
.category-card {
    background: var(--white); padding: 20px 10px; border-radius: var(--radius);
    cursor: pointer; transition: .25s; border: 2px solid var(--border); text-align: center;
}
.category-card:hover,
.category-card.active { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.category-card.active { background: var(--primary); color: var(--white); }
.category-card.active .category-icon { color: var(--accent); }
.category-icon { font-size: 1.9rem; color: var(--primary); margin-bottom: 8px; }
.category-text { font-size: .85rem; font-weight: 500; }

/* ── Seer Cards ───────────────────────────────────────── */
.seer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.seer-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border); transition: .25s;
}
.seer-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.09); transform: translateY(-3px); }
.seer-card a { display: block; }

.card-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    background: #ececec; display: block;
}
.card-body  { padding: 14px 15px; }
.seer-profile { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.profile-pic  { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.seer-name    { font-weight: 600; font-size: .95rem; }
.ai-badge     { background: linear-gradient(90deg, #ff00cc, #333399); color: white; font-size: .68rem; padding: 2px 8px; border-radius: 10px; margin-left: 5px; }

.card-title {
    font-size: .88rem; font-weight: 500; color: var(--text-gray);
    height: 42px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 8px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag-chip   { background: #f0e6ff; color: var(--primary); font-size: .72rem; padding: 2px 8px; border-radius: 12px; }

.card-rating { display: flex; align-items: center; gap: 5px; font-size: .84rem; color: #f39c12; margin-bottom: 12px; }
.review-count { color: var(--text-gray); }

.card-footer { border-top: 1px solid var(--border); padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.price-label { font-size: .8rem; color: var(--text-gray); }
.price-value { font-size: 1.05rem; font-weight: 600; color: var(--primary); }

.btn-book {
    background: var(--primary); color: var(--white);
    border: none; padding: 6px 16px; border-radius: 20px;
    cursor: pointer; font-family: 'Kanit', sans-serif;
    font-size: .85rem; transition: background .2s;
}
.btn-book:hover { background: var(--primary-dark); }

/* ── Pagination ───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 14px; border: 1px solid var(--primary); color: var(--primary);
    border-radius: 6px; cursor: pointer; background: var(--white);
    font-family: 'Kanit', sans-serif; transition: .2s;
}
.page-btn.active,
.page-btn:hover { background: var(--primary); color: var(--white); }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
    font-family: 'Kanit', sans-serif; font-size: .95rem; transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control.error { border-color: #e53935; }

.btn-primary {
    background: var(--primary); color: var(--white); border: none;
    padding: 11px 28px; border-radius: 8px; font-family: 'Kanit', sans-serif;
    font-size: 1rem; cursor: pointer; transition: background .2s; width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ── Auth Pages ───────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px;
}
.auth-card {
    background: var(--white); border-radius: 16px; padding: 40px 35px;
    width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 50px; }
.auth-title { font-size: 1.5rem; font-weight: 600; color: var(--primary); text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-gray); font-size: .9rem; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--text-gray); }
.auth-footer a { color: var(--primary); font-weight: 500; }

/* Line Login Button */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: .82rem; color: var(--text-gray); white-space: nowrap; }
.btn-line-login {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px; border-radius: 10px;
    background: #06c755; color: #fff;
    font-family: Kanit, sans-serif; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.btn-line-login:hover { background: #05a847; }
.btn-facebook-login {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px; border-radius: 10px; margin-top: 10px;
    background: #1877f2; color: #fff;
    font-family: Kanit, sans-serif; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.btn-facebook-login:hover { background: #1461c8; }

/* ── Seer Profile Page ────────────────────────────────── */
.profile-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 40px 5%; color: var(--white); display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
}
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); }
.profile-info h1 { font-size: 1.8rem; }
.profile-info .profile-type { font-size: .9rem; opacity: .8; }
.profile-body { max-width: 1200px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 768px) { .profile-body { grid-template-columns: 1fr; } }

.profile-section { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.profile-section h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }

.slot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.slot-btn {
    padding: 8px; border: 1px solid var(--primary); color: var(--primary); background: var(--white);
    border-radius: 6px; cursor: pointer; font-family: 'Kanit', sans-serif; font-size: .85rem;
    transition: .2s; text-align: center;
}
.slot-btn.selected { background: var(--primary); color: var(--white); }
.slot-btn:disabled { opacity: .4; cursor: not-allowed; border-color: #ccc; color: #ccc; }

/* ── Wallet Page ──────────────────────────────────────── */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white); border-radius: 16px; padding: 30px; text-align: center; margin-bottom: 24px;
}
.balance-label  { font-size: .95rem; opacity: .85; margin-bottom: 6px; }
.balance-amount { font-size: 2.8rem; font-weight: 600; }

.topup-section { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.topup-section h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 18px; }

.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 500; font-size: .9rem; }
.tx-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.tx-table tr:hover td { background: var(--bg-light); }
.credit { color: #2e7d32; font-weight: 500; }
.debit  { color: #c62828; font-weight: 500; }

/* ── Bookings List ────────────────────────────────────── */
.bookings-grid { display: grid; gap: 16px; }
.booking-card {
    background: var(--white); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start;
}
.booking-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.booking-info h4 { font-weight: 600; color: var(--primary); }
.booking-ref  { font-size: .8rem; color: var(--text-gray); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 500; }
.badge-pending   { background: #fff8e1; color: #f57f17; }
.badge-confirmed { background: #e3f2fd; color: #1565c0; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }
.badge-cancelled { background: #fce4ec; color: #c62828; }
.badge-approved  { background: #e8f5e9; color: #2e7d32; }
.badge-rejected  { background: #fce4ec; color: #c62828; }

/* ── Loading ──────────────────────────────────────────── */
.loading     { text-align: center; padding: 40px; color: var(--text-gray); font-size: 1rem; }
.no-results  { text-align: center; padding: 60px; color: var(--text-gray); font-size: 1.1rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: #2d2d2d; color: var(--white); padding: 35px 5%; margin-top: auto; text-align: center; }
.site-footer p { margin-bottom: 4px; }
.footer-tagline { font-size: .85rem; opacity: .6; }

/* ── Page Main Wrapper ────────────────────────────────── */
.page-main { flex: 1; width: 100%; }

/* ── Mobile Navbar Right ──────────────────────────────── */
.navbar-mobile-right { display: none; }

/* ── Bottom Navigation ────────────────────────────────── */
.bottom-nav { display: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
    /* Space for fixed bottom nav */
    body { padding-bottom: 68px; }

    /* Show mobile top-right area */
    .navbar-mobile-right {
        display: flex;
        align-items: center;
        gap: 8px;
        grid-column: 3;
    }

    /* Seer grid: 2 columns on phone */
    .seer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .card-img  { aspect-ratio: 3/2; }
    .card-body { padding: 10px 11px; }
    .card-title { height: 36px; font-size: .82rem; }

    /* ── Bottom Nav Bar ───────────────────────────────── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #efefef;
        box-shadow: 0 -4px 20px rgba(0,0,0,.09);
        z-index: 600;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #bbb;
        text-decoration: none;
        font-size: .62rem;
        font-family: 'Kanit', sans-serif;
        padding: 6px 4px 2px;
        transition: color .18s;
        border-top: 3px solid transparent;
        position: relative;
    }
    .bottom-nav-item i       { font-size: 1.25rem; line-height: 1; }
    .bottom-nav-item span    { line-height: 1; white-space: nowrap; }

    .bottom-nav-item.active  { color: #4a148c; border-top-color: #4a148c; }

    .bn-avatar {
        width: 26px; height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ddd;
    }
    .bottom-nav-item.active .bn-avatar { border-color: #4a148c; }

    .bn-initial {
        width: 26px; height: 26px;
        border-radius: 50%;
        background: #e0e0e0;
        color: #666;
        font-size: .75rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bottom-nav-item.active .bn-initial { background: #4a148c; color: #fff; }
}

@media (max-width: 420px) {
    .seer-grid { grid-template-columns: 1fr !important; }
}
