/* ==========================================================================
   In-Service Booking System — design system
   ========================================================================== */
:root {
  /* AHPC-style palette: deep teal + heritage gold on a soft mint-white canvas */
  --brand: #0a4a42;
  --brand-2: #0e6b61;
  --brand-3: #1e9684;
  --deep: #06332d;
  --accent: #b8892e;
  --gold: #b8892e;
  --gold-soft: #faf1dc;
  --primary-soft: #def0ec;
  --ink: #10211e;
  --muted: #566863;
  --line: #dde5e2;
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #edf2f0;
  --radius: 18px;
  --shadow-sm: 0 1px 1px rgba(16,33,30,.03), 0 2px 6px -1px rgba(16,33,30,.05), 0 14px 30px -14px rgba(6,51,45,.14);
  --shadow: 0 1px 1px rgba(16,33,30,.03), 0 2px 6px -1px rgba(16,33,30,.05), 0 14px 30px -14px rgba(6,51,45,.14);
  --shadow-lg: 0 2px 4px rgba(16,33,30,.04), 0 14px 28px -8px rgba(6,51,45,.16), 0 34px 70px -28px rgba(14,107,97,.28);
  --grad: linear-gradient(135deg, #0e6b61 0%, #0a4a42 100%);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --sidebar-w: 270px;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
.text-muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-gradient-brand { background: var(--grad) !important; color: #fff; }
.small-caps { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .6rem 1.15rem; transition: all .2s ease; }
.btn-sm { border-radius: 10px; padding: .35rem .75rem; }
.btn-lg { border-radius: 14px; padding: .85rem 1.6rem; }
.btn-brand { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 107, 97, .6); background-size: 150% 150%; }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(14, 107, 97, .7); background-position: right center; }
.btn-soft { background: rgba(14, 107, 97, .08); color: var(--brand-2); border: 0; }
.btn-soft:hover { background: rgba(14, 107, 97, .16); color: var(--brand); }
.btn-glass { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.btn-white { background: #fff; color: var(--brand-2); border: 0; }
.btn-white:hover { color: var(--brand); transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--line); padding: .7rem .95rem; background-color: var(--surface-2);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus, .form-select:focus { border-color: #4ac4b1; box-shadow: 0 0 0 4px rgba(30, 150, 132, .15); background-color: #fff; }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-text { font-size: .78rem; }
.form-check-input:checked { background-color: var(--brand-2); border-color: var(--brand-2); }
.invalid-feedback { display: block; }

/* ---------- Public navbar ---------- */
.navbar-public { padding: 1rem 0; transition: all .3s ease; z-index: 1030; }
.navbar-public.scrolled, .navbar-public.solid { background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); padding: .6rem 0; }
.navbar-public .nav-link { font-weight: 600; color: var(--ink); padding: .5rem 1rem !important; border-radius: 10px; }
.navbar-public .nav-link:hover { background: rgba(14, 107, 97, .08); color: var(--brand-2); }
.navbar-public.on-hero:not(.scrolled) .nav-link, .navbar-public.on-hero:not(.scrolled) .brand-name { color: #fff; }
.navbar-public.on-hero:not(.scrolled) .navbar-toggler { filter: invert(1); }
.navbar-public.on-hero:not(.scrolled) .btn-soft { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.navbar-public.on-hero:not(.scrolled) .btn-soft:hover { background: rgba(255,255,255,.24); color: #fff; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.25rem; box-shadow: 0 8px 18px -6px rgba(14, 107, 97, .6); }
.brand-name { font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .7rem; opacity: .7; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 9rem 0 7rem;
  background: radial-gradient(1200px 600px at 10% 10%, #0e6b61 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 20%, #0a4a42 0%, transparent 55%),
              linear-gradient(135deg, #041e1a 0%, #06332d 50%, #0a4a42 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.035em; line-height: 1.05; }
.hero .lead { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 560px; }
.hero-pill { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ac4b1; box-shadow: 0 0 0 4px rgba(74, 196, 177, .25); animation: pulse 2s infinite; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: #1e9684; top: -80px; right: 10%; }
.blob.b2 { width: 300px; height: 300px; background: #b8892e; bottom: -120px; left: 5%; animation-delay: -5s; }
.hero-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 24px; backdrop-filter: blur(18px); padding: 1.6rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); position: relative; z-index: 2; }
.hero-card .mini { background: rgba(255,255,255,.1); border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.hero-card .mini i { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.15); }
.hero-stats .num { font-size: 2rem; font-weight: 800; }
.hero-stats .lbl { color: rgba(255,255,255,.7); font-size: .85rem; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; }

@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.08); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,196,177,.5); } 50% { box-shadow: 0 0 0 8px rgba(74,196,177,0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-title { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); background: rgba(14, 107, 97,.08); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Facility cards ---------- */
.theme-violet { --t1: #7c3aed; --t2: #a855f7; }
.theme-ocean { --t1: #0284c7; --t2: #22d3ee; }
.theme-sunset { --t1: #ea580c; --t2: #fbbf24; }
.theme-emerald { --t1: #059669; --t2: #34d399; }
.theme-rose { --t1: #e11d48; --t2: #fb7185; }
.theme-amber { --t1: #b45309; --t2: #fcd34d; }
.facility-card { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease; height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(226,232,240,.7); }
.facility-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.facility-cover { position: relative; height: 190px; background: linear-gradient(135deg, var(--t1), var(--t2)); display: grid; place-items: center; overflow: hidden; }
.facility-cover::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); top: -90px; right: -60px; }
.facility-cover::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -80px; left: -40px; }
.facility-cover i { font-size: 4.2rem; color: #fff; filter: drop-shadow(0 10px 18px rgba(0,0,0,.2)); position: relative; z-index: 1; transition: transform .4s ease; }
.facility-card:hover .facility-cover i { transform: scale(1.12) rotate(-4deg); }
.facility-cover .badge-cap { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); border-radius: 999px; padding: .35rem .75rem; font-weight: 600; font-size: .78rem; }
.facility-cover .badge-cat { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(16,33,30,.35); color: #fff; border-radius: 999px; padding: .35rem .75rem; font-weight: 600; font-size: .72rem; }
.facility-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.facility-body h5 { font-weight: 800; letter-spacing: -.02em; }
.price { font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: #2b3d39; margin: 0 .3rem .4rem 0; }

/* ---------- Internet packages ---------- */
.package-card { background: var(--surface); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); height: 100%; position: relative; transition: transform .3s; }
.package-card:hover { transform: translateY(-6px); }
.package-card.featured { background: linear-gradient(160deg, #041e1a, #0a4a42); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.package-card.featured .text-muted { color: rgba(255,255,255,.7) !important; }
.package-card .ribbon { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #041e1a; font-weight: 700; font-size: .7rem; padding: .3rem .7rem; border-radius: 999px; }
.package-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(14, 107, 97,.1); color: var(--brand-2); margin-bottom: 1.2rem; }
.package-card.featured .package-icon { background: rgba(255,255,255,.15); color: #fff; }
.package-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 1.5rem; }
.step-num { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1.2rem; box-shadow: 0 14px 30px -10px rgba(14, 107, 97,.6); transform: rotate(-6deg); }
.step-num i { transform: rotate(6deg); }

.cta-band { background: var(--grad); border-radius: 32px; padding: 4rem 3rem; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.08); right: -100px; top: -150px; }

.footer { background: #072925; color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer h6 { color: #fff; font-weight: 700; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: radial-gradient(800px 500px at 0% 0%, #0e6b61, transparent 60%), radial-gradient(700px 500px at 100% 100%, #0a4a42, transparent 60%), #041e1a; color: #fff; padding: 3.5rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-form .inner { width: 100%; max-width: 460px; animation: fadeUp .6s ease; }
.feature-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.feature-line i { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 1.1rem; }
@media (max-width: 991px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- App shell (sidebar) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex: none; background: #072925; color: rgba(255,255,255,.75); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1040; transition: transform .3s ease; }
.sidebar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 0% 0%, rgba(14, 107, 97,.35), transparent 70%), radial-gradient(400px 300px at 100% 100%, rgba(184,137,46,.2), transparent 70%); pointer-events: none; }
.sidebar > * { position: relative; }
.sidebar .brand { padding: 1.4rem 1.4rem 1rem; display: flex; align-items: center; gap: .8rem; }
.sidebar .brand-name { color: #fff; }
.sidebar nav { flex: 1; overflow-y: auto; padding: .5rem .9rem; }
.sidebar .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); font-weight: 700; padding: 1.1rem .8rem .5rem; }
.sidebar .side-link { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; color: rgba(255,255,255,.72); font-weight: 500; font-size: .93rem; margin-bottom: 2px; transition: all .2s; }
.sidebar .side-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar .side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .side-link.active { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(30, 150, 132,.8); }
.sidebar .side-link .count { margin-left: auto; background: var(--accent); color: #041e1a; font-size: .7rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.sidebar .user-box { margin: .9rem; padding: .85rem; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(30, 150, 132,.16), rgba(184,137,46,.06) 60%, rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.sidebar .user-box::before { content: ""; position: absolute; width: 120px; height: 120px; right: -50px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 46,.35), transparent 70%); pointer-events: none; }
.sidebar .user-row { position: relative; display: flex; align-items: center; gap: .75rem; padding: .3rem; margin: -.3rem; border-radius: 14px; text-decoration: none; transition: background .2s ease; }
.sidebar .user-row:hover { background: rgba(255,255,255,.06); }
.sidebar .avatar-wrap { position: relative; flex: none; padding: 2px; border-radius: 15px; background: linear-gradient(135deg, #1e9684, #e2b865); }
.sidebar .avatar-wrap .avatar { width: 42px; height: 42px; border-radius: 13px; border: 2px solid #072925; font-size: .95rem; letter-spacing: .02em; }
.sidebar .online { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #1e9684; border: 2.5px solid #072925; }
.sidebar .user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.sidebar .user-name { color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.25; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sidebar .user-meta .role-badge { display: inline-flex; align-items: center; gap: .3rem; }
.sidebar .user-meta .role-badge .bi { font-size: .7rem; color: #e2b865; }
.sidebar .user-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.sidebar .user-actions form { margin: 0; }
.sidebar .ua-btn { width: 100%; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all .2s ease; }
.sidebar .ua-btn .bi { font-size: .95rem; }
.sidebar .ua-btn:hover, .sidebar .ua-btn.active { background: rgba(255,255,255,.13); color: #fff; transform: translateY(-1px); }
.sidebar .ua-btn:focus-visible { outline: 2px solid #78dcc8; outline-offset: 2px; }
.sidebar .ua-logout { color: #fecdd3; border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.12); }
.sidebar .ua-logout:hover { background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -10px rgba(244,63,94,.9); }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.6rem; }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 1020; background: rgba(245,247,251,.85); backdrop-filter: blur(12px); padding: 1rem 2rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(226,232,240,.6); }
.topbar h1 { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.content { padding: 2rem; }
.sidebar-backdrop { display: none; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(16,33,30,.5); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: 1.25rem; }
  .topbar { padding: .8rem 1.25rem; }
}

/* ---------- Cards & stats ---------- */
.card-x { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(226,232,240,.8); }
.card-x .card-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-x .card-head h5, .card-x .card-head h6 { margin: 0; font-weight: 700; }
.card-x .card-pad { padding: 1.4rem; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(226,232,240,.8); position: relative; overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--t1, #0e6b61), var(--t2, #b8892e)); box-shadow: 0 10px 20px -10px var(--t1, #0e6b61); }
.stat-card .val { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: .9rem; line-height: 1.1; }
.stat-card .lbl { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -40px; top: -40px; background: linear-gradient(135deg, var(--t1, #0e6b61), var(--t2, #b8892e)); opacity: .07; }

.welcome-banner { background: var(--grad); border-radius: 24px; color: #fff; padding: 2rem 2.2rem; position: relative; overflow: hidden; }
.welcome-banner::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.1); right: -60px; top: -120px; }
.welcome-banner::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); right: 160px; bottom: -110px; }
.welcome-banner > * { position: relative; z-index: 1; }

/* ---------- Tables ---------- */
.table-x { margin: 0; }
.table-x thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: .85rem 1rem; white-space: nowrap; }
.table-x td { padding: .95rem 1rem; vertical-align: middle; border-color: #f1f5f9; }
.table-x tbody tr { transition: background .15s; }
.table-x tbody tr:hover { background: #fafbff; }
.ref { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; font-size: .82rem; color: var(--brand-2); background: rgba(14, 107, 97,.07); padding: .2rem .5rem; border-radius: 8px; }

/* ---------- Badges ---------- */
.badge-status { font-weight: 700; font-size: .72rem; padding: .4rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-PENDING { background: #fef3c7; color: #b45309; }
.st-CONFIRMED { background: #e0e7ff; color: #4338ca; }
.st-CHECKED_IN { background: #d1fae5; color: #047857; }
.st-COMPLETED { background: #f1f5f9; color: #475569; }
.st-CANCELLED { background: #fee2e2; color: #b91c1c; }
.st-PAID, .st-SENT { background: #d1fae5; color: #047857; }
.st-PARTIAL { background: #e0f2fe; color: #0369a1; }
.st-UNPAID, .st-FAILED { background: #fee2e2; color: #b91c1c; }
.role-badge { font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Booking timeline / detail ---------- */
.detail-hero { border-radius: 24px; padding: 2rem; color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2)); position: relative; overflow: hidden; }
.detail-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.12); right: -70px; top: -110px; }
.detail-hero > * { position: relative; z-index: 1; }
.kv { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--line); gap: 1rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 50px; padding-bottom: 1.2rem; }
.timeline li .dot { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.sms-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: .75rem 1rem; font-size: .86rem; margin-top: .4rem; }

/* ---------- Booking form ---------- */
.facility-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.facility-pick label { cursor: pointer; border: 2px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; gap: .85rem; align-items: center; transition: all .2s; background: #fff; }
.facility-pick label:hover { border-color: #78dcc8; transform: translateY(-2px); }
.facility-pick input { display: none; }
.facility-pick input:checked + label { border-color: var(--brand-2); background: rgba(14, 107, 97,.05); box-shadow: 0 0 0 4px rgba(30, 150, 132,.12); }
.facility-pick .fi { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; font-size: 1.25rem; background: linear-gradient(135deg, var(--t1), var(--t2)); }
.fi-sm { width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-grid; place-items: center; color: #fff; font-size: .9rem; background: linear-gradient(135deg, var(--t1), var(--t2)); }
.summary-card { position: sticky; top: 90px; }
.summary-card .total { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.avail { border-radius: 14px; padding: .85rem 1rem; font-weight: 600; font-size: .9rem; display: flex; gap: .6rem; align-items: center; }
.avail.ok { background: #def0ec; color: #0e6b61; }
.avail.no { background: #fee2e2; color: #b91c1c; }
.avail.idle { background: var(--surface-2); color: var(--muted); }
.step-title { display: flex; align-items: center; gap: .7rem; font-weight: 700; margin-bottom: 1rem; }
.step-title .n { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* ---------- Facility status (dashboard) ---------- */
.room-tile { border-radius: 16px; padding: 1rem 1.1rem; color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2)); position: relative; overflow: hidden; height: 100%; }
.room-tile .state { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.22); padding: .25rem .6rem; border-radius: 999px; }
.room-tile i.bg-ico { position: absolute; right: -6px; bottom: -14px; font-size: 4.5rem; opacity: .18; }

/* ---------- Alerts / toasts ---------- */
.toast-stack { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: 420px; }
.toast-x { background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(15,23,42,.3); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start; animation: slideIn .4s ease; border-left: 5px solid var(--brand-2); }
.toast-x.success { border-color: #10b981; } .toast-x.success i { color: #10b981; }
.toast-x.danger { border-color: #ef4444; } .toast-x.danger i { color: #ef4444; }
.toast-x.warning { border-color: #f59e0b; } .toast-x.warning i { color: #f59e0b; }
.toast-x.info i { color: var(--brand-2); }
.toast-x i { font-size: 1.3rem; }
.toast-x .x { margin-left: auto; background: none; border: 0; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.8rem; display: block; margin-bottom: .7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Calendar ---------- */
.fc { --fc-border-color: #eef2f7; --fc-today-bg-color: rgba(30, 150, 132,.07); --fc-button-bg-color: #0e6b61; --fc-button-border-color: #0e6b61; --fc-button-hover-bg-color: #0a4a42; --fc-button-active-bg-color: #06332d; --fc-event-border-color: transparent; }
.fc .fc-button { border-radius: 10px !important; font-weight: 600; text-transform: capitalize; }
.fc .fc-toolbar-title { font-weight: 800; font-size: 1.3rem; }
.fc-event { border-radius: 8px; padding: 2px 4px; font-weight: 600; font-size: .78rem; cursor: pointer; }
.fc .fc-col-header-cell-cushion { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; }
.fc .fc-daygrid-day-number { color: var(--ink); font-weight: 600; }

.pagination .page-link { border-radius: 10px !important; margin: 0 2px; border: 0; color: var(--ink); font-weight: 600; }
.pagination .active .page-link { background: var(--grad); }

@media print {
  .sidebar, .topbar, .no-print, .toast-stack { display: none !important; }
  .main { margin: 0; }
}

/* ---------- Program type (GHS / Non-GHS pricing) ---------- */
.program-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.program-pick input { position: absolute; opacity: 0; pointer-events: none; }
.program-pick label { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 18px; cursor: pointer; position: relative; transition: all .2s ease; height: 100%; background: var(--surface, #fff); }
.program-pick label:hover { border-color: #78dcc8; transform: translateY(-2px); }
.program-pick .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex: none; background: rgba(14, 107, 97,.08); color: var(--brand-2); transition: all .2s ease; }
.program-pick .tick { position: absolute; top: .7rem; right: .8rem; color: var(--brand-2); opacity: 0; transform: scale(.5); transition: all .2s ease; }
.program-pick input:checked + label { border-color: var(--brand-2); background: rgba(14, 107, 97,.05); box-shadow: 0 0 0 4px rgba(30, 150, 132,.12); }
.program-pick input:checked + label .pi { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 107, 97,.7); }
.program-pick input:checked + label .tick { opacity: 1; transform: scale(1); }
.program-pick input:focus-visible + label { outline: 3px solid rgba(30, 150, 132,.45); outline-offset: 2px; }
.pricing-nonghs .ghs-only, .pricing-ghs .non-ghs-only { display: none !important; }
.rate-chip { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: linear-gradient(135deg, #0e6b61, #1e9684); color: #fff; margin-left: .3rem; }
.sum-program { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.program-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: rgba(14, 107, 97,.1); color: var(--brand-2); }
.program-badge.ghs { background: rgba(30,150,132,.12); color: #0e6b61; }

/* Internet hours hint */
.hours-hint { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem .9rem; border-radius: 14px; font-size: .85rem;
  background: rgba(184,137,46,.08); border: 1px solid rgba(184,137,46,.25); color: #2c6080; }
.hours-hint > .bi { font-size: 1.1rem; }
.hours-hint.over { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.3); color: #be123c; }

/* ---------- GHS logo ---------- */
.brand-logo.logo-img { width: 48px; height: 48px; padding: 4px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(16,33,30,.45), inset 0 0 0 1px rgba(16,33,30,.06); }
.brand-logo.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar .brand-logo.logo-img { box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 10px 22px -8px rgba(0,0,0,.6); }


/* ==========================================================================
   AHPC-style layer: serif display type, floating nav, light hero, soft cards
   ========================================================================== */
h1, h2, h3, .section-title, .topbar h1, .welcome-banner h2, .welcome-banner h3, .auth-side h2, .cta-band h2, .display-serif {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-optical-sizing: auto;
}
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--brand-2); }
::selection { background: rgba(14,107,97,.18); }

/* Buttons: solid teal with a soft lift */
.btn-brand { background: var(--grad); box-shadow: 0 10px 22px -10px rgba(14,107,97,.75), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-brand:hover { box-shadow: 0 16px 30px -12px rgba(14,107,97,.8), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-soft { background: var(--primary-soft); color: var(--brand-2); }
.btn-soft:hover { background: #cfe8e2; color: var(--deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: #c8d6d1; color: var(--brand-2); }
.form-control, .form-select { background-color: #fff; border: 1px solid var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(14,107,97,.12); }

/* Floating pill navbar */
.navbar-public { padding: .75rem 0; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.navbar-public > .container { background: rgba(255,255,255,.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(221,229,226,.9); border-radius: 18px; padding: .5rem .9rem; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.navbar-public.scrolled > .container { box-shadow: var(--shadow-lg); }
.navbar-public .nav-link, .navbar-public.on-hero:not(.scrolled) .nav-link { color: #2b3d39; font-weight: 500; }
.navbar-public .nav-link:hover { background: var(--primary-soft); color: var(--brand-2); }
.navbar-public.on-hero:not(.scrolled) .brand-name { color: var(--ink); }
.navbar-public.on-hero:not(.scrolled) .navbar-toggler { filter: none; }
.navbar-public.on-hero:not(.scrolled) .btn-soft { background: transparent; color: var(--ink); border: 0; backdrop-filter: none; }
.navbar-public.on-hero:not(.scrolled) .btn-soft:hover { background: var(--primary-soft); color: var(--brand-2); }
.navbar-public .btn-soft { background: transparent; color: var(--ink); }
.navbar-public .btn-soft:hover { background: var(--primary-soft); color: var(--brand-2); }
.brand-name { font-weight: 700; font-size: 1.02rem; }
.brand-name .hl { color: var(--gold); }
.brand-name small { font-size: .72rem; opacity: 1; color: var(--muted); font-weight: 500; }
.brand-logo.logo-img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(6,51,45,.4); }

/* Light hero with gold + teal glow */
.hero { color: var(--ink); padding: 9.5rem 0 6rem;
  background: radial-gradient(60% 60% at 75% 15%, rgba(184,137,46,.12) 0%, transparent 60%),
              radial-gradient(50% 60% at 5% 95%, rgba(184,137,46,.16) 0%, transparent 60%),
              radial-gradient(55% 55% at 40% 40%, rgba(14,107,97,.07) 0%, transparent 70%),
              linear-gradient(180deg, #eef3f1 0%, #f5f8f7 100%); }
.hero::after { background-image: radial-gradient(rgba(14,107,97,.06) 1px, transparent 1px); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.03em; line-height: 1.03; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--brand-2); font-weight: 600; }
.hero .lead { color: #4a5c57; font-size: 1.15rem; line-height: 1.65; }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem; border-radius: 999px; background: var(--gold-soft);
  border: 1px solid rgba(184,137,46,.45); color: #8a6519; font-size: .82rem; font-weight: 600; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero .blob { display: none; }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 1.6rem; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.hero-panel .hp-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.hero-panel .hp-head img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; background: #fff; object-fit: contain; }
.hero-panel .hp-head h6 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.hero-panel .hp-head small { color: var(--muted); }
.hero-panel .hp-note { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface-2); border-radius: 16px; padding: 1rem 1.1rem; color: #3c4f4a; font-size: .9rem; margin-top: 1.1rem; }
.hero-panel .hp-note i { font-size: 1.5rem; color: var(--brand-2); line-height: 1; }
.hero-stats .num { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.hero-stats .lbl { color: var(--muted); }

/* Sections, eyebrows */
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--ink); }
.eyebrow { background: var(--gold-soft); color: #8a6519; border: 1px solid rgba(184,137,46,.35); letter-spacing: .08em; font-size: .72rem; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Numbered step cards */
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.3rem 1.5rem; height: 100%;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-2); font-size: 1.15rem; margin-bottom: 1.6rem; }
.step-card .sn { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-display); font-size: 2rem; color: #c9d5d1; font-weight: 500; line-height: 1; }
.step-card h6 { font-weight: 700; font-size: 1.02rem; margin-bottom: .4rem; }
.step-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Cards */
.facility-card, .package-card, .card-x, .stat-card { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.facility-card:hover, .package-card:hover { box-shadow: var(--shadow-lg); }
.package-card.featured { background: linear-gradient(160deg, #072925, #0a4a42); }
.package-card .ribbon { background: var(--gold); color: #fff; }
.package-price, .price, .stat-card .val, .summary-card .total { font-family: var(--font-display); font-weight: 700; }
.stat-card::after { opacity: .05; }
.cta-band { background: radial-gradient(60% 80% at 100% 0%, rgba(184,137,46,.35), transparent 60%), linear-gradient(135deg, #0e6b61, #06332d); }
.welcome-banner { background: radial-gradient(50% 90% at 100% 0%, rgba(184,137,46,.32), transparent 60%), linear-gradient(135deg, #0e6b61, #06332d); }

/* App shell */
.sidebar { background: #072925; }
.sidebar::before { background: radial-gradient(380px 260px at 0% 0%, rgba(30,150,132,.22), transparent 70%), radial-gradient(360px 260px at 100% 100%, rgba(184,137,46,.12), transparent 70%); }
.sidebar .side-link { color: rgba(226,240,236,.72); }
.sidebar .side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .side-link.active { background: #12463f; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar .side-link.active i { color: #e2b865; }
.sidebar .nav-section { color: rgba(140,176,168,.85); }
.sidebar .side-link .count { background: var(--gold); color: #fff; }
.sidebar .brand-name { color: #fff; }
.sidebar .brand-name small { color: rgba(140,176,168,.95); }
.sidebar .avatar-wrap { background: linear-gradient(135deg, #e2b865, #4ac4b1); }
.sidebar .online { background: #4ac4b1; }
.topbar { background: rgba(245,248,247,.86); border-bottom: 1px solid var(--line); }
.topbar h1 { font-weight: 600; font-size: 1.5rem; }
.table-x tbody tr:hover { background: #f4f8f7; }
.table-x td { border-color: #edf2f0; }
.pagination .active .page-link { background: var(--brand-2); }
.step-title .n { background: var(--brand-2); }

/* Auth pages */
.auth-side { background: radial-gradient(60% 60% at 80% 10%, rgba(184,137,46,.28) 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(30,150,132,.35) 0%, transparent 60%), #072925; }
.auth-form { background: var(--bg); }

/* Footer + credit */
.footer { background: #072925; color: rgba(226,240,236,.7); }
.footer h6 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.footer .brand-name { color: #fff; }
.credit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; font-size: .82rem; }
.credit-bar .credit-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.credit-bar a { color: inherit; text-decoration: none; }
.credit-bar a:hover { text-decoration: underline; }
.credit-bar .by a { color: #e2b865; font-weight: 700; }
.app-credit { margin-top: 2.5rem; padding: 1.1rem 0 .25rem; border-top: 1px solid var(--line); color: var(--muted); }
.app-credit .by a { color: var(--brand-2); }
.auth-credit { margin-top: 2rem; color: var(--muted); justify-content: center; text-align: center; }
.auth-credit .by a { color: var(--brand-2); }

/* Centre the footer write-up (copyright + credit) */
.credit-bar { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .45rem; }
.credit-bar .credit-links { justify-content: center; }

/* Bootstrap "primary" utilities follow the teal brand */
.text-primary { color: var(--brand-2) !important; }
.bg-primary { background-color: var(--brand-2) !important; }
.border-primary { border-color: var(--brand-2) !important; }

/* Card headings with icon tile */
.card-x .head-title { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.card-x .head-title h5 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.card-x .head-title small { color: var(--muted); font-size: .82rem; }
.head-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-2); font-size: 1.1rem; }
.head-ico.gold { background: var(--gold-soft); color: #8a6519; }
.form-actions { display: flex; gap: .6rem; padding-top: 1.1rem; margin-top: .4rem; border-top: 1px solid var(--line); }

/* Profile card */
.profile-card { overflow: hidden; }
.profile-cover { height: 96px; background: radial-gradient(70% 120% at 100% 0%, rgba(184,137,46,.45), transparent 60%), linear-gradient(135deg, #0e6b61, #06332d); }
.profile-id { text-align: center; padding: 0 1.5rem 1.4rem; margin-top: -44px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto .9rem; font-size: 1.8rem; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.profile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.profile-role { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; background: var(--gold-soft); color: #8a6519; border: 1px solid rgba(184,137,46,.4); font-size: .78rem; font-weight: 700; }
.profile-facts { list-style: none; margin: 0; padding: .6rem 1.4rem 1.2rem; }
.profile-facts li { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.profile-facts li:last-child { border-bottom: 0; }
.profile-facts .pf-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-2); }
.profile-facts div { display: flex; flex-direction: column; min-width: 0; }
.profile-facts small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.profile-facts div span { font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 992px) { .profile-card { position: sticky; top: 100px; } }

.form-text ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.form-text li { margin-bottom: .15rem; }

/* ---------- Profile photo (DP) ---------- */
img.avatar, .avatar-img { object-fit: cover; padding: 0; background: var(--surface-2); }
.avatar.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.dp-wrap { position: relative; width: 88px; margin: 0 auto .9rem; }
.dp-wrap .profile-avatar { margin: 0; display: grid; }
.dp-wrap .profile-avatar.is-preview { outline: 3px dashed var(--gold); outline-offset: 3px; }
.dp-cam { position: absolute; right: -8px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--gold); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(6,51,45,.6); transition: transform .2s ease, background .2s ease; font-size: .85rem; }
.dp-cam:hover { transform: scale(1.08); background: #a0761f; }
.dp-form { margin-top: 1rem; }
.dp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.dp-actions .btn { cursor: pointer; }
.dp-remove:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.dp-hint { font-size: .75rem; color: var(--muted); margin-top: .55rem; }

/* ---------- Venue photos ---------- */
.venue-section { padding-top: 5rem; padding-bottom: 2rem; }
.venue-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; }
.venue-grid figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.venue-grid .vg-main { grid-row: span 2; }
.venue-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.venue-grid figure:hover img { transform: scale(1.05); }
.venue-grid figcaption { position: absolute; left: 12px; bottom: 12px; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: #fff; background: rgba(7,41,37,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.venue-grid .vg-main figcaption { font-size: .88rem; padding: .45rem 1rem; }
.venue-grid .vg-main figcaption i { color: #e2b865; }
@media (max-width: 991px) { .venue-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; } .venue-grid .vg-main { grid-column: span 2; grid-row: auto; } }
@media (max-width: 575px) { .venue-grid { grid-template-rows: 220px 140px 140px; gap: 10px; } }

/* Sign-in side panel photo with teal overlay */
.auth-side { background:
  linear-gradient(180deg, rgba(7,41,37,.80) 0%, rgba(7,41,37,.70) 45%, rgba(7,41,37,.95) 100%),
  radial-gradient(60% 60% at 80% 10%, rgba(184,137,46,.30) 0%, transparent 60%),
  var(--auth-photo, none) center / cover no-repeat, #072925; }
.auth-side .blob { display: none; }


/* card-pad applied directly on a card */
.card-x.card-pad { padding: 1.4rem; }
.btn-gold { background: var(--gold); color: #fff; border: 0; box-shadow: 0 10px 22px -10px rgba(184,137,46,.8); }
.btn-gold:hover { background: #a0761f; color: #fff; transform: translateY(-1px); }

/* ---------- Reports ---------- */
.rep-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 1.8rem 2rem; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end;
  background: radial-gradient(55% 120% at 100% 0%, rgba(184,137,46,.38), transparent 60%), linear-gradient(135deg, #0e6b61, #06332d); box-shadow: var(--shadow-lg); }
.rep-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.rep-hero > * { position: relative; z-index: 1; }
.rep-kicker { display: inline-flex; gap: .45rem; align-items: center; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.rep-hero h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .8rem 0 .35rem; }
.rep-arrow { color: #e2b865; font-style: italic; }
.rep-hero p { margin: 0; color: rgba(255,255,255,.78); }
.rep-hero p strong { color: #fff; }
.rep-filter { display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.rep-presets { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.rep-chip { font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-decoration: none; transition: all .2s; }
.rep-chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.rep-chip.active { background: #fff; color: var(--deep); border-color: #fff; }
.rep-dates { display: flex; gap: .5rem; align-items: flex-end; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .55rem; border-radius: 16px; backdrop-filter: blur(8px); }
.rep-dates label { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.rep-dates label span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgba(255,255,255,.7); padding-left: .2rem; }
.rep-dates .form-control { padding: .45rem .7rem; min-width: 150px; border: 0; }
.rep-dates .btn { padding: .5rem 1rem; }
@media (max-width: 1199px) { .rep-hero { grid-template-columns: 1fr; } .rep-filter, .rep-presets { align-items: flex-start; justify-content: flex-start; } }
@media (max-width: 575px) { .rep-hero { padding: 1.4rem; } .rep-dates { flex-wrap: wrap; width: 100%; } .rep-dates label { flex: 1 1 130px; } .rep-dates .form-control { min-width: 0; } }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1399px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem 1.2rem 1.1rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .35rem; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand-2); opacity: .85; }
.kpi-gold::before { background: var(--gold); }
.kpi-red::before { background: #d66248; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.kpi-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-2); }
.kpi-gold .kpi-ico { background: var(--gold-soft); color: #8a6519; }
.kpi-red .kpi-ico { background: #fbe4df; color: #be3428; }
.kpi-val { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-val small { font-size: .55em; font-weight: 600; color: var(--muted); margin-right: .1em; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.kpi-sub strong { color: var(--ink); }
.kpi-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.kpi-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b8892e, #e2b865); }

.util-list { padding: .4rem 1.4rem .8rem; }
.util-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) .6fr .6fr minmax(160px, 2fr) 1fr; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.util-row:last-child { border-bottom: 0; }
.util-name { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.util-name .fi-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.util-num, .util-rev { display: flex; flex-direction: column; line-height: 1.2; }
.util-num { text-align: center; }
.util-num span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.util-num small, .util-rev small { color: var(--muted); font-size: .74rem; }
.util-rev { text-align: right; }
.util-rev span { font-weight: 700; }
.util-bar { display: flex; align-items: center; gap: .7rem; }
.util-bar b { min-width: 42px; text-align: right; font-size: .85rem; }
.util-track { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.util-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--t1, #0e6b61), var(--t2, #4ac4b1)); transition: width 1s ease; }
@media (max-width: 991px) {
  .util-row { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
  .util-name { grid-column: 1 / -1; }
  .util-num { text-align: left; }
  .util-bar { grid-column: 1 / -1; }
  .util-rev { grid-column: 1 / -1; text-align: left; flex-direction: row; gap: .5rem; align-items: baseline; }
}

.chart-box { position: relative; height: 300px; }
.chart-box-sm { height: 260px; }
.donut-box { height: 230px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.donut-center small { color: var(--muted); font-size: .78rem; }
.chart-legend { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.chart-legend li { display: flex; align-items: center; gap: .6rem; font-size: .86rem; padding: .45rem .7rem; border-radius: 10px; background: var(--surface-2); }
.chart-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chart-legend li b { margin-left: auto; font-size: .82rem; }
.net-row { padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.net-row:last-child { border-bottom: 0; }
.net-row .util-track span { background: linear-gradient(90deg, #0e6b61, #4ac4b1); }

@media print {
  .rep-hero { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kpi, .card-x { box-shadow: none; break-inside: avoid; }
  .app-credit { display: none; }
}

/* ---------- Location map ---------- */
.map-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-frame { position: relative; height: 380px; background: var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-info { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; flex-wrap: wrap; }
.map-pin { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: #b8892e; font-size: 1.25rem; }
.map-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.min-w-0 { min-width: 0; }
.find-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; }
.find-list i { color: var(--brand-2); }
@media (max-width: 575px) { .map-frame { height: 280px; } .map-actions { width: 100%; } .map-actions .btn { flex: 1; } }

/* Internet days stepper */
.day-stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.day-stepper:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(14,107,97,.12); }
.day-stepper .form-control { border: 0; border-radius: 0; text-align: center; font-weight: 700; box-shadow: none !important; -moz-appearance: textfield; }
.day-stepper .form-control::-webkit-outer-spin-button, .day-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.day-stepper .form-control:disabled { background: var(--surface-2); }
.ds-btn { width: 46px; flex: none; border: 0; background: var(--primary-soft); color: var(--brand-2); font-size: 1rem; transition: background .2s; }
.ds-btn:hover:not(:disabled) { background: #cfe8e2; }
.ds-btn:disabled { opacity: .45; cursor: not-allowed; }
