/* ============================================================
   QR Menu Web App — Refined Dark Theme
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --bg-base: #1c1c26;
  --bg-elevated: #262632;
  --bg-surface: rgba(255, 255, 255, 0.06);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  --bg-item: rgba(255, 255, 255, 0.045);
  --bg-item-hover: rgba(255, 255, 255, 0.075);
  --bg-header-card: #2e2e3c;
  --bg-header-card-end: #262634;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.14);
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.42);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 6px 24px rgba(0, 0, 0, 0.22);
  --shadow-item:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 10px rgba(0, 0, 0, 0.15);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.28);
  --content-max: 720px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------
   2. GLOBAL RESET & BASE
   ---------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: none;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
}

::-webkit-scrollbar {
  display: none;
}

html {
  background-color: var(--bg-base);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   3. SPINNER
   ---------------------------------------------------------- */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   4. VENUE HEADER
   ---------------------------------------------------------- */
#venue-header {
  --venue-accent: #ffffff;
  position: relative;
  z-index: 100;
  width: 100%;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px;
  background: transparent;
}

.venue-header-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-header-card) 92%, var(--venue-accent) 8%) 0%,
    var(--bg-header-card-end) 100%
  );
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.venue-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--venue-accent) 75%, white),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

#venue-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 14px;
}

#venue-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--venue-accent) 28%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px color-mix(in srgb, var(--venue-accent) 12%, transparent);
  background: var(--bg-surface);
}

#venue-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#venue-header-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  pointer-events: none;
}

#venue-name {
  font-size: var(--fs-title, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#venue-subtitle {
  font-size: var(--fs-subtitle, 12px);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#venue-header.no-subtitle #venue-subtitle {
  margin-top: 0;
}

#venue-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------------
   5. HEADER ACTION BUTTONS
   ---------------------------------------------------------- */
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.header-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 62%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.header-action-btn__icon {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

#venue-info-btn {
  color: color-mix(in srgb, var(--venue-accent) 55%, #8ec8ff);
}

#venue-info-btn:hover {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #8ec8ff 24%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, #8ec8ff 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, #8ec8ff 35%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 4px 14px color-mix(in srgb, #8ec8ff 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#language-btn {
  color: color-mix(in srgb, var(--venue-accent) 55%, #c9abff);
}

#language-btn:hover {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #c9abff 24%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, #c9abff 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, #c9abff 35%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 4px 14px color-mix(in srgb, #c9abff 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-action-btn:hover {
  transform: translateY(-1px);
}

.header-action-btn:active {
  transform: scale(0.94);
}

.header-action-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--venue-accent) 60%, transparent);
  outline-offset: 2px;
}

#language-btn.is-translating {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--venue-accent) 22%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, var(--venue-accent) 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, var(--venue-accent) 35%, rgba(255, 255, 255, 0.14));
  animation: translatePulse 1.6s ease-in-out infinite;
}

#language-btn.is-translating .header-action-btn__icon {
  animation: spin 1.1s linear infinite;
}

@keyframes translatePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--venue-accent) 20%, transparent); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.header-action-btn .material-icons-outlined,
.header-action-btn__icon {
  font-size: 20px;
}

/* ----------------------------------------------------------
   6. MAIN CONTENT
   ---------------------------------------------------------- */
#main-content {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

#whatsapp-order-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
  overflow: hidden;
}

#whatsapp-order-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  line-height: 0;
}

#whatsapp-order-btn svg {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

#whatsapp-order-btn:hover {
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.42);
}

@media (max-width: 600px) {
  #whatsapp-order-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
  }

  #whatsapp-order-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ----------------------------------------------------------
   23. VCARD THEMES
   ---------------------------------------------------------- */
#app.profile-app {
  max-width: none;
}

.profile-shell:has(.profile-type--vcard) {
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --profile-accent: #75a7ff;
  --profile-muted: rgba(255, 255, 255, 0.66);
  --profile-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  align-items: flex-start;
  padding: clamp(18px, 4vw, 52px) 16px;
  background-color: var(--profile-bg, #101723);
  color: var(--profile-text, #f7f9fc);
}

.profile-shell:has(.profile-type--vcard) .profile-page {
  width: min(100%, 760px);
}

.profile-type--vcard {
  animation: vcardEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes vcardEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-type--vcard .profile-hero-card {
  min-height: 250px;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--profile-shadow);
}

.profile-type--vcard .profile-avatar-wrap {
  width: 132px;
  height: 132px;
  border: 2px solid var(--profile-accent);
  border-radius: 8px;
  background: var(--card-bg);
}

.profile-type--vcard .profile-avatar-button {
  display: block;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  appearance: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.profile-type--vcard .profile-avatar-button:hover {
  transform: translateY(-2px) scale(1.015);
}

.profile-type--vcard .profile-avatar-button:focus-visible {
  outline: 3px solid var(--profile-accent);
  outline-offset: 4px;
}

.profile-image-lightbox .image-lightbox-img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
}

.profile-type--vcard .profile-avatar--fallback {
  background: var(--profile-accent);
  color: var(--profile-bg);
}

.profile-type--vcard .profile-kicker,
.profile-type--vcard .section-title {
  color: var(--profile-accent);
  letter-spacing: 0;
  opacity: 1;
}

.profile-type--vcard .profile-identity h1 {
  color: var(--profile-text);
  letter-spacing: 0;
}

.profile-type--vcard .profile-identity h2,
.profile-type--vcard .contact-list,
.profile-type--vcard .empty-state {
  color: var(--profile-muted);
}

.profile-type--vcard .profile-company {
  border-radius: 4px;
  background: color-mix(in srgb, var(--profile-accent) 14%, transparent);
  color: var(--profile-accent);
}

.profile-type--vcard .profile-section {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: none;
}

.profile-type--vcard .contact-list a,
.profile-type--vcard .contact-item {
  min-height: 42px;
}

.profile-type--vcard .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-type--vcard .contact-row > a {
  flex: 1;
  min-width: 0;
}

.profile-type--vcard .save-contact-btn {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--profile-accent) 14%, transparent);
  color: var(--profile-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.profile-type--vcard .save-contact-btn:hover {
  background: color-mix(in srgb, var(--profile-accent) 24%, transparent);
}

.profile-type--vcard .save-contact-btn:active {
  transform: scale(0.96);
}

.profile-type--vcard .save-contact-btn:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

.profile-type--vcard .save-contact-btn .material-icons-outlined {
  font-size: 18px;
}

.profile-type--vcard .contact-list .material-icons-outlined {
  color: var(--profile-accent);
}

.profile-type--vcard .profile-link {
  min-height: 42px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--profile-accent) 10%, transparent);
  color: var(--profile-text);
}

/* Midnight: centered portrait on a deep, focused night surface. */
.profile-shell.profile-theme--midnight {
  --profile-bg: #080d18;
  --profile-text: #f4f7ff;
  --profile-muted: #9caac2;
  --profile-accent: #7ca7ff;
  --card-bg: rgba(21, 31, 50, 0.76);
  --card-border: rgba(124, 167, 255, 0.2);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(46, 83, 148, 0.32), transparent 38%),
    linear-gradient(180deg, #080d18, #111827);
}

.vcard-theme--midnight .profile-hero-card {
  flex-direction: column;
  text-align: center;
}

.vcard-theme--midnight .profile-avatar-wrap {
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(124, 167, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.36);
}

/* Nordic: airy, left-aligned and deliberately quiet. */
.profile-shell.profile-theme--nordic {
  --profile-bg: #edf2f3;
  --profile-text: #162326;
  --profile-muted: #5c6b6e;
  --profile-accent: #24747b;
  --card-bg: rgba(255, 255, 255, 0.74);
  --card-border: rgba(42, 70, 73, 0.14);
  --profile-shadow: 0 20px 55px rgba(48, 76, 78, 0.1);
  background-image: linear-gradient(135deg, #f9fbfb 0%, #e6eeee 55%, #f5f7f5 100%);
}

.vcard-theme--nordic .profile-hero-card {
  align-items: flex-start;
  background: transparent;
  border-width: 0 0 1px;
  box-shadow: none;
}

.vcard-theme--nordic .profile-avatar-wrap {
  width: 148px;
  height: 178px;
}

.vcard-theme--nordic .profile-section {
  background: rgba(255, 255, 255, 0.48);
}

/* Executive: formal portrait-left identity layout. */
.profile-shell.profile-theme--executive {
  --profile-bg: #e9edf2;
  --profile-text: #14233b;
  --profile-muted: #586578;
  --profile-accent: #b18a49;
  --card-bg: #f9fafb;
  --card-border: rgba(20, 35, 59, 0.16);
  --profile-shadow: 0 22px 60px rgba(20, 35, 59, 0.15);
  background-image: linear-gradient(120deg, #dfe5ec, #f6f7f8 48%, #e8edf3);
}

.vcard-theme--executive .profile-hero-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas: 'portrait identity';
  align-items: center;
  text-align: left;
  border-top: 6px solid #14233b;
}

.vcard-theme--executive .profile-avatar-wrap {
  grid-area: portrait;
  width: 150px;
  height: 188px;
  margin-left: 0;
  border-color: #14233b;
}

.vcard-theme--executive .profile-identity {
  grid-area: identity;
  min-width: 0;
  text-align: left;
}

/* Ivory: warm editorial type with a centered oval portrait. */
.profile-shell.profile-theme--ivory {
  --profile-bg: #eee4d2;
  --profile-text: #332d28;
  --profile-muted: #756a60;
  --profile-accent: #8b6042;
  --card-bg: rgba(255, 251, 242, 0.76);
  --card-border: rgba(112, 83, 58, 0.18);
  --profile-shadow: 0 26px 65px rgba(90, 65, 42, 0.14);
  background-image: linear-gradient(145deg, #f8f1e4, #e8dac2 58%, #f3eadb);
}

.vcard-theme--ivory .profile-hero-card {
  flex-direction: column;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

.vcard-theme--ivory .profile-avatar-wrap {
  width: 124px;
  height: 158px;
  border-radius: 50%;
}

.vcard-theme--ivory .profile-identity h2,
.vcard-theme--ivory .profile-company {
  font-family: 'Inter', sans-serif;
}

/* Monochrome: high-contrast vertical portrait block. */
.profile-shell.profile-theme--monochrome {
  --profile-bg: #f4f4f2;
  --profile-text: #050505;
  --profile-muted: #444;
  --profile-accent: #050505;
  --card-bg: #fff;
  --card-border: #050505;
  --profile-shadow: 10px 10px 0 #050505;
  background-image: linear-gradient(90deg, #ececea 1px, transparent 1px);
  background-size: 24px 100%;
}

.vcard-theme--monochrome .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  padding: 0;
}

.vcard-theme--monochrome .profile-avatar-wrap {
  width: 100%;
  height: 300px;
  border: 0;
  border-right: 2px solid #050505;
  border-radius: 0;
}

.vcard-theme--monochrome .profile-identity {
  padding: 32px;
}

.vcard-theme--monochrome .profile-link,
.vcard-theme--monochrome .profile-company {
  border-color: #050505;
}

/* Slate: compact technical layout, aligned to the right. */
.profile-shell.profile-theme--slate {
  --profile-bg: #252a2d;
  --profile-text: #edf1f2;
  --profile-muted: #aeb9bc;
  --profile-accent: #8fd0d7;
  --card-bg: rgba(55, 63, 67, 0.86);
  --card-border: rgba(164, 187, 191, 0.2);
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.018) 18px 19px);
}

.vcard-theme--slate .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(116px, 22vw, 154px);
  grid-template-areas: 'identity portrait';
  align-items: start;
  min-height: 230px;
  text-align: left;
}

.vcard-theme--slate .profile-avatar-wrap {
  grid-area: portrait;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin-left: auto;
  border-radius: 2px;
}

.vcard-theme--slate .profile-identity {
  grid-area: identity;
  align-self: start;
  text-align: left;
}

.vcard-theme--slate .profile-company {
  float: none;
}

/* Emerald: crisp hierarchy for advisory and professional profiles. */
.profile-shell.profile-theme--emerald {
  --profile-bg: #eef1eb;
  --profile-text: #123c32;
  --profile-muted: #596b63;
  --profile-accent: #0c6952;
  --card-bg: rgba(255, 255, 252, 0.82);
  --card-border: rgba(12, 105, 82, 0.18);
  --profile-shadow: 0 20px 60px rgba(10, 75, 59, 0.12);
  background-image: linear-gradient(150deg, #fbfcf7, #e2e9df);
}

.vcard-theme--emerald .profile-hero-card {
  border-left: 8px solid var(--profile-accent);
}

.vcard-theme--emerald .profile-avatar-wrap {
  width: 116px;
  height: 146px;
  border-radius: 2px;
}

.vcard-theme--emerald .section-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

/* Titanium: metallic banner with an asymmetric portrait overlap. */
.profile-shell.profile-theme--titanium {
  --profile-bg: #c8cdd1;
  --profile-text: #171b1e;
  --profile-muted: #4c555c;
  --profile-accent: #39454d;
  --card-bg: rgba(239, 242, 244, 0.82);
  --card-border: rgba(42, 50, 56, 0.2);
  --profile-shadow: 0 28px 70px rgba(29, 34, 38, 0.2);
  background-image: linear-gradient(115deg, #aeb5ba, #f0f2f3 40%, #bbc1c5 72%, #e7eaec);
}

.vcard-theme--titanium .profile-hero-card {
  min-height: 300px;
  align-items: flex-end;
  padding-top: 116px;
  background:
    linear-gradient(90deg, rgba(22, 27, 31, 0.92), rgba(74, 84, 91, 0.82)) top / 100% 110px no-repeat,
    var(--card-bg);
}

.vcard-theme--titanium .profile-avatar-wrap {
  width: 136px;
  height: 136px;
  margin-top: -70px;
  border: 5px solid #e8ebed;
  border-radius: 4px;
}

/* Editorial: oversized frameless image and magazine-like typography. */
.profile-shell.profile-theme--editorial {
  --profile-bg: #f6f2eb;
  --profile-text: #191715;
  --profile-muted: #685f57;
  --profile-accent: #b43b2f;
  --card-bg: transparent;
  --card-border: rgba(25, 23, 21, 0.22);
  --profile-shadow: none;
  background-image: linear-gradient(90deg, rgba(180, 59, 47, 0.07) 50%, transparent 50%);
}

.vcard-theme--editorial .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(210px, 45%) 1fr;
  padding: 0;
  border-width: 0 0 1px;
}

.vcard-theme--editorial .profile-avatar-wrap {
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: 0;
}

.vcard-theme--editorial .profile-identity {
  padding: 38px;
  font-family: 'Playfair Display', Georgia, serif;
}

.vcard-theme--editorial .profile-identity h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.vcard-theme--editorial .profile-section {
  border-width: 0 0 1px;
}

/* Amber: warm dark palette with offset, energetic geometry. */
.profile-shell.profile-theme--amber {
  --profile-bg: #1c1511;
  --profile-text: #fff6e9;
  --profile-muted: #cebca7;
  --profile-accent: #f1a33c;
  --card-bg: rgba(62, 42, 28, 0.78);
  --card-border: rgba(241, 163, 60, 0.26);
  background-image:
    linear-gradient(125deg, transparent 55%, rgba(241, 163, 60, 0.1) 55%),
    linear-gradient(180deg, #17100d, #2a1d16);
}

.vcard-theme--amber .profile-hero-card {
  transform: rotate(-0.7deg);
  border-bottom: 5px solid var(--profile-accent);
}

.vcard-theme--amber .profile-avatar-wrap {
  width: 142px;
  height: 142px;
  border-radius: 50% 50% 8px 50%;
  transform: rotate(3deg);
}

.vcard-theme--amber .profile-section {
  transform: translateX(8px);
}

/* Canvas: tactile pastel card, centered like a personal stationery piece. */
.profile-shell.profile-theme--canvas {
  --profile-bg: #d8e2dd;
  --profile-text: #28312d;
  --profile-muted: #626d68;
  --profile-accent: #b84e54;
  --card-bg: rgba(255, 253, 247, 0.9);
  --card-border: rgba(73, 83, 77, 0.18);
  --profile-shadow: 0 18px 0 rgba(87, 107, 97, 0.12), 0 28px 65px rgba(59, 75, 66, 0.14);
  background-image:
    repeating-linear-gradient(0deg, rgba(56, 69, 62, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #e8dcd8, #d5e3dd 52%, #e5dfcb);
}

.vcard-theme--canvas .profile-hero-card {
  flex-direction: column;
  text-align: center;
}

.vcard-theme--canvas .profile-avatar-wrap {
  width: 118px;
  height: 118px;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 6px 7px 0 rgba(184, 78, 84, 0.16);
}

/* Onyx: AMOLED black with restrained metallic detailing. */
.profile-shell.profile-theme--onyx {
  --profile-bg: #000;
  --profile-text: #f7f5ef;
  --profile-muted: #aaa8a1;
  --profile-accent: #c9aa68;
  --card-bg: #050505;
  --card-border: rgba(201, 170, 104, 0.32);
  --profile-shadow: 0 26px 80px rgba(0, 0, 0, 0.7);
  background-image: radial-gradient(circle at 50% -10%, #25231f, #000 38%);
}

.vcard-theme--onyx .profile-hero-card {
  flex-direction: column;
  text-align: center;
  border-width: 1px 0;
}

.vcard-theme--onyx .profile-avatar-wrap {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #77736b, 0 0 0 7px #050505;
}

.vcard-theme--onyx .profile-section {
  border-width: 0 0 1px;
}

@media (max-width: 600px) {
  .profile-shell:has(.profile-type--vcard) {
    padding: 12px 10px 30px;
  }

  .profile-type--vcard .profile-hero-card {
    min-height: 0;
    padding: 28px 20px;
  }

  .profile-type--vcard .profile-identity h1 {
    font-size: 32px;
  }

  .vcard-theme--nordic .profile-hero-card,
  .vcard-theme--executive .profile-hero-card,
  .vcard-theme--emerald .profile-hero-card {
    flex-direction: row;
    text-align: left;
  }

  .vcard-theme--nordic .profile-avatar-wrap,
  .vcard-theme--executive .profile-avatar-wrap,
  .vcard-theme--emerald .profile-avatar-wrap {
    width: 92px;
    height: 108px;
  }

  .vcard-theme--executive .profile-hero-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .vcard-theme--executive .profile-avatar-wrap {
    width: 108px;
    height: 140px;
  }

  .vcard-theme--slate .profile-hero-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 16px;
    padding: 24px 18px;
  }

  .vcard-theme--nordic .profile-hero-card {
    flex-direction: column;
    gap: 24px;
    padding: 0 0 28px;
    text-align: left;
  }

  .vcard-theme--nordic .profile-avatar-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 0;
  }

  .vcard-theme--nordic .profile-identity {
    width: 100%;
    padding: 0 20px;
  }

  .vcard-theme--monochrome .profile-hero-card,
  .vcard-theme--editorial .profile-hero-card {
    grid-template-columns: 38% 1fr;
    text-align: left;
  }

  .vcard-theme--monochrome .profile-avatar-wrap,
  .vcard-theme--editorial .profile-avatar-wrap {
    height: 280px;
  }

  .vcard-theme--monochrome .profile-identity,
  .vcard-theme--editorial .profile-identity {
    padding: 22px 16px;
  }

  .vcard-theme--editorial .profile-identity h1 {
    font-size: 34px;
  }

  .vcard-theme--titanium .profile-hero-card {
    align-items: center;
    padding-top: 126px;
  }

  .vcard-theme--amber .profile-section {
    transform: none;
  }
}

@media (max-width: 390px) {
  .vcard-theme--emerald .profile-hero-card {
    flex-direction: column;
    text-align: center;
  }

  .vcard-theme--executive .profile-hero-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 16px;
  }

  .vcard-theme--executive .profile-avatar-wrap {
    width: 100px;
    height: 132px;
  }

  .vcard-theme--monochrome .profile-hero-card,
  .vcard-theme--editorial .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .vcard-theme--monochrome .profile-avatar-wrap,
  .vcard-theme--editorial .profile-avatar-wrap {
    height: 230px;
    border-right: 0;
    border-bottom: 2px solid var(--card-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-type--vcard {
    animation: none;
  }
}

/* ----------------------------------------------------------
   7. MENU SEARCH
   ---------------------------------------------------------- */
#menu-search-wrap {
  margin: 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#menu-search-wrap:focus-within {
  border-color: color-mix(in srgb, var(--venue-accent) 35%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--venue-accent) 15%, transparent);
  background: rgba(0, 0, 0, 0.24);
}

#menu-search-wrap .material-icons-outlined {
  font-size: 20px;
  color: var(--text-secondary);
}

#menu-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

#menu-search-input::placeholder {
  color: var(--text-muted);
}

#menu-search-input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.65);
  cursor: pointer;
}

/* ----------------------------------------------------------
   8. CATEGORY FILTER
   ---------------------------------------------------------- */
#category-filter {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#category-filter::before,
#category-filter::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 16px;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}

#category-filter::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-header-card), transparent);
}

#category-filter::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-header-card), transparent);
}

@media (min-width: 601px) {
  #venue-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  #venue-profile-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  #category-filter {
    padding-left: 20px;
    padding-right: 20px;
  }

  #menu-search-wrap {
    margin-left: 20px;
    margin-right: 20px;
  }
}

#category-filter-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  height: 100%;
  align-items: stretch;
  scrollbar-width: none;
  padding: 2px 4px;
  scroll-padding-inline: 4px;
}

#category-filter-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-size: var(--fs-categories, 13px);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.category-item:hover:not(.selected) {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.category-item.selected {
  border-width: 1px;
  font-weight: 600;
  border-color: color-mix(in srgb, var(--cat-color) 55%, transparent);
  background: color-mix(in srgb, var(--cat-color) 16%, rgba(255, 255, 255, 0.04));
  color: var(--cat-color);
  box-shadow:
    0 2px 12px color-mix(in srgb, var(--cat-color) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--cat-color) 8%, transparent) inset;
}

.category-item:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------
  9. CAMPAIGN SLIDER
   ---------------------------------------------------------- */
#campaign-slider {
  margin: 4px 0 20px;
  padding: 0 16px;
  --track-inner-space: 24px;
  --card-width: calc(100% - (var(--track-inner-space) * 2));
  --card-max: 400px;
}

#campaign-slider.single-campaign #campaign-track {
  padding: 0;
}

#campaign-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#campaign-track::-webkit-scrollbar {
  display: none;
}

.campaign-card {
  width: var(--card-width);
  max-width: var(--card-max);
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: center;
  cursor: default;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.single-campaign .campaign-card {
  width: 100%;
  max-width: unset;
}

.campaign-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: transform 0.4s ease;
}

.campaign-card:hover .campaign-card-bg {
  transform: scale(1.03);
}

.campaign-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.campaign-card-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.campaign-card-title {
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------
   9. CATEGORY GRID (Theme 0)
   ---------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
}

.menu-empty-state {
  margin: 10px 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.category-card {
  padding: 18px 14px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow: var(--shadow-card);
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cat-color),
    transparent
  );
  opacity: 0.7;
}

.category-card-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--fs-category-name, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cat-color);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--cat-color) 18%, var(--border-subtle));
}

.menu-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.menu-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-item);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.category-card .menu-item:hover {
  background: var(--bg-item-hover);
  border-color: color-mix(in srgb, var(--cat-color) 24%, var(--border-medium));
  box-shadow:
    var(--shadow-item),
    0 0 0 1px color-mix(in srgb, var(--cat-color) 8%, transparent) inset;
}

.menu-item:active {
  transform: scale(0.99);
}

.menu-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.menu-item-name {
  color: var(--text-primary);
  font-size: var(--fs-item-title, 15px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.menu-item-size {
  color: var(--text-secondary);
  font-size: var(--fs-item-description, 12px);
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-item-price {
  color: color-mix(in srgb, var(--cat-color, #ffffff) 88%, white);
  font-size: var(--fs-item-price, 14px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, #ffffff) 14%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--cat-color, #ffffff) 22%, transparent);
}

/* Legacy support for menu-item-info */
.menu-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ----------------------------------------------------------
   10. ALLERGEN ICONS
   ---------------------------------------------------------- */
.allergen-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.allergen-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  padding: 2px;
  filter: brightness(0) invert(0.65);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  border-radius: 4px;
}

.allergen-icon:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

/* ----------------------------------------------------------
   11. IMAGE CATEGORY LIST (Theme 1)
   ---------------------------------------------------------- */
.image-category-list {
  padding: 0 16px;
}

.image-category-section {
  margin-bottom: 28px;
}

.image-category-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--fs-category-name, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.image-menu-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.image-menu-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  gap: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-item);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.image-category-section .image-menu-item:hover {
  background: var(--bg-item-hover);
  border-color: color-mix(in srgb, var(--cat-color) 24%, var(--border-medium));
}

.image-menu-item:active {
  transform: scale(0.99);
}

.image-menu-item-thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.image-menu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-menu-item-thumb img:hover {
  transform: scale(1.05);
}

.menu-item-body {
  flex: 1;
  min-width: 0;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.placeholder-icon .material-icons-outlined {
  font-size: 26px;
}

.image-item-divider {
  display: none;
}

/* ----------------------------------------------------------
   12. MODAL OVERLAY
   ---------------------------------------------------------- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#modal-overlay.visible {
  opacity: 1;
}

#modal-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-overlay.visible #modal-content {
  transform: translateY(0) scale(1);
}

#modal-content > * {
  pointer-events: auto;
  width: 100%;
}

#modal-content:has(.image-lightbox) {
  max-width: none;
}

#modal-content .image-lightbox {
  width: auto;
}

body.modal-open {
  overflow: hidden;
}

body.is-translating #main-content {
  opacity: 0.97;
  transition: opacity 0.3s ease;
}

/* ----------------------------------------------------------
   13. TRANSLATION TOAST
   ---------------------------------------------------------- */
#translation-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#translation-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.translation-toast-icon {
  font-size: 18px;
  color: var(--text-secondary);
  animation: spin 1.2s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----------------------------------------------------------
   14. SHARED DIALOG STYLES
   ---------------------------------------------------------- */
.venue-info-dialog,
.language-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-header-card) 94%, white 6%) 0%,
    var(--bg-header-card-end) 100%
  );
  border: 1px solid var(--border-medium);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.venue-info-dialog::before,
.language-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.dialog-header {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.dialog-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.dialog-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dialog-header-icon .material-icons-outlined {
  font-size: 22px;
}

.dialog-header-icon--info {
  color: #8ec8ff;
  background: linear-gradient(160deg, rgba(142, 200, 255, 0.22), rgba(142, 200, 255, 0.08));
  border-color: rgba(142, 200, 255, 0.22);
}

.dialog-header-icon--language {
  color: #c9abff;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.22), rgba(201, 171, 255, 0.08));
  border-color: rgba(201, 171, 255, 0.22);
}

.dialog-header-text {
  min-width: 0;
  flex: 1;
}

.dialog-title {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dialog-subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.dialog-close-btn:active {
  transform: scale(0.94);
}

.dialog-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  flex: 1;
}

/* ----------------------------------------------------------
   14b. VENUE INFO DIALOG
   ---------------------------------------------------------- */
.venue-info-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-item);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.info-item.clickable {
  cursor: pointer;
}

.info-item.clickable:hover {
  background: var(--bg-item-hover);
  border-color: rgba(142, 200, 255, 0.22);
  box-shadow:
    var(--shadow-item),
    0 0 0 1px rgba(142, 200, 255, 0.08) inset;
  transform: translateY(-1px);
}

.info-item.clickable:active {
  transform: scale(0.99);
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item-icon .material-icons-outlined {
  font-size: 19px;
}

.info-item-icon--location {
  color: #8ec8ff;
  background: linear-gradient(160deg, rgba(142, 200, 255, 0.18), rgba(142, 200, 255, 0.06));
}

.info-item-icon--description {
  color: #b8c0cc;
  background: linear-gradient(160deg, rgba(184, 192, 204, 0.16), rgba(184, 192, 204, 0.05));
}

.info-item-icon--phone {
  color: #7ddea8;
  background: linear-gradient(160deg, rgba(125, 222, 168, 0.18), rgba(125, 222, 168, 0.06));
}

.info-item-icon--website {
  color: #c9abff;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.18), rgba(201, 171, 255, 0.06));
}

.info-item-icon--calendar {
  color: #ffb86b;
  background: linear-gradient(160deg, rgba(255, 184, 107, 0.18), rgba(255, 184, 107, 0.06));
}

.info-item-icon--hours {
  color: #8ed4ff;
  background: linear-gradient(160deg, rgba(142, 212, 255, 0.18), rgba(142, 212, 255, 0.06));
}

.info-item-body {
  flex: 1;
  min-width: 0;
}

.info-text {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-item.clickable .info-text {
  color: var(--text-primary);
  font-weight: 500;
}

.info-chevron {
  color: rgba(142, 200, 255, 0.85);
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.social-media-section {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.social-media-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.social-media-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0b27a;
  background: linear-gradient(160deg, rgba(240, 178, 122, 0.2), rgba(240, 178, 122, 0.07));
  border: 1px solid rgba(240, 178, 122, 0.18);
}

.social-media-header-icon .material-icons-outlined {
  font-size: 18px;
}

.social-media-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.social-media-btn {
  width: 100%;
  aspect-ratio: 1;
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  border: 1px solid color-mix(in srgb, var(--sm-color) 45%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--sm-color) 24%, rgba(255, 255, 255, 0.05)) 0%,
    color-mix(in srgb, var(--sm-color) 8%, rgba(255, 255, 255, 0.02)) 100%
  );
  box-shadow:
    0 2px 10px color-mix(in srgb, var(--sm-color) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-media-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--sm-color) 60%, transparent);
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--sm-color) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-media-btn:active {
  transform: scale(0.96);
}

.social-media-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-media-fallback-icon {
  color: white;
  font-size: 24px;
}

.branding-footer {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12px;
}

.branding-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

/* ----------------------------------------------------------
   15. LANGUAGE DIALOG
   ---------------------------------------------------------- */
.language-dialog-body {
  padding-top: 14px;
  padding-bottom: 18px;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.language-item {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-item);
  box-shadow: var(--shadow-item);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.language-item:hover {
  background: var(--bg-item-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.language-item:active {
  transform: scale(0.99);
}

.language-item.selected {
  border-color: color-mix(in srgb, #c9abff 40%, var(--border-medium));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #c9abff 16%, var(--bg-item)) 0%,
    color-mix(in srgb, #c9abff 6%, var(--bg-item)) 100%
  );
  box-shadow:
    var(--shadow-item),
    0 0 0 1px color-mix(in srgb, #c9abff 10%, transparent) inset;
}

.language-code {
  width: 42px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c9abff;
  background: rgba(201, 171, 255, 0.12);
  border: 1px solid rgba(201, 171, 255, 0.18);
}

.language-item.selected .language-code {
  color: white;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.45), rgba(201, 171, 255, 0.22));
  border-color: rgba(201, 171, 255, 0.35);
}

.language-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  line-height: 1.35;
}

.language-item.selected .language-name {
  font-weight: 600;
}

.language-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-smooth);
  background: linear-gradient(160deg, #7ddea8, #4caf73);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 115, 0.35);
}

.language-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.language-check .material-icons-outlined {
  font-size: 16px;
}

/* ----------------------------------------------------------
   16. ALLERGEN DIALOG
   ---------------------------------------------------------- */
.allergen-dialog {
  width: 360px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.allergen-dialog .dialog-header {
  padding: 20px 24px;
}

.allergen-dialog .dialog-body {
  padding: 0 24px 12px;
}

.allergen-section-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 8px;
}

.allergen-dialog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.allergen-dialog-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(0.65);
}

.allergen-dialog-item span {
  color: var(--text-primary);
  font-size: 14px;
}

.dialog-footer {
  padding: 12px 24px 16px;
  display: flex;
  justify-content: flex-end;
}

.dialog-action-btn {
  background: transparent;
  border: none;
  color: #64B5F6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.dialog-action-btn:hover {
  background: rgba(100, 181, 246, 0.1);
}

/* ----------------------------------------------------------
   17. IMAGE LIGHTBOX
   ---------------------------------------------------------- */
.image-lightbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.image-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-medium);
  color: white;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  backdrop-filter: blur(8px);
}

.image-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.image-lightbox-close .material-icons-outlined {
  font-size: 24px;
}

.image-lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ----------------------------------------------------------
   18. TEMPLATE VIEW
   ---------------------------------------------------------- */
#template-view {
  background: var(--bg-base);
  min-height: 100vh;
}

#template-image {
  width: 100%;
  display: block;
}

/* ----------------------------------------------------------
   19. BOTTOM SPACER
   ---------------------------------------------------------- */
.bottom-spacer {
  height: max(80px, env(safe-area-inset-bottom, 0px));
}

/* ----------------------------------------------------------
   20. TEXT CLAMP UTILITIES
   ---------------------------------------------------------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----------------------------------------------------------
   21. PROFILE APP (VCard / CV)
   ---------------------------------------------------------- */
.profile-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
  transition: background 0.3s ease, color 0.3s ease;
}

.profile-shell.profile-theme--dark {
  background: linear-gradient(180deg, #12141a 0%, #1b1e28 100%);
  color: #f5f7fb;
}

.profile-shell.profile-theme--light {
  background: linear-gradient(180deg, #f4f7fb 0%, #eaf1f8 100%);
  color: #1a2433;
}

.profile-page {
  width: min(100%, 980px);
}

.profile-type {
  width: 100%;
}

.profile-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.28);
}

.profile-theme--dark .profile-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.profile-theme--light .profile-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(230,235,241,0.8));
  border-color: rgba(18, 28, 44, 0.08);
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #5aa3ff, #8b6dff);
  color: white;
}

.profile-identity {
  min-width: 0;
  flex: 1;
}

.profile-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.profile-identity h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.profile-identity h2 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.88;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--cv-accent) 42%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--cv-accent) 16%, transparent);
  color: var(--cv-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cv-download-btn:hover {
  background: color-mix(in srgb, var(--cv-accent) 25%, transparent);
}

.cv-download-btn:focus-visible {
  outline: 2px solid var(--cv-accent);
  outline-offset: 3px;
}

.cv-download-btn.is-exporting {
  display: none;
}

.cv-download-btn .material-icons-outlined {
  font-size: 19px;
  color: var(--cv-accent);
}

.profile-type--cv .profile-hero-card {
  flex-wrap: wrap;
}

.profile-company {
  margin-top: 12px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
}

.profile-theme--light .profile-company {
  background: rgba(91, 115, 150, 0.08);
}

.profile-section {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-theme--light .profile-section {
  background: rgba(255,255,255,0.82);
  border-color: rgba(17, 24, 39, 0.06);
}

.section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list a,
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.contact-list .material-icons-outlined {
  font-size: 18px;
  opacity: 0.8;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  font-weight: 600;
}

.profile-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--cv-accent, var(--profile-accent, currentColor));
}

.profile-link__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.profile-link__icon .social-icon-fill {
  fill: currentColor;
  stroke: none;
}

.profile-link__icon .material-icons-outlined {
  font-size: 19px;
}

.profile-link[data-platform="instagram"] .profile-link__icon { color: #e4405f; }
.profile-link[data-platform="whatsapp"] .profile-link__icon { color: #25a963; }
.profile-link[data-platform="facebook"] .profile-link__icon { color: #1877f2; }
.profile-link[data-platform="linkedin"] .profile-link__icon { color: #0a66c2; }
.profile-link[data-platform="youtube"] .profile-link__icon { color: #ff0033; }

.profile-type--vcard .profile-link__icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
}

.profile-type--vcard .profile-link__icon svg {
  width: 17px;
  height: 17px;
}

.profile-type--vcard .profile-link[data-platform="instagram"] .profile-link__icon { background: #e4405f; color: #fff; }
.profile-type--vcard .profile-link[data-platform="whatsapp"] .profile-link__icon { background: #25d366; color: #fff; }
.profile-type--vcard .profile-link[data-platform="facebook"] .profile-link__icon { background: #1877f2; color: #fff; }
.profile-type--vcard .profile-link[data-platform="linkedin"] .profile-link__icon { background: #0a66c2; color: #fff; }

.profile-theme--light .profile-link {
  background: rgba(91, 115, 150, 0.06);
  border-color: rgba(17, 24, 39, 0.08);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
  margin-top: 22px;
}

.profile-main-column,
.profile-side-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.summary-text {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fc8ff, #8b6dff);
  box-shadow: 0 0 0 4px rgba(127, 200, 255, 0.14);
}

.timeline-content {
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.timeline-header span,
.timeline-subtitle {
  font-size: 12px;
  opacity: 0.7;
}

.timeline-content p {
  margin: 8px 0 0;
  line-height: 1.7;
  white-space: pre-line;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(127, 200, 255, 0.13);
  border: 1px solid rgba(127, 200, 255, 0.2);
}

.profile-theme--light .chip {
  background: rgba(91, 115, 150, 0.09);
  border-color: rgba(91, 115, 150, 0.12);
}

.empty-state {
  opacity: 0.7;
}

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

  .profile-shell:not([data-layout]) .profile-hero-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-shell:not([data-layout]) .profile-company {
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   22. RESPONSIVE — MOBILE (max-width: 600px)
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  #venue-header {
    padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px;
  }

  #venue-profile-row {
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .venue-header-card::before {
    left: 14px;
    right: 14px;
  }

  #venue-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
  }

  #venue-name {
    font-size: var(--fs-title, 19px);
  }

  #venue-subtitle {
    font-size: var(--fs-subtitle, 11px);
    margin-top: 4px;
  }

  #venue-header-actions {
    padding: 4px;
    gap: 6px;
    border-radius: 14px;
  }

  .header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .header-action-btn .material-icons-outlined,
  .header-action-btn__icon {
    font-size: 18px;
  }

  #category-filter {
    min-height: 40px;
    padding: 10px 14px 14px;
  }

  #menu-search-wrap {
    margin: 0 14px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  #menu-search-wrap .material-icons-outlined {
    font-size: 18px;
  }

  #menu-search-input {
    font-size: 13px;
  }

  #category-filter::before,
  #category-filter::after {
    top: 10px;
    bottom: 14px;
  }

  .category-item {
    padding: 8px 14px;
    font-size: var(--fs-categories, 12px);
  }

  #campaign-slider {
    padding: 0 16px;
    --track-inner-space: 20px;
  }

  .campaign-card {
    height: 150px;
  }

  .category-grid {
    gap: 14px;
    padding: 0 16px;
  }

  .category-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-lg);
  }

  .category-card::before {
    left: 14px;
    right: 14px;
  }

  .category-card-title {
    font-size: var(--fs-category-name, 19px);
    padding-bottom: 12px;
  }

  .menu-item {
    padding: 12px 14px;
  }

  .menu-item-name {
    font-size: var(--fs-item-title, 14px);
  }

  .menu-item-size {
    font-size: var(--fs-item-description, 11px);
    margin-top: 4px;
  }

  .menu-item-price {
    font-size: var(--fs-item-price, 13px);
    padding: 4px 9px;
  }

  .allergen-icons {
    margin-top: 6px;
  }

  .allergen-icon {
    width: 16px;
    height: 16px;
  }

  .image-category-list {
    padding: 0 16px;
  }

  .image-category-section {
    margin-bottom: 22px;
  }

  .image-category-title {
    font-size: var(--fs-category-name, 19px);
    padding: 6px 0 12px;
  }

  .image-menu-item {
    padding: 10px;
    gap: 12px;
  }

  .image-menu-item-thumb {
    width: 80px;
    height: 64px;
  }

  .venue-info-dialog {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   22. DESKTOP ENHANCEMENTS
   ---------------------------------------------------------- */
@media (min-width: 601px) {
  #campaign-slider {
    padding: 0 24px;
  }

  .category-grid {
    padding: 0 24px;
  }

  .image-category-list {
    padding: 0 24px;
  }
}

/* ----------------------------------------------------------
   24. CV THEMES
   ---------------------------------------------------------- */
.profile-shell:has(.profile-type--cv) {
  --cv-accent: var(--profile-accent, #78a9ff);
  --cv-text: var(--profile-text, #f5f7fb);
  --cv-muted: var(--profile-muted, rgba(255, 255, 255, 0.68));
  --cv-surface: var(--card-bg, rgba(255, 255, 255, 0.06));
  --cv-border: var(--card-border, rgba(255, 255, 255, 0.12));
  align-items: flex-start;
  padding: clamp(18px, 4vw, 48px) 16px;
  background-color: var(--profile-bg, #101722);
  color: var(--cv-text);
}

.profile-shell:has(.profile-type--cv) .profile-page {
  width: min(100%, 1040px);
}

.profile-type--cv {
  animation: vcardEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-type--cv .profile-hero-card {
  min-height: 250px;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: var(--cv-surface);
  box-shadow: 0 24px 64px rgba(12, 18, 28, 0.18);
}

.profile-type--cv .profile-avatar-wrap {
  width: 150px;
  height: 180px;
  padding: 0;
  border: 2px solid var(--cv-accent);
  border-radius: 6px;
  background: var(--cv-surface);
  color: inherit;
  appearance: none;
}

.profile-type--cv .profile-avatar-button {
  cursor: zoom-in;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.profile-type--cv .profile-avatar-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.profile-type--cv .profile-avatar-button:focus-visible {
  outline: 3px solid var(--cv-accent);
  outline-offset: 4px;
}

.profile-type--cv .profile-avatar--fallback {
  background: var(--cv-accent);
  color: var(--profile-bg, #101722);
}

.profile-type--cv .profile-kicker,
.profile-type--cv .section-title {
  color: var(--cv-accent);
  letter-spacing: 0;
  opacity: 1;
}

.profile-type--cv .profile-identity h1 {
  color: var(--cv-text);
  letter-spacing: 0;
}

.profile-type--cv .cv-age {
  margin-top: 8px;
  color: var(--cv-muted);
  font-size: 14px;
  font-weight: 600;
}

.profile-type--cv .profile-identity h2,
.profile-type--cv .summary-text,
.profile-type--cv .timeline-content p,
.profile-type--cv .contact-list {
  color: var(--cv-muted);
}

.profile-type--cv .profile-company {
  border-radius: 4px;
  background: color-mix(in srgb, var(--cv-accent) 14%, transparent);
  color: var(--cv-accent);
}

.profile-type--cv .profile-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.profile-type--cv .profile-main-column,
.profile-type--cv .profile-side-column {
  gap: 16px;
}

.profile-type--cv .profile-section {
  margin-top: 0;
  padding: 22px;
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: var(--cv-surface);
}

.profile-type--cv .timeline-dot {
  background: var(--cv-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cv-accent) 16%, transparent);
}

.profile-type--cv .chip {
  border: 1px solid color-mix(in srgb, var(--cv-accent) 24%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--cv-accent) 12%, transparent);
  color: var(--cv-text);
}

.profile-type--cv .contact-list .material-icons-outlined {
  color: var(--cv-accent);
}

.profile-type--cv .profile-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-type--cv .profile-list-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cv-border);
}

.profile-type--cv .profile-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-type--cv .profile-list-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-type--cv .profile-list-item h3 {
  margin: 0;
  color: var(--cv-text);
  font-size: 17px;
}

.profile-type--cv .profile-list-item a {
  color: var(--cv-text);
  font-size: 12px;
  text-decoration-color: color-mix(in srgb, var(--cv-accent) 60%, transparent);
  text-underline-offset: 3px;
  word-break: break-word;
}

.profile-type--cv .profile-list-item a:hover,
.profile-type--cv .profile-list-item a:focus-visible {
  color: var(--cv-accent);
}

.profile-type--cv .profile-list-item p {
  margin: 8px 0 0;
  color: var(--cv-muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* Midnight: centered identity above a deep two-column resume. */
.cv-theme--midnight .profile-hero-card {
  flex-direction: column;
  text-align: center;
  background: linear-gradient(145deg, rgba(28, 43, 70, 0.92), rgba(12, 21, 36, 0.92));
}

.cv-theme--midnight .profile-avatar-wrap {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(124, 167, 255, 0.08);
}

/* Nordic: generous white space with a quiet left portrait. */
.cv-theme--nordic .profile-hero-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.cv-theme--nordic .profile-avatar-wrap {
  width: 180px;
  height: 220px;
  border-width: 0;
}

.cv-theme--nordic .profile-section {
  background: rgba(255, 255, 255, 0.56);
}

/* Executive: formal portrait-left masthead and navy rules. */
.cv-theme--executive .profile-hero-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  border-top: 7px solid #14233b;
}

.cv-theme--executive .profile-avatar-wrap {
  width: 170px;
  height: 215px;
  border-color: #14233b;
}

.cv-theme--executive .profile-section {
  border-top: 3px solid #14233b;
}

/* Ivory: elegant centered oval and serif identity. */
.cv-theme--ivory .profile-hero-card {
  flex-direction: column;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

.cv-theme--ivory .profile-avatar-wrap {
  width: 138px;
  height: 176px;
  border-radius: 50%;
}

.cv-theme--ivory .profile-identity h2,
.cv-theme--ivory .profile-company {
  font-family: 'Inter', sans-serif;
}

/* Monochrome: bold image block with hard black rules. */
.cv-theme--monochrome .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  grid-template-areas: 'portrait identity' 'portrait download';
  padding: 0;
  border: 2px solid #050505;
  box-shadow: 10px 10px 0 #050505;
}

.cv-theme--monochrome .profile-avatar-wrap {
  grid-area: portrait;
  width: 100%;
  height: 330px;
  border: 0;
  border-right: 2px solid #050505;
  border-radius: 0;
}

.cv-theme--monochrome .profile-identity {
  grid-area: identity;
  padding: 38px;
}

.cv-theme--monochrome .cv-download-btn {
  grid-area: download;
  justify-self: center;
  margin: 0 0 32px;
}

.cv-theme--monochrome .cv-hero-summary {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--cv-muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  white-space: pre-line;
}

.cv-theme--monochrome .profile-section {
  border: 2px solid #050505;
}

/* Slate: technical identity with a tall portrait at upper right. */
.cv-theme--slate .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  grid-template-areas: 'identity portrait' 'download portrait';
  align-items: start;
}

.cv-theme--slate .profile-avatar-wrap {
  grid-area: portrait;
  width: 155px;
  height: 230px;
  border-radius: 2px;
}

.cv-theme--slate .profile-identity {
  grid-area: identity;
}

.cv-theme--slate .cv-download-btn {
  grid-area: download;
  width: max-content;
  min-width: 132px;
  margin: 12px 0 0;
  justify-self: center;
}

.cv-theme--slate .cv-hero-summary {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--cv-muted);
  line-height: 1.65;
  white-space: pre-line;
}

.cv-theme--slate .profile-section {
  background: rgba(55, 63, 67, 0.72);
}

/* Emerald: advisory hierarchy with a strong green rail. */
.cv-theme--emerald .profile-hero-card {
  border-left: 9px solid var(--cv-accent);
}

.cv-theme--emerald .profile-avatar-wrap {
  width: 145px;
  height: 190px;
  border-radius: 2px;
}

.cv-theme--emerald .cv-hero-summary {
  margin: 18px 0 0;
  color: var(--cv-muted);
  line-height: 1.65;
  white-space: pre-line;
}

.cv-theme--emerald .section-title {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--cv-border);
}

/* Titanium: metallic top band with portrait overlap. */
.cv-theme--titanium .profile-hero-card {
  align-items: flex-end;
  min-height: 340px;
  padding-top: 135px;
  background:
    linear-gradient(90deg, rgba(22, 27, 31, 0.95), rgba(91, 102, 109, 0.86)) top / 100% 125px no-repeat,
    var(--cv-surface);
}

.cv-theme--titanium .profile-avatar-wrap {
  width: 160px;
  height: 200px;
  margin-top: -90px;
  border: 5px solid #e8ebed;
  border-radius: 3px;
}

/* Editorial: magazine portrait and oversized serif name. */
.cv-theme--editorial .profile-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  grid-template-areas: 'portrait identity' 'portrait download';
  padding: 0;
  border-width: 0 0 1px;
  background: transparent;
  box-shadow: none;
}

.cv-theme--editorial .profile-avatar-wrap {
  grid-area: portrait;
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: 0;
}

.cv-theme--editorial .profile-identity {
  grid-area: identity;
  padding: 46px;
  font-family: 'Playfair Display', Georgia, serif;
}

.cv-theme--editorial .profile-identity h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.cv-theme--editorial .profile-download-btn,
.cv-theme--editorial .cv-download-btn {
  grid-area: download;
  justify-self: center;
  margin: 0 0 32px;
}

.cv-theme--editorial .cv-hero-summary {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--cv-muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  white-space: pre-line;
}

.cv-theme--editorial .profile-section {
  border-width: 0 0 1px;
  background: transparent;
}

/* Amber: creative dark resume with energetic offset accents. */
.cv-theme--amber .profile-hero-card {
  transform: rotate(-0.35deg);
  border-bottom: 6px solid var(--cv-accent);
}

.cv-theme--amber .profile-avatar-wrap {
  width: 160px;
  height: 190px;
  border-radius: 50% 50% 6px 50%;
}

.cv-theme--amber .profile-section {
  border-left: 3px solid var(--cv-accent);
}

/* ----------------------------------------------------------
   TERMS DOCUMENT
   ---------------------------------------------------------- */
.terms-document {
  min-height: 100vh;
  padding: 32px 20px;
  overflow-y: auto;
}

.terms-page {
  width: min(100%, 820px);
  margin: 0 auto;
}

.terms-header {
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--border-medium);
}

.terms-back-link,
.terms-footer a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.terms-back-link:hover,
.terms-footer a:hover {
  color: var(--text-primary);
}

.terms-eyebrow {
  margin-top: 38px;
  color: #9cc5b5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-header h1 {
  margin-top: 8px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.12;
}

.terms-updated {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.terms-intro {
  max-width: 70ch;
  margin-top: 22px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.terms-content {
  padding: 8px 0 24px;
}

.terms-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.terms-content h2 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.terms-content p {
  max-width: 76ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.terms-content p + p {
  margin-top: 10px;
}

.terms-content ol,
.terms-content ul {
  margin: 10px 0;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.terms-content li + li {
  margin-top: 4px;
}

.terms-content a {
  color: #9cc5b5;
  text-underline-offset: 3px;
}

.terms-content a:hover {
  color: var(--text-primary);
}

.terms-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 0 12px;
}

@media (max-width: 600px) {
  .terms-document {
    padding: 16px 20px 28px;
  }

  .terms-header {
    padding-top: 14px;
  }

  .terms-eyebrow {
    margin-top: 32px;
  }
}

/* Canvas: tactile centered stationery with pastel surfaces. */
.cv-theme--canvas .profile-hero-card {
  flex-direction: column;
  text-align: center;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 15px 0 rgba(87, 107, 97, 0.12), 0 28px 60px rgba(59, 75, 66, 0.12);
}

.cv-theme--canvas .profile-avatar-wrap {
  width: 145px;
  height: 175px;
  transform: rotate(-2deg);
  box-shadow: 7px 8px 0 rgba(184, 78, 84, 0.16);
}

/* Onyx: luxury black with restrained gold dividers. */
.cv-theme--onyx .profile-hero-card {
  flex-direction: column;
  text-align: center;
  border-width: 1px 0;
  background: #050505;
}

.cv-theme--onyx .profile-avatar-wrap {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #77736b, 0 0 0 8px #050505;
}

.cv-theme--onyx .profile-section {
  border-width: 0 0 1px;
  background: #050505;
}

@media (max-width: 760px) {
  .profile-shell:has(.profile-type--cv) {
    padding: 12px 10px 30px;
  }

  .profile-type--cv .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-type--cv .profile-hero-card {
    min-height: 0;
    padding: 28px 20px;
  }

  .profile-type--cv .profile-identity h1 {
    font-size: 34px;
  }

  .cv-theme--nordic .profile-hero-card,
  .cv-theme--executive .profile-hero-card,
  .cv-theme--emerald .profile-hero-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    text-align: left;
  }

  .cv-theme--nordic .profile-avatar-wrap,
  .cv-theme--executive .profile-avatar-wrap,
  .cv-theme--emerald .profile-avatar-wrap {
    width: 112px;
    height: 150px;
  }

  .cv-theme--slate .profile-hero-card {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .cv-theme--slate .profile-avatar-wrap {
    width: 112px;
    height: 168px;
  }

  .cv-theme--slate .cv-download-btn {
    min-width: 120px;
    padding-inline: 8px;
  }

  .cv-theme--monochrome .profile-hero-card,
  .cv-theme--editorial .profile-hero-card {
    grid-template-columns: 38% 1fr;
  }

  .cv-theme--monochrome .profile-avatar-wrap,
  .cv-theme--editorial .profile-avatar-wrap {
    height: 300px;
  }

  .cv-theme--monochrome .profile-identity,
  .cv-theme--editorial .profile-identity {
    padding: 24px 18px;
  }

  .cv-theme--editorial .profile-identity h1 {
    font-size: 38px;
  }

  .cv-theme--titanium .profile-hero-card {
    align-items: center;
    padding-top: 135px;
  }
}

@media (max-width: 430px) {
  .profile-type--cv .profile-section {
    padding: 18px 16px;
  }

  .profile-type--cv .timeline-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .cv-theme--nordic .profile-hero-card,
  .cv-theme--executive .profile-hero-card,
  .cv-theme--emerald .profile-hero-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 16px;
  }

  .cv-theme--nordic .profile-avatar-wrap,
  .cv-theme--executive .profile-avatar-wrap,
  .cv-theme--emerald .profile-avatar-wrap {
    width: 96px;
    height: 132px;
  }

  .cv-theme--slate .profile-hero-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
    padding: 24px 16px;
  }

  .cv-theme--slate .profile-avatar-wrap {
    width: 96px;
    height: 148px;
  }

  .cv-theme--slate .cv-download-btn {
    min-width: 116px;
    padding-inline: 6px;
  }

  .cv-theme--monochrome .profile-hero-card,
  .cv-theme--editorial .profile-hero-card {
    grid-template-columns: 1fr;
    grid-template-areas: 'portrait' 'identity' 'download';
  }

  .cv-theme--monochrome .profile-avatar-wrap,
  .cv-theme--editorial .profile-avatar-wrap {
    height: 240px;
    border-right: 0;
    border-bottom: 2px solid var(--cv-border);
  }

  .cv-theme--editorial .cv-download-btn {
    margin: 0 auto 24px;
  }
}

/* ----------------------------------------------------------
   25. THEME LAYOUT CONTRACT
   Avatar side and shape follow the profile theme previews.
   ---------------------------------------------------------- */
.profile-shell.profile-theme--midnight {
  --profile-bg: #0c1524;
  --profile-text: #eef4ff;
  --profile-muted: #9eb0c8;
  --profile-accent: #38a4d5;
  --card-bg: #152033;
  --card-border: rgba(56, 164, 213, 0.24);
  --profile-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  background-color: #0c1524;
  background-image: radial-gradient(circle at 50% 0%, rgba(56, 164, 213, 0.18), transparent 46%);
}

.profile-shell.profile-theme--nordic {
  --profile-bg: #e8edf1;
  --profile-text: #1a2c38;
  --profile-muted: #5c7380;
  --profile-accent: #2f7590;
  --card-bg: #f7fafb;
  --card-border: rgba(47, 117, 144, 0.18);
  --profile-shadow: 0 16px 40px rgba(36, 68, 82, 0.08);
  background-color: #e8edf1;
  background-image: linear-gradient(180deg, #f4f7f9, #e4ebef);
}

.profile-shell.profile-theme--executive {
  --profile-bg: #0c1e33;
  --profile-text: #e7eef6;
  --profile-muted: #a9bfd4;
  --profile-accent: #89aacb;
  --card-bg: #10243d;
  --card-border: rgba(137, 170, 203, 0.28);
  --profile-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  background-color: #0c1e33;
  background-image: radial-gradient(circle at 0% 0%, rgba(137, 170, 203, 0.16), transparent 42%);
}

.profile-shell.profile-theme--ivory {
  --profile-bg: #f4ebdc;
  --profile-text: #3a2c22;
  --profile-muted: #7d6856;
  --profile-accent: #966f4e;
  --card-bg: #fbf6ee;
  --card-border: rgba(150, 111, 78, 0.2);
  --profile-shadow: 0 16px 40px rgba(90, 62, 36, 0.08);
  background-color: #f4ebdc;
  background-image: linear-gradient(180deg, #fbf6ee, #f3e7d4);
}

.profile-shell.profile-theme--monochrome {
  --profile-bg: #111111;
  --profile-text: #f4f4f4;
  --profile-muted: #b5b5b5;
  --profile-accent: #d3d3d3;
  --card-bg: #1a1a1a;
  --card-border: rgba(255, 255, 255, 0.14);
  --profile-shadow: none;
  background-color: #111111;
  background-image: none;
}

.profile-shell.profile-theme--slate {
  --profile-bg: #232c36;
  --profile-text: #e8eef2;
  --profile-muted: #b7c3cc;
  --profile-accent: #8ea4b6;
  --card-bg: #2d3844;
  --card-border: rgba(142, 164, 182, 0.24);
  --profile-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  background-color: #232c36;
  background-image: linear-gradient(180deg, #2a333d, #1e262e);
}

.profile-shell.profile-theme--emerald {
  --profile-bg: #0a2420;
  --profile-text: #e7f6f0;
  --profile-muted: #9dcebc;
  --profile-accent: #3dba90;
  --card-bg: #0e2b26;
  --card-border: rgba(61, 186, 144, 0.26);
  --profile-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  background-color: #0a2420;
  background-image: radial-gradient(circle at 0% 0%, rgba(61, 186, 144, 0.16), transparent 42%);
}

.profile-shell.profile-theme--titanium {
  --profile-bg: #2c2f34;
  --profile-text: #f3f4f6;
  --profile-muted: #c5c9ce;
  --profile-accent: #d5d8dc;
  --card-bg: #3a3e44;
  --card-border: rgba(255, 255, 255, 0.14);
  --profile-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  background-color: #2c2f34;
  background-image: linear-gradient(180deg, #3a3e44, #2a2d31);
}

.profile-shell.profile-theme--editorial {
  --profile-bg: #f1ede4;
  --profile-text: #2c241e;
  --profile-muted: #6e5d52;
  --profile-accent: #a64f31;
  --card-bg: #f7f4ee;
  --card-border: rgba(166, 79, 49, 0.18);
  --profile-shadow: 0 16px 40px rgba(70, 42, 28, 0.08);
  background-color: #f1ede4;
  background-image: linear-gradient(180deg, #f8f5ef, #efe8de);
}

.profile-shell.profile-theme--amber {
  --profile-bg: #1c130c;
  --profile-text: #fff4e4;
  --profile-muted: #d7c2a6;
  --profile-accent: #e08f10;
  --card-bg: #291b10;
  --card-border: rgba(224, 143, 16, 0.28);
  --profile-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  background-color: #1c130c;
  background-image: radial-gradient(circle at 0% 0%, rgba(224, 143, 16, 0.14), transparent 40%);
}

.profile-shell.profile-theme--canvas {
  --profile-bg: #f2e5d2;
  --profile-text: #3d2a1c;
  --profile-muted: #8a684c;
  --profile-accent: #bb6a29;
  --card-bg: #faf3e8;
  --card-border: rgba(187, 106, 41, 0.2);
  --profile-shadow: 0 16px 40px rgba(92, 58, 24, 0.08);
  background-color: #f2e5d2;
  background-image: linear-gradient(180deg, #faf3e8, #f0e2cc);
}

.profile-shell.profile-theme--onyx {
  --profile-bg: #0a090b;
  --profile-text: #f6f1e4;
  --profile-muted: #b7ae9c;
  --profile-accent: #c6a63a;
  --card-bg: #141214;
  --card-border: rgba(198, 166, 58, 0.32);
  --profile-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background-color: #0a090b;
  background-image: radial-gradient(circle at 50% 0%, rgba(198, 166, 58, 0.12), transparent 42%);
}

.profile-shell[data-layout] .profile-hero-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 22px;
  min-height: 0;
  padding: clamp(22px, 4vw, 40px);
  transform: none;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--profile-shadow);
}

.profile-shell[data-layout="top"] .profile-hero-card {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.profile-shell[data-layout="left"] .profile-hero-card,
.profile-shell[data-layout="right"] .profile-hero-card {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}

.profile-shell[data-layout] .profile-hero-card {
  overflow: visible;
}

.profile-shell[data-layout="right"] .profile-hero-card {
  display: grid;
  grid-template-areas: none;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: auto;
  align-items: center;
}

.profile-shell[data-layout="right"] .profile-avatar-wrap,
.profile-shell[data-layout="right"][data-avatar] .profile-avatar-wrap {
  grid-area: auto;
  grid-column: 2;
  grid-row: 1;
  order: 2;
  width: 112px;
  height: 112px;
  max-width: 112px;
  aspect-ratio: 1;
  margin: 0;
  justify-self: end;
  align-self: center;
}

.profile-shell[data-layout="right"] .profile-identity {
  grid-area: auto;
  grid-column: 1;
  grid-row: 1;
  order: 1;
  min-width: 0;
}

.profile-shell[data-layout] .profile-avatar-wrap {
  width: 128px;
  height: 128px;
  margin: 0;
  flex-shrink: 0;
  transform: none;
  border-width: 0;
  border-radius: 22px;
  box-shadow: none;
}

.profile-shell[data-avatar="circle"] .profile-avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--profile-accent) 16%, transparent);
}

.profile-shell[data-avatar="square"] .profile-avatar-wrap {
  width: 136px;
  height: 136px;
  border-radius: 18px;
}

.profile-shell[data-avatar="portrait"] .profile-avatar-wrap {
  width: 148px;
  height: 196px;
  border-radius: 18px;
}

.profile-shell.profile-theme--monochrome[data-layout] .profile-avatar-wrap {
  width: min(210px, 38%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #d4d4d4;
}

.profile-shell.profile-theme--editorial[data-layout] .profile-avatar-wrap {
  width: min(220px, 38%);
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #a64f31;
}

.profile-shell.profile-theme--executive[data-layout] .profile-avatar--fallback {
  background: #89aacb;
  color: #10243d;
}

.profile-shell.profile-theme--monochrome[data-layout] .profile-avatar--fallback,
.profile-shell.profile-theme--titanium[data-layout] .profile-avatar--fallback {
  background: #d5d8dc;
  color: #1c1c1c;
}

.profile-shell[data-layout] .profile-identity {
  min-width: 0;
  flex: 1;
}

.profile-shell[data-layout="top"] .profile-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-shell[data-layout="left"] .profile-identity,
.profile-shell[data-layout="right"] .profile-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.profile-shell[data-layout] .profile-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.profile-shell[data-layout] .cv-download-btn {
  margin: 16px 0 0;
}

.profile-shell[data-layout] .profile-section {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: none;
}

.profile-shell[data-layout] .contact-row {
  flex-wrap: wrap;
}

.profile-type--cv .profile-grid.profile-grid--single {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.profile-shell:has(.profile-type--vcard) .profile-page {
  width: min(100%, 640px);
}

.profile-theme--ivory .profile-identity h1,
.profile-theme--editorial .profile-identity h1,
.profile-theme--canvas .profile-identity h1 {
  font-family: 'Playfair Display', Georgia, serif;
}

.profile-type--cv .profile-grid.profile-grid--balanced {
  display: block;
  columns: 2;
  column-gap: 16px;
}

.profile-type--cv .profile-grid--balanced > .profile-section {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}

@media (max-width: 720px) {
  .profile-type--cv .profile-grid.profile-grid--balanced {
    columns: 1;
  }

  .profile-shell[data-layout] .contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-shell[data-layout] .save-contact-btn {
    width: 100%;
  }

  .profile-shell[data-layout="left"] .profile-hero-card,
  .profile-shell[data-layout="right"] .profile-hero-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 20px 16px;
  }

  .profile-shell[data-layout="right"] .profile-hero-card {
    display: grid;
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .profile-shell[data-layout="right"][data-avatar] .profile-avatar-wrap {
    grid-column: 2;
    width: 92px;
    height: 92px;
    max-width: 92px;
    aspect-ratio: 1;
  }

  .profile-shell[data-avatar="circle"] .profile-avatar-wrap {
    width: 84px;
    height: 84px;
  }

  .profile-shell[data-avatar="square"] .profile-avatar-wrap {
    width: 92px;
    height: 92px;
  }

  .profile-shell[data-avatar="portrait"] .profile-avatar-wrap {
    width: 92px;
    height: 124px;
  }

  .profile-shell.profile-theme--monochrome[data-layout] .profile-avatar-wrap,
  .profile-shell.profile-theme--editorial[data-layout] .profile-avatar-wrap {
    width: 42%;
    max-width: 148px;
    height: auto;
  }

  .profile-shell[data-layout] .profile-identity h1 {
    font-size: 28px;
  }

  .profile-shell[data-layout="top"] .profile-hero-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   26. CV PDF (A4 export template)
   ========================================================================== */
.cvpdf-host {
  position: absolute;
  top: 0;
  left: -12000px;
  width: 794px;
  pointer-events: none;
}

.cvpdf {
  display: flex;
  align-items: stretch;
  width: 794px;
  min-height: 1122px;
  background: #ffffff;
  color: #1f2933;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: start;
  letter-spacing: 0;
}

.cvpdf *,
.cvpdf *::before,
.cvpdf *::after {
  box-sizing: border-box;
  animation: none;
  transition: none;
}

.cvpdf-side {
  flex: 0 0 258px;
  padding: 48px 26px;
  background: var(--cvpdf-side);
  color: #eef1f4;
}

.cvpdf-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 48px 44px 48px 40px;
}

.cvpdf-block {
  margin: 0 0 18px;
}

.cvpdf-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.cvpdf-avatar {
  display: block;
  width: 136px;
  height: 136px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.cvpdf-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cvpdf-accent);
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 54px;
  font-weight: 700;
}

.cvpdf-title {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid #e3e7eb;
  color: var(--cvpdf-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cvpdf-side .cvpdf-title {
  border-bottom-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cvpdf-side .cvpdf-block {
  margin-bottom: 26px;
}

.cvpdf-contact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  word-break: break-word;
}

.cvpdf-contact .material-icons-outlined {
  flex: 0 0 16px;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.cvpdf-lang {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.cvpdf-lang em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-weight: 600;
}

.cvpdf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cvpdf-chips span {
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
}

.cvpdf-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  word-break: break-word;
}

.cvpdf-social b {
  display: block;
  font-size: 11.5px;
}

.cvpdf-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.cvpdf-social[data-platform="instagram"] .cvpdf-social__icon { background: #e4405f; }
.cvpdf-social[data-platform="whatsapp"] .cvpdf-social__icon { background: #25d366; }
.cvpdf-social[data-platform="facebook"] .cvpdf-social__icon { background: #1877f2; }
.cvpdf-social[data-platform="linkedin"] .cvpdf-social__icon { background: #0a66c2; }

.cvpdf-social__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cvpdf-social__icon .social-icon-fill {
  fill: currentColor;
  stroke: none;
}

.cvpdf-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--cvpdf-accent);
}

.cvpdf-header h1 {
  margin: 0;
  color: #111827;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.cvpdf-header p {
  margin: 8px 0 0;
  color: var(--cvpdf-accent);
  font-size: 15px;
  font-weight: 600;
}

.cvpdf-summary {
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
}

.cvpdf-entry {
  margin-bottom: 4px;
}

.cvpdf-entry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.cvpdf-entry__head strong {
  color: #111827;
  font-size: 14px;
}

.cvpdf-entry__head span {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
}

.cvpdf-entry__sub {
  margin-top: 2px;
  color: var(--cvpdf-accent);
  font-weight: 600;
}

.cvpdf-entry p {
  margin: 6px 0 0;
  color: #4b5563;
  white-space: pre-line;
}
