/* Booking by Fango product chrome.
   Based on the supplied Fango logo: charcoal -> indigo -> electric blue.
   Tenant microsites retain their own selected colors and themes. */
:root {
  --fango-charcoal: #221f26;
  --fango-indigo: #211b6a;
  --fango-blue: #1b16e8;
  --fango-blue-hover: #1510c5;
  --fango-glow: #726dff;
  --fango-tint: #f0efff;
  --fango-gradient: linear-gradient(110deg, #221f26 0%, #211b6a 54%, #1b16e8 100%);
  --ink: #221f32;
  --soft-ink: #66647a;
  --muted: #8989a3;
  --line: #e8e7f2;
  --bg: #f8f8fd;
  --accent: var(--fango-blue);
  --navy: var(--fango-indigo);
  --shadow: 0 12px 36px rgb(29 23 111 / 6%);
}

/* Shared navigation, typography and controls. */
.topbar { border-bottom-color: #e9e8f4; box-shadow: 0 2px 18px rgb(25 18 118 / 3%); }
.brand { color: var(--fango-charcoal); }
.brand-symbol { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: none; background: transparent; }
.brand-by { color: var(--fango-indigo); }
.nav-link { color: #77758a; }
.nav-link.active { color: var(--fango-blue); border-bottom-color: var(--fango-blue); }
.nav-link:hover, .footer-admin:hover, .text-button:hover { color: var(--fango-blue-hover); }
.badge-local { color: var(--fango-indigo); background: #f1f0ff; border-color: #e7e5ff; }
.pulse { background: #433cfa; box-shadow: 0 0 0 3px #e1dfff; }
.btn-dark { background: var(--fango-charcoal); }
body:not(.is-microsite) .btn-primary { box-shadow: 0 6px 17px rgb(29 22 214 / 13%); }
body:not(.is-microsite) .btn-primary { background: linear-gradient(112deg, #282087 0%, #1b16e8 100%); }
body:not(.is-microsite) .btn-primary:hover { background: linear-gradient(112deg, #211b6a 0%, #1510c5 100%); box-shadow: 0 10px 23px rgb(29 22 214 / 19%); }
.btn-soft { background: #efeeff; border-color: #e1deff; color: #26208f; }
.btn-soft:hover { background: #e6e3ff; }
.btn-ghost { color: #6e6b82; }
.text-button, .section-kicker, .eyebrow { color: var(--fango-blue); }
.eyebrow-mark { background: #eceaff; }
.input-label { color: #424056; }
input, select, textarea { border-color: #e1dfed; }
body:not(.is-microsite) input:focus,
body:not(.is-microsite) select:focus,
body:not(.is-microsite) textarea:focus { border-color: #5a4ff2; box-shadow: 0 0 0 3px rgb(41 28 235 / 11%); }
.success { background: #ebf8f2; color: #136b4f; }

/* Booking forms and action buttons inherit each merchant's chosen accent. */
.is-microsite .section-kicker { color: var(--accent); }
.is-microsite .round-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); }

/* Marketing landing: glowing dark gradient inspired by the Fango app icon. */
#landingView { background: radial-gradient(ellipse at 4% 0%, #f0efff 0%, transparent 54%), #fafaff; }
.landing-copy h1 { color: var(--fango-charcoal); }
.landing-copy h1 em { color: var(--fango-blue); }
.landing-copy > p { color: #6c6a7e; }
.landing-features { color: #504e89; }
.landing-preview {
  background: radial-gradient(ellipse at 83% 18%, rgb(86 71 255 / 66%), transparent 52%),
              radial-gradient(ellipse at 15% 85%, rgb(34 30 105 / 76%), transparent 48%),
              var(--fango-gradient);
  box-shadow: 0 30px 60px rgb(31 24 135 / 15%);
}
.preview-phone { box-shadow: 0 22px 50px rgb(8 7 65 / 28%); }
.floating-bubble { border-color: #e6e4ff; box-shadow: 0 15px 40px rgb(21 15 133 / 19%); color: #292346; }
.floating-bubble small { color: #77738c; }
.landing-bottom > div { border-color: #e7e5f4; box-shadow: 0 9px 30px rgb(36 25 122 / 3%); }
.landing-bottom b { color: var(--fango-blue); }
.landing-bottom p { color: #807f92; }

/* Registration and login (including dedicated platform-admin login). */
.auth-page, .admin-auth-page {
  background: radial-gradient(ellipse at 20% 22%, #e5e2ff 0%, transparent 48%),
              radial-gradient(ellipse at 88% 82%, #efedff 0%, transparent 45%), #fafaff;
}
.auth-intro h1 em, .admin-auth-page .auth-intro h1 em,
.admin-auth-page .eyebrow, .admin-login-card .section-kicker { color: var(--fango-blue); }
.auth-sample, .admin-auth-page .auth-sample { border-color: #dddafa; background: #ffffffd9; }
.auth-sample > span, .admin-auth-page .auth-sample > span { color: var(--fango-blue); }
.auth-sample small { color: #77748b; }
.auth-card { box-shadow: 0 25px 65px rgb(34 25 112 / 11%); }
.auth-tabs { background: #f0eff9; }
.auth-tabs button { color: #77738f; }
.auth-tabs button.active { color: #2b229b; box-shadow: 0 3px 12px rgb(35 23 130 / 8%); }
.admin-login-card { border-color: #dddafa; }
.admin-login-card .btn-primary { background: linear-gradient(112deg, #282087, #1b16e8); }
.admin-login-card .auth-disclaimer a { color: var(--fango-blue); }

/* Both workspaces use the same Fango navigation and platform controls. */
.workspace-page { background: #f7f7fd; }
.sidebar, .sidebar-admin { background: var(--fango-gradient); color: #ecebff; }
.sidebar-heading, .sidebar-footer { color: #b4b1df; }
.side-link { color: #d2cff4; }
.side-link.active, .side-link:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.side-help, .admin-help { background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 19%); color: #ebeaff; }
.side-help p { color: #d4d1ed; }
.dashboard-header h1 em { color: var(--fango-blue); }
.dashboard-header p { color: #838096; }
.stat-card { border-color: #e7e5f3; }
.stat-card span { color: #7c798e; }
.stat-card strong { color: #29244c; }
.stat-card small, .helper { color: #8c8aa0; }
.row-business, .mini-tag { color: var(--fango-blue); }
.status.confirmed { background: #e5f8ed; color: #147847; }
.mini-preview { border-color: #e4e0fb; background: linear-gradient(150deg, #efedff, #fafaff); }
.mini-preview strong { color: #31286e; }
.mini-preview small { color: #77748d; }
.setup-banner { background: linear-gradient(110deg, #eceaff, #f5f4ff); border-color: #dbd6ff; }
.setup-icon { color: var(--fango-blue); }
.slug-group { border-color: #e2dff0; background: #f8f7ff; }
.slug-group > span { color: #726e99; }
.item-icon { background: #edebff; color: var(--fango-blue); }
.preview-form > span { color: var(--fango-blue); }
.zalo-pair-code { background: #f0eeff; color: #292287; border-color: #948cfa; }

/* Site footer and compact screens. */
footer { color: #2d284e; border-top-color: #e8e7f2; }
footer span { color: #89869b; }
footer small { color: #9b98ab; }
.footer-admin { color: var(--fango-blue); }
.footer-mark { display: inline-block; object-fit: cover; border-radius: 6px; flex: none; }
@media (max-width: 610px) {
  .landing-wrap { padding: 48px 18px 44px; min-height: 0; gap: 30px; }
  .landing-preview { min-width: 0; min-height: 410px; padding: 20px; }
  .landing-bottom { grid-template-columns: 1fr; gap: 12px; padding: 0 18px 35px; margin-bottom: 0; }
  .landing-preview { box-shadow: 0 18px 44px rgb(31 24 135 / 12%); }
  .landing-copy > p { overflow-wrap: anywhere; }
  .floating-bubble { right: 0; bottom: 20px; }
}
@media (max-width: 430px) {
  .brand-symbol { width: 32px; height: 32px; }
  .topbar .nav-actions { flex: 0 0 100%; min-width: 0; justify-content: flex-start; }
  .topbar .badge-local { display: none; }
}

/* Logged-in dashboards have their own section navigation. Keep the mobile
   header compact and prevent the marketing navigation from clipping. */
@media (max-width: 900px) {
  body.is-owner-portal > .topbar .topnav,
  body.is-admin-portal > .topbar .topnav { display: none; }
  body.is-owner-portal > .topbar #manageBtn,
  body.is-admin-portal > .topbar #manageBtn { display: none !important; }
  body.is-owner-portal > .topbar,
  body.is-admin-portal > .topbar { min-height: 64px; padding: 10px 16px; gap: 10px; }
  body.is-owner-portal > .topbar .nav-actions,
  body.is-admin-portal > .topbar .nav-actions { order: initial; flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; }
  body.is-owner-portal .dashboard-header { margin-bottom: 19px; gap: 16px; }
  body.is-owner-portal .dashboard-header > div:first-child p { font-size: 12px; }
  body.is-owner-portal .workspace-body { padding-top: 21px; }
  body.is-owner-portal .sidebar { min-height: 52px; align-items: center; }
  body.is-owner-portal .side-link { min-height: 42px; padding: 10px 12px; }
  body.is-owner-portal .dashboard-actions,
  body.is-admin-portal .dashboard-actions { min-width: 0; max-width: 100%; width: 100%; flex-wrap: wrap; }
  body.is-owner-portal .dashboard-actions select { min-width: 0; flex: 1 1 190px; }
}
/* Tablet width leaves too little room for the fixed sidebar and the owner
   action row. Use the compact workspace layout before controls start clipping. */
@media (min-width: 761px) and (max-width: 900px) {
  body.is-owner-portal .workspace,
  body.is-admin-portal .workspace { display: block; }
  body.is-owner-portal .sidebar,
  body.is-admin-portal .sidebar { flex-direction: row; padding: 10px; gap: 5px; overflow-x: auto; min-height: 65px; }
  body.is-owner-portal .sidebar-heading,
  body.is-owner-portal .side-spacer,
  body.is-owner-portal .side-help,
  body.is-owner-portal .sidebar-footer,
  body.is-admin-portal .sidebar-heading,
  body.is-admin-portal .side-spacer,
  body.is-admin-portal .side-help,
  body.is-admin-portal .sidebar-footer { display: none; }
  body.is-owner-portal .side-link,
  body.is-admin-portal .side-link { width: auto; flex: none; white-space: nowrap; padding: 12px; }
  body.is-owner-portal .workspace-body,
  body.is-admin-portal .workspace-body { padding: 28px 26px 65px; }
  body.is-owner-portal .stat-grid,
  body.is-admin-portal .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 430px) {
  body.is-owner-portal .dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  body.is-owner-portal .dashboard-actions select { grid-column: 1 / -1; width: 100%; min-width: 0; }
  body.is-owner-portal .dashboard-actions .btn { width: 100%; min-width: 0; padding: 11px 3px; font-size: 10px; white-space: normal; line-height: 1.25; }
  body.is-owner-portal .topbar .brand { font-size: 18px; }
  body.is-owner-portal .topbar .nav-actions .btn { font-size: 11px; }
}

/* P0A contrast floor for admin metadata; visual redesign remains Phase 1. */
.dashboard-header p,
.stat-card small,
.helper { color: #5f5d73; }
