/* ==========================================================================
   PLATFORM STUDIO — DIGITAL BUSINESS CARD & LINK IN BIO (FOLIO THEME)
   Exact visual identity of the Folio design system:
   Colors: Obsidian Black (#0b0b0c), Surface (#141416), Ink (#f3f0e9),
           Line (#27272b), Muted (#a29e96), Signature Accent Coral (#ff5b2e).
   Typography: Instrument Serif & Inter Tight & Almarai (Arabic).
   Includes Full Dark / Light Mode support (synced with platform_studio_theme).
   ========================================================================== */

:root {
  /* Folio Dark Tokens (Default) */
  --color-bg: #0b0b0c;
  --color-surface: #141416;
  --color-raised: #1c1c1f;
  --color-line: #27272b;
  --color-ink: #f3f0e9;
  --color-muted: #a29e96;
  --color-accent: #ff5b2e;
  --color-accent-soft: #ff8a63;
  --color-accent-glow: rgba(255, 91, 46, 0.22);
  --color-card-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-arabic: "Almarai", system-ui, -apple-system, sans-serif;
  --font-current: var(--font-sans);

  /* Radii */
  --radius-pill: 9999px;
  --radius-card: 1.5rem;
  --radius-sm: 0.65rem;
  --radius-md: 1rem;

  /* Easing & Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --speed-fast: 0.2s;
  --speed-smooth: 0.35s;

  /* Shadows */
  --shadow-card: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--color-line);
  --shadow-btn: 0 10px 24px -6px rgba(255, 91, 46, 0.35);
}

[dir="rtl"] {
  --font-current: var(--font-arabic);
}

/* Day / Light Theme Tokens (Overrides) */
html[data-theme="light"] {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-raised: #eeece5;
  --color-line: #dfdacd;
  --color-ink: #111215;
  --color-muted: #646059;
  --color-accent: #ff5b2e;
  --color-accent-soft: #ff8a63;
  --color-accent-glow: rgba(255, 91, 46, 0.18);
  --color-card-border: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--color-line);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
  color: var(--color-ink);
  scroll-behavior: smooth;
  transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

body {
  font-family: var(--font-current);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1rem 3rem;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

/* Subtle architectural dot grid background from Folio */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--color-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

/* Top Accent Glow Mesh */
body::after {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

/* Main Container */
.bio-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Top Controls Header */
.bio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.25rem 0.25rem;
}

.bio-brand-micro {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--speed-fast) var(--ease-out-expo);
}

.bio-brand-micro:hover {
  color: var(--color-ink);
}

.bio-brand-micro img {
  height: 22px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

html[data-theme="light"] .bio-brand-micro img {
  filter: brightness(0);
}

/* Quick Navigation Link (Top Bar Back to Site - Symmetric with Lang/Theme) */
.bio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-back-link:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
  transform: translateY(-1px);
}

.bio-back-link:active {
  transform: translateY(0);
}

.bio-back-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-back-link:hover .bio-back-mark {
  transform: scale(1.1);
}

.bio-back-text {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

[dir="rtl"] .bio-back-text {
  letter-spacing: 0;
  font-size: 0.8rem;
  text-transform: none;
}

.bio-back-arrow {
  display: inline-block;
  color: var(--color-muted);
  transition: transform var(--speed-fast) var(--ease-out-expo), color var(--speed-fast) var(--ease-out-expo);
}

.bio-back-link:hover .bio-back-arrow {
  color: var(--color-ink);
  transform: translateX(2px);
}

[dir="rtl"] .bio-back-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .bio-back-link:hover .bio-back-arrow {
  transform: scaleX(-1) translateX(2px);
}

/* Action Controls Group (Theme Toggle & Lang Switcher) */
.bio-top-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Switcher Button */
.bio-theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-theme-toggle:hover {
  border-color: var(--color-ink);
  transform: scale(1.05);
}

.bio-theme-toggle:active {
  transform: scale(0.95);
}

/* Language Toggle Button */
.bio-lang-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bio-lang-toggle:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

/* Main Digital Business Card Container */
.bio-card-main {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.6rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

/* Top Accent Line Highlight */
.bio-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Visual Identity Section */
.bio-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Screen Reader Only Utility (Accessibility & SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Official Brand Centerpiece Hero (High-End Architectural Centerpiece) */
.bio-brand-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  margin-bottom: 1.35rem;
  width: 100%;
}

.bio-brand-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 95px;
  border-radius: var(--radius-pill);
  background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 72%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.bio-logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.bio-official-logo {
  height: auto;
  width: 215px;
  max-width: 82vw;
  object-fit: contain;
  display: block;
  transition: transform var(--speed-smooth) var(--ease-out-expo), filter 0.3s ease;
}

.bio-brand-hero:hover .bio-official-logo {
  transform: scale(1.03);
}

/* Light Theme: Turn vector white into architectural deep black */
html[data-theme="light"] .bio-official-logo {
  filter: brightness(0);
}

/* Anchored Verified Studio Badge inside Brand Container */
.bio-logo-container .bio-verified-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  bottom: auto;
  background: var(--color-accent);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
  box-shadow: 0 2px 10px rgba(255, 91, 46, 0.45);
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-brand-hero:hover .bio-logo-container .bio-verified-badge {
  transform: scale(1.15) rotate(5deg);
}

[dir="rtl"] .bio-logo-container .bio-verified-badge {
  right: auto;
  left: -6px;
}

/* Avatar / Logo Shield (Legacy / Fallback Container) */
.bio-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 1.25rem;
}

.bio-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 1; }
}

.bio-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: #141416;
  border: 2px solid var(--color-line);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color var(--speed-smooth) var(--ease-out-expo);
}

.bio-avatar-wrap:hover .bio-avatar-frame {
  border-color: var(--color-accent);
}

.bio-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--speed-smooth) var(--ease-out-expo);
}

.bio-avatar-wrap:hover .bio-avatar-img {
  transform: scale(1.08);
}

/* Verified Studio Shield Badge */
.bio-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--color-accent);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .bio-verified-badge {
  right: auto;
  left: 2px;
}

.bio-verified-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Name & Title */
.bio-name {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

[dir="rtl"] .bio-name {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0;
}

.bio-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

[dir="rtl"] .bio-title {
  letter-spacing: 0;
  font-size: 0.9rem;
}

.bio-title-accent {
  color: var(--color-accent);
  font-weight: 600;
}

/* Status Pill with Pulsing Dot from Folio */
.bio-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--color-ink);
  margin-bottom: 1.2rem;
  transition: border-color var(--speed-fast) var(--ease-out-expo);
}

.bio-status-badge:hover {
  border-color: var(--color-muted);
}

.bio-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: #4ade80;
}

.bio-status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: #4ade80;
  opacity: 0.45;
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Bio Text */
.bio-description {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.bio-description .serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-ink);
  display: block;
  margin-bottom: 0.35rem;
}

[dir="rtl"] .bio-description .serif-quote {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ==========================================================================
   STEP 2: FOLIO DIRECT CONTACT ACTIONS & SOCIAL CHANNELS
   ========================================================================== */

.bio-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Base Button */
.bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--speed-fast) var(--ease-out-expo),
              background-color var(--speed-fast) var(--ease-out-expo),
              border-color var(--speed-fast) var(--ease-out-expo),
              box-shadow var(--speed-fast) var(--ease-out-expo),
              color var(--speed-fast) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.bio-btn:active {
  transform: scale(0.98);
}

.bio-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-btn:hover svg {
  transform: scale(1.1);
}

/* WhatsApp Primary Button (Folio Coral Accent) */
.bio-btn-whatsapp {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-btn);
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
}

.bio-btn-whatsapp:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.4);
}

.bio-btn-content-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

[dir="rtl"] .bio-btn-content-left {
  text-align: right;
}

.bio-btn-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.bio-btn-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}

.bio-btn-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 600;
}

.bio-live-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Two-column Quick Direct Actions (Call & Email) */
.bio-direct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.bio-btn-secondary {
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
}

.bio-btn-secondary:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.bio-btn-call svg,
.bio-btn-email svg {
  stroke: currentColor;
  fill: none;
}

/* Social Media Channels Grid */
.bio-social-section {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.bio-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

[dir="rtl"] .bio-section-label {
  letter-spacing: 0.05em;
}

.bio-section-label::before,
.bio-section-label::after {
  content: '';
  height: 1px;
  background: var(--color-line);
  flex: 1;
}

.bio-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  width: 100%;
}

.bio-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 0.5rem;
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 500;
  transition: transform var(--speed-fast) var(--ease-out-expo),
              background var(--speed-fast) var(--ease-out-expo),
              border-color var(--speed-fast) var(--ease-out-expo),
              color var(--speed-fast) var(--ease-out-expo);
}

.bio-social-card:hover {
  background: var(--color-surface);
  border-color: var(--color-ink);
  color: var(--color-ink);
  transform: translateY(-3px);
}

.bio-social-card:active {
  transform: translateY(0);
}

.bio-social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-social-card:hover .bio-social-icon {
  transform: scale(1.15);
  color: var(--color-accent);
}

/* Share & Utility Row */
.bio-util-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.bio-btn-util {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px dashed var(--color-line);
  color: var(--color-muted);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-btn-util:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.bio-btn-util svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

/* Toast Notification (Floating Alert) */
.bio-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--color-raised);
  border: 1px solid var(--color-accent);
  color: var(--color-ink);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--speed-smooth) var(--ease-out-expo),
              opacity var(--speed-smooth) var(--ease-out-expo),
              visibility var(--speed-smooth) var(--ease-out-expo);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.bio-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.bio-toast svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  fill: none;
}

/* ==========================================================================
   STEP 3: FOLIO VCARD (SAVE CONTACT) BUTTON
   ========================================================================== */

.bio-vcard-wrap {
  width: 100%;
  margin: 0.85rem 0 1.5rem;
}

.bio-btn-vcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0.9rem 1.25rem;
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
  transition: transform var(--speed-fast) var(--ease-out-expo),
              background var(--speed-fast) var(--ease-out-expo),
              box-shadow var(--speed-fast) var(--ease-out-expo),
              border-color var(--speed-fast) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.bio-btn-vcard::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.bio-btn-vcard:hover::after {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.bio-btn-vcard:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: 0 12px 30px -4px var(--color-accent-glow);
  transform: translateY(-2px);
}

.bio-btn-vcard:active {
  transform: translateY(0) scale(0.98);
}

.bio-vcard-icon-frame {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 91, 46, 0.12);
  border: 1px solid rgba(255, 91, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-vcard-icon-frame svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.bio-vcard-text-group {
  flex: 1;
  text-align: left;
  margin: 0 0.85rem;
}

[dir="rtl"] .bio-vcard-text-group {
  text-align: right;
}

.bio-vcard-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}

.bio-vcard-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.bio-vcard-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-vcard-action-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
}

/* Success state on vCard */
.bio-btn-vcard.saved {
  border-color: #4ade80;
}

.bio-btn-vcard.saved .bio-vcard-icon-frame {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.bio-btn-vcard.saved .bio-vcard-action-badge {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
  color: #4ade80;
}

/* ==========================================================================
   STEP 4: FOLIO QR CODE TRIGGER & HIGH-RES PRINT MODAL
   ========================================================================== */

.bio-qr-trigger-wrap {
  width: 100%;
  margin-bottom: 1.25rem;
}

.bio-btn-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 48px;
  background: var(--color-raised);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out-expo);
}

.bio-btn-qr:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.bio-btn-qr svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* Modal Backdrop */
.bio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--speed-smooth) var(--ease-out-expo),
              visibility var(--speed-smooth) var(--ease-out-expo);
}

html[data-theme="light"] .bio-modal-backdrop {
  background: rgba(248, 247, 244, 0.88);
}

.bio-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Dialog */
.bio-modal-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 1.6rem 2rem;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.75),
              0 0 40px var(--color-accent-glow);
  position: relative;
  text-align: center;
  transform: scale(0.92) translateY(15px);
  transition: transform var(--speed-smooth) var(--ease-out-expo),
              background-color 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo);
}

.bio-modal-backdrop.open .bio-modal-dialog {
  transform: scale(1) translateY(0);
}

.bio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  color: var(--color-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-out-expo);
}

[dir="rtl"] .bio-modal-close {
  right: auto;
  left: 1rem;
}

.bio-modal-close:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
  transform: scale(1.05);
}

.bio-modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

[dir="rtl"] .bio-modal-title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.45rem;
}

.bio-modal-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}

/* White QR Display Frame */
.bio-qr-display-box {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.bio-qr-image {
  width: 220px;
  height: 220px;
  display: block;
  object-fit: contain;
}

.bio-qr-notice {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
  padding: 0 0.5rem;
}

/* QR Action Buttons */
.bio-qr-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.bio-btn-qr-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all var(--speed-fast) var(--ease-out-expo);
  text-decoration: none;
}

.bio-btn-qr-download:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.4);
}

.bio-btn-qr-download svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.bio-btn-qr-vector {
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  box-shadow: none;
}

.bio-btn-qr-vector:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-bg);
}

/* ==========================================================================
   STEP 5: FOLIO LOCATION CARD, COLLAPSIBLE MAP & SIGNATURE WORKS
   ========================================================================== */

.bio-location-wrap {
  width: 100%;
  margin-bottom: 1.5rem;
}

.bio-location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  transition: border-color var(--speed-fast) var(--ease-out-expo),
              box-shadow var(--speed-fast) var(--ease-out-expo);
}

.bio-location-card:hover {
  border-color: var(--color-muted);
}

.bio-location-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.bio-location-pin {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--color-raised);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.bio-location-pin svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.bio-location-meta {
  flex: 1;
}

.bio-location-title {
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.bio-location-address {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.bio-location-actions {
  display: flex;
  gap: 0.65rem;
  width: 100%;
}

.bio-btn-loc {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--speed-fast) var(--ease-out-expo);
  min-height: 40px;
}

.bio-btn-loc svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.bio-btn-loc-primary {
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.bio-btn-loc-primary:hover {
  background: #e54a20;
  transform: translateY(-1px);
}

.bio-btn-loc-secondary {
  background: var(--color-raised);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}

.bio-btn-loc-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* Collapsible Map */
.bio-map-collapse {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              margin-top 0.35s ease;
  margin-top: 0;
}

.bio-map-collapse.expanded {
  max-height: 280px;
  opacity: 1;
  margin-top: 1rem;
}

.bio-map-inner {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-raised);
}

.bio-map-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Works Section */
.bio-works-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.bio-works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.bio-works-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.2;
}

[dir="rtl"] .bio-works-title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.25rem;
}

.bio-works-sub {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.bio-works-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-works-all-link:hover {
  transform: translateX(2px);
}

[dir="rtl"] .bio-works-all-link:hover {
  transform: translateX(-2px);
}

.bio-works-all-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

[dir="rtl"] .bio-works-all-link svg {
  transform: rotate(180deg);
}

/* Works Grid */
.bio-works-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.bio-work-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--speed-fast) var(--ease-out-expo),
              border-color var(--speed-fast) var(--ease-out-expo),
              box-shadow var(--speed-fast) var(--ease-out-expo);
  overflow: hidden;
}

.bio-work-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.bio-work-media {
  position: relative;
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-raised);
}

.bio-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-expo);
}

.bio-work-card:hover .bio-work-media img {
  transform: scale(1.08);
}

.bio-work-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
}

[dir="rtl"] .bio-work-badge {
  left: auto;
  right: 4px;
}

.bio-work-info {
  flex: 1;
  min-width: 0;
}

.bio-work-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bio-work-location {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Consultation Booking CTA */
.bio-cta-wrap {
  width: 100%;
}

.bio-btn-consultation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.35rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #ff764d 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 28px -4px var(--color-accent-glow);
  transition: transform var(--speed-fast) var(--ease-out-expo),
              box-shadow var(--speed-fast) var(--ease-out-expo),
              background 0.3s ease;
}

.bio-btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px var(--color-accent-glow);
  color: #ffffff;
}

.bio-btn-consultation:active {
  transform: scale(0.98);
}

.bio-btn-consultation-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bio-btn-consultation-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
}

.bio-btn-consultation-text {
  flex: 1;
  text-align: left;
  margin: 0 0.85rem;
}

[dir="rtl"] .bio-btn-consultation-text {
  text-align: right;
}

.bio-btn-consultation-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.bio-btn-consultation-sub {
  display: block;
  font-size: 0.74rem;
  opacity: 0.9;
  margin-top: 2px;
}

.bio-btn-consultation-arrow {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--speed-fast) var(--ease-out-expo);
}

.bio-btn-consultation:hover .bio-btn-consultation-arrow {
  transform: translateX(3px);
}

[dir="rtl"] .bio-btn-consultation-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .bio-btn-consultation:hover .bio-btn-consultation-arrow {
  transform: rotate(180deg) translateX(3px);
}

/* Placeholders for subsequent steps */
.bio-section-placeholder {
  display: none;
}

/* Card Footer */
.bio-meta-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.bio-meta-link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--speed-fast);
}

.bio-meta-link:hover {
  color: var(--color-ink);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
