/* =============================================================================
   Shrisha Technology — style.css (main stylesheet for the whole site)
   =============================================================================
   Linked from:
   • Express: views/partials/head.ejs → <link rel="stylesheet" href="/style.css">
   • Static HTML: index.html, pricing.html, contact.html, etc. (same file)

   PAGE → URL → EJS template (which CSS section applies)
   ─────────────────────────────────────────────────────────────────────────
   Home        /           views/pages/index.ejs
   Pricing     /pricing    views/pages/pricing.ejs
   Services    /services   views/pages/services.ejs
   Portfolio   /portfolio  views/pages/portfolio.ejs
   About       /about      views/pages/about.ejs
   Contact     /contact    views/pages/contact.ejs
   Work        /work       views/pages/work.ejs
   Login       /login      views/pages/login.ejs
   Signup      /signup     views/pages/signup.ejs
   Order       /order      views/pages/order.ejs
   Admin       /admin      views/admin/*.ejs

   Shared on every page (partials included in each template):
   • Navbar hover box    → Section 3  (.site-header, .nav-links)
   • Footer              → Section 14 (.site-footer)
   • Tech icons marquee  → Section 13b (partials/tech-stack.ejs — home only)
   • WhatsApp button     → Section 18 (partials/whatsapp-float.ejs)
   • Site chatbot / AI   → Section 19a–19b (partials/chatbot, ai-chat)

   SECTION LIST (scroll down or Ctrl+F to jump):
   1  Theme colors          11 Contact page       19a Chatbot
   2  Body / fonts          12 Work + home CTA    19b AI chat
   3  Navbar (all pages)    13a Home promo         20 About page
   4  Home hero             13b Tech icons slide   21 Order / Razorpay
   5-6 Login / Signup       14 Footer
   7  Common .section       15 Mobile responsive
   7a-c Home cards/modal    16 Admin panel
   8  Portfolio             17 Pricing page
   9  Services              18 WhatsApp button
   10 Service topic detail
   ============================================================================= */

/* =========================================================
   Section 1 — THEME TOKENS (colors / CSS variables — entire site)
   Classes: :root, html[data-theme="light"]
   ========================================================= */
:root {
  --bg: #0a0c10;
  --bg2: #12161e;
  --panel: #1c212b;
  --card: #1c212b;
  --line: rgba(201, 162, 39, 0.22);
  --text: #f3efe6;
  --muted: #b8b3a6;
  --brand: #c9a227;
  --brand-navy: #163056;
  --brand-rgb: 201, 162, 39;
}

html[data-theme="light"] {
  --bg: #f6f3ea;
  --bg2: #eee6d4;
  --panel: #ffffff;
  --card: #ffffff;
  --line: rgba(22, 48, 86, 0.12);
  --text: #12161e;
  --muted: rgba(18, 22, 30, 0.68);
  --brand: #b08d1c;
  --brand-navy: #163056;
  --brand-rgb: 176, 141, 28;
}

/* =========================================================
   Section 2 — GLOBAL RESET + BASE (body, fonts — entire site)
   Classes: *, html, body, h1, h2, p
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
}

html[data-theme="light"] body {
  background: #f6f3ea;
}

/* =========================================================
   Section 3 — NAVBAR + COMMON LAYOUT (all pages)
   File:  views/partials/navbar.ejs (top of every page)
   Classes: .site-header, .navbar, .nav-links, .logo, .theme-toggle,
            .menu-toggle, .btn, .nav-actions
   ========================================================= */
.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  flex-shrink: 0;
  background: #161616;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.logo-text {
  white-space: nowrap;
  background: linear-gradient(90deg, #e8e6e1 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .logo-text {
  background: linear-gradient(90deg, #163056 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-left: auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid rgba(var(--brand-rgb), 0.55);
  outline-offset: 2px;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:focus-visible {
  background: rgba(10, 20, 45, 0.08);
}

html[data-theme="light"] .nav-links a[aria-current="page"] {
  background: rgba(10, 20, 45, 0.1);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: none;
}

/* Default (dark): show moon */
.theme-icon .icon-moon {
  display: block;
}

/* Light theme: show sun */
html[data-theme="light"] .theme-icon .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon .icon-sun {
  display: block;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .theme-toggle:hover {
  background: rgba(10, 20, 45, 0.06);
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  background: var(--brand);
  color: #12110d;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-weight: 600;
}

.btn-small {
  padding: 9px 16px;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.account-menu {
  position: relative;
}

.account-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--brand);
  background: #161616;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
  overflow: hidden;
}

html[data-theme="light"] .account-menu__btn {
  background: #163056;
  color: #f4e6b5;
}

.account-menu__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.account-menu__photo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  display: block;
}

.account-menu__initial {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand);
}

.account-menu__btn[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--brand);
}

.account-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card, #111318);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 1300;
}

html[data-theme="light"] .account-menu__dropdown {
  background: #fff;
}

.account-menu__name {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.account-menu__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.account-menu__dropdown a:hover {
  background: rgba(201, 162, 39, 0.14);
  color: var(--brand);
}

.auth-user {
  font-size: 0.92rem;
  color: var(--muted);
}

.only-mobile {
  display: none;
}

/* =========================================================
   Section 4 — HOME: Hero + typewriter (home page only, /)
   File:  views/pages/index.ejs — top hero section
   Classes: .hero, .overlay, .hero-content, .typewriter, .hero-stats, .hero-actions
   ========================================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1700&q=80")
    center/cover no-repeat;
  opacity: 0.25;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 30, 0.5), rgba(8, 13, 30, 0.93));
}

html[data-theme="light"] .hero::before {
  opacity: 0.32;
}

html[data-theme="light"] .overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.68)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.chip {
  display: inline-block;
  background: rgba(var(--brand-rgb), 0.2);
  border: 1px solid rgba(var(--brand-rgb), 0.55);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
}

h1 {
  margin-top: 15px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 22px;
}

p {
  color: var(--muted);
}

.hero-content p {
  max-width: 68ch;
  margin: 14px auto 0;
}

.hero-rotate {
  margin-top: 14px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-rotate-label {
  color: var(--muted);
  font-weight: 500;
}

.typewriter {
  color: #dbe6ff;
  position: relative;
  padding-right: 10px;
}

html[data-theme="light"] .typewriter {
  color: var(--brand);
}

.typewriter::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.1em;
  background: rgba(219, 230, 255, 0.9);
  animation: tw-caret 900ms steps(1, end) infinite;
}

/* =========================================================
   Section 5 — LOGIN / SIGNUP shared (both auth pages)
   Files: views/pages/login.ejs, views/pages/signup.ejs
   Classes: .auth-card, .auth-shell, .auth-form, .social-login-btn, .auth-input
   ========================================================= */
.auth-card {
  max-width: 560px;
  margin: 0 auto;
}

.auth-section {
  padding-top: 56px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 20, 45, 0.84), rgba(8, 16, 36, 0.9));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.auth-left {
  padding: 34px 30px;
}

.auth-left h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 12px;
}

.auth-subtitle {
  margin-top: 2px;
  color: #d6e0ff;
}

.auth-helper {
  margin-top: 22px;
  font-size: 0.96rem;
  color: rgba(243, 246, 255, 0.88);
}

.social-login-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.social-login-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f6ff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
}

.social-login-btn span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.social-login-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider {
  margin: 18px 0 12px;
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #0d1834;
  padding: 0 10px;
  color: rgba(243, 246, 255, 0.86);
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

html[data-theme="light"] .auth-input {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   Section 6 — LOGIN page layout (signup shares some classes)
   Files: views/pages/login.ejs, signup.ejs
   Classes: .login-page, .login-card, .login-left, .login-right, .login-social-btn
   ========================================================= */
.login-page {
  min-height: 100vh;
  padding: 36px 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, #1c2a44 0%, #12161e 45%, #0a0c10 100%);
}

.login-shell {
  width: min(980px, 100%);
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: visible;
  background: rgba(7, 15, 34, 0.94);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.44);
}

.login-left {
  padding: 34px 30px;
  background: linear-gradient(180deg, rgba(9, 24, 56, 0.88), rgba(8, 19, 42, 0.95));
}

.login-left h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin: 0;
}

.login-subtitle {
  color: #d8e3ff;
  margin-top: 6px;
}

.login-helper {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(243, 246, 255, 0.9);
}

.auth-error {
  margin-top: 10px;
  color: #ffd3d3;
  background: rgba(120, 15, 32, 0.5);
  border: 1px solid rgba(255, 120, 120, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.auth-hint {
  margin-top: 10px;
  color: #d4e4ff;
  background: rgba(30, 60, 120, 0.45);
  border: 1px solid rgba(120, 170, 255, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-hint code {
  font-size: 0.85em;
  color: #9ec5ff;
}

.auth-hint-small {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.login-google-block {
  margin-top: 12px;
}

.login-social-btn--google-primary {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.login-social-btn--google-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.login-social-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-switch-link {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(243, 246, 255, 0.85);
}

.auth-switch-link a {
  color: #c6d6ff;
  text-decoration: underline;
}

.login-social-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.login-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f6ff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 14px;
}

.login-social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
}

.social-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.social-icon-google {
  background: #ffffff;
}

.social-icon-github {
  background: #ffffff;
  color: #24292f;
}

.social-icon-microsoft {
  background: #ffffff;
}

html[data-theme="light"] .social-icon-github {
  color: #1b1f24;
}

.login-divider {
  margin: 18px 0 8px;
  position: relative;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #0f1f43;
  color: rgba(243, 246, 255, 0.84);
  font-size: 0.9rem;
  padding: 0 10px;
}

.login-email-block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.login-email-block summary {
  list-style: none;
  cursor: pointer;
  color: rgba(243, 246, 255, 0.94);
  font-weight: 500;
}

.login-email-block summary::-webkit-details-marker {
  display: none;
}

.login-email-block .auth-form {
  margin-top: 12px;
}

.login-right {
  min-height: 520px;
  background: #0a1228;
}

.login-right img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html[data-theme="light"] .auth-input::placeholder {
  color: rgba(11, 19, 38, 0.55);
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
}

.auth-right {
  min-height: 520px;
  background: #0a1228;
}

.auth-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme="light"] .auth-shell {
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(20, 38, 77, 0.12);
}

html[data-theme="light"] .auth-subtitle,
html[data-theme="light"] .auth-helper {
  color: var(--muted);
}

html[data-theme="light"] .social-login-btn {
  border-color: var(--line);
  background: #f5f8ff;
  color: var(--text);
}

html[data-theme="light"] .social-login-btn span {
  background: #e5edff;
}

html[data-theme="light"] .social-login-btn:hover {
  background: #eaf1ff;
}

html[data-theme="light"] .auth-divider::before {
  border-top-color: var(--line);
}

html[data-theme="light"] .auth-divider span {
  background: #ffffff;
  color: var(--muted);
}

@keyframes tw-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 0;
  background: rgba(24, 31, 53, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats div {
  flex: 1 1 0;
  padding: 4px 8px;
  text-align: center;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats h3 {
  font-size: 1.65rem;
  line-height: 1.2;
}

html[data-theme="light"] .hero-stats {
  background: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   Section 7 — COMMON sections + cards (multiple pages)
   Files: index, pricing, services, portfolio, about, contact, work
   Classes: .section, .page-hero, .small-heading, .grid, .card
   (Home-only blocks have separate headings below)
   ========================================================= */
.section {
  padding: 90px 0;
}

.page-hero {
  padding: 130px 0 70px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(var(--brand-rgb), 0.14), transparent 60%);
}

.page-hero p {
  max-width: 66ch;
  margin: 10px auto 0;
}

.small-heading {
  color: #9eb2f5;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

/* --- Section 7a — HOME: pricing + services cards (/) --- */
/* File: views/pages/index.ejs | Classes: .home-card, .home-card__media */
.home-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  min-height: 132px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
}

.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-card__body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-card__body h3 {
  margin-bottom: 8px;
}

.home-card__body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.home-card__body p:last-child {
  margin-bottom: 0;
}

.dark .home-card__media {
  background: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .home-card__media {
  background: rgba(11, 19, 38, 0.06);
}

.home-card[data-home-id] {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-card[data-home-id]:hover,
.home-card[data-home-id]:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.45);
  outline: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.home-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.home-cards-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* --- Section 7b — HOME: portfolio carousel (/) --- */
/* File: views/pages/index.ejs | Classes: .home-showcase-*, #home-showcase */
.home-showcase-section {
  padding-top: 40px;
  padding-bottom: 32px;
}

.home-showcase-head h2,
.home-showcase-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 22px;
}

.home-showcase-head {
  margin-bottom: 4px;
}

.home-showcase-stage {
  position: relative;
  width: 100%;
}

#home-showcase .home-showcase-viewport {
  border-radius: 0;
  width: 100%;
}

#home-showcase .home-showcase-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.home-showcase-stage .home-showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.home-showcase-stage .home-showcase-prev {
  left: 10px;
}

.home-showcase-stage .home-showcase-next {
  right: 10px;
}

#pricing h2 {
  margin-bottom: 22px;
}

.home-pricing-wrap {
  margin-bottom: 12px;
}

/* Home pricing carousel — two plans per slide on laptop+ */
.home-pricing-wrap .home-showcase-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

.home-pricing-wrap .home-showcase-row .home-card {
  height: 100%;
  min-height: 0;
}

#pricing .home-pricing-viewport {
  max-width: 920px;
  margin: 0 auto;
}

#pricing .home-pricing-viewport[data-cards-per-slide="1"] .home-showcase-row {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.home-showcase-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.home-showcase-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  position: relative;
}

.home-showcase-slider {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.home-showcase-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
}

.home-showcase-box {
  padding: 0;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-showcase-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .home-showcase-box:hover {
  box-shadow: 0 12px 28px rgba(15, 30, 80, 0.12);
}

.home-showcase-slide-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.home-showcase-frame {
  width: 100%;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  background: var(--bg2);
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.home-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-showcase-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px 18px;
}

.home-showcase-brand {
  font-size: 0.82rem;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.home-showcase-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.35;
  width: 100%;
}

.home-showcase-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.home-showcase-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

.home-showcase-arrow {
  width: 42px;
  height: 42px;
  align-self: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.home-showcase-arrow:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.home-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.home-showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}

html[data-theme="light"] .home-showcase-dot {
  background: rgba(11, 19, 38, 0.2);
}

.home-showcase-dot.is-active {
  background: var(--brand);
  transform: scale(1.15);
}

body.home-modal-open {
  overflow: hidden;
}

/* --- Section 7c — HOME: card click popup modal (/) --- */
/* File: views/pages/index.ejs | Classes: .home-detail-modal, .home-detail-dialog */
.home-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.home-detail-modal[hidden] {
  display: none;
}

.home-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.75);
  backdrop-filter: blur(4px);
}

.home-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.home-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.home-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-detail-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.home-detail-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin: 8px 0;
}

.home-detail-summary {
  color: var(--muted);
  margin-bottom: 14px;
}

.home-detail-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.home-detail-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.home-detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22a06b;
  font-weight: 700;
}

.home-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   Section 8 — PORTFOLIO page (/portfolio)
   File:  views/pages/portfolio.ejs
   Classes: .portfolio-grid, .portfolio-card, .portfolio-detail-*
   ========================================================= */
.portfolio-grid {
  align-items: stretch;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.45);
  outline: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.portfolio-card__body h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.portfolio-card__body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 8px;
  flex: 1;
}

.portfolio-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-not-available {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

.portfolio-not-available strong {
  display: block;
  font-size: 1.1rem;
  color: #fca5a5;
  margin-bottom: 8px;
}

.portfolio-not-available p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portfolio-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.portfolio-detail-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 768px) {
  .home-showcase-wrap {
    grid-template-columns: auto 1fr auto;
    max-width: 100%;
  }

  #home-showcase .home-showcase-row {
    gap: 8px;
  }

  .home-showcase-stage .home-showcase-prev {
    left: 6px;
  }

  .home-showcase-stage .home-showcase-next {
    right: 6px;
  }

  #home-showcase .home-showcase-meta {
    padding: 12px 10px 14px;
  }

  #home-showcase .home-showcase-meta h3 {
    font-size: 0.95rem;
  }

  #home-showcase .home-showcase-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .home-pricing-wrap .home-showcase-row {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    min-height: 0;
  }

  #pricing .home-pricing-viewport {
    max-width: 100%;
  }

  #pricing .home-pricing-viewport[data-cards-per-slide="1"] .home-showcase-row {
    max-width: 100%;
  }

  #pricing .home-card__media {
    aspect-ratio: 2 / 1;
    max-height: 120px;
    min-height: 88px;
  }

  #pricing .home-card__body {
    padding: 10px 12px 12px;
  }

  #pricing .home-card__body h3 {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }

  #pricing .home-card__body p {
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #pricing .home-card__link {
    margin-top: 4px;
    font-size: 0.8rem;
  }

  .home-pricing-wrap .home-showcase-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .home-showcase-frame {
    min-height: 150px;
  }

  .home-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #home-showcase .home-showcase-row {
    gap: 6px;
  }

  #home-showcase .home-showcase-frame {
    min-height: 120px;
    aspect-ratio: 4 / 3;
  }

  #pricing .home-card__media {
    max-height: 100px;
    min-height: 72px;
  }

  #pricing h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }
}

/* =========================================================
   Section 9 — SERVICES page (/services)
   File:  views/pages/services.ejs
   Classes: .services-detail-wrap, .service-copy, .service-topics, .service-topic
   ========================================================= */
.services-detail-wrap {
  display: grid;
  gap: 28px;
}

.service-detail-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .service-detail-card {
  box-shadow: 0 8px 28px rgba(20, 38, 77, 0.08);
}

/* Small separated banner image (not a tall side column) */
.service-media {
  flex: 0 0 auto;
  height: clamp(120px, 22vw, 168px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-copy {
  padding: 22px 22px 26px;
}

.service-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}

.service-copy p {
  margin-bottom: 10px;
}

.service-copy ul {
  margin-left: 18px;
  display: grid;
  gap: 6px;
}

.service-copy li {
  color: var(--muted);
  line-height: 1.5;
}

.service-lead {
  margin: 0 0 4px;
  font-size: 0.98rem;
  max-width: 70ch;
}

.service-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 1100px) {
  .service-topics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-topic h4 {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.service-topic p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

a.service-topic.service-topic-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 29, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-top: 3px solid rgba(var(--brand-rgb), 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: 100%;
}

html[data-theme="light"] a.service-topic.service-topic-link {
  background: #f4f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

a.service-topic.service-topic-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(var(--brand-rgb), 0.45);
  background: rgba(12, 22, 48, 0.65);
}

html[data-theme="light"] a.service-topic.service-topic-link:hover {
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.12);
  background: #eef3ff;
}

a.service-topic.service-topic-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

a.service-topic-link h4 {
  color: var(--text);
}

a.service-topic-link p {
  color: var(--muted);
  flex: 1;
}

a.service-topic.service-topic-link::after {
  content: "Details →";
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* =========================================================
   Section 10 — SERVICE TOPIC detail (service-topic.html)
   File:  service-topic.html
   Classes: .topic-detail-page, .topic-breadcrumb, .topic-detail-grid
   ========================================================= */
.topic-detail-page {
  padding-top: 20px;
  padding-bottom: 40px;
}

.topic-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.topic-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.topic-breadcrumb a:hover {
  text-decoration: underline;
}

.topic-breadcrumb-current {
  color: var(--text);
  font-weight: 700;
}

.topic-hero {
  position: relative;
  margin: 18px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  width: min(1280px, 92%);
  max-width: 1280px;
}

.topic-hero img {
  width: 100%;
  height: min(52vh, 400px);
  object-fit: cover;
  display: block;
}

.topic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 29, 0.2), rgba(6, 11, 29, 0.78));
  pointer-events: none;
}

html[data-theme="light"] .topic-hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(11, 19, 38, 0.58));
}

.topic-hero-inner {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 0 30px;
  z-index: 2;
}

.topic-hero-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topic-hero-title {
  color: #fff;
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.topic-detail-body {
  padding-top: 28px;
  padding-bottom: 72px;
}

.topic-detail-inner {
  max-width: 72ch;
  margin: 0 auto;
  width: min(72ch, 92%);
}

.topic-detail-intro,
.topic-detail-more {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.topic-detail-bullets {
  margin: 18px 0 24px 1.1rem;
  color: var(--muted);
}

.topic-detail-bullets li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.topic-detail-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* =========================================================
   Section 11 — CONTACT page (/contact)
   File:  views/pages/contact.ejs
   Classes: .contact-grid, .contact-form, .form-row, .captcha-box
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.contact-left h2 {
  margin-bottom: 10px;
}

.contact-muted {
  margin-top: 14px;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.contact-link:hover {
  border-bottom-style: solid;
}

.contact-photo {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contact-form {
  padding: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.form-row label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea {
  background: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
  color: rgba(11, 19, 38, 0.55);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  margin: 8px 0 14px;
  user-select: none;
  cursor: pointer;
  max-width: 320px;
  width: 100%;
  text-align: left;
  font: inherit;
}

.captcha-box.is-checked {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.captcha-box__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.captcha-box__check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--muted);
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  position: relative;
}

.captcha-box.is-checked .captcha-box__check {
  border-color: #22c55e;
  background: #22c55e;
}

.captcha-box.is-checked .captcha-box__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-box__text {
  font-weight: 700;
  font-size: 0.95rem;
}

.captcha-box input {
  width: 18px;
  height: 18px;
}

.recaptcha-wrap {
  margin: 8px 0 14px;
  min-height: 78px;
  overflow: visible;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  max-width: 320px;
}

.g-recaptcha-host {
  min-height: 78px;
}

.contact-form,
.work-form,
.auth-form {
  overflow: visible;
}

.form-toast-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 22, 0.55);
}

.form-toast-root[hidden] {
  display: none !important;
}

.form-toast-root:not([hidden]) {
  display: grid;
}

body.form-toast-open {
  overflow: hidden;
}

.form-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(440px, 100%);
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: #fff;
  color: #0b1326;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: form-toast-in 0.35s ease;
}

.form-toast--success .form-toast__icon {
  color: #16a34a;
}

.form-toast--error .form-toast__icon {
  color: #dc2626;
}

.form-toast__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.form-toast__body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.form-toast__body p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.45;
}

.form-toast__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

@keyframes form-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-left {
    padding: 26px 20px;
  }

  .auth-right {
    min-height: 220px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-photo img {
    height: 200px;
  }
}

/* =========================================================
   Section 12 — WORK page (/work) + Home CTA strip
   Files: views/pages/work.ejs, index.ejs ( .cta, .dark, .quote )
   Classes: .work-grid, .work-form, .cta, .cta-box
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.work-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1700&q=80")
    center/cover no-repeat;
  opacity: 0.3;
  transform: scale(1.02);
  filter: blur(1.5px);
  z-index: -2;
}

.work-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 30, 0.52), rgba(8, 13, 30, 0.9));
  z-index: -1;
}

html[data-theme="light"] .work-hero::before {
  opacity: 0.34;
}

html[data-theme="light"] .work-hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.75));
}

.work-left h2 {
  margin-bottom: 10px;
  line-height: 1.15;
}

.work-copy {
  margin: 0;
  max-width: 56ch;
  line-height: 1.6;
}

.work-points {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.work-points li {
  color: var(--muted);
  line-height: 1.45;
}

.work-points__highlight {
  color: var(--text);
  font-weight: 600;
}

.work-picker {
  position: relative;
}

.work-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

html[data-theme="light"] .work-picker__trigger {
  background: rgba(var(--brand-rgb), 0.04);
}

.work-picker__trigger:hover:not(:disabled) {
  border-color: rgba(var(--brand-rgb), 0.55);
}

.work-picker.is-open .work-picker__trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}

.work-picker.is-disabled .work-picker__trigger {
  opacity: 0.7;
  cursor: not-allowed;
}

.work-picker__value {
  text-align: left;
  color: var(--muted);
}

.work-picker.has-value .work-picker__value {
  color: var(--text);
  font-weight: 600;
}

.work-picker__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.work-picker.is-open .work-picker__chev {
  transform: rotate(-135deg) translateY(2px);
}

.work-picker__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.work-picker__menu[hidden] {
  display: none !important;
}

.work-picker.is-open .work-picker__menu {
  display: block;
}

.work-picker__option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.work-picker__option:hover,
.work-picker__option.is-selected {
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--text);
}

html[data-theme="light"] .work-picker__menu {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(11, 19, 38, 0.12);
}

html[data-theme="light"] .work-picker__option:hover,
html[data-theme="light"] .work-picker__option.is-selected {
  background: rgba(var(--brand-rgb), 0.1);
}

.work-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.work-form h3 {
  margin-bottom: 12px;
}

.work-form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

html[data-theme="light"] .work-form input {
  background: #ffffff;
}

.work-select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

html[data-theme="light"] .work-select {
  background: #ffffff;
}

.work-select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.work-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .work-form input::placeholder {
  color: rgba(11, 19, 38, 0.55);
}

.work-select option {
  color: #111827;
}

.work-skills {
  margin: 10px 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.work-skills legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.work-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.work-skills label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.work-skills input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-skills {
    grid-template-columns: 1fr;
  }
}

.dark {
  background: #091027;
}

html[data-theme="light"] .dark {
  background: #ffffff;
}

.quote h4 {
  margin-top: 12px;
}

.quote span {
  color: #90a0cb;
  font-size: 0.9rem;
}

.cta {
  background: #091027;
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .cta {
  background: #ffffff;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  opacity: 0.22;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 16, 39, 0.45), rgba(9, 16, 39, 0.85));
}

html[data-theme="light"] .cta::before {
  opacity: 0.28;
}

html[data-theme="light"] .cta::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.68)
  );
}

.cta-box {
  position: relative;
  z-index: 2;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 62px 20px;
}

.cta-box p {
  margin: 8px 0 20px;
}

/* --- Section 13a — HOME: promo banner (/) --- */
/* File: views/pages/index.ejs | Classes: .twa-promo, .twa-promo__bg */
.twa-promo {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.twa-promo__bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
  transform: scale(1.02);
}

.twa-promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 11, 29, 0.88) 0%,
    rgba(12, 20, 48, 0.78) 45%,
    rgba(20, 40, 90, 0.72) 100%
  );
}

html[data-theme="light"] .twa-promo__overlay {
  background: linear-gradient(
    135deg,
    rgba(8, 18, 42, 0.82) 0%,
    rgba(15, 30, 65, 0.75) 50%,
    rgba(30, 58, 120, 0.68) 100%
  );
}

.twa-promo__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.twa-promo__brand {
  color: #7eb0ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.twa-promo h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 22px;
  color: #ffffff;
}

.twa-promo__content p {
  color: rgba(232, 240, 255, 0.92);
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 72ch;
}

.twa-promo__btn {
  margin-top: 12px;
}

/* --- Section 13b — TECH STACK marquee (Home + #technologies) --- */
/* File: views/partials/tech-stack.ejs (included on index) */
/* Classes: .tech-stack, .tech-stack-marquee, .tech-stack-track */
.tech-stack {
  background: #1a2f58;
  padding-bottom: 72px;
}

html[data-theme="light"] .tech-stack {
  background: #f7faff;
}

.tech-stack .small-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-stack h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.tech-stack-intro {
  max-width: 820px;
  margin-bottom: 36px;
  color: var(--muted);
  line-height: 1.65;
}

.tech-stack-marquees {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 8px;
}

.tech-stack-marquee {
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  min-height: 96px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.tech-stack-marquee::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tech-stack-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.tech-stack-track--left {
  animation: tech-stack-scroll-left 32s linear infinite;
}

.tech-stack-track--right {
  animation: tech-stack-scroll-right 32s linear infinite;
}

.tech-stack-grid {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 56px;
}

.tech-stack-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: 0 0 auto;
  min-width: 88px;
}

.tech-stack-grid img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.tech-stack-grid span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes tech-stack-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes tech-stack-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-stack-marquees {
    gap: 24px;
  }

  .tech-stack-marquee {
    mask-image: none;
    overflow: hidden;
    overflow-x: hidden;
  }

  .tech-stack-track,
  .tech-stack-track--left,
  .tech-stack-track--right {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    gap: 0;
  }

  .tech-stack-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

/* =========================================================
   Section 14 — FOOTER (all pages)
   File:  views/partials/footer.ejs
   Classes: .site-footer, .footer-grid, .footer-row, .social-links
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #12161e, #0a0c10);
  padding-top: 24px;
}

html[data-theme="light"] .site-footer {
  background: #f6f3ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 12px 0 10px;
  align-items: start;
}

.footer-grid h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-logo {
  display: inline-flex;
  margin: 0 0 12px;
}

.footer-about {
  margin: 0 0 10px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-about-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-contact {
  font-weight: 700;
}

.footer-grid a.footer-contact--phone,
.footer-grid a.footer-contact--mail {
  color: #5b9dff;
}

.footer-grid a.footer-contact--phone:hover,
.footer-grid a.footer-contact--mail:hover {
  color: #8cbcff;
}

html[data-theme="light"] .footer-grid a.footer-contact--phone,
html[data-theme="light"] .footer-grid a.footer-contact--mail {
  color: #1a5fd4;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* Social icon brand colors (text stays normal) */
.social-links a {
  color: var(--muted);
}

.social-links a svg {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .social-links a svg {
  color: rgba(11, 19, 38, 0.9);
}

.social-links a[href*="github.com"] svg {
  color: #ffffff;
}

html[data-theme="light"] .social-links a[href*="github.com"] svg {
  color: #24292f;
}

.social-links a[href*="x.com"] svg,
.social-links a[href*="twitter.com"] svg {
  color: #1d9bf0;
}

html[data-theme="light"] .social-links a[href*="x.com"] svg,
html[data-theme="light"] .social-links a[href*="twitter.com"] svg {
  color: #1d9bf0;
}

.social-links a[href*="youtube.com"] svg {
  color: #ff0033;
}

html[data-theme="light"] .social-links a[href*="youtube.com"] svg {
  color: #ff0033;
}

.social-links a[href*="facebook.com"] svg {
  color: #1877f2;
}

html[data-theme="light"] .social-links a[href*="facebook.com"] svg {
  color: #1877f2;
}

.footer-row {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px 0 12px;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.footer-row p:first-child {
  font-size: 1rem;
}

.footer-row p:last-child {
  font-size: 1.02rem;
  font-weight: 600;
}

/* =========================================================
   Section 15 — RESPONSIVE (mobile / tablet — all pages)
   Breakpoints: 1024px, 760px — navbar menu, grids, footer
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
    max-width: 72vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  /* Keep auth buttons visible; don't hide all small buttons */

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 85vh;
  }

  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-copy {
    padding: 18px 18px 22px;
  }

  .service-media {
    height: clamp(110px, 28vw, 150px);
  }

  .service-topics {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
}

@media (max-width: 760px) {
  .login-page {
    padding: 22px 10px;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 24px 18px;
  }

  .login-left h1 {
    font-size: 1.45rem;
  }

  .login-right {
    min-height: 220px;
  }

  .auth-section {
    padding-top: 38px;
  }

  .auth-left h1 {
    font-size: 1.55rem;
  }

  .social-login-btn {
    font-size: 0.94rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .navbar {
    min-height: 66px;
    gap: 10px;
  }

  .logo {
    font-size: 0.88rem;
    gap: 8px;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: 0;
  }

  .theme-toggle {
    margin-left: auto;
    width: 38px;
    height: 38px;
  }

  .account-menu__btn {
    width: 38px;
    height: 38px;
  }

  .only-desktop {
    display: none !important;
  }

  .only-mobile {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: auto;
    right: 12px;
    width: min(230px, 86vw);
    display: none !important;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1200;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.9);
    backdrop-filter: none;
  }

  .navbar.menu-open .nav-links {
    display: flex !important;
  }

  .nav-links li {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    margin: 4px 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ffffff !important;
    font-weight: 600;
    background: transparent;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
  }

  .hero {
    min-height: 72vh;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    padding: 92px 0 48px;
  }

  .hero-stats,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    padding: 10px 12px;
  }

  .hero-stats div + div {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .services-detail-wrap {
    gap: 22px;
  }

  .service-copy {
    padding: 16px 14px 20px;
  }

  .service-topics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  a.service-topic.service-topic-link {
    padding: 14px 14px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-row {
    min-height: 90px;
    justify-content: flex-end;
    padding: 18px 0 12px;
  }
}

@media (max-width: 760px) {
  html[data-theme="light"] .nav-links {
    background: #ffffff !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  }

  html[data-theme="light"] .nav-links li {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  html[data-theme="light"] .nav-links a {
    color: var(--text) !important;
    background: transparent;
  }

  html[data-theme="light"] .nav-links a:hover,
  html[data-theme="light"] .nav-links a:focus-visible {
    background: rgba(10, 20, 45, 0.08);
    color: var(--text);
  }

  html[data-theme="light"] .nav-links a[aria-current="page"] {
    background: rgba(10, 20, 45, 0.1);
  }
}

/* =========================================================
   Section 16 — ADMIN dashboard (/admin)
   Files: views/admin/dashboard.ejs, forbidden.ejs
   Classes: .admin-app, .admin-side-nav, .admin-table, .admin-nav-btn
   ========================================================= */
.admin-nav-btn {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.95), rgba(22, 48, 86, 0.92));
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-nav-btn:hover {
  filter: brightness(1.06);
}

.admin-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

.admin-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, rgba(12, 20, 48, 0.98), rgba(8, 13, 30, 0.99));
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

html[data-theme="light"] .admin-sidebar {
  background: linear-gradient(180deg, #f0f4ff, #ffffff);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  flex-shrink: 0;
  background: #161616;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.4);
}

.admin-brand__text {
  white-space: nowrap;
  background: linear-gradient(90deg, #e8e6e1 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .admin-brand__text {
  background: linear-gradient(90deg, #163056 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-sidebar-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: -12px;
}

.admin-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-side-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.admin-side-nav a:hover {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.12);
}

.admin-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-sidebar-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.admin-sidebar-link:hover {
  color: var(--brand);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 30, 0.55);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .admin-topbar {
  background: rgba(255, 255, 255, 0.88);
}

.admin-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.admin-content {
  padding: 24px 28px 48px;
  max-width: 1400px;
}

.admin-section {
  margin-bottom: 40px;
}

.admin-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.admin-flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.admin-flash-ok {
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: var(--text);
}

.admin-flash-err {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.admin-kpi-accent {
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 12px 34px rgba(var(--brand-rgb), 0.12);
}

.admin-kpi-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-kpi-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
}

.admin-kpi-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-kpi-warn {
  color: #ffb020;
}

.admin-chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-height: 300px;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(var(--brand-rgb), 0.06);
}

.admin-th-actions {
  min-width: 220px;
}

.admin-table tbody tr:hover {
  background: rgba(var(--brand-rgb), 0.04);
}

.admin-row-self {
  background: rgba(var(--brand-rgb), 0.07);
}

.admin-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-cell-msg {
  max-width: 280px;
  word-break: break-word;
}

.admin-cell-page {
  max-width: 180px;
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-msg-cell {
  min-width: 130px;
  max-width: 160px;
}

.admin-msg-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(var(--brand-rgb), 0.07);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.admin-msg-open:hover,
.admin-msg-open:focus-visible {
  border-color: var(--brand);
  background: rgba(var(--brand-rgb), 0.14);
  outline: none;
}

.admin-msg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-msg-label {
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-msg-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-msg-store {
  display: none !important;
}

body.admin-msg-modal-open {
  overflow: hidden;
}

.admin-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-msg-modal[hidden] {
  display: none !important;
}

.admin-msg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.admin-msg-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.admin-msg-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.admin-msg-modal__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-msg-modal__head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-msg-modal__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.admin-msg-modal__close:hover {
  color: var(--text);
}

.admin-msg-modal__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.admin-msg-modal__meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.admin-msg-modal__meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.admin-msg-modal__meta dd {
  margin: 0;
  word-break: break-word;
}

.admin-msg-modal__body-wrap {
  padding: 16px 20px 20px;
}

.admin-msg-modal__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-msg-modal__body {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.06);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 0.95rem;
}

.admin-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px !important;
}

.admin-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
}

.admin-pill-new {
  background: rgba(255, 176, 32, 0.2);
  color: #ffb020;
}

.admin-pill-read {
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--brand);
}

.admin-pill-archived {
  background: rgba(168, 180, 215, 0.2);
  color: var(--muted);
}

.admin-pill-admin {
  background: rgba(var(--brand-rgb), 0.22);
  color: var(--brand);
}

.admin-pill-paid {
  background: rgba(61, 214, 140, 0.18);
  color: #3dd68c;
}

.admin-pill-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.admin-pill-completed {
  background: rgba(61, 214, 140, 0.22);
  color: #3dd68c;
}

.admin-pill-balance-due {
  background: rgba(255, 152, 0, 0.18);
  color: #ff9800;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-inline-form {
  display: inline;
  margin: 0;
}

.order-balance-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-btn-danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.35);
}

.admin-section-desc {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-pill-user {
  background: rgba(168, 180, 215, 0.18);
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-select {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.82rem;
}

.admin-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn-danger-outline {
  border-color: rgba(255, 59, 48, 0.55) !important;
  color: #ff6b6b !important;
  background: transparent !important;
}

.btn-danger-outline:hover {
  background: rgba(255, 59, 48, 0.12) !important;
}

.admin-forbidden-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.admin-forbidden-card {
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.admin-forbidden-card h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
}

.admin-forbidden-card p {
  margin-top: 12px;
  color: var(--muted);
}

.admin-forbidden-hint {
  font-size: 0.85rem !important;
  text-align: left;
  line-height: 1.5;
}

.admin-forbidden-hint code {
  font-size: 0.8em;
  color: var(--text);
}

@media (max-width: 960px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .admin-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-sidebar-foot {
    flex-direction: row;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================================
   Section 17 — PRICING page (/pricing)
   File:  views/pages/pricing.ejs
   Classes: .pricing-hero, .pricing-hub, .pricing-packages-grid, .pricing-card
   ========================================================= */
.pricing-hero {
  position: relative;
  padding: 72px 0 64px;
  background: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
  text-align: center;
}

.pricing-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 29, 0.78);
}

.pricing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.pricing-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 12px 0;
}

.pricing-hero p {
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.pricing-section-lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.pricing-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pricing-category-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pricing-category-card:hover,
.pricing-category-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  outline: none;
}

.pricing-category-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg2);
}

.pricing-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pricing-category-card__body {
  padding: 14px 16px 16px;
}

.pricing-category-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pricing-category-card__body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-category-card__cta {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

.pricing-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.pricing-back-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pricing-detail-header {
  margin-bottom: 28px;
}

.pricing-detail-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 10px 0 8px;
}

.pricing-detail-header p {
  color: var(--muted);
  max-width: 720px;
}

.pricing-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-package-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px 20px;
  overflow: hidden;
}

html[data-theme="light"] .pricing-package-card {
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 30, 80, 0.08);
}

.pricing-ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  width: 140px;
  text-align: center;
  transform: rotate(45deg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  color: #fff;
}

.ribbon-economy {
  background: #e91e8c;
}

.ribbon-pro {
  background: var(--brand);
}

.ribbon-cms {
  background: #22a06b;
}

.pricing-package-card h3 {
  font-size: 1.25rem;
  margin: 8px 0 8px;
  padding-right: 40px;
}

.pricing-package-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 3.2em;
}

.pricing-package-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing-package-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-feature-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.pricing-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22a06b;
  font-weight: 700;
}

.pricing-options {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.pricing-option-group {
  margin-bottom: 12px;
}

.pricing-option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.pricing-option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-option-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

.pricing-option-choice input {
  accent-color: var(--brand);
}

.pricing-extra-block {
  margin-top: 40px;
}

.pricing-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.pricing-info-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #22a06b;
}

.pricing-maintenance {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.pricing-maintenance h3 {
  margin-bottom: 8px;
}

.pricing-maintenance p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-steps h3 {
  margin-bottom: 16px;
}

.pricing-steps-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.pricing-steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.pricing-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-steps-list strong {
  display: block;
  margin-bottom: 4px;
}

.pricing-steps-list p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .pricing-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pricing-packages-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Section 18 — WHATSAPP float button (all pages)
   File:  views/partials/whatsapp-float.ejs
   Classes: .whatsapp-float, .whatsapp-float__btn
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.whatsapp-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1ebe57, #25d366);
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.whatsapp-float__btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: whatsapp-ping 2.4s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float__icon,
.whatsapp-float__btn > svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 30px;
  height: 30px;
}

.whatsapp-float__btn > svg path {
  fill: #fff;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  outline: none;
}

.whatsapp-float:hover .whatsapp-float__btn,
.whatsapp-float:focus-visible .whatsapp-float__btn {
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes whatsapp-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__btn::after {
    animation: none;
    opacity: 0.35;
  }
}

body.twa-chatbot-open .whatsapp-float {
  transform: scale(0.95);
}

/* --- Section 19a — Site chatbot panel (all pages) --- */
/* File: views/partials/chatbot.ejs | Classes: .twa-chatbot, .twa-chatbot__panel */
.twa-chatbot {
  position: fixed;
  right: 14px;
  bottom: 96px;
  z-index: 10000;
  width: min(360px, calc(100vw - 24px));
}

.twa-chatbot__panel {
  display: flex;
  flex-direction: column;
  max-height: min(520px, calc(100vh - 120px));
  background: #12161e;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

html[data-theme="light"] .twa-chatbot__panel {
  background: #ffffff;
}

.twa-chatbot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
}

.twa-chatbot__head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.twa-chatbot__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.twa-chatbot__title {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.twa-chatbot__status {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 2px 0 0;
}

.twa-chatbot__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.twa-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 280px;
}

.twa-chatbot__msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 92%;
}

.twa-chatbot__msg--bot p {
  background: var(--panel);
  border: 1px solid var(--line);
  align-self: flex-start;
}

.twa-chatbot__msg--user p {
  background: #dcf8c6;
  color: #0b1326;
  align-self: flex-end;
  margin-left: auto;
}

html[data-theme="light"] .twa-chatbot__msg--bot p {
  background: #eef2ff;
}

.twa-chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}

.twa-chatbot__chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.twa-chatbot__chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.twa-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}

.twa-chatbot__form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  min-width: 0;
}

.twa-chatbot__send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.twa-chatbot__wa-link {
  display: block;
  text-align: center;
  padding: 10px 14px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
}

.twa-chatbot__wa-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .twa-chatbot {
    right: 10px;
    bottom: 88px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float__btn {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float__icon,
  .whatsapp-float__btn > svg {
    width: 28px;
    height: 28px;
  }
}

/* --- Section 19b — AI chat float (all pages) --- */
/* File: views/partials/ai-chat.ejs | Classes: .ai-chat-float, .twa-ai-chat */
.twa-ai-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: visible;
}

.ai-chat-float {
  position: fixed;
  left: 14px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(90deg, #e91e8c, #c026d3, #22d3ee) border-box;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(233, 30, 140, 0.25),
    0 4px 24px rgba(34, 211, 238, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.ai-chat-float:hover,
.ai-chat-float:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(233, 30, 140, 0.35),
    0 8px 32px rgba(34, 211, 238, 0.3);
  filter: brightness(1.08);
  outline: none;
}

.ai-chat-float__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.ai-chat-float__icon .twa-ai-icon {
  width: 22px;
  height: 22px;
}

.ai-chat-float__label {
  white-space: nowrap;
  line-height: 1;
}

.twa-ai-chat {
  position: fixed;
  left: 14px;
  bottom: 72px;
  z-index: 10000;
  width: min(380px, calc(100vw - 28px));
}

.twa-ai-chat__panel {
  display: flex;
  flex-direction: column;
  max-height: min(540px, calc(100vh - 110px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.twa-ai-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand));
  color: #fff;
}

.twa-ai-chat__head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.twa-ai-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.twa-ai-chat__avatar .twa-ai-icon {
  width: 22px;
  height: 22px;
}

.twa-ai-chat__title {
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}

.twa-ai-chat__status {
  font-size: 0.72rem;
  opacity: 0.9;
  margin: 2px 0 0;
}

.twa-ai-chat__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.twa-ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 300px;
}

.twa-ai-chat__msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 92%;
}

.twa-ai-chat__msg--bot p {
  background: var(--bg2);
  border: 1px solid var(--line);
  align-self: flex-start;
}

.twa-ai-chat__msg--user p {
  background: var(--brand);
  color: #12110d;
  align-self: flex-end;
  margin-left: auto;
}

.twa-ai-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.twa-ai-chat__form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  min-width: 0;
}

.twa-ai-chat__form input:disabled {
  opacity: 0.6;
}

.twa-ai-chat__send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #12110d;
  cursor: pointer;
}

.twa-ai-chat__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.twa-ai-chat__foot {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 8px 14px 14px;
  margin: 0;
}

.twa-ai-chat__foot a {
  color: var(--brand);
}

@media (max-width: 480px) {
  .ai-chat-float {
    left: 10px;
    bottom: 14px;
    padding: 9px 14px 9px 12px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .ai-chat-float__icon .twa-ai-icon {
    width: 18px;
    height: 18px;
  }

  .twa-ai-chat {
    left: 10px;
    bottom: 68px;
    width: calc(100vw - 20px);
  }
}

/* =========================================================
   Section 20 — ABOUT page (/about)
   File:  templates/pages/about.html
   ========================================================= */
.about-page {
  overflow-x: hidden;
}

.about-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.about-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.about-crumb a:hover {
  color: var(--brand);
}

.about-hero {
  position: relative;
  text-align: center;
  padding: 28px 0 56px;
}

.about-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(var(--brand-rgb), 0.22), transparent 62%);
}

.about-hero .container {
  position: relative;
}

.about-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: color-mix(in srgb, var(--brand) 28%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

html:not([data-theme="light"]) .about-kicker {
  color: #f4e6b5;
  background: rgba(var(--brand-rgb), 0.18);
}

.about-hero h1 {
  max-width: 18ch;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.about-hero h1 span {
  display: block;
  color: var(--brand);
}

.about-hero__lead {
  max-width: 46rem;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-mission {
  padding-top: 8px;
  padding-bottom: 28px;
}

.about-mission__inner {
  max-width: 42rem;
  text-align: center;
}

.about-mission h2 {
  margin-bottom: 14px;
}

.about-mission p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-mission strong {
  color: var(--brand);
  font-weight: 800;
}

.about-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-why__media {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.about-why__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.about-why__copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.about-why__copy p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-why__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}

.about-why__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-why__stats strong {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--brand);
  line-height: 1.1;
}

.about-why__stats span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-principles__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 28px;
}

.about-people {
  padding-top: 8px;
  padding-bottom: 8px;
}

.about-people--team {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.about-people__label {
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.about-people__label--center {
  text-align: center;
}

.about-people__narrow {
  max-width: 40rem;
}

.about-people__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  max-width: 54rem;
  margin: 0 auto;
}

.about-profile {
  max-width: 36rem;
}

.about-profile__photo {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 0 16px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 3px solid var(--brand, #c9a227);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.about-profile--founder .about-profile__photo {
  width: 156px;
  height: 156px;
  object-position: center 12%;
}

.about-profile__name {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text);
}

.about-profile--founder .about-profile__name {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
}

.about-profile__title {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.about-profile--founder .about-profile__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.about-profile__bio {
  margin: 0;
  max-width: 42ch;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--brand);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 400;
}

html[data-theme="light"] .about-profile__bio {
  border-left-color: #cfc8b8;
  color: #4a5160;
}

.about-principles__head p {
  color: var(--muted);
  margin-top: 8px;
}

.about-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-principle {
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card, rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .about-principle {
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 48, 86, 0.06);
}

.about-principle__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
}

.about-principle__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.about-principle h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.about-principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.about-offer__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.about-offer__list a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.about-offer__list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.about-cta__box {
  text-align: center;
  padding: 36px 24px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent);
}

.about-cta__box h2 {
  margin-bottom: 8px;
}

.about-cta__box p {
  color: var(--muted);
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .about-principles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .about-why__grid {
    grid-template-columns: 1fr;
  }

  .about-why__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .about-principles__grid,
  .about-why__stats,
  .about-people__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-hero {
    padding-top: 28px;
  }

  .about-hero__actions .btn {
    width: 100%;
  }
}

.about-hire-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.about-hire-card {
  padding: 28px 30px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(8, 13, 30, 0.2));
}

.about-hire-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.about-hire-copy > p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
}

.about-hire-points {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-hire-points li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

html[data-theme="light"] .about-hire-card {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), #ffffff);
}

.about-topics-section {
  padding-top: 20px;
}

.about-topics-heading {
  margin-bottom: 28px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.about-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-topic-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .about-topic-card:hover {
  box-shadow: 0 14px 32px rgba(15, 30, 80, 0.1);
}

.about-topic-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg2);
}

.about-topic-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-topic-card:hover .about-topic-visual img {
  transform: scale(1.05);
}

.about-topic-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 12px;
  background: rgba(6, 11, 29, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-topic-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-topic-body h3 {
  margin-bottom: 8px;
}

.about-topic-body > p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.about-topic-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-topic-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.about-topic-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.about-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.about-topic-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.15);
  color: var(--brand);
  border: 1px solid rgba(var(--brand-rgb), 0.25);
}

.about-topic-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.about-topic-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .about-founder-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-founder-media {
    max-width: 340px;
    margin: 0 auto;
  }

  .about-topics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-founder {
    padding-top: 100px;
  }

  .about-founder-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-founder-stats {
    gap: 14px;
  }
}

/* =========================================================
   Section 21 — ORDER + PAYMENT (/order, pricing pay buttons)
   Files: views/pages/order.ejs, order-success.ejs, pricing.ejs
   Classes: .order-layout, .order-summary-card, .pricing-package-actions
   ========================================================= */
.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pricing-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing-package-actions .btn-pay {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-color: transparent;
}

.order-page-section {
  padding-top: 48px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

.order-summary-card {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.order-summary-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.order-summary-card h2,
.order-form__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.order-summary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.2);
  border: 1px solid rgba(var(--brand-rgb), 0.45);
  color: #9eb8ff;
}

.order-summary-list {
  margin: 0 0 18px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-summary-row--highlight {
  padding: 14px 12px;
  margin-top: 4px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.08);
}

.order-summary-row--highlight dd {
  color: #3ddc84;
  font-size: 1.2rem;
}

.order-summary-list dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-summary-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.order-trust-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.order-trust-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.order-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3ddc84;
  font-weight: 700;
}

.order-setup-hint--warn {
  border-color: rgba(255, 180, 80, 0.45);
  background: rgba(255, 160, 60, 0.12);
  color: #ffd9a8;
}

.order-setup-hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  line-height: 1.5;
}

.order-form {
  padding: 28px 28px 32px;
}

.order-form__header {
  margin-bottom: 22px;
}

.order-form__sub {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.order-required {
  color: #ff8a8a;
}

.order-optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.order-field-box {
  margin-bottom: 20px;
  padding: 20px 20px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .order-field-box {
  background: rgba(255, 255, 255, 0.65);
}

.order-field-box__title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.order-form-grid {
  display: grid;
  gap: 16px 18px;
}

.order-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-field--full {
  grid-column: 1 / -1;
}

.order-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.order-field input,
.order-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 32, 0.55);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="light"] .order-field input,
html[data-theme="light"] .order-field textarea {
  background: #ffffff;
  border-color: var(--line);
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: rgba(168, 180, 215, 0.75);
}

html[data-theme="light"] .order-field input::placeholder,
html[data-theme="light"] .order-field textarea::placeholder {
  color: rgba(11, 19, 38, 0.45);
}

.order-field input:hover,
.order-field textarea:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
}

.order-field input:focus,
.order-field textarea:focus {
  border-color: rgba(var(--brand-rgb), 0.85);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}

.order-field textarea {
  resize: vertical;
  min-height: 100px;
}

.order-field-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-field-hint a {
  color: var(--brand);
  font-weight: 600;
}

.order-form-error {
  color: #ff7b7b;
  font-size: 0.9rem;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
}

.order-form-error[hidden] {
  display: none !important;
}

.order-pay-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(var(--brand-rgb), 0.35);
}

.order-pay-btn[hidden] {
  display: none !important;
}

.order-payment-panel {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(var(--brand-rgb), 0.45);
  background: linear-gradient(165deg, rgba(var(--brand-rgb), 0.12), rgba(8, 14, 32, 0.5));
  animation: order-panel-in 0.35s ease;
}

@keyframes order-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-payment-panel[hidden] {
  display: none !important;
}

.order-payment-panel__head {
  margin-bottom: 18px;
}

.order-payment-panel__head h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.order-payment-panel__amount {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.order-payment-panel__amount strong {
  color: #3ddc84;
  font-size: 1.2rem;
}

.order-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html[data-theme="light"] .order-pay-method {
  background: #ffffff;
}

.order-pay-method:hover,
.order-pay-method:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  outline: none;
}

.order-pay-method--whatsapp:hover,
.order-pay-method--whatsapp:focus-visible {
  border-color: rgba(37, 211, 102, 0.55);
}

.order-pay-method__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.15);
  font-size: 1.4rem;
}

.order-pay-method--whatsapp .order-pay-method__icon {
  background: rgba(37, 211, 102, 0.15);
}

.order-pay-method__icon img {
  display: block;
}

.order-pay-method__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-pay-method__text strong {
  font-size: 1rem;
}

.order-pay-method__text small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.order-pay-method__arrow {
  font-size: 1.25rem;
  color: var(--muted);
}

.order-payment-panel__secure {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-payment-panel__secure code {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.order-payment-back {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.order-payment-back:hover {
  text-decoration: underline;
}

.order-form-alt {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.order-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
}

.order-cta-banner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.order-cta-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-success-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.order-success-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 32px;
}

.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --- Payment receipt (print / download) --- */
.receipt-page-body {
  background: #eef1f8;
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.receipt-toolbar {
  max-width: 720px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-receipt {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a2e;
  border: 2px solid var(--brand);
  border-radius: 4px;
  padding: 28px 32px 24px;
  box-shadow: 0 8px 32px rgba(15, 30, 80, 0.12);
}

.payment-receipt__header {
  text-align: center;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.payment-receipt__company {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a3a8f;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.payment-receipt__tagline {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: #4a5568;
}

.payment-receipt__contact {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #64748b;
}

.payment-receipt__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0f172a;
}

.payment-receipt__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.payment-receipt__table th,
.payment-receipt__table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.payment-receipt__table th {
  width: 38%;
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.payment-receipt__status {
  color: #15803d;
  font-weight: 700;
}

.payment-receipt__mono {
  font-size: 0.82rem;
  word-break: break-all;
}

.payment-receipt__amount {
  font-size: 1.15rem;
  color: #1a3a8f;
}

.payment-receipt__footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.payment-receipt__footer-meta {
  margin-top: 8px;
  font-weight: 600;
  color: #475569;
}

/* =========================================================
   News Hub — /news (live ticker, filters, cards)
   ========================================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-crumb {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.news-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.news-crumb a:hover {
  color: var(--brand);
}

.news-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0a0c10;
  color: #fff;
  padding: 0 0 0 12px;
  min-height: 46px;
  overflow: hidden;
}

.news-ticker__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #12110d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  z-index: 1;
}

.news-ticker__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 8px), transparent);
}

.news-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: news-ticker-scroll 38s linear infinite;
}

.news-ticker:hover .news-ticker__track {
  animation-play-state: paused;
}

.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.news-ticker__fire {
  font-size: 0.95rem;
}

@keyframes news-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.news-toolbar {
  padding: 18px 0 8px;
}

.news-toolbar__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.news-cats::-webkit-scrollbar {
  display: none;
}

.news-cat {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.news-cat.is-active {
  background: var(--brand);
  color: #12110d;
  border-color: var(--brand);
}

.news-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--muted);
}

.news-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.news-sort select {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}

.news-hero-wrap {
  padding-top: 8px;
}

.news-hero {
  border-radius: 22px;
  padding: 36px 28px;
  background: linear-gradient(135deg, #1a1230 0%, #3a2458 42%, #c4a07a 100%);
  color: #fff;
}

.news-hero__kicker {
  color: #f0c14b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.news-hero p {
  max-width: 52ch;
  opacity: 0.92;
}

.news-featured {
  background: #12141c;
  color: #f4f1ea;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.news-featured__top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-featured__badge {
  background: var(--brand);
  color: #12110d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}

.news-featured__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.news-featured h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 10px;
}

.news-featured p {
  opacity: 0.85;
  margin-bottom: 18px;
}

.news-featured__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  opacity: 0.8;
}

.news-read {
  background: none;
  border: 0;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card__meta span {
  color: var(--brand);
}

.news-card__meta time {
  color: var(--muted);
}

.news-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.news-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.news-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.news-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.news-modal__cat {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-modal__lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.news-modal__by {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-hero {
    padding: 28px 18px;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  .receipt-page-body {
    background: #fff;
    padding: 0;
  }

  .payment-receipt {
    box-shadow: none;
    border: 2px solid #333;
    max-width: 100%;
    margin: 0;
  }
}

.track-section {
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy, #1a2744) 8%, transparent), transparent);
  padding-top: 56px;
  padding-bottom: 56px;
}

.track-lead {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 22px;
}

.track-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.track-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 280px;
  min-width: 0;
}

.track-field span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.track-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand, #c9a227) 45%, var(--border, #d8d0c0));
  background: var(--bg, #fff);
  color: inherit;
  font: inherit;
  letter-spacing: 0.02em;
}

.track-error {
  color: #b42318;
  font-weight: 600;
  margin: 8px 0 0;
}

.track-result {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand, #c9a227) 35%, transparent);
  background: color-mix(in srgb, var(--panel) 92%, var(--brand, #c9a227) 8%);
  color: var(--text);
}

.track-result h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.track-result__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.track-result__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.track-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--brand, #c9a227);
}

.track-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 #22c55e;
  animation: track-pulse 1.6s ease-out infinite;
}

@keyframes track-pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.track-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 0 0 18px;
  position: relative;
}

.track-step:last-child {
  padding-bottom: 0;
}

.track-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}

.track-step:last-child::before {
  display: none;
}

.track-step__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--bg, #fff);
  z-index: 1;
}

.track-step.is-done .track-step__dot,
.track-step.is-current .track-step__dot {
  border-color: var(--brand, #c9a227);
  background: var(--brand, #c9a227);
}

.track-step.is-current .track-step__dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #c9a227) 28%, transparent);
}

.track-step strong {
  display: block;
  color: var(--text);
}

.track-step small {
  color: var(--muted);
}

.track-pay {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .track-form .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
  }

  .order-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .order-form {
    padding: 20px 18px 24px;
  }
}

/* Campaigns — admin studio + public ticker / popup / gallery */
.has-promo-ticker {
  --promo-h: 46px;
}
.has-promo-ticker .site-header {
  top: var(--promo-h);
}
.promo-ticker {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #1a1408 0%, #3a2d12 50%, #c9a227 140%);
  color: #fff8e7;
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}
.promo-ticker__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 46px;
}
.promo-ticker__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9a227;
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 8px;
  border-radius: 999px;
}
.promo-ticker__text {
  margin: 0;
  font-size: 0.92rem;
}
.promo-ticker__cta {
  color: #1a1408;
  background: #c9a227;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
}
.promo-popup[hidden] {
  display: none !important;
}
.promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.72);
}
.promo-popup__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.promo-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.promo-popup__media img,
.promo-popup__media video,
.promo-popup__media iframe {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 0;
}
.promo-popup__media--video iframe,
.promo-popup__media--video video {
  aspect-ratio: 16 / 9;
  max-height: none;
  height: auto;
}
.promo-popup__copy {
  padding: 20px 22px 24px;
}
.promo-popup__kicker,
.promo-gallery__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.promo-popup__copy h2 {
  margin: 0 0 8px;
}
.promo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.promo-gallery__card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.promo-gallery__media {
  background: #0c1018;
  aspect-ratio: 16 / 10;
}
.promo-gallery__media img,
.promo-gallery__media video,
.promo-gallery__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.promo-gallery__copy {
  padding: 16px 18px 18px;
}
.promo-gallery__copy h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.admin-side-nav a.is-current {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.16);
}

.admin-studio-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}

.admin-studio {
  display: grid;
  gap: 28px;
}

.admin-studio-panel,
.admin-studio-library {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 90px),
    var(--panel);
  overflow: hidden;
}

.admin-studio-panel__head {
  padding: 22px 24px 0;
}

.admin-studio-panel__head h2,
.admin-studio-library .admin-studio-panel__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-studio-panel__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-campaign-form {
  padding: 8px 24px 24px;
}

.admin-studio-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.admin-studio-block h3 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.admin-campaign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.admin-campaign-span {
  grid-column: 1 / -1;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  outline: none;
}

html[data-theme="light"] .admin-field input,
html[data-theme="light"] .admin-field select,
html[data-theme="light"] .admin-field textarea {
  background: #fff;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.admin-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 18px;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.05);
  cursor: pointer;
  text-align: center;
  color: var(--text);
}

.admin-dropzone:hover {
  border-color: var(--brand);
  background: rgba(201, 162, 39, 0.1);
}

.admin-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-dropzone__art {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.16);
  color: var(--brand);
  margin-bottom: 4px;
}

.admin-dropzone__art svg {
  width: 22px;
  height: 22px;
}

.admin-dropzone strong {
  font-size: 0.95rem;
}

.admin-dropzone small {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-studio-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.admin-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.admin-studio-publish {
  min-width: 180px;
}

.admin-studio-library .admin-studio-panel__head {
  padding-bottom: 16px;
}

.admin-campaign-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.admin-campaign-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.admin-campaign-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
}

.admin-campaign-card.is-off {
  opacity: 0.72;
}

.admin-campaign-card.kind-offer {
  border-top: 3px solid #c9a227;
}
.admin-campaign-card.kind-ad {
  border-top: 3px solid #6ea8ff;
}
.admin-campaign-card.kind-photo {
  border-top: 3px solid #3dd68c;
}
.admin-campaign-card.kind-video {
  border-top: 3px solid #e07a5f;
}

.admin-campaign-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c1018;
}

.admin-campaign-media img,
.admin-campaign-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-campaign-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-campaign-live {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #c9a227;
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-campaign-live.is-paused {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.admin-campaign-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-campaign-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.admin-campaign-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-pill-kind {
  background: rgba(201, 162, 39, 0.16);
  color: var(--brand);
}

.admin-campaign-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.admin-studio-blank {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.admin-studio-blank p {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 720px) {
  .admin-campaign-grid {
    grid-template-columns: 1fr;
  }
  .admin-campaign-form,
  .admin-campaign-list,
  .admin-studio-panel__head {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.legal-section {
  padding-top: 24px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-toc a:hover,
.legal-toc a:focus-visible,
.legal-toc a[aria-current="page"] {
  color: var(--brand);
}

.legal-card {
  scroll-margin-top: 100px;
  margin-bottom: 18px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 1.15rem;
}

.legal-card li + li {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}
