/* ==========================================================================
   YEGOH SPACE CYBER — MAIN STYLESHEET
   css/style.css
   Compact One-Page Digital Services Dashboard
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  --navy: #0B192C;
  --navy-dark: #07111e;
  --navy-light: #162a45;
  --blue: #1769d2;
  --blue-hover: #1355ac;
  --blue-light: #edf5ff;
  --blue-soft: rgba(23, 105, 210, 0.08);
  --cyan: #00d7ff;
  --cyan-dark: #00bfe9;
  --cyan-soft: rgba(0, 215, 255, 0.12);
  --wa-green: #25D366;
  --wa-hover: #20ba5a;
  --wa-soft: rgba(37, 211, 102, 0.12);
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;

  --font-main: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(11, 25, 44, 0.05);
  --shadow-sm: 0 3px 8px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 8px 20px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 16px 32px rgba(11, 25, 44, 0.12);
  --shadow-blue: 0 8px 20px rgba(23, 105, 210, 0.22);
  --shadow-wa: 0 8px 20px rgba(37, 211, 102, 0.28);
  --shadow-cyan: 0 8px 20px rgba(0, 215, 255, 0.25);

  --transition-fast: 0.16s ease;
  --transition-normal: 0.24s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1240px;
  --nav-height: 56px;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. Layout & Typography Helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ui-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(23, 105, 210, 0.25);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--line);
}

.btn-light {
  background: var(--bg);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}

.btn-light:hover {
  background: var(--line-light);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   3. Compact Navigation Header
   -------------------------------------------------------------------------- */
.compact-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-fast);
}

.compact-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Operating status & direct WhatsApp pill */
.header-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.status-live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.status-divider {
  color: #cbd5e1;
}

.status-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.status-wa-link .ui-icon {
  width: 14px;
  height: 14px;
  stroke: var(--wa-green);
}

.status-wa-link:hover {
  color: var(--wa-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-subtle);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
}

.btn-install .ui-icon {
  width: 15px;
  height: 15px;
}

.btn-install:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(23, 105, 210, 0.2);
}

.btn-nav-cart .ui-icon {
  width: 15px;
  height: 15px;
}

.btn-nav-cart:hover {
  background: var(--blue-hover);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--wa-green);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-header-wa .ui-icon {
  width: 15px;
  height: 15px;
}

.btn-header-wa:hover {
  background: var(--wa-hover);
}

/* --------------------------------------------------------------------------
   4. Small Welcome / Hero Area
   -------------------------------------------------------------------------- */
.dashboard-main {
  flex: 1;
  padding-bottom: 2rem;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
}

.dashboard-hero {
  padding: 1.15rem 0 0.75rem;
}

.dashboard-hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(23, 105, 210, 0.15);
  width: fit-content;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dashboard-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.dashboard-hero-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.quick-filter-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.quick-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.15rem;
}

.quick-filter-pill {
  padding: 0.22rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-filter-pill:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   5. Search Bar Immediately Below Header
   -------------------------------------------------------------------------- */
.dashboard-search-section {
  margin: 0.6rem 0 1rem;
}

.dashboard-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.dashboard-search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.12);
}

.search-lens-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.search-lens-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.search-input-field::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--muted);
  transition: all var(--transition-fast);
}

.search-clear-btn .ui-icon {
  width: 13px;
  height: 13px;
}

.search-clear-btn:hover {
  background: var(--line);
  color: var(--navy);
}

.search-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-counter-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.search-kbd-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Main Service Categories Responsive Grid
   -------------------------------------------------------------------------- */
.dashboard-categories-section {
  margin-bottom: 1.25rem;
}

.categories-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.categories-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.categories-bar-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.categories-bar-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Responsive Grid: Desktop balanced multi-column */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 52px;
}

.category-card:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.category-card.active {
  background: rgba(23, 105, 210, 0.08);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.category-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.category-card.active .category-card-icon {
  background: var(--blue);
  color: var(--white);
}

.category-card-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.category-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}

.category-card.active .category-card-name {
  color: var(--blue);
}

.category-card-count {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   7. Services Browsing & Toolbar Section
   -------------------------------------------------------------------------- */
.dashboard-services-section {
  display: flex;
  flex-direction: column;
}

.services-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.toolbar-heading-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.toolbar-count-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-toolbar-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(23, 105, 210, 0.2);
  transition: all var(--transition-fast);
}

.btn-toolbar-reset .ui-icon {
  width: 12px;
  height: 12px;
}

.btn-toolbar-reset:hover {
  background: var(--blue);
  color: var(--white);
}

.view-mode-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  gap: 2px;
}

.view-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--ink-secondary);
  transition: all var(--transition-fast);
}

.view-mode-tab .ui-icon {
  width: 14px;
  height: 14px;
}

.view-mode-tab.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-xs);
}

.tab-count-pill {
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  background: var(--line-light);
  border-radius: var(--radius-full);
}

.view-mode-tab.active .tab-count-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   8. Compact Services Grid & Cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  border-color: rgba(23, 105, 210, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.service-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-mark {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 2px;
}

.agency-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agency-wordmark {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
}

.service-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-category-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.service-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0.15rem;
}

.service-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-light);
  margin-top: auto;
}

.service-price-block {
  display: flex;
  flex-direction: column;
}

.service-price-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.service-price-unit {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.service-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(23, 105, 210, 0.15);
  transition: all var(--transition-fast);
}

.btn-card-add:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.55rem;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
}

.btn-card-details:hover {
  background: var(--line);
  color: var(--navy);
}

.card-click-hint {
  display: none;
}

/* Empty State Box */
.no-results-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.no-results-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.no-results-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.no-results-box p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   9. Requirement Guides Grid (When Toggled)
   -------------------------------------------------------------------------- */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.req-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.req-card:hover {
  border-color: rgba(23, 105, 210, 0.4);
  box-shadow: var(--shadow-sm);
}

.req-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.req-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.req-intro {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.req-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

.req-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wa-green);
  font-weight: 800;
  font-size: 0.8rem;
}

.req-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.req-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-light);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. Compact Modern Footer
   -------------------------------------------------------------------------- */
.compact-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 1rem 0 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.84rem;
}

.footer-brand-compact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
}

.footer-brand-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.footer-hub-tag {
  color: #94a3b8;
  font-size: 0.78rem;
}

.footer-dot {
  color: #64748b;
}

.footer-meta-compact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.footer-meta-link {
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-meta-link:hover {
  color: var(--cyan);
}

.footer-bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.73rem;
  color: #94a3b8;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-disclaimer-compact {
  max-width: 800px;
  line-height: 1.4;
}

.footer-copy {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. Modern Service Detail Popup Modal / Side Drawer
   -------------------------------------------------------------------------- */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.service-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.service-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  outline: none;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close-btn:hover {
  background: var(--line);
  color: var(--navy);
}

.detail-header-card {
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-header-text {
  display: flex;
  flex-direction: column;
}

.detail-header-text h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0.2rem;
}

/* Detail Price Box */
.detail-price-box {
  background: var(--blue-light);
  border: 1px solid rgba(23, 105, 210, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.detail-price-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.detail-price-unit {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}

.detail-price-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-top: 0.2rem;
}

.detail-price-subnote {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.detail-section-title .ui-icon {
  color: var(--blue);
}

.detail-description {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.detail-requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.detail-req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.detail-req-check {
  color: var(--wa-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(23, 105, 210, 0.2);
  transition: all var(--transition-fast);
}

.detail-official-link:hover {
  background: var(--blue);
  color: var(--white);
}

.detail-security-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.15rem;
}

.detail-security-icon {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-security-text {
  font-size: 0.75rem;
  color: #166534;
  line-height: 1.4;
}

/* Modal Actions: WhatsApp + Cart + Prominent Back Button */
.detail-modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-modal-actions .btn {
  flex: 1;
  min-width: 140px;
}

.btn-back-service {
  background: var(--bg-subtle);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-back-service:hover {
  background: var(--line);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   12. Request Cart Drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.drawer-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  outline: none;
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-heading-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.drawer-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--line);
  color: var(--navy);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.cart-item-remove-btn {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.cart-item-remove-btn:hover {
  color: #ef4444;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 2px 4px;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px;
}

.cart-qty-btn:hover {
  background: var(--bg-subtle);
}

.cart-qty-input {
  width: 32px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
}

.cart-line-total {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.drawer-total-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.drawer-grand-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-clear-cart {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  padding: 0.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-clear-cart:hover {
  color: #ef4444;
}

/* --------------------------------------------------------------------------
   13. AI Customer Assistant Drawer
   -------------------------------------------------------------------------- */
.assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.assistant-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.assistant-drawer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  outline: none;
}

.assistant-header {
  padding: 0.85rem 1.15rem;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assistant-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.assistant-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 215, 255, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.assistant-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--wa-green);
  border-radius: 50%;
  border: 1.5px solid var(--navy);
}

.assistant-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.assistant-status {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
}

.assistant-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.assistant-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.assistant-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.45;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-typing-indicator {
  display: none;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  gap: 4px;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}

@keyframes typingDot {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.assistant-input-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.assistant-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.65rem;
}

.assistant-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--ink);
}

.assistant-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistant-send-btn .ui-icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   14. Floating Controls (Small, Accessible, Non-Intrusive)
   -------------------------------------------------------------------------- */
.floating-actions-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  z-index: 60;
}

.floating-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.08);
}

.floating-btn .ui-icon {
  width: 20px;
  height: 20px;
}

.floating-btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.floating-btn-wa:hover {
  background: var(--wa-hover);
}

.floating-btn-cart {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(23, 105, 210, 0.3);
}

.floating-btn-cart:hover {
  background: var(--blue-hover);
}

.floating-btn-cart .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--white);
}

.floating-btn-ai {
  background: var(--navy);
  color: var(--cyan);
  border: 1px solid rgba(0, 215, 255, 0.3);
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.3);
}

.floating-btn-ai:hover {
  background: var(--navy-light);
}

.floating-tooltip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   15. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-region {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-message {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-message .ui-icon {
  color: var(--cyan);
  width: 16px;
  height: 16px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
