/* =====================================================================
   BUSINESS DIRECTORY — DESIGN SYSTEM
   Cinematic • Premium • Dark • Gold accents
   Layered on top of Bootstrap 5. Uses CSS custom properties.
   ===================================================================== */

:root {
  --bg:        #171C24;
  --surface:   #212833;
  --surface-2: #2B3441;
  --gold:      #D4A84F;
  --gold-lt:   #F1D48A;
  --white:     #F7F7F5;
  --muted:     #A7B0BD;
  --success:   #38B26B;
  --danger:    #E55353;

  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);
  --glass: rgba(255,255,255,.055);
  --gold-grad: linear-gradient(135deg,var(--gold-lt),var(--gold));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.40);
  --font: "Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient radial glow behind the page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 40vw at 80% -10%, rgba(212,168,79,.10), transparent 60%),
    radial-gradient(50vw 40vw at -10% 10%, rgba(212,168,79,.06), transparent 55%);
  pointer-events: none;
}

h1,h2,h3,h4,h5 { font-weight: 700; letter-spacing: -.01em; color: var(--white); }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-lt); }

.text-gold   { color: var(--gold) !important; }
.text-muted2 { color: var(--muted) !important; }
.bg-surface  { background: var(--surface) !important; }

/* ------------------------------ NAVBAR ----------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(23,28,36,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 26px rgba(0,0,0,.38), 0 1px 0 rgba(247,247,245,.07);
}
.site-nav .brand { display:flex; align-items:center; gap:.6rem; font-weight:800; }
.site-nav .brand img {
  height: 86px; width:auto; display:block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
  transition: transform var(--transition);
}
.site-nav .brand:hover img { transform: scale(1.03); }
@media (max-width: 575.98px) { .site-nav .brand img { height: 58px; } }
.site-nav .brand-text small { display:block; font-size:.62rem; letter-spacing:.22em; color:var(--gold); text-transform:uppercase; }
.site-nav .nav-link { color: var(--white); font-weight:500; opacity:.85; padding:.4rem .9rem; }
.site-nav .nav-link:hover,.site-nav .nav-link.active { color: var(--gold); opacity:1; }

/* ------------------------------ BUTTONS ---------------------------- */
.btn { border-radius: 999px; font-weight:600; padding:.6rem 1.35rem; transition: all var(--transition); }
.btn-gold {
  background: var(--gold-grad); color:#1a1206; border:none;
  box-shadow: 0 8px 24px rgba(212,168,79,.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,168,79,.42); color:#1a1206; }
.btn-outline-gold { border:1px solid var(--gold); color:var(--gold); background:transparent; }
.btn-outline-gold:hover { background:var(--gold); color:#1a1206; }
.btn-ghost { background:var(--glass); color:var(--white); border:1px solid var(--line); }
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }

/* ------------------------------ CARDS ------------------------------ */
.card-glass {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card-glass:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,168,79,.35); }

/* Business card */
.biz-card .biz-img { position:relative; aspect-ratio: 16/10; overflow:hidden; }
.biz-card .biz-img img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.biz-card:hover .biz-img img { transform: scale(1.08); }
.biz-card .badge-verified {
  position:absolute; top:.6rem; left:.6rem; z-index:2;
  background: rgba(56,178,107,.92); color:#fff; font-size:.7rem; font-weight:600;
  padding:.25rem .6rem; border-radius:999px; display:inline-flex; align-items:center; gap:.3rem;
}
.biz-card .biz-body { padding:1rem 1.1rem 1.2rem; }
.biz-card h5 { font-size:1.05rem; margin:.1rem 0 .15rem; }
.biz-card .cat { color:var(--muted); font-size:.82rem; }
.rating { color:var(--gold); font-weight:700; font-size:.9rem; }
.rating .count { color:var(--muted); font-weight:400; }
.meta-loc { color:var(--muted); font-size:.82rem; }
.view-link { color:var(--gold); font-weight:600; font-size:.85rem; display:inline-flex; align-items:center; gap:.35rem; }
.view-link:hover { gap:.6rem; }

.badge-soft { background:var(--glass); border:1px solid var(--line); color:var(--muted); border-radius:999px; padding:.25rem .7rem; font-size:.72rem; }
.badge-open { color:var(--success); } .badge-closed { color:var(--danger); }

/* Category card */
.cat-card { position:relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow:hidden; display:block; }
.cat-card img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 30%, rgba(23,28,36,.9)); }
.cat-card .cat-meta { position:absolute; left:0; right:0; bottom:0; padding:1rem; z-index:2; }
.cat-card .cat-meta .ico {
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  background:var(--gold-grad); color:#1a1206; font-size:1.2rem; margin-bottom:.5rem;
}
.cat-card .cat-meta h6 { margin:0; font-size:.95rem; color:#fff; }
.cat-card.plain { background: linear-gradient(160deg,var(--surface),var(--surface-2)); border:1px solid var(--line); }
.cat-card.plain::after { display:none; }
.cat-card.plain .cat-meta { position:static; height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }

/* ------------------------------ HERO ------------------------------- */
.hero { position:relative; border-radius: 22px; overflow:hidden; min-height: 420px; display:flex; align-items:center; }
.hero .hero-bg { position:absolute; inset:0; z-index:0; }
.hero .hero-bg img { width:100%; height:100%; object-fit:cover; }
.hero .hero-bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(23,28,36,.92) 0%, rgba(23,28,36,.72) 45%, rgba(23,28,36,.35) 100%); }
.hero .hero-inner { position:relative; z-index:2; padding: 3rem 2.5rem; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height:1.05; }
.hero h1 .accent { color: var(--gold); display:block; }
.hero .tagline { color:var(--gold-lt); letter-spacing:.06em; font-weight:600; }
.hero .lead2 { color: rgba(247,247,245,.8); max-width: 520px; }

/* Search bar */
.search-panel { background: rgba(33,40,51,.85); border:1px solid var(--line-strong); border-radius: 16px; padding:.5rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.search-panel .form-control, .search-panel .form-select {
  background: var(--surface-2); border:1px solid var(--line); color:var(--white); border-radius: 10px; padding:.7rem .9rem;
}
.search-panel .form-control::placeholder { color: var(--muted); }
.search-panel .form-control:focus,.search-panel .form-select:focus { border-color:var(--gold); box-shadow:0 0 0 .2rem rgba(212,168,79,.2); }

/* Trust indicators */
.trust { display:flex; flex-wrap:wrap; gap:1.4rem; color: rgba(247,247,245,.85); font-size:.85rem; }
.trust .item { display:flex; align-items:center; gap:.5rem; }
.trust .item i { color: var(--gold); }

/* ------------------------ SECTION HEADINGS ------------------------- */
.section-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:1.3rem; }
.section-head h2 { font-size: clamp(1.4rem,3vw,2rem); }
.eyebrow { color:var(--gold); font-size:.75rem; letter-spacing:.22em; text-transform:uppercase; font-weight:700; }

/* -------------------------- CTA / PROMO ---------------------------- */
.promo { position:relative; border-radius: var(--radius); overflow:hidden; background: linear-gradient(135deg,#3a2c12,#2A313C); border:1px solid rgba(212,168,79,.25); }
.promo .check { color:var(--gold); }

/* ------------------------- MEMBERSHIP CARD ------------------------- */
.member-card {
  border-radius: 18px; padding: 1.4rem; color:#fff; position:relative; overflow:hidden;
  background: radial-gradient(120% 120% at 100% 0%, #3a3020 0%, #212833 55%, #171C24 100%);
  border:1px solid rgba(212,168,79,.35); box-shadow: var(--shadow-lg);
}
.member-card::before { content:""; position:absolute; inset:0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="90" cy="10" r="60" fill="none" stroke="%23D4A84F" stroke-opacity="0.08" stroke-width="1"/></svg>'); opacity:.6; }
.member-card .mc-head { display:flex; justify-content:space-between; align-items:center; position:relative; z-index:2; }
.member-card .mc-label { letter-spacing:.2em; font-size:.68rem; color:var(--gold-lt); text-transform:uppercase; }
.member-card .mc-qr { background:#fff; padding:.4rem; border-radius:10px; width:120px; height:120px; }
.member-card .mc-status { color:var(--success); font-weight:700; }

/* --------------------------- DASHBOARD ----------------------------- */
.admin-shell { display:flex; min-height:100vh; }
.sidebar {
  width: 262px; flex:0 0 262px; background: var(--surface); border-right:1px solid var(--line);
  padding: 1.2rem 0; position:sticky; top:0; height:100vh; overflow-y:auto;
}
.sidebar .brand { padding:0 1.4rem 1.2rem; border-bottom:1px solid var(--line); margin-bottom:.8rem; }
.sidebar .brand img { height:48px; }
.sidebar .nav-link { color:var(--muted); padding:.65rem 1.4rem; display:flex; align-items:center; gap:.75rem; border-left:3px solid transparent; font-size:.92rem; }
.sidebar .nav-link i { width:20px; text-align:center; }
.sidebar .nav-link:hover { color:var(--white); background: var(--glass); }
.sidebar .nav-link.active { color:var(--gold); border-left-color:var(--gold); background: rgba(212,168,79,.06); }
.sidebar .nav-section { color:var(--muted); font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; padding:.9rem 1.4rem .4rem; opacity:.6; }

.admin-main { flex:1 1 auto; min-width:0; }
.admin-topbar { background: rgba(33,40,51,.7); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); padding:.9rem 1.5rem; position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; }
.admin-content { padding: 1.5rem; }

.stat-card { background: linear-gradient(180deg,var(--surface),var(--surface-2)); border:1px solid var(--line); border-radius:var(--radius); padding:1.2rem 1.3rem; }
.stat-card .ico { width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:1.25rem; background:rgba(212,168,79,.12); color:var(--gold); }
.stat-card .value { font-size:1.9rem; font-weight:800; line-height:1; margin:.4rem 0 .1rem; }
.stat-card .label { color:var(--muted); font-size:.82rem; }

.data-table { width:100%; border-collapse:separate; border-spacing:0; }
.data-table th { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; text-align:left; padding:.7rem 1rem; border-bottom:1px solid var(--line); }
.data-table td { padding:.85rem 1rem; border-bottom:1px solid var(--line); font-size:.9rem; }
.data-table tr:hover td { background: var(--glass); }

.status-pill { font-size:.72rem; font-weight:600; padding:.22rem .65rem; border-radius:999px; display:inline-block; }
.status-active,.status-published,.status-paid,.status-approved { background:rgba(56,178,107,.15); color:var(--success); }
.status-pending,.status-draft { background:rgba(212,168,79,.15); color:var(--gold); }
.status-expired,.status-rejected,.status-suspended,.status-failed { background:rgba(229,83,83,.15); color:var(--danger); }

/* --------------------------- FORMS --------------------------------- */
.form-control,.form-select { background:var(--surface-2); border:1px solid var(--line); color:var(--white); border-radius:10px; padding:.65rem .85rem; }
.form-control:focus,.form-select:focus { background:var(--surface-2); color:var(--white); border-color:var(--gold); box-shadow:0 0 0 .2rem rgba(212,168,79,.18); }
.form-control::placeholder { color:var(--muted); }
.form-label { color: rgba(247,247,245,.85); font-weight:500; font-size:.85rem; margin-bottom:.35rem; }
.auth-wrap { min-height: 100vh; display:grid; place-items:center; padding:2rem 1rem; }
.auth-card { width:100%; max-width: 440px; }

/* --------------------------- FOOTER -------------------------------- */
.site-footer { background: var(--surface); border-top:1px solid var(--line); margin-top:4rem; padding:3rem 0 1.5rem; color:var(--muted); }
.site-footer a { color:var(--muted); } .site-footer a:hover { color:var(--gold); }
.site-footer h6 { color:var(--white); margin-bottom:1rem; }
.footer-bottom { border-top:1px solid var(--line); margin-top:2rem; padding-top:1.2rem; font-size:.82rem; }

/* ------------------------ MOBILE BOTTOM NAV ------------------------ */
.mobile-nav { display:none; position:fixed; bottom:0; left:0; right:0; z-index:1040;
  background: rgba(33,40,51,.94); backdrop-filter: blur(14px); border-top:1px solid var(--line);
  padding:.4rem .2rem calc(.4rem + env(safe-area-inset-bottom,0px)); }
.mobile-nav a { flex:1; text-align:center; color:var(--muted); font-size:.66rem; padding:.35rem 0; display:flex; flex-direction:column; gap:.15rem; }
.mobile-nav a i { font-size:1.15rem; }
.mobile-nav a.active { color:var(--gold); }

/* ------------------------ ANIMATIONS ------------------------------- */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px);} to { opacity:1; transform:none; } }
.reveal { opacity:0; }
.reveal.in { animation: fadeUp .6s ease forwards; }
.skeleton { background: linear-gradient(90deg,var(--surface-2) 25%,#232830 37%,var(--surface-2) 63%); background-size:400% 100%; animation: shimmer 1.4s ease infinite; border-radius:8px; }
@keyframes shimmer { 0%{background-position:100% 0;} 100%{background-position:-100% 0;} }

/* --------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 991.98px) {
  .hero .hero-inner { padding:2rem 1.4rem; }
  .sidebar { position:fixed; left:-280px; transition:left var(--transition); z-index:1050; }
  .sidebar.open { left:0; }
  .admin-main { width:100%; }
}
@media (max-width: 767.98px) {
  body { padding-bottom: 64px; }
  .mobile-nav { display:flex; }
  .section-head { flex-direction:column; align-items:start; gap:.4rem; }
}

/* Accessibility: visible focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *{ animation:none !important; transition:none !important; } }

/* ------------------ ADMIN/MEMBER LAYOUT EXTRAS -------------------- */
.sidebar-backdrop { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:1040; }
.sidebar-backdrop.show { display:block; }
.avatar-initial { width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  background:rgba(212,168,79,.15); color:var(--gold); font-weight:700; font-size:.9rem; }
.dropdown-dark { background:var(--surface-2); border:1px solid var(--line); }
.dropdown-dark .dropdown-item { color:var(--white); }
.dropdown-dark .dropdown-item:hover { background:var(--glass); color:var(--gold); }
.dropdown-dark .dropdown-divider { border-color:var(--line); }
@media (min-width: 992px) { .sidebar-backdrop { display:none !important; } }

/* --------------------------- VERIFY PAGE --------------------------- */
.verify-icon { width:88px; height:88px; border-radius:50%; display:grid; place-items:center;
  font-size:2.6rem; margin:0 auto; }
.verify-ok     { background:rgba(56,178,107,.14);  color:var(--success); }
.verify-warn   { background:rgba(212,168,79,.14);  color:var(--gold); }
.verify-danger { background:rgba(229,83,83,.14);   color:var(--danger); }
.verify-details { border:1px solid var(--line); border-radius:var(--radius); padding:.4rem 1rem; }

/* =====================================================================
   BATCH 2 — Directory, profile, members, admin CRUD
   ===================================================================== */
.min-w-0 { min-width:0; }
.tiny { font-size:.72rem; }
.text-muted2 a, a.text-muted2 { color:var(--muted); }

/* Page hero (inner pages) */
.page-hero { padding:2.2rem 0 1.6rem; background:
  radial-gradient(90% 140% at 100% 0%, rgba(212,168,79,.10), transparent 60%); }
.page-title { font-size:clamp(1.7rem,3.6vw,2.6rem); font-weight:800; margin:0; }
.breadcrumb-dark { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); font-size:.82rem; }
.breadcrumb-dark a { color:var(--gold); text-decoration:none; }

/* Form controls — dark theme completion */
.form-label { color:rgba(247,247,245,.85); font-size:.85rem; font-weight:500; }
.form-check-input { background-color:var(--surface-2); border-color:var(--line-strong); }
.form-check-input:checked { background-color:var(--gold); border-color:var(--gold); }
.form-check-input:focus { box-shadow:0 0 0 .2rem rgba(212,168,79,.2); border-color:var(--gold); }
.form-switch .form-check-input:not(:checked) { --bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23A7B0BD'/%3e%3c/svg%3e"); }
.input-group-text { background:var(--surface); border:1px solid var(--line); color:var(--gold); }
.form-select { --bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23D4A84F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background:var(--surface-2); color:var(--white); }
.form-control:disabled,.form-select:disabled { background:var(--surface); opacity:.55; }
.invalid-feedback { color:#ff8a8a; }
input[type=time]::-webkit-calendar-picker-indicator, input[type=date]::-webkit-calendar-picker-indicator { filter:invert(.8); }

/* Directory filters */
.filter-panel { --bs-offcanvas-bg: var(--bg); --bs-offcanvas-color: var(--white); --bs-offcanvas-width: 330px; }
@media (min-width: 992px) { .filter-panel { position:sticky; top:120px; } .filter-panel .offcanvas-header { display:none; } }
.filter-group { padding-bottom:1rem; margin-bottom:1rem; border-bottom:1px solid var(--line); }
.filter-group:last-of-type { border-bottom:0; }
.filter-label { display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold); font-weight:700; margin-bottom:.5rem; }
.results-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem; margin-bottom:1rem; }
.results-bar .form-select { min-width:150px; }
.filter-chip { display:inline-flex; align-items:center; gap:.3rem; padding:.3rem .75rem; border-radius:999px; font-size:.8rem;
  background:rgba(212,168,79,.12); border:1px solid rgba(212,168,79,.3); color:var(--gold-lt); text-decoration:none; transition:var(--transition); }
.filter-chip:hover { background:rgba(212,168,79,.22); color:#fff; }

/* Empty state */
.empty-state { text-align:center; padding:3.5rem 1.5rem; }
.empty-state > i { font-size:2.6rem; color:var(--gold); display:block; margin-bottom:.8rem; opacity:.85; }

/* Pagination */
.pagination-dark { --bs-pagination-bg:var(--surface); --bs-pagination-border-color:var(--line); --bs-pagination-color:var(--white);
  --bs-pagination-hover-bg:var(--surface-2); --bs-pagination-hover-color:var(--gold); --bs-pagination-hover-border-color:var(--line-strong);
  --bs-pagination-active-bg:var(--gold); --bs-pagination-active-border-color:var(--gold); --bs-pagination-active-color:#1a1206;
  --bs-pagination-disabled-bg:var(--surface); --bs-pagination-disabled-color:var(--muted); --bs-pagination-disabled-border-color:var(--line);
  --bs-pagination-focus-box-shadow:0 0 0 .2rem rgba(212,168,79,.25); gap:.3rem; }
.pagination-dark .page-link { border-radius:10px !important; min-width:40px; text-align:center; }

/* Autocomplete */
.ac-wrap { position:relative; }
.ac-box { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:1050; background:var(--surface); border:1px solid var(--line-strong);
  border-radius:14px; box-shadow:var(--shadow-lg); padding:.4rem; max-height:360px; overflow:auto; }
.ac-box a { display:flex; gap:.7rem; align-items:flex-start; padding:.55rem .7rem; border-radius:10px; color:var(--white); text-decoration:none; }
.ac-box a i { color:var(--gold); margin-top:.15rem; }
.ac-box a small { display:block; color:var(--muted); font-size:.75rem; }
.ac-box a:hover, .ac-box a.active { background:var(--surface-2); }
.ac-head { font-size:.68rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); padding:.5rem .7rem .2rem; }
.ac-empty { padding:.8rem; color:var(--muted); font-size:.85rem; }

/* Business profile */
.biz-cover { position:relative; border-radius:22px; overflow:hidden; aspect-ratio: 16/5; min-height:190px; background:var(--surface); }
.biz-cover img { width:100%; height:100%; object-fit:cover; }
.biz-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, rgba(23,28,36,.85)); }
.biz-cover-fallback { width:100%; height:100%; display:grid; place-items:center;
  background:radial-gradient(120% 140% at 100% 0%, #3a3020 0%, var(--surface) 55%, var(--bg) 100%); }
.biz-cover-fallback span { font-size:5rem; font-weight:800; color:rgba(212,168,79,.35); }
.biz-back { position:absolute; top:1rem; left:1rem; z-index:2; width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  background:rgba(23,28,36,.6); backdrop-filter:blur(8px); color:#fff; border:1px solid var(--line-strong); }
.biz-head { position:relative; z-index:3; margin:-64px 1rem 0; padding:1.4rem; display:flex; flex-wrap:wrap; gap:1.2rem; align-items:center;
  background:rgba(33,40,51,.88); backdrop-filter:blur(14px); }
.biz-logo { width:96px; height:96px; flex:0 0 96px; border-radius:18px; overflow:hidden; background:var(--surface-2); border:2px solid rgba(212,168,79,.45);
  display:grid; place-items:center; box-shadow:var(--shadow-sm); }
.biz-logo img { width:100%; height:100%; object-fit:cover; }
.biz-logo span { font-size:2.4rem; font-weight:800; color:var(--gold); }
.verified-pill { display:inline-flex; align-items:center; gap:.3rem; padding:.22rem .7rem; border-radius:999px; font-size:.75rem; font-weight:600;
  background:rgba(56,178,107,.15); color:var(--success); border:1px solid rgba(56,178,107,.35); }
.biz-actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.biz-actions .act { display:flex; flex-direction:column; align-items:center; gap:.25rem; min-width:78px; padding:.65rem .6rem; border-radius:14px;
  font-size:.78rem; font-weight:600; text-decoration:none; border:1px solid var(--line); background:var(--glass); color:var(--white); transition:var(--transition); }
.biz-actions .act i { font-size:1.15rem; }
.biz-actions .act:hover { transform:translateY(-2px); border-color:var(--gold); }
.act-call i { color:var(--success); } .act-wa i { color:#25D366; } .act-dir i { color:#5aa9ff; } .act-share i { color:var(--gold); }
@media (max-width: 767.98px) {
  .biz-head { margin:-48px .5rem 0; }
  .biz-actions { width:100%; } .biz-actions .act { flex:1 1 0; min-width:0; }
  .biz-logo { width:74px; height:74px; flex-basis:74px; }
}
.biz-tabs { gap:.3rem; border-bottom:1px solid var(--line); position:sticky; top:100px; z-index:5; background:var(--bg); padding-top:.3rem; overflow-x:auto; flex-wrap:nowrap; }
.biz-tabs a { display:block; padding:.6rem 1rem; color:var(--muted); text-decoration:none; font-weight:600; font-size:.9rem; border-bottom:2px solid transparent; white-space:nowrap; }
.biz-tabs a.active, .biz-tabs a:hover { color:var(--gold); border-bottom-color:var(--gold); }
.biz-desc { color:rgba(247,247,245,.88); line-height:1.75; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.6rem; }
.gallery-item { display:block; aspect-ratio:1; border-radius:12px; overflow:hidden; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.gallery-item:hover img { transform:scale(1.08); }
.hours-table { width:100%; }
.hours-table th, .hours-table td { padding:.5rem 0; border-bottom:1px dashed var(--line); font-weight:500; }
.hours-table td { text-align:right; }
.hours-table tr.today th, .hours-table tr.today td { color:var(--gold-lt); font-weight:700; }
.map-frame { border-radius:14px; overflow:hidden; aspect-ratio:16/8; border:1px solid var(--line); }
.map-frame iframe { width:100%; height:100%; border:0; filter:saturate(.85) brightness(.92); }
.contact-list { list-style:none; padding:0; margin:0; display:grid; gap:.8rem; }
.contact-list li { display:flex; gap:.7rem; align-items:flex-start; font-size:.92rem; word-break:break-word; }
.contact-list i { color:var(--gold); margin-top:.15rem; }
.contact-list a { color:var(--white); text-decoration:none; } .contact-list a:hover { color:var(--gold); }
.social-btn { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--glass); border:1px solid var(--line); color:var(--white); transition:var(--transition); }
.social-btn:hover { color:var(--gold); border-color:var(--gold); transform:translateY(-2px); }
.member-mini { display:flex; gap:.8rem; align-items:center; padding:.8rem; border-radius:14px; background:linear-gradient(135deg, rgba(212,168,79,.12), transparent); border:1px solid rgba(212,168,79,.25); }
.member-mini img { width:48px; height:48px; object-fit:contain; }
.lightbox-body { position:relative; text-align:center; }
.lightbox-body img { max-width:100%; max-height:80vh; border-radius:14px; }
.lb-close { position:absolute; top:-2.2rem; right:0; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:1px solid var(--line-strong);
  background:rgba(23,28,36,.7); color:#fff; font-size:1.2rem; }
.lb-prev { left:.5rem; } .lb-next { right:.5rem; }

/* Categories & members listing */
.cat-tile .cat-card { aspect-ratio:4/3; }
.cat-tile .cat-meta .ico { margin-bottom:.4rem; }
.member-tile { display:flex; gap:.9rem; align-items:center; padding:1rem; text-decoration:none; color:var(--white); height:100%; transition:var(--transition); }
.member-tile:hover { transform:translateY(-3px); border-color:rgba(212,168,79,.45); color:var(--white); }
.mt-logo { width:58px; height:58px; flex:0 0 58px; border-radius:14px; overflow:hidden; background:var(--surface-2); display:grid; place-items:center; border:1px solid var(--line); }
.mt-logo img { width:100%; height:100%; object-fit:cover; }
.mt-logo span { font-size:1.5rem; font-weight:800; color:var(--gold); }

/* ------------------------------ ADMIN ------------------------------ */
.status-tabs { display:flex; flex-wrap:wrap; gap:.35rem; }
.status-tabs a { padding:.4rem .85rem; border-radius:999px; font-size:.82rem; font-weight:600; color:var(--muted); text-decoration:none;
  background:var(--glass); border:1px solid var(--line); transition:var(--transition); }
.status-tabs a span { margin-left:.3rem; padding:.05rem .45rem; border-radius:999px; background:var(--surface-2); font-size:.72rem; color:var(--white); }
.status-tabs a span.hot { background:var(--gold); color:#1a1206; }
.status-tabs a.active, .status-tabs a:hover { color:var(--gold); border-color:rgba(212,168,79,.5); }
.btn-icon { width:34px; height:34px; padding:0; display:inline-grid; place-items:center; border-radius:10px; background:transparent; border:1px solid transparent; color:var(--white); }
.btn-icon:hover { background:var(--glass); border-color:var(--line); color:var(--gold); }
.btn-icon.disabled { opacity:.25; pointer-events:none; }
.thumb-sm { width:38px; height:38px; flex:0 0 38px; border-radius:10px; overflow:hidden; display:grid; place-items:center; background:var(--surface-2); color:var(--gold); font-weight:700; }
.thumb-sm img { width:100%; height:100%; object-fit:cover; }
.row-child td:first-child { padding-left:2rem; }
.row-muted td { opacity:.55; }
.status-inactive,.status-cancelled { background:rgba(167,176,189,.15); color:var(--muted); }
.avatar-lg { width:72px; height:72px; border-radius:18px; overflow:hidden; display:grid; place-items:center; background:rgba(212,168,79,.15); color:var(--gold); font-size:1.8rem; font-weight:800; }
.avatar-lg img { width:100%; height:100%; object-fit:cover; }
.detail-grid { display:grid; grid-template-columns: 150px 1fr; gap:.55rem 1rem; margin:0; font-size:.9rem; }
.detail-grid dt { color:var(--muted); font-weight:500; }
.detail-grid dd { margin:0; word-break:break-word; }
@media (max-width:575.98px) { .detail-grid { grid-template-columns:1fr; } .detail-grid dd { margin-bottom:.4rem; } }
.act-form { padding:.8rem; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.timeline { list-style:none; margin:0; padding:0 0 0 1rem; border-left:2px solid var(--line); }
.timeline li { position:relative; padding:0 0 1rem .8rem; }
.timeline li::before { content:""; position:absolute; left:-1.42rem; top:.3rem; width:10px; height:10px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(212,168,79,.18); }
.form-section { color:var(--gold); text-transform:uppercase; letter-spacing:.1em; font-size:.75rem; font-weight:700; margin-bottom:1rem; }
.hours-edit { display:grid; gap:.5rem; }
.hours-row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.hours-row .day { width:100px; font-weight:600; font-size:.88rem; }
.hours-row input[type=time] { width:auto; flex:0 1 130px; }
.gallery-admin { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:.8rem; }
.ga-item img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.img-prev { display:block; max-width:100%; border-radius:12px; border:1px solid var(--line); object-fit:cover; }
.img-prev.square { width:120px; height:120px; }
.img-prev.wide { width:100%; aspect-ratio:2/1; }
.thumb-prev { width:56px; height:56px; border-radius:12px; object-fit:cover; }

/* Tables → stacked cards on phones */
@media (max-width: 767.98px) {
  .data-table.stack thead { display:none; }
  .data-table.stack, .data-table.stack tbody, .data-table.stack tr, .data-table.stack td { display:block; width:100%; }
  .data-table.stack tr { border:1px solid var(--line); border-radius:14px; margin-bottom:.8rem; padding:.4rem .2rem; background:var(--glass); }
  .data-table.stack td { border:0; padding:.35rem .8rem; text-align:left !important; }
  .data-table.stack td[data-label]::before { content:attr(data-label); display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
  .data-table.stack .row-child td:first-child { padding-left:.8rem; }
}

/* Password form */
.pw-eye { border-top-left-radius:0 !important; border-bottom-left-radius:0 !important; padding:.5rem .9rem; }
.pw-meter .bar { height:6px; border-radius:999px; background:var(--surface-2); overflow:hidden; margin-bottom:.3rem; }
.pw-meter .bar span { display:block; height:100%; width:0; border-radius:999px; transition:width .25s ease, background .25s ease; }
.form-control.is-invalid { border-color:var(--danger); }

/* =====================================================================
   BATCH 3 — plans, payments, card, QR, notifications
   ===================================================================== */
.plan-price { font-size:1.6rem; font-weight:800; color:var(--gold-lt); line-height:1.1; }
.plan-price small { font-size:.8rem; font-weight:500; color:var(--muted); }
.plan-benefits { list-style:none; padding:0; margin:.8rem 0; display:grid; gap:.35rem; font-size:.88rem; }
.plan-benefits i { color:var(--success); margin-right:.45rem; }
.plan-choice { cursor:pointer; transition:var(--transition); border:1px solid var(--line); }
.plan-choice:hover { border-color:rgba(212,168,79,.5); }
.plan-choice:has(input:checked) { border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,168,79,.18), var(--shadow-sm); }
.period-preview { padding:.8rem 1rem; border-radius:12px; background:var(--surface); border:1px dashed var(--line-strong); }
.bank-box { white-space:pre-wrap; font-family:inherit; font-size:.88rem; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:.9rem 1rem; color:var(--white); }
.pay-due.focus { border-color:rgba(212,168,79,.55); box-shadow:0 0 0 3px rgba(212,168,79,.12); }
.bell-dot { position:absolute; top:-2px; right:-4px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--danger); color:#fff; font-size:.65rem; font-weight:700; display:grid; place-items:center; }
.notif { display:flex; gap:.9rem; align-items:flex-start; padding:.9rem 1rem; border-radius:14px; border:1px solid var(--line); background:var(--glass); color:var(--white); text-decoration:none; transition:var(--transition); }
.notif > i { font-size:1.2rem; color:var(--muted); margin-top:.1rem; }
.notif.unread { border-color:rgba(212,168,79,.4); background:rgba(212,168,79,.07); }
.notif.unread > i { color:var(--gold); }
.notif:hover { transform:translateX(3px); color:var(--white); }

/* Digital membership card (portrait, ID-card proportions) */
.mcard { position:relative; width:340px; max-width:100%; padding:1.4rem 1.4rem 1.1rem; border-radius:22px; overflow:hidden; text-align:center; color:#F7F7F5;
  background:linear-gradient(160deg,#2b2415 0%,#171C24 38%,#10141a 70%,#2a2213 100%); border:1px solid rgba(212,168,79,.55);
  box-shadow:0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.mcard-glow { position:absolute; inset:-40% -30% auto auto; width:260px; height:260px; background:radial-gradient(circle, rgba(212,168,79,.28), transparent 65%); pointer-events:none; }
.mcard-head { position:relative; display:flex; align-items:center; gap:.7rem; text-align:left; margin-bottom:1rem; }
.mcard-logo { height:54px; width:auto; }
.mcard-org { font-weight:800; font-size:.95rem; line-height:1.15; }
.mcard-kicker { font-size:.62rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold); margin-top:.2rem; }
.mcard-photo { width:96px; height:96px; margin:0 auto .7rem; border-radius:50%; overflow:hidden; border:3px solid var(--gold); background:#1D2229; display:grid; place-items:center; box-shadow:0 0 0 5px rgba(212,168,79,.15); }
.mcard-photo img { width:100%; height:100%; object-fit:cover; }
.mcard-photo span { font-size:2.4rem; font-weight:800; color:var(--gold); }
.mcard-name { font-size:1.25rem; font-weight:800; line-height:1.2; }
.mcard-sub { font-size:.8rem; color:#c9ced6; }
.mcard-number { margin:.35rem 0 .9rem; font-size:1.05rem; font-weight:800; letter-spacing:.14em; color:var(--gold-lt); }
.mcard-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem; padding:.7rem .3rem; border-top:1px solid rgba(212,168,79,.25); border-bottom:1px solid rgba(212,168,79,.25); }
.mcard-meta span { display:block; font-size:.58rem; letter-spacing:.12em; text-transform:uppercase; color:#aab1bc; }
.mcard-meta strong { font-size:.8rem; }
.mcard-meta .ok { color:#5fd08f; } .mcard-meta .bad { color:#ff7b7b; }
.mcard-qr { display:inline-block; margin:1rem auto .4rem; padding:10px; background:#fff; border-radius:14px; }
.mcard-qr img, .mcard-qr canvas { display:block; }
.mcard-foot { font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:#aab1bc; }
.mcard-stamp { position:absolute; top:44%; left:50%; transform:translate(-50%,-50%) rotate(-18deg); padding:.3rem 1.4rem; border:4px solid rgba(229,83,83,.85); color:rgba(229,83,83,.9); font-size:2rem; font-weight:900; letter-spacing:.2em; border-radius:10px; pointer-events:none; }
.mcard.is-expired .mcard-qr { opacity:.55; }
.qr-big { display:inline-block; padding:14px; background:#fff; border-radius:18px; }

/* Print only the card (member/card.php) */
@media print {
  body * { visibility:hidden !important; }
  #memberCard, #memberCard * { visibility:visible !important; }
  #memberCard { position:fixed; top:12mm; left:50%; transform:translateX(-50%); box-shadow:none; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* =====================================================================
   BATCH 4 — events, news, documents, reviews, complaints, offers
   ===================================================================== */
.clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
/* Events */
.event-row { display:flex; align-items:center; gap:1rem; padding:1rem 1.2rem; text-decoration:none; color:var(--white); transition:var(--transition); }
.event-row:hover { transform:translateY(-2px); border-color:rgba(212,168,79,.45); color:var(--white); }
.event-date { width:62px; flex:0 0 62px; text-align:center; border-radius:14px; padding:.45rem 0; background:linear-gradient(160deg, rgba(212,168,79,.25), rgba(212,168,79,.06)); border:1px solid rgba(212,168,79,.35); }
.event-date .d { display:block; font-size:1.5rem; font-weight:800; line-height:1; color:var(--gold-lt); }
.event-date .m { font-size:.68rem; letter-spacing:.14em; color:var(--gold); }
.ticket { display:flex; overflow:hidden; border:1px solid rgba(212,168,79,.4); }
.ticket-main { flex:1; padding:1.1rem 1.2rem; min-width:0; }
.ticket-qr { padding:1rem; background:#fff; color:#333; text-align:center; border-left:2px dashed rgba(0,0,0,.25); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ticket-qr .text-muted2 { color:#555 !important; }
/* News & offers cards */
.news-card, .offer-card { display:block; overflow:hidden; height:100%; text-decoration:none; color:var(--white); transition:var(--transition); }
.news-card:hover { transform:translateY(-3px); border-color:rgba(212,168,79,.45); color:var(--white); }
.news-img { position:relative; aspect-ratio:16/9; background:linear-gradient(140deg,#3a3020,var(--surface)); display:grid; place-items:center; overflow:hidden; }
.news-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.news-card:hover .news-img img { transform:scale(1.06); }
.news-img > i { font-size:2.6rem; color:rgba(212,168,79,.55); }
.news-type { position:absolute; left:.7rem; top:.7rem; padding:.2rem .6rem; border-radius:999px; font-size:.68rem; font-weight:700; letter-spacing:.06em; background:rgba(23,28,36,.8); color:var(--gold-lt); backdrop-filter:blur(6px); }
.news-pin { position:absolute; right:.7rem; top:.6rem; color:var(--gold); }
.offer-badge { display:inline-block; padding:.15rem .55rem; border-radius:8px; font-size:.75rem; font-weight:800; background:var(--gold); color:#1a1206; letter-spacing:.03em; }
.offer-float { position:absolute; right:.7rem; bottom:.7rem; font-size:.95rem; box-shadow:0 6px 18px rgba(0,0,0,.35); }
.offer-card.locked .news-img img { filter:blur(2px) brightness(.7); }
.offer-strip { border-color:rgba(212,168,79,.35); background:linear-gradient(135deg, rgba(212,168,79,.08), transparent); }
/* Documents */
.doc-attach { display:flex; align-items:center; gap:.9rem; padding:.9rem 1rem; text-decoration:none; color:var(--white); }
.doc-attach > i { font-size:1.9rem; color:var(--gold); }
a.doc-attach:hover { border-color:rgba(212,168,79,.45); color:var(--white); }
/* Reviews */
.stars { color:var(--gold); letter-spacing:.05em; } .stars .off { color:rgba(255,255,255,.18); }
.review-item { padding-bottom:1rem; border-bottom:1px solid var(--line); }
.star-input { display:inline-flex; flex-direction:row-reverse; gap:.1rem; border:0; padding:0; }
.star-input legend { float:none; width:100%; }
.star-input input { position:absolute; opacity:0; width:1px; height:1px; }
.star-input label { font-size:1.9rem; line-height:1; cursor:pointer; color:rgba(255,255,255,.2); transition:color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color:var(--gold); }
.star-input input:focus-visible + label { outline:2px solid var(--gold); border-radius:4px; }
.review-mod { cursor:pointer; }
/* Complaint thread */
.thread { display:grid; gap:.6rem; }
.thread .msg { max-width:88%; padding:.8rem 1rem; border-radius:14px; background:var(--glass); border:1px solid var(--line); }
.thread .msg p:last-child { margin-bottom:0; }
.thread .msg.staff { background:rgba(212,168,79,.09); border-color:rgba(212,168,79,.3); }
.thread .msg.mine { margin-left:auto; }
.prio { font-size:.75rem; font-weight:700; padding:.15rem .55rem; border-radius:999px; background:var(--glass); }
.prio-urgent { background:rgba(229,83,83,.2); color:#ff8a8a; } .prio-high { background:rgba(212,168,79,.18); color:var(--gold-lt); } .prio-low { color:var(--muted); }

/* =====================================================================
   BATCH 5 — i18n fonts, settings, reports, notifications, RBAC
   ===================================================================== */
html[lang="si"] body { font-family:'Plus Jakarta Sans','Noto Sans Sinhala','Iskoola Pota',system-ui,sans-serif; }
html[lang="ta"] body { font-family:'Plus Jakarta Sans','Noto Sans Tamil','Latha',system-ui,sans-serif; }
html[lang="si"] .hero h1, html[lang="ta"] .hero h1 { font-size:clamp(2rem,5vw,3.6rem); line-height:1.25; }
.site-nav .btn-ghost.active { color:var(--gold); border-color:rgba(212,168,79,.5); }
.settings-tabs { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:1rem; }
.settings-tabs a { padding:.45rem .9rem; border-radius:10px; color:var(--muted); text-decoration:none; border:1px solid var(--line); background:var(--glass); font-weight:600; font-size:.85rem; }
.settings-tabs a.active, .settings-tabs a:hover { color:var(--gold); border-color:rgba(212,168,79,.5); }
.perm-matrix th, .perm-matrix td { text-align:center; white-space:nowrap; }
.perm-matrix th:first-child, .perm-matrix td:first-child { text-align:left; }
.perm-matrix .mod-row td { background:rgba(212,168,79,.07); color:var(--gold); font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; }
.json-diff { font-size:.78rem; white-space:pre-wrap; word-break:break-word; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:.6rem .8rem; margin:0; max-height:260px; overflow:auto; }
.report-card { display:flex; gap:.9rem; align-items:flex-start; padding:1rem; text-decoration:none; color:var(--white); height:100%; transition:var(--transition); }
.report-card:hover { transform:translateY(-2px); border-color:rgba(212,168,79,.5); color:var(--white); }
.report-card > i { font-size:1.6rem; color:var(--gold); }
.chan-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:.35rem; background:var(--muted); }
.chan-dot.on { background:var(--success); box-shadow:0 0 0 3px rgba(56,178,107,.2); } .chan-dot.off { background:var(--danger); }
@media print {
  .no-print, .sidebar, .admin-topbar, .site-nav, .mobile-nav, footer { display:none !important; }
  .admin-main { margin:0 !important; } body { background:#fff !important; color:#000 !important; }
  .print-area, .print-area * { color:#000 !important; background:transparent !important; box-shadow:none !important; }
  .print-area .data-table td, .print-area .data-table th { border-bottom:1px solid #ccc !important; }
}

/* Support inbox badge */
.sidebar .nav-link .nav-badge { margin-left:auto; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--gold); color:#1a1206; font-size:.7rem; font-weight:800; display:inline-grid; place-items:center; }

/* =====================================================================
   About page — mission/vision + leadership letters
   ===================================================================== */
.mv-card { padding:2rem; position:relative; overflow:hidden; }
.mv-card::after { content:""; position:absolute; right:-40px; top:-40px; width:160px; height:160px; border-radius:50%; background:radial-gradient(circle, rgba(212,168,79,.18), transparent 70%); }
.mv-ico { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:1.6rem; color:var(--gold); background:rgba(212,168,79,.12); border:1px solid rgba(212,168,79,.35); margin-bottom:1rem; }
.value-chip { padding:.5rem 1rem; border-radius:999px; background:var(--glass); border:1px solid rgba(212,168,79,.35); color:var(--gold-lt); font-weight:600; }

/* Letter: cream paper so dark-ink signatures show exactly as signed */
.letter { display:grid; grid-template-columns:240px 1fr; gap:0; margin:0 0 2rem; border-radius:22px; overflow:hidden; box-shadow:var(--shadow-lg); border:1px solid rgba(212,168,79,.45); }
.letter.flip { grid-template-columns:1fr 240px; }
.letter.flip .letter-side { order:2; }
.letter-side { background:linear-gradient(170deg,#2b2415 0%,#171C24 60%); padding:2rem 1.2rem; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:1rem; }
.letter-photo { width:170px; height:170px; border-radius:50%; overflow:hidden; border:4px solid var(--gold); box-shadow:0 0 0 8px rgba(212,168,79,.15), 0 16px 40px rgba(0,0,0,.4); background:#1D2229; display:grid; place-items:center; }
.letter-photo img { width:100%; height:100%; object-fit:cover; }
.letter-photo i { font-size:4rem; color:rgba(212,168,79,.6); }
.letter-who strong { display:block; font-size:1.1rem; color:#fff; }
.letter-who span { color:var(--gold); font-size:.85rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
.letter-body { background:#FBF7EE; color:#2a2620; padding:2.2rem 2.4rem; position:relative; }
.letter-body::before { content:"\201C"; position:absolute; top:-.2rem; right:1.4rem; font-family:Georgia, serif; font-size:7rem; line-height:1; color:rgba(212,168,79,.28); }
.letter-heading { font-family:Georgia, 'Times New Roman', serif; font-size:1.55rem; color:#1d2229; margin-bottom:1rem; padding-right:3rem; }
.letter-text { font-size:1rem; line-height:1.85; color:#3b362e; }
.letter-text p { margin-bottom:1rem; }
.letter-text a { color:#9a6f1f; }
.letter-text.clamped { max-height:18rem; overflow:hidden; -webkit-mask-image:linear-gradient(#000 70%, transparent); mask-image:linear-gradient(#000 70%, transparent); }
.letter-more { background:none; border:0; color:#9a6f1f; font-weight:700; padding:0; margin-bottom:1rem; }
.letter-sign { margin-top:1.2rem; padding-top:1rem; border-top:1px dashed rgba(42,38,32,.25); }
.letter-sign img { max-height:80px; max-width:260px; display:block; mix-blend-mode:multiply; margin-bottom:.3rem; }  /* white paper background disappears */
.letter-sign-name { font-weight:800; color:#1d2229; }
.letter-sign-role { font-size:.9rem; color:#6b6358; }
.letter-sign-date { font-size:.82rem; color:#8a8174; margin-top:.2rem; }
@media (max-width: 767.98px) {
  .letter, .letter.flip { grid-template-columns:1fr; }
  .letter.flip .letter-side { order:0; }
  .letter-side { flex-direction:row; justify-content:flex-start; text-align:left; padding:1.2rem; }
  .letter-photo { width:92px; height:92px; flex:0 0 92px; }
  .letter-body { padding:1.5rem 1.3rem; }
  .letter-heading { font-size:1.25rem; }
}
@media print { .letter-text.clamped { max-height:none; -webkit-mask-image:none; mask-image:none; } .letter-more { display:none; } }

/* Admin: About messages */
.about-admin-row { display:flex; gap:.9rem; align-items:center; padding:.7rem .8rem; border-radius:14px; background:var(--glass); border:1px solid var(--line); }
.about-admin-row.editing { border-color:rgba(212,168,79,.6); }
.aar-photo { width:52px; height:52px; flex:0 0 52px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--surface-2); border:2px solid rgba(212,168,79,.45); color:var(--gold); }
.aar-photo img { width:100%; height:100%; object-fit:cover; }
.sig-prev-box { background:#FBF7EE; border-radius:10px; min-height:60px; display:grid; place-items:center; padding:.4rem; }
.sig-prev-box img { max-height:56px; max-width:100%; mix-blend-mode:multiply; }

/* Admin: menu manager */
.menu-row { display:flex; align-items:center; gap:.7rem; padding:.55rem .7rem; border-radius:12px; background:var(--glass); border:1px solid var(--line); }
.menu-row.child { margin-left:1.6rem; }
.menu-row.editing { border-color:rgba(212,168,79,.6); }
.menu-col { padding:.6rem; border-radius:14px; border:1px dashed var(--line-strong); }
.site-nav .dropdown-menu { margin-top:.4rem; }
.site-footer a { color:inherit; }

/* =====================================================================
   Back to top button (public, member and admin layouts)
   ===================================================================== */
.back-to-top {
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:1045;
  width:48px; height:48px; border-radius:50%; border:1px solid rgba(241,212,138,.55);
  background:linear-gradient(145deg, var(--gold-lt, #F1D48A), var(--gold, #D4A84F)); color:#1a1206;
  display:grid; place-items:center; font-size:1.25rem; cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(212,168,79,.45);
  opacity:0; transform:translateY(14px) scale(.9); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.back-to-top.show { opacity:1; transform:none; pointer-events:auto; }
.back-to-top:hover { box-shadow:0 12px 32px rgba(0,0,0,.5), 0 0 0 6px rgba(212,168,79,.18); transform:translateY(-2px); }
.back-to-top:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.back-to-top[hidden] { display:none; }
/* Keep it above the fixed bottom navigation on phones */
@media (max-width: 767.98px) {
  .back-to-top { right:1rem; width:44px; height:44px; }
  body:has(.mobile-nav) .back-to-top { bottom:calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .back-to-top { transition:none; } }
@media print { .back-to-top { display:none !important; } }

/* Super Admin Control Center */
.control-ico { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:1.7rem; color:var(--gold); background:rgba(212,168,79,.12); border:1px solid rgba(212,168,79,.4); }
.switch-row { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.7rem .8rem; border-radius:12px; background:var(--glass); border:1px solid var(--line); margin-bottom:.5rem; }
.switch-row.off { border-color:rgba(229,83,83,.35); }
.switch-row.maint.on { border-color:rgba(229,83,83,.7); background:rgba(229,83,83,.08); }
.switch-row .form-check-input { width:2.6em; height:1.4em; cursor:pointer; }
.danger-zone { border-color:rgba(229,83,83,.35) !important; }
.imp-banner { position:sticky; top:0; z-index:2000; background:linear-gradient(90deg,#F1D48A,#D4A84F); color:#1a1206; padding:.45rem 1rem; text-align:center; font-size:.9rem; font-weight:600; box-shadow:0 4px 14px rgba(0,0,0,.35); }
.imp-banner .btn-dark { padding:.15rem .7rem; font-size:.8rem; }
@media print { .imp-banner { display:none; } }

/* Control Center: create accounts */
.quick-create { display:flex; align-items:center; gap:.6rem; padding:.8rem .9rem; border-radius:12px; background:var(--glass); border:1px solid var(--line); color:var(--white); text-decoration:none; font-weight:600; transition:var(--transition); }
.quick-create i { font-size:1.3rem; color:var(--gold); }
.quick-create:hover { border-color:rgba(212,168,79,.55); color:var(--white); transform:translateY(-2px); }
.account-types { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:.7rem; }
.account-type { display:flex; flex-direction:column; gap:.2rem; padding:1rem; border-radius:14px; background:var(--glass); border:1px solid var(--line); color:var(--white); text-decoration:none; transition:var(--transition); }
.account-type i { font-size:1.5rem; color:var(--gold); }
.account-type span { font-size:.78rem; color:var(--muted); line-height:1.4; }
.account-type.active { border-color:var(--gold); background:rgba(212,168,79,.1); box-shadow:0 0 0 3px rgba(212,168,79,.15); }
.account-type:hover { color:var(--white); border-color:rgba(212,168,79,.5); }

/* =====================================================================
   Promo popups
   ===================================================================== */
.promo-popup { position:fixed; inset:0; z-index:2100; display:grid; place-items:center; padding:1rem; opacity:0; transition:opacity .25s ease; }
.promo-popup.show { opacity:1; }
.promo-popup[hidden] { display:none; }
.promo-popup .pp-backdrop { position:absolute; inset:0; background:rgba(8,10,14,.72); backdrop-filter:blur(3px); }
.promo-popup .pp-card { position:relative; width:min(430px, 100%); max-height:calc(100vh - 2rem); overflow:auto; border-radius:22px;
  background:linear-gradient(165deg,#2a2416 0%,#1D2229 45%,#171C24 100%); border:1px solid rgba(212,168,79,.55);
  box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 0 6px rgba(212,168,79,.08); color:var(--white); transform:translateY(18px) scale(.96); transition:transform .3s cubic-bezier(.2,.9,.3,1.2); }
.promo-popup.show .pp-card { transform:none; }
body.pp-open { overflow:hidden; }
.pp-close { position:absolute; top:.6rem; right:.6rem; z-index:2; width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.45); color:#fff; display:grid; place-items:center; cursor:pointer; }
.pp-close:hover, .pp-close:focus-visible { background:rgba(0,0,0,.7); outline:2px solid var(--gold); }
.pp-media img { width:100%; aspect-ratio:16/8; object-fit:cover; display:block; border-radius:22px 22px 0 0; }
.pp-media[hidden] { display:none; }
.pp-body { padding:1.6rem 1.5rem 1.2rem; text-align:center; }
.pp-eyebrow { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); font-weight:800; margin-bottom:.3rem; }
.pp-discount { display:flex; align-items:baseline; justify-content:center; gap:.45rem; margin:.2rem 0 .4rem; line-height:1; }
.pp-get, .pp-off { font-size:1.15rem; font-weight:800; letter-spacing:.08em; color:var(--gold-lt, #F1D48A); }
.pp-pct { font-size:clamp(3.2rem, 12vw, 4.4rem); font-weight:900; background:linear-gradient(180deg,#FFF1C9,#D4A84F); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pp-headline { font-size:1.25rem; font-weight:800; margin:.3rem 0 .4rem; }
.pp-desc { color:var(--muted); font-size:.95rem; margin-bottom:1rem; }
.pp-code-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); margin-bottom:.35rem; }
.pp-code { display:flex; align-items:stretch; border:2px dashed rgba(212,168,79,.7); border-radius:14px; overflow:hidden; background:rgba(212,168,79,.07); }
.pp-code code { flex:1; font-size:1.35rem; font-weight:800; letter-spacing:.14em; color:#fff; background:none; padding:.6rem .8rem; display:flex; align-items:center; justify-content:center; user-select:all; }
.pp-copy { border:0; background:var(--gold); color:#1a1206; font-weight:800; padding:0 1rem; cursor:pointer; white-space:nowrap; transition:background .2s; }
.pp-copy:hover { background:var(--gold-lt, #F1D48A); } .pp-copy:focus-visible { outline:3px solid #fff; outline-offset:-3px; }
.pp-copy.copied { background:var(--success); color:#fff; }
.pp-applies { margin-top:.7rem; font-size:.88rem; color:var(--muted); } .pp-applies strong { color:var(--white); }
.pp-valid { margin-top:.4rem; font-size:.8rem; color:var(--gold); }
.pp-cta { margin-top:1rem; min-width:60%; }
.pp-cta[hidden] { display:none !important; }
.pp-terms { margin:.8rem 0 0; font-size:.72rem; color:var(--muted); opacity:.85; }
.pp-foot { display:flex; justify-content:space-between; align-items:center; gap:.5rem; margin-top:1rem; padding-top:.8rem; border-top:1px solid rgba(255,255,255,.08); font-size:.8rem; color:var(--muted); flex-wrap:wrap; }
.pp-never { display:flex; align-items:center; gap:.4rem; cursor:pointer; } .pp-never input { accent-color:var(--gold); width:16px; height:16px; }
.pp-never[hidden], .pp-countdown[hidden] { display:none; }
.promo-popup [hidden] { display:none !important; }
/* In-page preview (admin / member form) */
.promo-popup.is-preview { position:static; display:block; opacity:1; padding:0; }
.promo-popup.is-preview .pp-card { transform:none; margin:0 auto; }
.promo-popup.is-preview .pp-close { pointer-events:none; }
@media (max-width: 480px) { .pp-body { padding:1.3rem 1.1rem 1rem; } .pp-code code { font-size:1.1rem; letter-spacing:.08em; } }
@media (prefers-reduced-motion: reduce) { .promo-popup, .promo-popup .pp-card { transition:none; } }
/* Lists */
.popup-row { display:flex; gap:.9rem; align-items:flex-start; padding:.8rem; border-radius:14px; background:var(--glass); border:1px solid var(--line); }
.popup-row-badge { width:54px; height:54px; flex:0 0 54px; border-radius:14px; display:grid; place-items:center; font-weight:900; color:#1a1206; background:linear-gradient(145deg,#F1D48A,#D4A84F); }
/* Popup: bigger, always-visible close button + preview ribbon */
.promo-popup .pp-close { width:44px; height:44px; top:.55rem; right:.55rem; z-index:5; font-size:1.05rem; background:rgba(10,12,16,.78); border:2px solid rgba(255,255,255,.55); box-shadow:0 4px 14px rgba(0,0,0,.45); }
.promo-popup .pp-close:hover { background:#000; border-color:var(--gold); transform:rotate(90deg); transition:transform .2s ease; }
.pp-ribbon { position:sticky; top:0; z-index:4; background:var(--gold); color:#1a1206; font-size:.75rem; font-weight:800; text-align:center; padding:.3rem .5rem; border-radius:22px 22px 0 0; }

/* Membership application: plan cards & life box */
.plan-option { display:flex; flex-direction:column; gap:.2rem; padding:1rem; border-radius:14px; background:var(--glass); border:1px solid var(--line); cursor:pointer; position:relative; transition:var(--transition); }
.plan-option input { position:absolute; top:.9rem; right:.9rem; accent-color:var(--gold); width:18px; height:18px; }
.plan-option .plan-name { font-weight:800; padding-right:1.8rem; }
.plan-option .plan-fee { color:var(--gold); font-size:1.25rem; font-weight:800; }
.plan-option .plan-desc { color:var(--muted); font-size:.8rem; }
.plan-option:has(input:checked) { border-color:var(--gold); background:rgba(212,168,79,.1); box-shadow:0 0 0 3px rgba(212,168,79,.15); }
.plan-option.life { background:linear-gradient(160deg, rgba(212,168,79,.14), var(--glass)); }
.life-box { background:rgba(212,168,79,.08); border:1px solid rgba(212,168,79,.4); }
.step-dot { width:30px; height:30px; margin:0 auto .2rem; border-radius:50%; display:grid; place-items:center; background:var(--glass); border:1px solid var(--line); font-weight:800; font-size:.85rem; }
.step-indicator.active .step-dot { background:var(--gold); color:#1a1206; border-color:var(--gold); }
.step-indicator .small { font-size:.72rem; color:var(--muted); }
@media (max-width: 575.98px) { .step-indicator .small { display:none; } }

/* ---- Responsive fixes (phone · tablet · laptop · desktop) ---- */
/* Covers: aspect-ratio + min-height must not push the page wider than a phone */
.biz-cover { min-width:0; max-width:100%; }
/* Admin top bar: a long page title shortens with "…" instead of pushing the bell and account menu off a phone screen */
.admin-topbar { gap:.75rem; }
.admin-topbar > div:first-child { min-width:0; flex:1 1 auto; }
.admin-topbar > div:first-child h1 { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-topbar > div:last-child { flex-shrink:0; }
@media (max-width: 575.98px) {
  .admin-topbar { padding:.7rem .9rem; }
  .admin-topbar > div:last-child { gap:.4rem !important; }
  .admin-topbar .bi-chevron-down { display:none; }
}
/* Public menu: collapses below 1200px (menu + three languages + Login + Join need ~1160px) */
@media (max-width: 1199.98px) {
  #topNav .navbar-nav .nav-link { padding:.55rem .25rem; }
}
/* Stat cards: amounts like "Rs. 1,250,000.00" fit a half-width card on a phone */
.stat-card { min-width:0; overflow:hidden; }
.stat-card .value { overflow-wrap:anywhere; }
@media (max-width: 575.98px) {
  .stat-card { padding:1rem .9rem; }
  .stat-card .value { font-size:clamp(1.05rem, 5.4vw, 1.6rem); }
}
/* Phones: links inside cards get a finger-sized tap area (looks the same); bottom menu labels a little larger */
@media (max-width: 767.98px) {
  .view-link { display:inline-flex; align-items:center; min-height:40px; padding:.35rem 0; }
  .mobile-nav a { font-size:.72rem; }
}

/* ---- Responsive safety net (phones & small tablets) ----------------------------------------------------
   A row of two or more buttons wraps to the next line instead of being cut off inside a card, and a wide
   table that isn't already in a scroll wrapper scrolls sideways inside its card instead of being clipped. */
.d-flex:has(> .btn ~ .btn), .d-flex:has(> form ~ .btn), .d-flex:has(> .btn ~ form), .d-flex:has(> form ~ form) { flex-wrap: wrap; }
@media (max-width: 991.98px) {
  .card-glass > table.data-table:not(.stack), .card-glass > form > table.data-table:not(.stack) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-glass .table-responsive { margin-inline: -.25rem; padding-inline: .25rem; }
}

/* ---- Public header on laptops (1200–1599 px): keep the menu and the buttons on one line ----------------------
   Laptop screens (1280 / 1366 / 1440 / 1536) are narrower than the full header; Sinhala and Tamil labels are longer. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .site-nav .brand img { height: 46px; width: auto; }
  .site-nav .brand-text { font-size: .95rem; line-height: 1.15; max-width: 150px; }
}
@media (min-width: 1200px) {
  .site-nav #topNav { gap: .5rem !important; }
  .site-nav .navbar-nav .nav-link { padding-left: .55rem; padding-right: .55rem; font-size: .95rem; }
  .site-nav .nav-actions { gap: .35rem !important; }
  .site-nav .nav-actions > .btn, .site-nav .nav-actions .btn-group > .btn { padding: .38rem .7rem; font-size: .9rem; }
  .site-nav .nav-actions .btn-group > .btn { padding-left: .55rem; padding-right: .55rem; }
}

/* ---- Registration: banner + three shop photos ------------------------------------------------------------ */
.biz-media-banner, .biz-media-slot { position:relative; display:block; cursor:pointer; overflow:hidden; border-radius:16px;
  border:1.5px dashed var(--line-strong, rgba(255,255,255,.18)); background:var(--surface, #14171C); transition:border-color .2s, background .2s; }
/* min-width:0 — with aspect-ratio a min-height would otherwise force a minimum width (130 × 16/5 = 416 px) wider than a phone */
.biz-media-banner { aspect-ratio:16/5; min-height:130px; min-width:0; width:100%; margin-bottom:.75rem; }
.biz-media-slot { min-width:0; }
.biz-media-slot { aspect-ratio:4/3; }
.biz-media-banner:hover, .biz-media-slot:hover, .biz-media-banner:focus-within, .biz-media-slot:focus-within { border-color:var(--gold, #D4A84F); background:rgba(212,168,79,.06); }
.biz-media-banner:focus-within, .biz-media-slot:focus-within { outline:2px solid var(--gold, #D4A84F); outline-offset:2px; }
.biz-media-banner img, .biz-media-slot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.biz-media-banner img:not([hidden]) ~ .biz-media-empty, .biz-media-slot img:not([hidden]) ~ .biz-media-empty { display:none; }
.biz-media-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.15rem; padding:.75rem; text-align:center; }
.biz-media-empty i { font-size:1.6rem; color:var(--gold, #D4A84F); }
.biz-media-empty strong { font-size:.95rem; }
.biz-media-empty small { color:var(--muted, #9CA3AF); font-size:.78rem; line-height:1.3; }
.biz-media-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:.75rem; }
@media (max-width: 575.98px) { .biz-media-grid { grid-template-columns:1fr 1fr; } .biz-media-grid .biz-media-slot:first-child { grid-column:1 / -1; aspect-ratio:16/9; } .biz-media-empty small { display:none; } }
.biz-media-clear { position:absolute; top:.45rem; right:.45rem; z-index:2; width:32px; height:32px; border-radius:50%; border:0;
  display:grid; place-items:center; background:rgba(11,13,16,.75); color:#fff; }
.biz-media-clear[hidden] { display:none; }
