/* ==========================================================================
   Rabean HTML Template - Modern High-Performance Stylesheet
   Pure Vanilla CSS with Modern CSS Variables, Flex/Grid & Hardware Acceleration
   ========================================================================== */

@import './fonts.css';

/* Brand Font: Modam & Typography Registry consolidated into fonts.css */

/* Market Language Typography Adaptations (Danish & Dutch use Vazirmatn for complete Nordic glyph set) */
html[lang^="da"], html[lang^="nl"] {
  --font-heading: var(--font-latin-ext);
  --font-body: var(--font-latin-ext);
}

/* Suppress WordPress Front-End Admin Bar & Reset HTML Bump */
html {
  margin-top: 0 !important;
}
* html body {
  margin-top: 0 !important;
}
#wpadminbar {
  display: none !important;
}


:root {
  /* Rabean Brand Core (Authentic Founder Purple #7c2ca5) */
  --brand-purple: #7c2ca5;
  --brand-purple-light: #9d3ed1;
  --brand-purple-dark: #5c1b80;
  --brand-purple-glow: rgba(124, 44, 165, 0.45);

  /* Atmospheric Cosmic Canvas (Balanced Twilight: Deep Violet-Slate) */
  --bg-primary: #0d0a1a;
  --bg-surface: rgba(22, 17, 40, 0.85);
  --bg-card: rgba(26, 20, 48, 0.78);
  --bg-card-hover: rgba(38, 30, 68, 0.92);
  --border-subtle: rgba(168, 85, 247, 0.18);
  --border-focus: rgba(124, 44, 165, 0.6);

  /* Primary Theme Accents */
  --accent-purple: #7c2ca5;
  --accent-orchid: #ce59ea;
  --accent-amber: #fba63c;
  --accent-cream: #fee9cc;
  --accent-glow: rgba(124, 44, 165, 0.45);

  /* High Legibility Typography */
  --text-main: #fcfaff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  /* Typography Tokens (R02 Standard) */
  --font-brand: 'Modam', 'Vazirmatn', sans-serif;
  --font-latin-ext: 'Vazirmatn', sans-serif;
  --font-heading: var(--font-brand);
  --font-body: var(--font-brand);
  --font-vazir: var(--font-body); /* Legacy compatibility alias */
  --header-height: 68px;

  /* ==========================================================================
     Rabean Standardized Button Tokens (UI/UX Pro Max System)
     ========================================================================== */
  --btn-radius-default: 12px;
  --btn-radius-md: 10px;
  --btn-radius-sm: 8px;
  --btn-radius-pill: 9999px;

  /* Button Heights Scale (4-Tier Ergonomic Scale) */
  --btn-h-lg: 46px; /* Featured Event CTAs, Spotlight */
  --btn-h-md: 40px; /* Standard Modal, Forms, Cards */
  --btn-h-sm: 34px; /* Compact Controls, Geo-advisory */
  --btn-h-xs: 28px; /* Micro Badges */

  /* Button Color Tokens - Harmonious Cosmic Orchid & Cyber Glass */
  --btn-primary-bg: #7c2ca5;
  --btn-primary-hover-bg: #6b21a8;
  --btn-primary-text: #ffffff;
  --btn-primary-border: rgba(255, 255, 255, 0.16);
  --btn-primary-shadow: none;
  --btn-primary-hover-shadow: none;

  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
  --btn-secondary-text: #e2e8f0;
  --btn-secondary-border: rgba(255, 255, 255, 0.12);
  --btn-secondary-hover-border: rgba(255, 255, 255, 0.24);
  --btn-secondary-shadow: none;
  --btn-secondary-hover-shadow: none;

  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --btn-ghost-text: #cbd5e1;

  /* ==========================================================================
     Glass Hover Tokens (R07 Standard - Approved in R06 / doc 04 §10)
     ========================================================================== */
  --glass-filter: blur(0px) saturate(100%) brightness(0.9);
  --glass-tint: rgba(255, 255, 255, 0.02);
  --glass-tint-brand: rgba(124, 44, 165, 0.15);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  --glass-depth: 0 6px 0px rgba(0, 0, 0, 0.35);
  --glass-transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, backdrop-filter .18s ease, -webkit-backdrop-filter .18s ease, transform .18s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   Base Links Rules (R03 Standard - docs/wp-migration/04-ui-standards.md)
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:visited {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--accent-orchid);
  outline-offset: 2px;
  border-radius: 4px;
}

/* فقط لینک داخل متن پاراگراف (محتوای ادیتور، مقاله، حریم خصوصی) */
:where(.entry-content, .article-body, .article-content-card, .policy-section, .rabean-prose, .prose) :where(p, li, td, blockquote, figcaption, dd) a:not([class]) {
  color: var(--accent-orchid);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(206, 89, 234, 0.4);
}
:where(.entry-content, .article-body, .article-content-card, .policy-section, .rabean-prose, .prose) :where(p, li, td, blockquote, figcaption, dd) a:not([class]):hover {
  text-decoration-color: currentColor;
}

/* لینک‌های دکمه‌ای، عمومی و ووکامرس بدون زیرخط و رنگ پیش‌فرض */
.button,
a.button,
.woocommerce-LoopProduct-link,
.woocommerce-MyAccount-navigation a,
.woocommerce-LostPassword a,
.lost_password a,
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-privacy-policy-link {
  color: inherit;
  text-decoration: none;
}
.button:hover,
a.button:hover,
.woocommerce-LoopProduct-link:hover,
.woocommerce-MyAccount-navigation a:hover {
  text-decoration: none;
}


body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Explicit LTR Body Override */
html[dir="ltr"] body,
body[dir="ltr"],
body.ltr {
  direction: ltr !important;
  text-align: left !important;
}

/* Utilities */
.hidden { display: none !important; }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #070a12; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ==========================================================================
   1. Header & Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logotype */
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-svg {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(124, 44, 165, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logotype-svg {
  height: 44px;
  width: auto;
  max-width: 250px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(124, 44, 165, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-link:hover .brand-mark-svg {
  transform: scale(1.06) rotate(3deg);
  filter: drop-shadow(0 4px 18px rgba(168, 85, 247, 0.7));
}

.brand-link:hover .brand-logotype-svg {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 16px rgba(168, 85, 247, 0.6));
}

/* Category Filter Pills */
.nav-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.cat-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.cat-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none !important;
}

.cat-pill-btn.active {
  background: #7c2ca5 !important;
  border-color: #9333ea !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: none !important;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  width: 210px;
}

.search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 7px 32px 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.search-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* View Switcher */
.view-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.btn-view-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--glass-transition);
}

.btn-view-toggle.active {
  background: #7c2ca5;
  color: #ffffff;
  box-shadow: none;
}

/* ==========================================================================
   Language Dropdown with Crisp Official Country Flags
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  padding: 0 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-dropdown-trigger:hover,
.lang-dropdown-wrapper.open .lang-dropdown-trigger {
  background: rgba(124, 44, 165, 0.28);
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.lang-current-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-current-label {
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.lang-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #c084fc;
  flex-shrink: 0;
}

.lang-dropdown-wrapper.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-flag-svg {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: rgba(15, 11, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(124, 44, 165, 0.25);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* LTR adjustment for menu alignment */
html[dir="ltr"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
}

html[dir="ltr"] .lang-menu-item {
  text-align: left;
}

.lang-menu-item:hover,
.lang-menu-item:focus {
  background: rgba(124, 44, 165, 0.22);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(-2px);
}

html[dir="ltr"] .lang-menu-item:hover {
  transform: translateX(2px);
}

.lang-menu-item.active {
  background: rgba(124, 44, 165, 0.35);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(168, 85, 247, 0.35);
  text-decoration: none;
}

.lang-item-country {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-inline-start: auto;
}

/* ==========================================================================
   International Geo-Advisory Banner (Non-Blocking Soft Switcher)
   ========================================================================== */
.rabean-geo-banner {
  position: relative;
  width: 100%;
  background: rgba(22, 14, 40, 0.98);
  border-bottom: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(124, 44, 165, 0.2);
  z-index: 100;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 80px;
}

.rabean-geo-banner.geo-banner-hidden {
  display: none !important;
}

.rabean-geo-banner.geo-banner-closing {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-color: transparent !important;
}

.geo-banner-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.geo-banner-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1f5f9;
  font-size: 0.83rem;
  line-height: 1.5;
}

.geo-banner-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.geo-banner-flag svg {
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.geo-banner-text {
  font-weight: 500;
}

.geo-banner-text strong {
  color: #f0abfc;
  font-weight: 700;
}

.geo-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.geo-banner-btn-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--btn-h-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border);
  text-decoration: none !important;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 0 16px;
  border-radius: var(--btn-radius-sm);
  box-shadow: var(--btn-primary-shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.geo-banner-btn-switch:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--btn-primary-hover-shadow);
  filter: brightness(1.05);
}

.geo-banner-btn-switch:active {
  transform: translateY(1px) scale(0.985);
}

.geo-banner-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.geo-banner-btn-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .geo-banner-inner {
    padding: 8px 14px;
    gap: 8px;
  }
  .geo-banner-message {
    font-size: 0.78rem;
  }
  .geo-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Rebear Status Button in Navbar */
.btn-nav-rebear {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.btn-nav-rebear:hover {
  border-color: #ff2a5f;
  background: rgba(225, 29, 72, 0.15);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.4);
  transform: translateY(-1px);
}

.nav-rebear-cube-icon,
.nav-rebear-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.btn-nav-rebear:hover .nav-rebear-cube-icon,
.btn-nav-rebear:hover .nav-rebear-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Active Status Dot (Breathing Crimson/Rose Glow) */
.nav-rebear-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #ff2a5f;
  box-shadow: 0 0 8px #ff2a5f, 0 0 14px rgba(255, 42, 95, 0.6);
  animation: rebear-dot-pulse 2.2s ease-in-out infinite;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@keyframes rebear-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #ff2a5f; }
  50% { opacity: 0.65; transform: scale(0.85); box-shadow: 0 0 4px #ff2a5f; }
}

/* Inactive State: Greyed Out Dot */
.btn-nav-rebear.is-inactive {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: none;
}

.btn-nav-rebear.is-inactive .nav-rebear-cube-icon,
.btn-nav-rebear.is-inactive .nav-rebear-icon {
  opacity: 0.65;
  filter: grayscale(35%);
}

.btn-nav-rebear.is-inactive:hover .nav-rebear-cube-icon,
.btn-nav-rebear.is-inactive:hover .nav-rebear-icon {
  opacity: 1;
  filter: grayscale(0%);
}

.btn-nav-rebear.is-inactive .nav-rebear-dot {
  background: #64748b;
  box-shadow: none;
  animation: none;
  opacity: 0.75;
}

.btn-mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile Dropdown */
.mobile-nav-panel {
  display: none;
  background: #0f172a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
  flex-direction: column;
  gap: 12px;
}

.mobile-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  margin: 3px;
}

/* ==========================================================================
   2. Main Graph Viewport (Cosmic Starfield & D3 Disjoint Canvas)
   ========================================================================== */
.graph-viewport-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 44, 165, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(206, 89, 234, 0.09) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(98, 71, 170, 0.09) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
  user-select: none;
}

/* Cosmic Starfield Canvas Layer */
.cosmic-starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.d3-graph-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: default;
}

.d3-graph-svg:active {
  cursor: grabbing;
}

/* Top Floating Info Badge */
.graph-top-info {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.badge-graph-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(124, 44, 165, 0.15);
  color: var(--accent-orchid);
  border: 1px solid rgba(206, 89, 234, 0.3);
  border-radius: 20px;
}

.info-count {
  font-size: 11px;
  color: var(--text-muted);
}

.info-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Floating Zoom & Controls */
.graph-controls-panel,
.cookie-floating-panel {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  box-sizing: border-box;
  padding: 0 5px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cookie-floating-panel {
  position: fixed;
  z-index: 95;
  width: auto;
  height: 22px;
  box-sizing: border-box;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cookie-floating-panel:hover,
.graph-controls-panel:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(124, 44, 165, 0.25);
}

.ctrl-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0;
  flex-shrink: 0;
}

.btn-ctrl-cookie {
  width: 36px;
  height: 36px;
  color: var(--accent-amber, #fba63c);
  transition: var(--glass-transition);
}

.btn-ctrl-cookie svg {
  width: 18px;
  height: 18px;
}

.btn-ctrl {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--glass-transition);
}

.btn-ctrl-accent {
  color: var(--accent-orchid);
}

/* U01: Buttons inside panels (Live site reference: 16x16, icon 16px, invisible hit area) */
.graph-controls-panel .btn-ctrl,
.cookie-floating-panel .btn-ctrl {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.graph-controls-panel .btn-ctrl svg,
.cookie-floating-panel .btn-ctrl svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.graph-controls-panel .btn-ctrl::after,
.cookie-floating-panel .btn-ctrl::after {
  content: '';
  position: absolute;
  inset: -3px;
}

@media (pointer: coarse) {
  .cookie-floating-panel .btn-ctrl::after {
    inset: -10px;
  }
}

/* ==========================================================================
   3. D3 SVG Graph Elements
   ========================================================================== */
.link-line {
  stroke: var(--link-color, rgba(13, 110, 253, 0.45));
  stroke-width: 1.8px;
  stroke-dasharray: 4, 3;
  stroke-opacity: 0.5;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, stroke-opacity 0.3s ease, filter 0.3s ease;
}

.link-line.highlighted {
  stroke: var(--link-color, #00d2ff) !important;
  stroke-width: 3.2px;
  stroke-dasharray: none;
  stroke-opacity: 1;
  filter: drop-shadow(0 0 8px var(--link-color, #00d2ff));
}

/* Central Main Node */
.node-main {
  cursor: grab;
}

.node-main:active {
  cursor: grabbing;
}

/* Inner graphic group handles smooth hover scaling from center (0, 0) without jumping */
.node-inner {
  transform-origin: 0 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.node-main:hover .node-inner {
  transform: scale(1.18);
}

.node-main:hover {
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.node-main circle.bg-circle {
  fill: #0f172a;
  stroke-width: 3px;
  transition: stroke-width 0.3s ease;
}

.node-main:hover circle.bg-circle {
  stroke-width: 4px;
}

.node-main text.main-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: #ffffff;
  text-anchor: middle;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.node-main text.cat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  fill: var(--text-muted);
  text-anchor: middle;
  pointer-events: none;
}

/* Rotating outer dashed ring */
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating-ring {
  transform-origin: 0 0;
  animation: spin-ring 25s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

.node-main:hover .rotating-ring {
  animation-duration: 10s;
  opacity: 1;
}

/* Satellite Nodes (Blue Dots) */
.node-satellite {
  cursor: grab;
}

.node-satellite:active {
  cursor: grabbing;
}

.node-satellite:hover .node-inner {
  transform: scale(1.30);
}

.node-satellite:hover {
  filter: drop-shadow(0 0 10px var(--accent-purple));
}

.node-satellite text.sat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  fill: #cbd5e1;
  text-anchor: middle;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
}

.node-satellite:hover text.sat-label {
  fill: #ffffff;
  font-weight: 700;
}

/* Stable hit-area to eliminate pointer flickering across gaps */
.node-hit-area {
  cursor: grab;
  pointer-events: all;
}

.node-hit-area:active {
  cursor: grabbing;
}

/* ==========================================================================
   4. Rebear AI 3D Red Cube Mascot (Fixed Side Placement, Reactions & Docking)
   ========================================================================== */
.robot-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
  touch-action: none;
  width: 106px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  perspective: 700px;
}

.robot-container:hover {
  transform: translateY(-5px);
}

.robot-container.docked-hidden {
  display: none !important;
}

/* ==========================================================================
   Cosmic Wormhole / Singular Vortex Transition
   ========================================================================== */
.rebear-wormhole {
  position: absolute;
  top: 58px;
  left: 53px;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center center;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: transform, opacity;
}

.wormhole-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wormhole-disk-cw {
  transform-origin: 90px 90px;
  animation: wormhole-spin-cw 8s linear infinite;
}

.wormhole-disk-ccw {
  transform-origin: 90px 90px;
  animation: wormhole-spin-ccw 6s linear infinite;
}

/* Continuous Vortex Rotation Keyframes */
@keyframes wormhole-spin-cw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wormhole-spin-ccw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* --- Despawn Sequence: Wormhole Opens, Gravitationally Sucks Rebear In, Collapses Shut (850ms) --- */
.robot-container.wormhole-despawning .rebear-wormhole {
  animation: wormhole-open-and-collapse 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.robot-container.wormhole-despawning .rebear-cube-wrapper {
  animation: rebear-sucked-into-singularity 0.85s cubic-bezier(0.45, 0, 0.7, 0) forwards;
  pointer-events: none;
}

.robot-container.wormhole-despawning .rebear-control-pill {
  animation: rebear-ctrl-fade-out 0.25s ease forwards;
  pointer-events: none;
}

@keyframes wormhole-open-and-collapse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.22) rotate(100deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotate(340deg);
  }
  88% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.25) rotate(480deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(540deg);
  }
}

@keyframes rebear-sucked-into-singularity {
  0% {
    transform: perspective(700px) rotateX(0deg) rotateY(0deg) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.45));
  }
  25% {
    transform: perspective(700px) scale(0.92) rotate(-18deg);
    opacity: 1;
    filter: drop-shadow(0 0 18px #9333ea);
  }
  62% {
    transform: perspective(700px) scale(0.38) rotate(-220deg);
    opacity: 0.88;
    filter: drop-shadow(0 0 28px #ff2a5f);
  }
  88% {
    transform: perspective(700px) scale(0.04) rotate(-480deg);
    opacity: 0.3;
  }
  100% {
    transform: perspective(700px) scale(0.001) rotate(-540deg);
    opacity: 0;
  }
}

/* --- Spawn Sequence: Wormhole Bursts Open, Rebear Emerges Forward, Wormhole Dissolves (950ms) --- */
.robot-container.wormhole-spawning .rebear-wormhole {
  animation: wormhole-burst-and-dissolve 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.robot-container.wormhole-spawning .rebear-cube-wrapper {
  animation: rebear-emerge-from-singularity 0.95s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
  pointer-events: none;
}

.robot-container.wormhole-spawning .rebear-control-pill {
  animation: rebear-ctrl-fade-in 0.35s ease 0.55s both;
}

@keyframes wormhole-burst-and-dissolve {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-160deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.28) rotate(0deg);
  }
  65% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08) rotate(160deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42) rotate(320deg);
  }
}

@keyframes rebear-emerge-from-singularity {
  0% {
    transform: perspective(700px) scale(0.001) rotate(540deg);
    opacity: 0;
    filter: drop-shadow(0 0 24px #a855f7);
  }
  28% {
    transform: perspective(700px) scale(0.24) rotate(340deg);
    opacity: 0.6;
    filter: drop-shadow(0 0 28px #7c2ca5);
  }
  68% {
    transform: perspective(700px) scale(1.15) rotate(-8deg);
    opacity: 1;
    filter: drop-shadow(0 0 25px #ff2a5f);
  }
  86% {
    transform: perspective(700px) scale(0.96) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: perspective(700px) scale(1) rotate(0deg);
    opacity: 1;
    filter: none;
  }
}

@keyframes rebear-ctrl-fade-out {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.3); }
}

@keyframes rebear-ctrl-fade-in {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

.rebear-cube-wrapper,
.rebear-polygon-wrapper {
  width: 106px;
  height: 116px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: filter 0.25s ease, transform 0.3s ease;
}

.rebear-cube-wrapper:hover,
.rebear-polygon-wrapper:hover {
  filter: drop-shadow(0 0 24px rgba(225, 29, 72, 0.75));
}

.rebear-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Face Layers */
.face-layer {
  transition: opacity 0.2s ease;
}

.face-layer.hidden {
  display: none !important;
  opacity: 0;
}

/* Thinking brainwave pulse */
@keyframes pulse-brain {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 8px #fba63c); }
}

.pulse-thinking {
  transform-origin: 82px 16px;
  animation: pulse-brain 0.9s ease-in-out infinite;
}

/* D3 Node Bump Effect when Rebear collides */
.node-main.rebear-bumped .node-inner {
  transform: scale(1.28) !important;
  filter: drop-shadow(0 0 24px rgba(225, 29, 72, 0.9)) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

/* Rebear Control Button (Close Only ✕) */
.rebear-control-pill {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(225, 29, 72, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rebear-control-pill:hover {
  background: #ea2032;
  border-color: #ff475a;
  box-shadow: 0 0 16px rgba(234, 32, 50, 0.7);
  transform: scale(1.15);
}

.pill-close-btn {
  font-size: 11px;
  font-weight: 700;
  color: #ff475a;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.2s ease;
}

.rebear-control-pill:hover .pill-close-btn {
  color: #ffffff;
}

/* Rebear Doodle Framing Lines - Emotion Reactivity */
.rebear-doodle-frame {
  transform-origin: 58px 60px;
  transition: opacity 0.3s ease, stroke 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

/* 1. Normal Logo Wink: Calm White Chalk Lines */
.rebear-doodle-frame.emotion-logo-wink,
.rebear-doodle-frame.emotion-blink {
  stroke: #ffffff;
  opacity: 0.75;
}

/* 2. Thinking: Golden subtle pulse & contemplation glow */
.rebear-doodle-frame.emotion-thinking {
  stroke: #fcd34d;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.6));
  animation: doodle-thinking-pulse 2s ease-in-out infinite;
}
@keyframes doodle-thinking-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.85)); }
}

/* 3. Angry: Aggressive rapid vibration, crimson fire glow */
.rebear-doodle-frame.emotion-angry {
  stroke: #ff2a5f !important;
  stroke-width: 2.2px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px #ff2a5f) !important;
  animation: doodle-angry-vibe 0.12s linear infinite !important;
}
@keyframes doodle-angry-vibe {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, 1.5px) rotate(-1.5deg); }
  50% { transform: translate(2px, -1px) rotate(1deg); }
  75% { transform: translate(-1.5px, -1.5px) rotate(-0.8deg); }
  100% { transform: translate(1px, 2px) rotate(1.2deg); }
}

/* 4. Happy / Excited: Expanded celebratory bounce */
.rebear-doodle-frame.emotion-happy,
.rebear-doodle-frame.emotion-excited {
  stroke: #f472b6;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.6));
  animation: doodle-happy-bounce 1.4s ease-in-out infinite;
}
@keyframes doodle-happy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 5. Awkward / Sweat-drop: Drooping nervous chill */
.rebear-doodle-frame.emotion-awkward {
  stroke: #67e8f9;
  opacity: 0.85;
  transform: translateY(4px);
  filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.5));
}

/* Mascot Shake on Anger */
.rebear-cube-wrapper.rebear-angry-shake {
  animation: cube-angry-shiver 0.25s linear 3;
}
@keyframes cube-angry-shiver {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg) scale(1.02); }
  75% { transform: rotate(3deg) scale(1.02); }
}

/* Robot Speech Bubble - Chalk / Doodle Style matching official Rebear artwork */
.robot-speech-bubble {
  position: absolute;
  bottom: 154px; /* Generous breathing room above Reber's head */
  right: -10px;
  min-width: 230px;
  max-width: 290px;
  background: rgba(13, 18, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.speech-header {
  margin-bottom: 4px;
}

.speech-tag {
  font-size: 9px;
  font-weight: 800;
  color: #ff2a5f;
  letter-spacing: 0.8px;
}

.robot-speech-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.robot-speech-bubble.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  display: none;
}

.speech-arrow {
  position: absolute;
  bottom: -7px;
  right: 48px;
  width: 13px;
  height: 13px;
  background: rgba(13, 18, 30, 0.96);
  border-right: 1.5px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
}

/* ==========================================================================
   5. Portfolio Grid Cards View
   ========================================================================== */
.portfolio-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.grid-heading {
  text-align: center;
  margin-bottom: 40px;
}

.grid-heading h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.grid-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .portfolio-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   5. Portfolio Grid Cards - Refined Cyber-Glass Architecture
   ========================================================================== */
.portfolio-grid-card {
  position: relative;
  background: #0d0c14;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: 0 32px 28px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  margin-top: 14px;
}

.portfolio-grid-card:hover {
  border-color: rgba(192, 132, 252, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 36px rgba(147, 51, 234, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  background: #12101b;
}

/* Layer 1: High-DPI Canvas Light Engine */
.card-light-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Layer 2: Header Housing Dipping Ridge Shelf & 3D Glass Orb */
.card-hero-header {
  position: relative;
  width: calc(100% + 64px);
  margin-left: -32px;
  margin-right: -32px;
  height: 125px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3;
  overflow: visible;
}

/* Glowing Contour SVG Line across the card with Deep Smooth Dip */
.card-ridge-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 125px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.ridge-glow {
  stroke-width: 4px;
  fill: none;
  opacity: 0.06;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ridge-line {
  stroke-width: 1.8px;
  fill: none;
  opacity: 0.45;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid-card:hover .ridge-glow {
  opacity: 0.8;
  stroke-width: 6.5px;
}

.portfolio-grid-card:hover .ridge-line {
  opacity: 0.95;
  stroke-width: 2.0px;
}

/* Central 3D Glass Bubble Orb (52px diameter) */
.card-logo-orb {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.35) 0%, rgba(38, 15, 65, 0.92) 55%, rgba(14, 8, 24, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  overflow: hidden;
}

.portfolio-grid-card:hover .card-logo-orb {
  transform: translateX(-50%) translateY(-2.5px);
  border-color: rgba(255, 255, 255, 0.42);
}

/* Specular Crescent Glass Reflection along Upper Perimeter */
.orb-specular-crescent {
  position: absolute;
  top: 2px;
  left: 5px;
  right: 5px;
  height: 22px;
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 171, 252, 0.2) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid-card:hover .orb-specular-crescent {
  transform: translateY(-0.5px);
}

/* Pure Brilliant White Logo with Ethereal Celestial Glow */
.card-logo-img {
  width: 33px;
  height: 33px;
  object-fit: contain;
  box-sizing: border-box;
  z-index: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.9));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid-card:hover .card-logo-img {
  transform: translateY(-1px);
}

.card-logo-fallback {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.9));
}

/* Card Body Content */
.card-body-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 4px;
}

/* Brand Name (Right aligned in RTL, Left aligned in LTR) */
.card-project-title {
  margin: 0 0 16px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-align: right;
  line-height: 1.3;
}

[dir="ltr"] .card-project-title {
  text-align: left;
}

/* List of Rabean's Activities with Icons */
.card-activities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.activity-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.portfolio-grid-card:hover .activity-icon-box {
  background: rgba(147, 51, 234, 0.16);
  border-color: rgba(192, 132, 252, 0.35);
  color: #f0abfc;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
}

.activity-title {
  flex-grow: 1;
  text-align: right;
  font-weight: 500;
}
.activity-star-sparkle {
  width: 14px;
  height: 14px;
  color: #475569;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.portfolio-grid-card:hover .activity-star-sparkle {
  color: #c084fc;
  transform: scale(1.15);
}


[dir="ltr"] .activity-title {
  text-align: left;
}

/* Divider Line */
.card-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0 14px 0;
  width: 100%;
}

/* Footer Link replacing button */
.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
}

.link-project-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.link-project-details .link-arrow {
  stroke: #e2e8f0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.portfolio-grid-card:hover .link-project-details,
.link-project-details:hover {
  color: #f0abfc;
}

.portfolio-grid-card:hover .link-project-details .link-arrow,
.link-project-details:hover .link-arrow {
  stroke: #f0abfc;
}

[dir="rtl"] .portfolio-grid-card:hover .link-arrow,
[dir="rtl"] .link-project-details:hover .link-arrow {
  transform: translateX(-5px);
}

[dir="ltr"] .portfolio-grid-card:hover .link-arrow,
[dir="ltr"] .link-project-details:hover .link-arrow {
  transform: translateX(5px);
}


.empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.4);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   6. Project Detail Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

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

.modal-dialog-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #020617;
  padding: 2px;
  border: 2px solid var(--accent-orchid);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-client {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-desc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}

.modal-desc-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-desc-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.modal-satellites-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-satellites-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Buttons Base & Glass Hover System (R07 Standard - doc 04 §1.2 & §10)
   ========================================================================== */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--glass-transition);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--glass-transition);
}

.btn-primary {
  background: var(--brand-purple, #7c2ca5);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: none;
  transition: var(--glass-transition);
}

/* Glass Hover — Primary (Brand Purple Glass Tint) */
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-event-register:hover,
.btn-event-register:focus-visible,
.btn-submit-contact:hover,
.btn-submit-contact:focus-visible,
.btn-csr-primary:hover,
.btn-csr-primary:focus-visible,
.btn-cookie-save:hover,
.btn-cookie-save:focus-visible,
.btn-privacy-cookie-modal:hover,
.btn-privacy-cookie-modal:focus-visible,
.btn-show-all-cards:hover,
.btn-show-all-cards:focus-visible,
.btn-back-to-top:hover,
.btn-back-to-top:focus-visible,
li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--glass-tint-brand) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-edge), var(--glass-depth) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  backdrop-filter: var(--glass-filter) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Glass Hover — Secondary, Ghost, Ctrl, Pills, Social (Neutral Glass Tint) */
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ctrl:hover,
.btn-ctrl:focus-visible,
.btn-ctrl-accent:hover,
.btn-ctrl-accent:focus-visible,
.btn-ctrl-cookie:hover,
.btn-ctrl-cookie:focus-visible,
.btn-view-toggle:hover,
.btn-view-toggle:focus-visible,
.blog-pill:hover,
.blog-pill:focus-visible,
.social-pill-btn:hover,
.social-pill-btn:focus-visible,
.btn-event-page:hover,
.btn-event-page:focus-visible,
.btn-cookie-secondary:hover,
.btn-cookie-secondary:focus-visible,
.btn-csr-secondary:hover,
.btn-csr-secondary:focus-visible {
  background-color: var(--glass-tint) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-edge), var(--glass-depth) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  backdrop-filter: var(--glass-filter) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Panel Buttons: no vertical shift inside fixed compact height panels (U01 standard) */
.graph-controls-panel .btn-ctrl:hover,
.cookie-floating-panel .btn-ctrl:hover {
  transform: none !important;
}

/* Pressed State */
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.btn-ctrl:active,
.btn-view-toggle:active,
.btn-event-page:active,
.btn-event-register:active,
.btn-submit-contact:active,
.btn-cookie-save:active,
.btn-cookie-secondary:active,
.btn-show-all-cards:active {
  transform: translateY(0) scale(0.99) !important;
}

/* Fallback for environments lacking backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-primary:hover,
  .btn-event-register:hover,
  .btn-submit-contact:hover,
  .btn-csr-primary:hover,
  .btn-cookie-save:hover,
  .btn-privacy-cookie-modal:hover,
  .btn-show-all-cards:hover,
  .btn-back-to-top:hover,
  li.product .button:hover,
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover {
    background-color: var(--btn-primary-hover-bg, #7c2ca5) !important;
  }
  .btn-secondary:hover,
  .btn-ghost:hover,
  .btn-ctrl:hover,
  .btn-ctrl-accent:hover,
  .btn-ctrl-cookie:hover,
  .btn-view-toggle:hover,
  .blog-pill:hover,
  .social-pill-btn:hover,
  .btn-event-page:hover,
  .btn-cookie-secondary:hover,
  .btn-csr-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
  }
}

/* Accessibility: solid fallback when user prefers reduced transparency */
@media (prefers-reduced-transparency: reduce) {
  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-event-register:hover,
  .btn-event-register:focus-visible,
  .btn-submit-contact:hover,
  .btn-submit-contact:focus-visible,
  .btn-csr-primary:hover,
  .btn-csr-primary:focus-visible,
  .btn-cookie-save:hover,
  .btn-cookie-save:focus-visible,
  .btn-privacy-cookie-modal:hover,
  .btn-privacy-cookie-modal:focus-visible,
  .btn-show-all-cards:hover,
  .btn-show-all-cards:focus-visible,
  .btn-back-to-top:hover,
  .btn-back-to-top:focus-visible,
  li.product .button:hover,
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--btn-primary-hover-bg, #7c2ca5) !important;
    box-shadow: none !important;
  }
  .btn-secondary:hover,
  .btn-secondary:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible,
  .btn-ctrl:hover,
  .btn-ctrl:focus-visible,
  .btn-ctrl-accent:hover,
  .btn-ctrl-accent:focus-visible,
  .btn-ctrl-cookie:hover,
  .btn-ctrl-cookie:focus-visible,
  .btn-view-toggle:hover,
  .btn-view-toggle:focus-visible,
  .blog-pill:hover,
  .blog-pill:focus-visible,
  .social-pill-btn:hover,
  .social-pill-btn:focus-visible,
  .btn-event-page:hover,
  .btn-event-page:focus-visible,
  .btn-cookie-secondary:hover,
  .btn-cookie-secondary:focus-visible,
  .btn-csr-secondary:hover,
  .btn-csr-secondary:focus-visible {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   7. Site Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.9);
  padding: 20px 0;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-tag {
  color: var(--accent-cyan);
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
/* nav breakpoint: 1279px + touch <=1366px (doc 04 §6) */
@media (max-width: 1279px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .nav-categories { display: none; }
  .nav-primary, .dk-nav-primary, .nl-nav-primary { display: none !important; }
  .btn-mobile-menu { display: block; }
  .mobile-nav-panel:not(.hidden) { display: flex; }
}

@media (max-width: 640px) {
  .search-box { width: 150px; }
  .brand-badge { display: none; }
  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .rebear-box-wrapper {
    width: 120px;
    height: 98px;
  }
}

/* ==========================================================================
   9. Internationalization & Bidirectional Layout Support (RTL & LTR)
   Full support for Persian (FA), English (EN), Dutch (NL), and Danish (DA)
   ========================================================================== */
html[dir="ltr"],
html[dir="ltr"] body,
body[dir="ltr"],
body.ltr {
  direction: ltr !important;
  text-align: left !important;
}

/* --------------------------------------------------------------------------
   LTR Header & Navigation Bar Alignment
   Logo on FAR LEFT, Primary Nav in CENTER, Controls & Rebear on FAR RIGHT
   Natural DOM order flows natively from left to right in LTR
   -------------------------------------------------------------------------- */
html[dir="ltr"] .site-header,
body[dir="ltr"] .site-header,
body.ltr .site-header {
  direction: ltr !important;
}

html[dir="ltr"] .header-container,
body[dir="ltr"] .header-container,
body.ltr .header-container {
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* 1. Brand Logo: Far Left */
html[dir="ltr"] .brand-link,
body[dir="ltr"] .brand-link,
body.ltr .brand-link {
  direction: ltr !important;
}

/* 2. Primary Navigation Menu: Center */
html[dir="ltr"] .nav-primary,
body[dir="ltr"] .nav-primary,
body.ltr .nav-primary {
  direction: ltr !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

html[dir="ltr"] .nav-primary-link,
body[dir="ltr"] .nav-primary-link,
body.ltr .nav-primary-link {
  direction: ltr !important;
  flex-direction: row !important;
}

/* 3. Header Controls: Far Right */
html[dir="ltr"] .header-controls,
body[dir="ltr"] .header-controls,
body.ltr .header-controls {
  direction: ltr !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
}

html[dir="ltr"] .view-switcher,
body[dir="ltr"] .view-switcher,
body.ltr .view-switcher {
  direction: ltr !important;
  flex-direction: row !important;
}

html[dir="ltr"] .btn-view-toggle,
body[dir="ltr"] .btn-view-toggle,
body.ltr .btn-view-toggle {
  direction: ltr !important;
  flex-direction: row !important;
}

html[dir="ltr"] .btn-nav-rebear,
body[dir="ltr"] .btn-nav-rebear,
body.ltr .btn-nav-rebear {
  direction: ltr !important;
  flex-direction: row !important;
}

/* Dropdown alignment for LTR */
html[dir="ltr"] .lang-dropdown-menu,
body[dir="ltr"] .lang-dropdown-menu,
body.ltr .lang-dropdown-menu {
  right: auto !important;
  left: 0 !important;
  text-align: left !important;
}

html[dir="ltr"] .lang-menu-item,
body[dir="ltr"] .lang-menu-item,
body.ltr .lang-menu-item {
  direction: ltr !important;
  text-align: left !important;
  flex-direction: row !important;
}

html[dir="ltr"] .lang-item-country,
body[dir="ltr"] .lang-item-country,
body.ltr .lang-item-country {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Top Floating Canvas Graph Info & Controls */
html[dir="ltr"] .graph-top-info,
body[dir="ltr"] .graph-top-info,
body.ltr .graph-top-info {
  right: auto !important;
  left: 24px !important;
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .graph-controls-panel,
body[dir="ltr"] .graph-controls-panel,
body.ltr .graph-controls-panel,
html[dir="ltr"] .cookie-floating-panel,
body[dir="ltr"] .cookie-floating-panel,
body.ltr .cookie-floating-panel {
  left: auto !important;
  right: 24px !important;
}

/* Rebear Mascot LTR Adaptation: Left side placement, horizontal flip, mirrored look & adapted bubble */
html[dir="ltr"] .robot-container,
body[dir="ltr"] .robot-container,
body.ltr .robot-container {
  right: auto !important;
  left: 28px !important;
}

html[dir="ltr"] .rebear-svg,
body[dir="ltr"] .rebear-svg,
body.ltr .rebear-svg {
  transform: scaleX(-1);
  transform-origin: 50% 50%;
}

html[dir="ltr"] .robot-speech-bubble,
body[dir="ltr"] .robot-speech-bubble,
body.ltr .robot-speech-bubble {
  right: auto !important;
  left: -10px !important;
  border-radius: 20px 20px 20px 6px !important;
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] .speech-arrow,
body[dir="ltr"] .speech-arrow,
body.ltr .speech-arrow {
  right: auto !important;
  left: 48px !important;
  border-right: none !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  transform: rotate(-45deg) !important;
}

html[dir="ltr"] .search-icon,
body[dir="ltr"] .search-icon,
body.ltr .search-icon {
  right: auto !important;
  left: 12px !important;
}

html[dir="ltr"] .search-input,
body[dir="ltr"] .search-input,
body.ltr .search-input {
  padding: 8px 14px 8px 36px !important;
  direction: ltr !important;
  text-align: left !important;
}

html[dir="ltr"] .btn-card-details:hover svg,
html[dir="ltr"] .portfolio-grid-card .btn-card-details:hover svg,
html[dir="ltr"] .portfolio-grid-card:hover .btn-card-details:hover svg,
body.ltr .btn-card-details:hover svg {
  transform: translateX(4px) !important;
}

html[dir="ltr"] .btn-card-details:active svg,
html[dir="ltr"] .portfolio-grid-card .btn-card-details:active svg,
html[dir="ltr"] .portfolio-grid-card:hover .btn-card-details:active svg,
body.ltr .btn-card-details:active svg {
  transform: translateX(4px) translateY(0.5px) !important;
}

/* LTR Form Inputs */
html[dir="ltr"] .form-input,
html[dir="ltr"] .form-textarea,
html[dir="ltr"] .form-control-input,
html[dir="ltr"] .form-control-textarea,
html[dir="ltr"] .contact-form-panel input,
html[dir="ltr"] .contact-form-panel textarea,
html[dir="ltr"] .contact-form-panel select,
html[dir="ltr"] .direct-contact-form input,
html[dir="ltr"] .direct-contact-form textarea,
html[dir="ltr"] .direct-contact-form select,
html[dir="ltr"] .contact-modal-body input,
html[dir="ltr"] .contact-modal-body textarea,
html[dir="ltr"] .contact-modal-body select,
body.ltr .form-input,
body.ltr .form-textarea {
  direction: ltr !important;
  text-align: left !important;
}

/* ==========================================================================
   10. Primary Site Navigation & Floating Menu
   ========================================================================== */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 10px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
  white-space: nowrap;
}
.nav-primary-link:hover {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.nav-primary-link.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Designed sleek purple line below the active menu item */
.nav-primary-link.active::after,
.dk-nav-link.active::after,
.nl-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--brand-purple-light, #a855f7);
  border-radius: 3px;
}

.mobile-nav-primary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(124, 44, 165, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}
.mobile-nav-contact {
  background: rgba(124, 44, 165, 0.45) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* ==========================================================================
   11. Extended Modal Dialogs (Contact, About, Services)
   ========================================================================== */
.modal-dialog-large {
  max-width: 780px !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal-body-scroll {
  overflow-y: auto;
  max-height: calc(88vh - 120px);
  padding: 24px;
}
.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Modal Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.contact-card-item:hover {
  background: rgba(124, 44, 165, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}
.contact-card-icon {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.contact-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-card-val {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
}
.contact-card-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}
.map-coord-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--accent-orchid);
  text-decoration: none;
  margin-top: 6px;
  transition: color 0.2s;
}
.map-coord-link:hover {
  color: #e9d5ff;
  text-decoration: none;
}

.contact-social-row {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.social-row-title {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.social-badges-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: var(--glass-transition);
}

/* Direct Contact Form */
.contact-form-panel {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
}
.form-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}
.form-panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.direct-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}
/* ==========================================================================
   Contact Form Inputs, Textareas & Selects - High Legibility Vazirmatn
   ========================================================================== */
.form-input,
.form-textarea,
.form-control-input,
.form-control-textarea,
.contact-form-panel input,
.contact-form-panel textarea,
.contact-form-panel select,
.direct-contact-form input,
.direct-contact-form textarea,
.direct-contact-form select,
.contact-modal-body input,
.contact-modal-body textarea,
.contact-modal-body select,
#modal-contact input,
#modal-contact textarea,
#modal-contact select,
#contact-form input,
#contact-form textarea,
#contact-form select {
  width: 100%;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #f8fafc !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  direction: rtl;
  text-align: right;
}

.form-input:focus,
.form-textarea:focus,
.form-control-input:focus,
.form-control-textarea:focus,
.contact-form-panel input:focus,
.contact-form-panel textarea:focus,
.contact-form-panel select:focus,
.direct-contact-form input:focus,
.direct-contact-form textarea:focus,
.direct-contact-form select:focus,
.contact-modal-body input:focus,
.contact-modal-body textarea:focus,
.contact-modal-body select:focus {
  background: rgba(18, 13, 43, 0.98) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

/* Highly Legible Placeholder with Vazirmatn */
.form-input::placeholder,
.form-textarea::placeholder,
.form-control-input::placeholder,
.form-control-textarea::placeholder,
.contact-form-panel input::placeholder,
.contact-form-panel textarea::placeholder,
.direct-contact-form input::placeholder,
.direct-contact-form textarea::placeholder,
.contact-modal-body input::placeholder,
.contact-modal-body textarea::placeholder,
#modal-contact input::placeholder,
#modal-contact textarea::placeholder,
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #64748b !important;
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
}

/* Select dropdown options */
.form-input option,
.form-control-input option,
.contact-form-panel select option,
.direct-contact-form select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  font-family: var(--font-body) !important;
  padding: 8px !important;
}

.form-textarea,
.form-control-textarea {
  resize: vertical !important;
  min-height: 95px !important;
}
.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: var(--btn-h-lg);
  padding: 0 24px;
  border-radius: var(--btn-radius-default);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--btn-primary-border);
  cursor: pointer;
  margin-top: 8px;
  transition: var(--glass-transition) !important;
  box-shadow: var(--btn-primary-shadow);
}
.contact-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.contact-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* About & Services Modals Styling */
.about-hero-box {
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}
.about-lead-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f3e8ff;
  margin: 0 0 8px;
}
.about-lead-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin: 0;
}
.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
}
.about-pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
}
.about-pillar-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
}
.pillar-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}
.pillar-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}
.about-cta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(124, 44, 165, 0.12);
  border: 1px solid rgba(124, 44, 165, 0.3);
  border-radius: 14px;
}
@media (max-width: 640px) {
  .about-cta-footer {
    flex-direction: column;
    text-align: center;
  }
}
.about-cta-footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3e8ff;
}

/* Services Modal Cards */
.services-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .services-modal-grid {
    grid-template-columns: 1fr;
  }
}
.service-modal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  transition: all 0.25s ease;
}
.service-modal-card:hover {
  background: rgba(124, 44, 165, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}
.service-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.service-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}
.service-card-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   12. Multi-Column Rich Footer
   ========================================================================== */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr 1.1fr;
  gap: 28px;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}
.footer-slogan {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}
.footer-contact-col h4, .footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3e8ff;
  margin: 0 0 10px;
}
.footer-contact-col p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 4px 0;
  line-height: 1.6;
}
.footer-link-val {
  color: #c084fc;
  font-weight: 600;
  text-decoration: none;
}
.footer-link-val:hover {
  text-decoration: none;
  color: #e9d5ff;
}
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-social-links a {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social-links a:hover {
  color: #c084fc;
  transform: translateX(-3px);
}
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 0.78rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ==========================================================================
   13. Creative Blog Page & Article Reader
   ========================================================================== */
.blog-hero {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  text-align: center;
}
.blog-hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(124, 44, 165, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.blog-hero-desc {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 700px;
}
.blog-controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.blog-search-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 10px 40px 10px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
}
.blog-search-box input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}
.blog-search-box svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--glass-transition);
}
.blog-pill.active {
  background: rgba(124, 44, 165, 0.3);
  border-color: rgba(168, 85, 247, 0.6);
  color: #ffffff;
}

.blog-grid-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  background: rgba(26, 16, 48, 0.7);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.blog-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.blog-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}
.blog-card-readtime {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 10px;
}
.blog-card-excerpt {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-card-author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(124, 44, 165, 0.35);
  color: #d8b4fe;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-read-btn:hover {
  background: rgba(124, 44, 165, 0.35);
  border-color: #a855f7;
  color: #ffffff;
  transform: translateX(-2px);
}

/* Article Reader Typography */
.article-reader-content {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.9;
}
.article-reader-content .lead {
  font-size: 1.05rem;
  color: #f3e8ff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.article-reader-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 24px 0 10px;
}
.article-reader-content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-right: 4px solid #a855f7;
  background: rgba(124, 44, 165, 0.1);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #e9d5ff;
}
.article-reader-content ul {
  padding-right: 20px;
  margin: 12px 0;
}
.article-reader-content li {
  margin-bottom: 8px;
}

/* Project External Outbound Link (GA4) */
.client-outbound-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-orchid);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.client-outbound-link:hover {
  background: rgba(124, 44, 165, 0.3);
  border-color: var(--accent-orchid);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(124, 44, 165, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   11. Browse Site (Card View / Homepage Flow) Sections & Full Experience
   ========================================================================== */
.browse-section {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.12);
}

.browse-section-header {
  text-align: center;
  margin-bottom: 44px;
}

.browse-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(124, 44, 165, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.browse-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.browse-section-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Preview Cards */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.blog-preview-card {
  background: rgba(18, 14, 30, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.blog-preview-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 30px rgba(124, 44, 165, 0.15);
  transform: translateY(-3px);
}

.blog-preview-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 12px;
}

.blog-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.5;
}

.blog-preview-excerpt {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 20px;
  flex-grow: 1;
}

.blog-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-preview-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.blog-preview-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c084fc;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-preview-link:hover {
  color: #e9d5ff;
}

.blog-preview-empty { grid-column: 1 / -1; text-align: center; color: #94a3b8; padding: 40px 0; }
.blog-preview-cta {
  text-align: center;
  margin-top: 16px;
}

/* Browse Contact Section Layout */
.browse-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: rgba(18, 14, 30, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 36px;
}

@media (max-width: 860px) {
  .browse-contact-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* Agency Footer - Modern 4-Column Layout */
.site-main-footer {
  margin-top: 80px;
  padding: 56px 24px 28px;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  background: rgba(10, 7, 20, 0.96);
  backdrop-filter: blur(16px);
  color: #cbd5e1;
}

.footer-grid-row {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-grid-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-purple-light, #a855f7);
  border-radius: 2px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.8;
  margin: 0;
}

.footer-contact-list,
.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact-item a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #e9d5ff;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.footer-social-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

/* Trust Badges Grid & Cards (اینماد، ساماندهی، شرکت خلاق) */
.footer-trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-badge-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 24px rgba(124, 44, 165, 0.22);
  transform: translateY(-3px);
}

/* Grayscale and subdued inactive state by default */
.trust-badge-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.32s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Vibrant natural color on hover */
.trust-badge-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Hidden crawler container for official verification code/iframe */
.trust-crawler-verification-box {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.footer-brand-tagline {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 4px 0 0;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #d8b4fe;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #64748b;
}

.btn-back-to-top {
  height: var(--btn-h-sm, 34px);
  box-sizing: border-box;
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  padding: 0 16px;
  border-radius: 9999px;
  font-family: var(--font-body) !important;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--glass-transition) !important;
  line-height: 1;
}



/* ==========================================================================
   Featured Event & Workshop Spotlight Component (Top of Browse Site Mode)
   - Cosmic glassmorphism container
   - Rich event metadata pills (Date, Time, Location, Duration)
   - High-contrast direct action buttons (PDF/Banner & Registration)
   - Fully responsive for desktop, tablet, and mobile
   ========================================================================== */
.event-spotlight-section {
  max-width: 1200px;
  margin: 14px auto 44px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 90px;
}

.event-spotlight-card {
  position: relative;
  background: rgba(22, 14, 40, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: 24px;
  padding: 26px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(124, 44, 165, 0.16);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.event-spotlight-card:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(124, 44, 165, 0.25);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.event-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 44, 165, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f3e8ff;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(124, 44, 165, 0.2);
}

.event-badge-glow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #c084fc;
}

.event-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 32, 50, 0.14);
  border: 1px solid rgba(234, 32, 50, 0.45);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

.event-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea2032;
  box-shadow: 0 0 8px #ea2032;
  animation: eventPulse 2s infinite ease-in-out;
}

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

.event-tagline {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Event Content: 100% full-width layout without poster column */
.event-main-content,
.event-card-body {
  display: block;
  width: 100%;
}

.event-text-col,
.event-info-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.event-desc,
.event-description {
  color: #cbd5e1;
  font-size: 0.93rem;
  line-height: 1.82;
  margin: 0 0 22px 0;
  max-width: 95%;
}

/* Event Key Specifications: 4 columns on desktop, 2 on tablet, 1 on mobile */
.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 14px;
  padding: 12px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.event-meta-item:hover {
  background: rgba(124, 44, 165, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 44, 165, 0.18);
}

.event-meta-icon,
.meta-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  color: #c084fc;
}

.event-meta-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.event-meta-label,
.meta-label {
  font-size: 0.72rem;
  color: #c084fc;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-meta-val,
.meta-val {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Event Action Buttons: Modern Matching Pair */
.event-actions-group,
.event-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Button 1 (Secondary): Translucent Cyber Glass with Violet Contour */
.btn-event-page {
  height: var(--btn-h-lg) !important;
  box-sizing: border-box;
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid var(--btn-secondary-border) !important;
  padding: 0 24px !important;
  border-radius: var(--btn-radius-default) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--btn-secondary-shadow) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-event-page svg {
  stroke: #c084fc !important;
  width: 17px;
  height: 17px;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.btn-event-page:hover svg {
  stroke: #ffffff !important;
  transform: scale(1.1) translate(-1px, -1px);
}

.btn-event-page:active {
  transform: translateY(0) scale(0.99) !important;
}

/* Button 2 (Primary): Rabean Elevated Cosmic Violet/Orchid Gradient (Zero-Red Harmony) */
.btn-event-register {
  height: var(--btn-h-lg) !important;
  box-sizing: border-box;
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--btn-primary-border) !important;
  padding: 0 24px !important;
  border-radius: var(--btn-radius-default) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: var(--btn-primary-shadow) !important;
  transition: var(--glass-transition) !important;
}

.btn-event-register .btn-arrow-icon {
  stroke: #ffffff !important;
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

[dir="rtl"] .btn-event-register:hover .btn-arrow-icon {
  transform: translateX(-4px);
}

[dir="ltr"] .btn-event-register:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-event-register:active {
  transform: translateY(0) scale(0.99) !important;
}

/* Responsive Rules for Tablet & Mobile */
@media (max-width: 992px) {
  .event-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .event-spotlight-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .event-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .event-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .event-desc,
  .event-description {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 100%;
  }
  .event-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .event-spotlight-section {
    padding: 0 14px;
    margin: 10px auto 32px auto;
    scroll-margin-top: 80px;
  }
  .event-meta-item {
    padding: 11px 14px;
  }
  .event-meta-val,
  .meta-val {
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
  }
  .event-actions-group,
  .event-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-event-page,
  .btn-event-register {
    width: 100%;
    height: 46px;
    justify-content: center;
  }
}


/* ==========================================================================
   10. Hamburger Menu Drawer & 2-Tab Navigation System
   Ultra-clean top bar: only Brand Logo + Hamburger Menu Toggle button
   All primary & secondary options cleanly organized inside sliding drawer.
   ========================================================================== */

/* ==========================================================================
   Responsive Top Bar & Hamburger Toggle Logic
   ========================================================================== */

/* Desktop Header (min-width: 1280px with mouse, or min-width: 1367px): Full horizontal navigation & controls, hamburger hidden */
/* nav breakpoint: 1279px + touch <=1366px (doc 04 §6) */
@media (min-width: 1280px) and (hover: hover) and (pointer: fine), (min-width: 1367px) {
  .nav-primary,
  .dk-nav-primary,
  .nl-nav-primary {
    display: flex !important;
    align-items: center;
    gap: 18px;
  }
  .header-controls {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
  .header-controls .lang-dropdown-wrapper,
  .dk-header-actions .lang-dropdown-wrapper,
  .nl-header-actions .lang-dropdown-wrapper {
    display: block !important;
  }
  .header-controls .view-switcher {
    display: inline-flex !important;
  }
  .header-controls .btn-nav-rebear {
    display: inline-flex !important;
  }
  .nav-hamburger-btn {
    display: none !important;
  }
}

/* Mobile & Tablet Header (max-width: 1279px, or touch <= 1366px): Primary nav and bulky controls hidden, hamburger toggle visible */
/* nav breakpoint: 1279px + touch <=1366px (doc 04 §6) */
@media (max-width: 1279px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .nav-primary,
  .dk-nav-primary,
  .nl-nav-primary {
    display: none !important;
  }
  .header-controls > .lang-dropdown-wrapper,
  .dk-header-actions > .lang-dropdown-wrapper,
  .nl-header-actions > .lang-dropdown-wrapper,
  .header-controls > .view-switcher,
  .header-controls > .btn-nav-rebear {
    display: none !important;
  }
  .nav-hamburger-btn {
    display: inline-flex !important;
  }
}

/* Top bar Hamburger Toggle Button (Minimalist 3-line icon only) */
.nav-hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 9999px;
  color: #f8fafc;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.nav-hamburger-btn:hover {
  background: rgba(124, 44, 165, 0.25);
  border-color: rgba(206, 89, 234, 0.7);
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-1px) scale(1.05);
}

.nav-hamburger-btn:active {
  transform: scale(0.94);
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}

.nav-hamburger-btn:hover .hamburger-line {
  background: #f5d0fe;
}

/* Backdrop Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Sliding Drawer Panel */
.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(440px, 92vw);
  max-width: 100vw;
  background: rgba(13, 10, 26, 0.98);
  border-right: 1px solid rgba(124, 44, 165, 0.35);
  box-shadow: 14px 0 50px rgba(0, 0, 0, 0.85);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-panel.open {
  transform: translateX(0);
  visibility: visible;
}

/* LTR Direction Adaptation for Drawer (slides from right in LTR) */
html[dir="ltr"] .drawer-panel,
body[dir="ltr"] .drawer-panel,
body.ltr .drawer-panel {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(124, 44, 165, 0.35);
  box-shadow: -14px 0 50px rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  visibility: hidden;
}

html[dir="ltr"] .drawer-panel.open,
body[dir="ltr"] .drawer-panel.open,
body.ltr .drawer-panel.open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 14, 34, 0.65);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(124, 44, 165, 0.5));
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.drawer-brand-sub {
  font-size: 0.74rem;
  color: #c084fc;
  font-weight: 500;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff6b6b;
  transform: rotate(90deg);
}

/* Drawer Tabs Switcher (Tab 1: Main Menu vs Tab 2: View & Lang) */
.drawer-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(20, 15, 38, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.drawer-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.drawer-tab-btn.active {
  background: var(--brand-purple, #7c2ca5);
  color: #ffffff;
  border-color: rgba(206, 89, 234, 0.6);
  box-shadow: none;
}

/* Drawer Body & Panels */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  overscroll-behavior: contain;
}

.drawer-body::-webkit-scrollbar {
  width: 5px;
}
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(124, 44, 165, 0.4);
  border-radius: 4px;
}

.drawer-panel-content {
  display: none;
}

.drawer-panel-content.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: drawerFadeIn 0.25s ease;
}

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

/* Panel 1: Primary Nav Items */
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #f8fafc;
  transition: all 0.22s ease;
}

.drawer-nav-item:hover {
  background: rgba(124, 44, 165, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateX(-4px);
  box-shadow: 0 4px 18px rgba(124, 44, 165, 0.25);
}

html[dir="ltr"] .drawer-nav-item:hover,
body[dir="ltr"] .drawer-nav-item:hover,
body.ltr .drawer-nav-item:hover {
  transform: translateX(4px);
}

.drawer-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124, 44, 165, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9d5ff;
  flex-shrink: 0;
}

.drawer-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.drawer-nav-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.drawer-nav-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.4;
}

.drawer-nav-arrow {
  color: #64748b;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-nav-item:hover .drawer-nav-arrow {
  color: #ce59ea;
  transform: translateX(-3px);
}

html[dir="ltr"] .drawer-nav-item .drawer-nav-arrow,
body[dir="ltr"] .drawer-nav-item .drawer-nav-arrow,
body.ltr .drawer-nav-item .drawer-nav-arrow {
  transform: none;
}

html[dir="ltr"] .drawer-nav-item:hover .drawer-nav-arrow,
body[dir="ltr"] .drawer-nav-item:hover .drawer-nav-arrow,
body.ltr .drawer-nav-item:hover .drawer-nav-arrow {
  transform: translateX(3px);
}

.drawer-nav-item.active {
  background: rgba(124, 44, 165, 0.25);
  border-color: rgba(206, 89, 234, 0.6);
  box-shadow: 0 0 20px rgba(124, 44, 165, 0.3);
}

.drawer-nav-item-highlight {
  background: rgba(124, 44, 165, 0.22);
  border-color: rgba(206, 89, 234, 0.45);
}

/* Panel 2: Secondary Tab (View Switcher & Language Switcher) */
.drawer-section {
  margin-bottom: 20px;
}

.drawer-section:last-child {
  margin-bottom: 0;
}

.drawer-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.drawer-view-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-view-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  cursor: pointer;
  text-align: start;
  transition: all 0.2s ease;
  font-family: inherit;
}

.drawer-view-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
}

.drawer-view-btn.active {
  background: rgba(124, 44, 165, 0.35);
  border-color: rgba(206, 89, 234, 0.7);
  color: #ffffff;
  box-shadow: none;
}

.view-btn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.view-btn-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.view-btn-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Language Cards Grid */
.drawer-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-lang-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.2s ease;
  position: relative;
}

.drawer-lang-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.drawer-lang-card.active {
  background: rgba(124, 44, 165, 0.28);
  border-color: rgba(206, 89, 234, 0.7);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 44, 165, 0.3);
}

.lang-flag {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lang-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.lang-region {
  font-size: 0.72rem;
  color: #94a3b8;
}

.lang-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  position: absolute;
  top: 10px;
  left: 10px;
}

html[dir="ltr"] .lang-active-dot,
body[dir="ltr"] .lang-active-dot,
body.ltr .lang-active-dot {
  left: auto;
  right: 10px;
}

/* Dedicated Rebear Section C (Pinned at bottom of drawer) */
.drawer-footer-rebear {
  padding: 14px 20px 20px;
  background: rgba(16, 12, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.drawer-rebear-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(206, 89, 234, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
}

.drawer-rebear-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-rebear-card .rebear-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.rebear-card-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 32, 50, 0.2);
  border-radius: 10px;
}

.rebear-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  transition: all 0.25s ease;
}

.rebear-live-dot.is-docked {
  background: #94a3b8;
  box-shadow: none;
}

.rebear-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.rebear-card-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rebear-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.rebear-status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: all 0.25s ease;
}

.rebear-status-badge.is-docked {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

.rebear-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-rebear-btn {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transition: all 0.2s ease;
}

.drawer-rebear-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* Mobile Responsive Refinements to eliminate ANY horizontal overflow */
@media (max-width: 480px) {
  .header-container {
    padding: 0 14px;
  }
  .brand-logo-frame {
    gap: 8px;
  }
  .brand-mark-svg {
    height: 36px;
    width: 36px;
  }
  .brand-logotype-svg {
    height: 36px;
    max-width: 175px;
  }
  .nav-hamburger-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }
  .drawer-panel {
    width: 100% !important;
    width: 100vw !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  html[dir="ltr"] .drawer-panel,
  body[dir="ltr"] .drawer-panel,
  body.ltr .drawer-panel {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .drawer-tabs-nav {
    padding: 10px 14px;
    gap: 6px;
  }
  .drawer-tab-btn {
    padding: 9px 8px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .drawer-body {
    padding: 14px 14px;
  }
  .drawer-footer-rebear {
    padding: 12px 14px 16px;
  }
  .drawer-view-switcher,
  .drawer-lang-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile AMP Switcher Bar & Drawer Card (Requirement 3)
   ========================================================================== */
.mobile-amp-switcher-bar {
  display: none !important;
}

.drawer-amp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124, 44, 165, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  text-decoration: none;
  color: #f8fafc;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.drawer-amp-card:hover {
  background: rgba(124, 44, 165, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.amp-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amp-card-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.amp-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amp-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.amp-card-hint {
  font-size: 0.72rem;
  color: #fbbf24;
}

.amp-card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fde68a;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

html[dir="ltr"] .drawer-rebear-card,
body[dir="ltr"] .drawer-rebear-card {
  direction: ltr !important;
  flex-direction: row !important;
}

html[dir="ltr"] .drawer-rebear-card-left,
body[dir="ltr"] .drawer-rebear-card-left {
  direction: ltr !important;
  flex-direction: row !important;
}

html[dir="ltr"] .drawer-amp-card,
body[dir="ltr"] .drawer-amp-card {
  direction: ltr !important;
  flex-direction: row !important;
}

/* ==========================================================================
   Browse Site Grid Cards Action Area (Show All / Show Less Button)
   ========================================================================== */
.grid-cards-action-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 28px;
  width: 100%;
}

.btn-show-all-cards {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h-md); /* 40px */
  box-sizing: border-box;
  gap: 12px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  transition: var(--glass-transition) !important;
  user-select: none;
}

.btn-show-all-cards:active {
  transform: scale(0.97);
}

.btn-show-all-cards .btn-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #f5d0fe;
}

.btn-show-all-cards svg {
  transition: transform 0.28s ease;
}

.btn-show-all-cards.expanded svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .grid-cards-action-area {
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .btn-show-all-cards {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Rabean Noscript Warning Modal (Pure CSS - Zero JS Required)
   ========================================================================== */
.rabean-noscript-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background: rgba(8, 6, 17, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.rabean-noscript-modal {
  max-width: 620px;
  width: 100%;
  background: #0c0a18;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(124, 44, 165, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  color: #ffffff;
  font-family: var(--font-body);
}

.rabean-noscript-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-purple-light, #a855f7);
}

.rabean-noscript-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(124, 44, 165, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 25px rgba(124, 44, 165, 0.4);
}

.rabean-noscript-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(234, 32, 50, 0.15);
  border: 1px solid rgba(234, 32, 50, 0.4);
  color: #ff6b7b;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.rabean-noscript-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

.rabean-noscript-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 2;
  margin: 0 0 22px 0;
}

.rabean-noscript-steps {
  text-align: right;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 26px;
}

[dir="ltr"] .rabean-noscript-steps {
  text-align: left;
}

.rabean-noscript-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.7;
}

.rabean-noscript-step-item:last-child {
  margin-bottom: 0;
}

.rabean-noscript-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f5d0fe;
  font-size: 0.78rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.rabean-noscript-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.rabean-noscript-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h-lg);
  padding: 0 24px;
  border-radius: var(--btn-radius-default);
  background: var(--btn-primary-bg);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--btn-primary-shadow);
  border: 1px solid var(--btn-primary-border);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.rabean-noscript-btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-hover-shadow);
  color: #ffffff;
}

.rabean-noscript-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h-lg);
  padding: 0 22px;
  border-radius: var(--btn-radius-default);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--btn-secondary-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--btn-secondary-shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.rabean-noscript-btn-secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--btn-secondary-hover-border);
  color: #ffffff;
  box-shadow: var(--btn-secondary-hover-shadow);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .rabean-noscript-modal {
    padding: 28px 18px;
    border-radius: 20px;
  }
  .rabean-noscript-actions {
    flex-direction: column;
  }
  .rabean-noscript-btn-primary,
  .rabean-noscript-btn-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Rabean Cookie Preferences Modal & Notifications
   ========================================================================== */
.rabean-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 3, 10, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.rabean-cookie-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.rabean-cookie-modal {
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0c0a18;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(124, 44, 165, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: var(--font-body);
}

.rabean-cookie-backdrop.is-active .rabean-cookie-modal {
  transform: translateY(0) scale(1);
}

.rabean-cookie-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-purple-light, #a855f7);
  z-index: 2;
}

.rabean-cookie-header {
  padding: 26px 28px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rabean-cookie-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rabean-cookie-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(251, 166, 60, 0.12);
  border: 1px solid rgba(251, 166, 60, 0.35);
  color: #fba63c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rabean-cookie-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.rabean-cookie-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 3px;
}

.rabean-cookie-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.rabean-cookie-close-btn:hover {
  background: rgba(234, 32, 50, 0.2);
  color: #ff6b7b;
  border-color: rgba(234, 32, 50, 0.4);
}

.rabean-cookie-body {
  padding: 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rabean-cookie-lead {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0 0 6px 0;
}

.rabean-cookie-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rabean-cookie-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.25);
}

.rabean-cookie-item-info {
  flex: 1;
}

.rabean-cookie-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.rabean-cookie-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.rabean-cookie-badge-always {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.rabean-cookie-item-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Custom Cyber Switch Toggle */
.rabean-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rabean-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.rabean-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: all 0.28s ease;
}

.rabean-switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #cbd5e1;
  border-radius: 50%;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.rabean-switch input:checked + .rabean-switch-slider {
  background: var(--brand-purple, #7c2ca5);
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.rabean-switch input:checked + .rabean-switch-slider::before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.rabean-switch input:disabled + .rabean-switch-slider {
  opacity: 0.65;
  cursor: not-allowed;
}

.rabean-cookie-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 8, 18, 0.5);
}

.rabean-cookie-actions-main {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-save {
  height: var(--btn-h-md);
  padding: 0 22px;
  border-radius: var(--btn-radius-md);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--btn-primary-border);
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: var(--glass-transition) !important;
}

.btn-cookie-secondary {
  height: var(--btn-h-md);
  padding: 0 18px;
  border-radius: var(--btn-radius-md);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1.5px solid var(--btn-secondary-border);
  cursor: pointer;
  box-shadow: var(--btn-secondary-shadow);
  transition: var(--glass-transition) !important;
}

/* Toast confirmation (04-ui-standards.md section 5: max 44px, display: none when empty) */
.rabean-cookie-toast {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 100001;
  background: rgba(18, 14, 28, 0.95);
  border: 1px solid #4ade80;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(74, 222, 128, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  max-height: 44px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rabean-cookie-toast.is-shown {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* First-time Cookie Consent Banner / Corner Card (04-ui-standards.md section 5: max-width 380px) */
.rabean-cookie-banner {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 100000;
  max-width: 380px;
  width: calc(100% - 48px);
  background: rgba(18, 14, 28, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(124, 44, 165, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.rabean-cookie-banner-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0;
}

.rabean-cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rabean-cookie-banner-actions .btn-cookie-save,
.rabean-cookie-banner-actions .btn-cookie-secondary {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

html[dir="ltr"] .rabean-cookie-banner,
body[dir="ltr"] .rabean-cookie-banner {
  left: auto !important;
  right: 24px !important;
}

@media (max-width: 768px) {
  .cookie-floating-panel {
    bottom: 16px;
    left: 16px;
  }
  html[dir="ltr"] .cookie-floating-panel,
  body[dir="ltr"] .cookie-floating-panel,
  body.ltr .cookie-floating-panel {
    left: auto !important;
    right: 16px !important;
  }
  .rabean-cookie-toast {
    bottom: 76px;
    left: 16px;
  }
  html[dir="ltr"] .rabean-cookie-toast,
  body[dir="ltr"] .rabean-cookie-toast {
    left: auto !important;
    right: 16px !important;
  }
  .rabean-cookie-banner {
    bottom: 76px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: none;
  }
}

html[dir="ltr"] .rabean-cookie-toast,
body[dir="ltr"] .rabean-cookie-toast {
  left: auto !important;
  right: 24px !important;
}

@media (max-width: 640px) {
  .rabean-cookie-modal {
    max-height: 94vh;
    border-radius: 20px;
  }
  .rabean-cookie-header,
  .rabean-cookie-body,
  .rabean-cookie-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .rabean-cookie-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .rabean-cookie-actions-main {
    flex-direction: column;
  }
  .btn-cookie-save,
  .btn-cookie-secondary {
    width: 100%;
    text-align: center;
  }
}




/* ==========================================================================
   Rabean WooCommerce Dark Cosmic Theme & Components (Clean Buttons, No Neon)
   ========================================================================== */

.rabean-wc-page-wrapper {
  position: relative;
  min-height: 85vh;
  z-index: 10;
  padding: 40px 20px 80px;
}

.rabean-wc-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Header Cart Icon & Badge */
.header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #f3e8ff;
  transition: all 0.25s ease;
  text-decoration: none;
}

.header-cart-link:hover {
  background: rgba(124, 44, 165, 0.2);
  border-color: #a855f7;
  color: #ffffff;
}

.rabean-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ea2032;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #0d0a1a;
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.rabean-wc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.woocommerce-breadcrumb a,
.rabean-wc-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover,
.rabean-wc-breadcrumb a:hover {
  color: #c084fc;
}

/* Shop Hero & Title */
.rabean-shop-hero {
  text-align: center;
  padding: 30px 20px 45px;
  max-width: 820px;
  margin: 0 auto;
}

.rabean-shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(124, 44, 165, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.rabean-shop-hero-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.35;
}

.rabean-shop-hero-desc {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.9;
}

/* Product Sorting & Result Count Bar */
.woocommerce-notices-wrapper {
  margin-bottom: 24px;
}

.rabean-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(18, 14, 30, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.woocommerce-result-count {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.woocommerce-ordering select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.woocommerce-ordering select option {
  background: #18122B;
  color: #ffffff;
}

/* Products Grid */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 50px 0 !important;
}

ul.products::before,
ul.products::after {
  display: none !important;
}

li.product {
  background: rgba(18, 14, 30, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 22px !important;
  padding: 22px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

li.product:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Product Badges (Sale, Featured) */
li.product .onsale,
.single-product .onsale {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  margin: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: #ea2032 !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  z-index: 5 !important;
}

/* Product Thumbnail */
li.product a.woocommerce-LoopProduct-link {
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

li.product a.woocommerce-LoopProduct-link img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  margin-bottom: 16px !important;
  transition: transform 0.4s ease !important;
}

li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.03) !important;
}

/* Product Title */
li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  color: #ffffff !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

li.product:hover .woocommerce-loop-product__title {
  color: #c084fc !important;
}

/* Product Price (Clean styling) */
li.product .price,
.single-product .price {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  color: #c084fc !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

li.product .price del,
.single-product .price del {
  color: #64748b !important;
  font-size: 0.95rem !important;
}

li.product .price ins,
.single-product .price ins {
  text-decoration: none !important;
  color: var(--accent-orchid) !important;
  font-weight: 700 !important;
}

/* Add to Cart Button (Standard UI: size md = 40px, Simple, crisp, NO neon) */
li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce #place_order,
.woocommerce .wc-backward {
  background: #7c2ca5 !important;
  color: #ffffff !important;
  border: 1px solid #a855f7 !important;
  border-radius: 12px !important;
  height: var(--btn-h-md, 40px) !important;
  min-height: var(--btn-h-md, 40px) !important;
  max-height: var(--btn-h-md, 40px) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  padding: 0 20px !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: auto !important;
}

li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover,
.woocommerce .wc-backward:hover {
  background-color: var(--glass-tint-brand) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-edge), var(--glass-depth) !important;
  -webkit-backdrop-filter: var(--glass-filter) !important;
  backdrop-filter: var(--glass-filter) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Pagination */
.woocommerce-pagination {
  margin: 40px 0 20px !important;
  text-align: center !important;
}

.woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 8px !important;
  border: none !important;
  list-style: none !important;
  padding: 0 !important;
}

.woocommerce-pagination ul li {
  border: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  color: #e2e8f0 !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
  background: #7c2ca5 !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.single-product div.product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 860px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.single-product div.product div.images {
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

.single-product div.product div.images img {
  border-radius: 20px !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  width: 100% !important;
  height: auto !important;
  background: rgba(18, 14, 30, 0.6) !important;
}

.single-product div.product div.summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.single-product .product_title {
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
}

.single-product .woocommerce-product-details__short-description {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 2;
  margin-bottom: 24px;
}

.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.single-product .quantity input.qty,
.woocommerce-cart .quantity input.qty {
  width: 65px !important;
  height: var(--btn-h-md, 40px) !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: 1rem !important;
  text-align: center !important;
  outline: none !important;
}

.woocommerce-cart-form {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce .coupon button.button,
.woocommerce .coupon input.button {
  height: var(--btn-h-md, 40px) !important;
  line-height: 1 !important;
  padding: 0 16px !important;
}

.woocommerce .coupon input.input-text {
  height: var(--btn-h-md, 40px) !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #ffffff !important;
}

.single-product .product_meta {
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-product .product_meta a {
  color: #c084fc;
  text-decoration: none;
}

/* Tabs */
.woocommerce-tabs {
  margin-top: 50px;
}

.woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
  padding: 0 0 12px 0 !important;
  list-style: none !important;
  margin: 0 0 24px 0 !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 10px 22px !important;
  color: #94a3b8 !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
}

.woocommerce-tabs ul.tabs li.active {
  background: #7c2ca5 !important;
  border-color: #a855f7 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #ffffff !important;
}

.woocommerce-tabs .panel {
  background: rgba(18, 14, 30, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 32px;
  color: #cbd5e1;
  line-height: 2;
}

/* ==========================================================================
   Cart & Checkout Pages (Dark Glassmorphism)
   ========================================================================== */
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
  background: rgba(18, 14, 30, 0.75) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-bottom: 30px !important;
}

.woocommerce-cart table.cart th,
.woocommerce-checkout table.shop_table th {
  background: rgba(124, 44, 165, 0.15) !important;
  color: #f3e8ff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  padding: 16px 20px !important;
  border: none !important;
}

.woocommerce-cart table.cart td,
.woocommerce-checkout table.shop_table td {
  padding: 18px 20px !important;
  border-top: 1px solid rgba(168, 85, 247, 0.12) !important;
  border-bottom: none !important;
  color: #cbd5e1 !important;
}

.cart-collaterals .cart_totals {
  background: rgba(18, 14, 30, 0.75) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  float: none !important;
  width: 100% !important;
  max-width: 460px !important;
  margin-right: auto !important;
}

.cart-collaterals .cart_totals h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.4rem !important;
  color: #ffffff !important;
  margin-bottom: 18px !important;
}

/* Form Controls (Checkout & Login) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #a855f7 !important;
}

.woocommerce form .form-row label {
  color: #e2e8f0 !important;
  font-size: 0.88rem !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Payment Gateways */
#payment {
  background: rgba(18, 14, 30, 0.75) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 20px !important;
  padding: 24px !important;
}

#payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  list-style: none !important;
}

#payment ul.payment_methods li {
  padding: 12px 0 !important;
  color: #e2e8f0 !important;
}

#payment div.payment_box {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 12px !important;
  color: #94a3b8 !important;
  padding: 14px 18px !important;
}

#payment div.payment_box::before {
  display: none !important;
}

/* Notices & Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: rgba(18, 14, 30, 0.9) !important;
  border-radius: 14px !important;
  padding: 16px 22px !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #ffffff !important;
  margin-bottom: 24px !important;
  font-size: 0.92rem !important;
}

.woocommerce-message {
  border-left: 4px solid #10b981 !important;
}

.woocommerce-info {
  border-left: 4px solid var(--accent-amber) !important;
}

.woocommerce-error {
  border-left: 4px solid #ef4444 !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
  float: left !important;
  margin: 0 !important;
}

/* My Account Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  margin-bottom: 30px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 9px 20px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #7c2ca5 !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  background: rgba(18, 14, 30, 0.75) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  color: #cbd5e1 !important;
  line-height: 1.9 !important;
}





/* ==========================================================================
   Dedicated Page Templates Styles (Bundled from HTML Templates)
   ========================================================================== */


/* --- About Page Custom Styles --- */

.page-container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    .about-hero {
      text-align: center;
      padding: 40px 20px 60px;
      max-width: 860px;
      margin: 0 auto;
    }

    .about-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 16px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.8rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .about-hero-title {
      font-family: var(--font-heading);
      font-size: 2.3rem;
      color: #ffffff;
      margin-bottom: 18px;
      line-height: 1.4;
    }

    .about-hero-lead {
      font-family: var(--font-body);
      font-size: 1.12rem;
      color: #cbd5e1;
      line-height: 2.2;
    }

    .about-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      margin-bottom: 60px;
    }

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

    .about-card {
      background: rgba(18, 14, 30, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 24px;
      padding: 36px;
    }

    .about-card h3 {
      font-family: var(--font-heading);
      font-size: 1.4rem;
      color: #ffffff;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .about-card p {
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: #94a3b8;
      line-height: 2;
      margin: 0;
    }

    /* Branches Cards */
    .branches-section {
      margin-bottom: 60px;
    }

    .branches-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .branch-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 20px;
      padding: 24px;
      transition: all 0.3s ease;
    }

    .branch-card:hover {
      background: rgba(124, 44, 165, 0.12);
      border-color: #a855f7;
      transform: translateY(-4px);
    }

    .branch-flag {
      font-size: 2rem;
      margin-bottom: 12px;
    }

    .branch-title {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      color: #fff;
      margin-bottom: 6px;
    }

    .branch-city {
      font-size: 0.8rem;
      color: #c084fc;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .branch-desc {
      font-size: 0.82rem;
      color: #94a3b8;
      line-height: 1.7;
    }

    /* Values Grid */
    .values-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .value-item {
      padding: 20px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .value-item h4 {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      color: #e9d5ff;
      margin-bottom: 8px;
    }

    .value-item p {
      font-size: 0.82rem;
      color: #94a3b8;
      line-height: 1.7;
      margin: 0;
    }

    .about-values-box {
      background: rgba(18, 14, 30, 0.6);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 28px;
      padding: 40px 32px;
      margin-bottom: 60px;
    }
    .about-values-title {
      font-family: var(--font-heading);
      color: #fff;
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 8px;
    }
    .about-values-lead {
      color: #94a3b8;
      font-size: 0.9rem;
      text-align: center;
      margin-bottom: 30px;
    }
    .about-branches-head {
      text-align: center;
      max-width: 650px;
      margin: 0 auto 30px;
    }
    .about-branches-title {
      font-family: var(--font-heading);
      color: #fff;
      font-size: 1.8rem;
      margin-bottom: 10px;
    }
    .about-branches-lead {
      color: #94a3b8;
      font-size: 0.95rem;
    }
    .about-action-box {
      text-align: center;
      padding: 40px 20px;
      background: rgba(30, 15, 45, 0.7);
      border: 1px solid rgba(168, 85, 247, 0.3);
      border-radius: 24px;
    }
    .about-action-title {
      font-family: var(--font-heading);
      color: #fff;
      font-size: 1.4rem;
      margin-bottom: 12px;
    }
    .about-action-desc {
      color: #cbd5e1;
      font-size: 0.95rem;
      max-width: 580px;
      margin: 0 auto 24px;
    }
    .about-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #7c2ca5;
      border-color: #a855f7;
      height: var(--btn-h-md, 40px);
      box-sizing: border-box;
      padding: 0 20px;
      text-decoration: none;
      font-size: 0.9rem;
    }


/* --- Services Page Custom Styles --- */

.page-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    .services-hero {
      text-align: center;
      padding: 40px 20px 60px;
      max-width: 820px;
      margin: 0 auto;
    }

    .services-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 16px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.8rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .services-hero-title {
      font-family: var(--font-heading);
      font-size: 2.4rem;
      color: #ffffff;
      margin-bottom: 16px;
      line-height: 1.35;
    }

    .services-hero-desc {
      font-family: var(--font-body);
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 2;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 28px;
      margin-bottom: 70px;
    }

    .service-detailed-card {
      background: rgba(18, 14, 30, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 24px;
      padding: 32px;
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }

    .service-detailed-card:hover {
      transform: translateY(-6px);
      border-color: rgba(168, 85, 247, 0.45);
      box-shadow: 0 16px 40px rgba(124, 44, 165, 0.2);
    }

    .service-card-icon {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      font-size: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .service-card-title {
      font-family: var(--font-heading);
      font-size: 1.35rem;
      color: #ffffff;
      margin-bottom: 12px;
    }

    .service-card-desc {
      font-family: var(--font-body);
      font-size: 0.92rem;
      color: #94a3b8;
      line-height: 1.85;
      margin-bottom: 20px;
      flex-grow: 1;
    }

    .service-deliverables {
      margin: 0 0 24px 0;
      padding: 16px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .service-deliverables-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: #c084fc;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .service-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .service-tag {
      font-size: 0.75rem;
      padding: 3px 9px;
      border-radius: 8px;
      background: rgba(168, 85, 247, 0.12);
      color: #e9d5ff;
      border: 1px solid rgba(168, 85, 247, 0.25);
    }

    .service-card-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 18px;
      margin-top: auto;
    }

    .service-btn-inquire {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: var(--btn-h-sm); /* 34px */
      box-sizing: border-box;
      gap: 8px;
      padding: 0 16px;
      line-height: 1;
      border-radius: 12px;
      background: var(--brand-purple, #7c2ca5);
      color: #ffffff;
      font-size: 0.82rem;
      font-weight: 700;
      text-decoration: none;
      border: 1px solid rgba(192, 132, 252, 0.35);
      transition: all 0.25s ease;
    }

    .service-btn-inquire:hover {
      background: #a855f7;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(124, 44, 165, 0.35);
    }

    /* Process Flow */
    .process-section {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 28px;
      padding: 44px 32px;
      margin-bottom: 60px;
      text-align: center;
    }

    .process-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 24px;
      margin-top: 36px;
      text-align: right;
    }

    .process-step-card {
      background: rgba(18, 14, 30, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
      padding: 24px;
      position: relative;
    }

    .process-step-num {
      font-family: var(--font-heading);
      font-size: 1.8rem;
      font-weight: 900;
      color: #a855f7;
      margin-bottom: 8px;
    }

    .service-card-icon--branding {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border-color: rgba(168, 85, 247, 0.3);
    }

    .service-card-icon--web {
      background: rgba(206, 89, 234, 0.15);
      color: #ce59ea;
      border-color: rgba(206, 89, 234, 0.3);
    }

    .service-card-icon--social {
      background: rgba(236, 72, 153, 0.15);
      color: #f472b6;
      border-color: rgba(236, 72, 153, 0.3);
    }

    .service-card-icon--packaging {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border-color: rgba(245, 158, 11, 0.3);
    }

    .service-card-icon--event {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border-color: rgba(16, 185, 129, 0.3);
    }

    .service-card-icon--consulting {
      background: rgba(139, 92, 246, 0.15);
      color: #a78bfa;
      border-color: rgba(139, 92, 246, 0.3);
    }

    .service-duration {
      font-size: 0.78rem;
      color: #64748b;
      font-family: var(--font-body);
    }

    .process-title {
      font-family: var(--font-heading);
      color: #ffffff;
      font-size: 1.8rem;
      margin-bottom: 12px;
    }

    .process-lead {
      font-family: var(--font-body);
      color: #94a3b8;
      font-size: 0.95rem;
      max-width: 620px;
      margin: 0 auto;
    }

    .process-step-title {
      font-family: var(--font-heading);
      color: #ffffff;
      font-size: 1.1rem;
      margin-bottom: 8px;
    }

    .process-step-desc {
      font-family: var(--font-body);
      color: #94a3b8;
      font-size: 0.82rem;
      line-height: 1.7;
      margin: 0;
    }


/* --- Contact Page Custom Styles --- */

.page-container {
      max-width: 1180px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    .contact-hero {
      text-align: center;
      padding: 40px 20px 50px;
      max-width: 820px;
      margin: 0 auto;
    }

    .contact-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 16px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.8rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .contact-hero-title {
      font-family: var(--font-heading);
      font-size: 2.3rem;
      color: #ffffff;
      margin-bottom: 16px;
      line-height: 1.35;
    }

    .contact-hero-desc {
      font-family: var(--font-body);
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 2;
    }

    /* Branch Switcher Tabs */
    .branch-tabs-container {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .branch-tab-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: var(--btn-h-md, 40px);
      box-sizing: border-box;
      gap: 8px;
      padding: 0 20px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(168, 85, 247, 0.2);
      color: #cbd5e1;
      font-family: var(--font-body);
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .branch-tab-btn:hover {
      background: rgba(124, 44, 165, 0.15);
      border-color: #a855f7;
      color: #fff;
    }

    .branch-tab-btn.active {
      background: var(--brand-purple, #7c2ca5);
      border-color: #c084fc;
      color: #ffffff;
      box-shadow: 0 4px 16px rgba(124, 44, 165, 0.35);
    }

    /* 2 Columns: Branch Info & Contact Form */
    .contact-layout-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 36px;
      align-items: start;
    }

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

    .branch-info-card {
      background: rgba(18, 14, 30, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 24px;
      padding: 36px 30px;
    }

    .branch-info-card h3 {
      font-family: var(--font-heading);
      font-size: 1.35rem;
      color: #ffffff;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .contact-detail-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 22px;
      font-family: var(--font-body);
    }

    .contact-detail-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: rgba(124, 44, 165, 0.18);
      border: 1px solid rgba(168, 85, 247, 0.28);
      color: #c084fc;
    }

    .contact-detail-content {
      flex: 1;
    }

    .contact-detail-label {
      font-size: 0.75rem;
      color: #94a3b8;
      margin-bottom: 4px;
      font-weight: 500;
    }

    .contact-detail-value {
      font-size: 0.95rem;
      color: #ffffff;
      font-weight: 600;
      line-height: 1.6;
    }

    .contact-detail-value a {
      color: #c084fc;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .contact-detail-value a:hover {
      color: #e9d5ff;
      text-decoration: none;
    }

    .contact-address-text {
      font-size: 0.88rem;
      line-height: 1.7;
      color: #cbd5e1;
    }

    .contact-telegram-link {
      color: var(--accent-orchid, #c084fc);
    }

    .contact-hours-box {
      margin-top: 28px;
      padding: 14px 18px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.8rem;
      color: #94a3b8;
      font-family: var(--font-body);
    }

    .contact-hours-label {
      color: #c084fc;
      font-weight: 700;
    }

    /* Luxury Contact Form */
    .contact-form-card {
      background: rgba(18, 14, 30, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 24px;
      padding: 36px 32px;
    }

    .contact-form-card h3 {
      font-family: var(--font-heading);
      font-size: 1.35rem;
      color: #ffffff;
      margin-bottom: 8px;
    }

    .contact-form-card p.subtitle {
      font-size: 0.85rem;
      color: #94a3b8;
      margin-bottom: 28px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: #e2e8f0;
      margin-bottom: 8px;
    }

    .form-group label span.req {
      color: #f43f5e;
    }

    /* Explicit Vazirmatn font and luxury dark background on all inputs */
    .contact-input,
    .contact-select,
    .contact-textarea {
      width: 100%;
      box-sizing: border-box;
      background: rgba(10, 7, 20, 0.8) !important;
      border: 1.5px solid rgba(168, 85, 247, 0.28) !important;
      border-radius: 12px !important;
      color: #ffffff !important;
      font-family: var(--font-body) !important;
      font-size: 0.92rem !important;
      padding: 12px 16px !important;
      outline: none !important;
      transition: all 0.3s ease !important;
    }

    .contact-input:focus,
    .contact-select:focus,
    .contact-textarea:focus {
      background: rgba(18, 12, 34, 0.95) !important;
      border-color: #a855f7 !important;
      box-shadow: 0 0 16px rgba(168, 85, 247, 0.35) !important;
    }

    .contact-input::placeholder,
    .contact-textarea::placeholder {
      font-family: var(--font-body) !important;
      color: #64748b !important;
      font-size: 0.85rem !important;
    }

    .form-btn-submit {
      width: 100%;
      background: var(--brand-purple, #7c2ca5);
      color: #ffffff;
      border: 1px solid rgba(192, 132, 252, 0.35);
      border-radius: 12px;
      height: var(--btn-h-lg); /* 46px */
      box-sizing: border-box;
      padding: 0 24px;
      line-height: 1;
      font-family: var(--font-heading);
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 18px rgba(124, 44, 165, 0.35);
      transition: all 0.3s ease;
    }

    .form-btn-submit:hover {
      background: #a855f7;
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(124, 44, 165, 0.45);
    }

    .form-success-banner {
      display: none;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: #34d399;
      border-radius: 14px;
      padding: 16px;
      font-size: 0.88rem;
      margin-top: 20px;
      text-align: center;
    }


/* --- Resume Page Custom Styles --- */

.page-container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    /* Hero Section */
    .team-hero {
      text-align: center;
      padding: 40px 20px 50px;
      max-width: 900px;
      margin: 0 auto;
    }

    .team-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 18px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.84rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .team-hero-title {
      font-family: var(--font-heading);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      color: #ffffff;
      margin-bottom: 18px;
      line-height: 1.35;
      font-weight: 900;
    }

    .team-hero-lead {
      font-family: var(--font-body);
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 2.1;
      margin: 0 auto 30px;
      max-width: 760px;
    }

    /* Filter & Search Bar */
    .team-controls-bar {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      margin-bottom: 48px;
    }

    .team-filter-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .team-pill-btn {
      height: var(--btn-h-md, 40px);
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 18px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.04);
      color: #cbd5e1;
      border: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      font-family: var(--font-body);
    }

    .team-pill-btn:hover {
      background: rgba(168, 85, 247, 0.15);
      border-color: rgba(168, 85, 247, 0.4);
      color: #ffffff;
    }

    .team-pill-btn.active {
      background: var(--brand-purple, #7c2ca5);
      border-color: #c084fc;
      color: #ffffff;
      box-shadow: 0 4px 18px rgba(124, 44, 165, 0.4);
    }

    .team-search-box {
      width: 100%;
      max-width: 420px;
      position: relative;
    }

    .team-search-input {
      width: 100%;
      padding: 12px 44px 12px 18px;
      border-radius: 9999px;
      background: rgba(18, 14, 28, 0.85);
      border: 1px solid rgba(168, 85, 247, 0.25);
      color: #ffffff;
      font-size: 0.9rem;
      font-family: var(--font-body);
      outline: none;
      transition: all 0.3s ease;
    }

    .team-search-input:focus {
      border-color: #c084fc;
      box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
      background: rgba(22, 16, 36, 0.95);
    }

    .team-search-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      pointer-events: none;
    }

    /* Grid of Team Cards */
    .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 32px;
      margin-bottom: 64px;
    }

    @media (max-width: 768px) {
      .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

    /* Cyber-Glass Profile Card */
    .member-card {
      position: relative;
      background: #080611;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 28px;
      padding: 32px 28px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.08);
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }

    .member-card:hover {
      border-color: rgba(192, 132, 252, 0.35);
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 32px rgba(147, 51, 234, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.16);
      transform: translateY(-4px);
      background: #140d28;
    }

    /* Card Header: Avatar & Status */
    .member-card-header {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 20px;
    }

    .member-avatar-wrap {
      position: relative;
      width: 76px;
      height: 76px;
      min-width: 76px;
      min-height: 76px;
      border-radius: 50%;
      padding: 3px;
      background: var(--brand-purple, #7c2ca5);
      box-shadow: 0 8px 24px rgba(124, 44, 165, 0.35);
    }

    .member-avatar-img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      background: #151124;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: #ffffff;
      font-weight: 800;
    }

    .member-avatar-img--hb { background: #260f41; }
    .member-avatar-img--nd { background: #4a1d96; }
    .member-avatar-img--af { background: #4a1d96; }
    .member-avatar-img--sm { background: #881337; }
    .member-avatar-img--az { background: #78350f; }
    .member-avatar-img--db { background: #7c2d12; }
    .member-avatar-img--mn { background: #064e3b; }

    .member-status-dot {
      position: absolute;
      bottom: 3px;
      left: 3px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #22c55e;
      border: 2.5px solid #080611;
      box-shadow: 0 0 10px #22c55e;
    }

    .member-intro {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .member-name {
      font-family: var(--font-heading);
      font-size: 1.35rem;
      font-weight: 800;
      color: #ffffff;
      margin: 0;
      line-height: 1.3;
    }

    .member-role {
      font-size: 0.88rem;
      font-weight: 600;
      color: #d8b4fe;
      margin: 0;
    }

    .member-role-en {
      font-size: 0.74rem;
      color: #94a3b8;
      font-family: var(--font-body);
      direction: ltr;
      text-align: right;
    }

    /* Department Tag */
    .member-dept-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.76rem;
      color: #cbd5e1;
      width: fit-content;
      margin-bottom: 14px;
      font-weight: 600;
    }

    /* Bio */
    .member-bio {
      font-size: 0.88rem;
      color: #cbd5e1;
      line-height: 1.85;
      margin-bottom: 18px;
      flex-grow: 1;
    }

    /* Skills Badges */
    .member-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 20px;
    }

    .skill-badge {
      padding: 3px 10px;
      border-radius: 6px;
      background: rgba(168, 85, 247, 0.1);
      border: 1px solid rgba(168, 85, 247, 0.22);
      color: #e9d5ff;
      font-size: 0.74rem;
      font-weight: 500;
      direction: ltr;
      display: inline-block;
    }

    /* Divider */
    .member-divider {
      border: 0;
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
      margin: 0 0 16px 0;
    }

    /* Footer: Social Profile Icons & Portfolio Link */
    .member-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
    }

    .member-social-links {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .social-icon-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #cbd5e1;
      text-decoration: none;
      transition: all 0.25s ease;
    }

    .social-icon-btn:hover {
      background: rgba(168, 85, 247, 0.3);
      border-color: #c084fc;
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
    }

    .member-portfolio-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.82rem;
      color: #d8b4fe;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.25s ease;
    }

    .member-portfolio-link:hover {
      color: #ffffff;
    }

    /* Join Team Banner */
    .join-team-banner {
      background: rgba(20, 10, 32, 0.85);
      border: 1px solid rgba(168, 85, 247, 0.3);
      border-radius: 28px;
      padding: 48px 36px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
      margin-top: 40px;
    }

    .join-team-title {
      font-family: var(--font-heading);
      font-size: 1.8rem;
      color: #ffffff;
      margin-bottom: 12px;
      font-weight: 800;
    }

    .join-team-desc {
      font-size: 0.98rem;
      color: #cbd5e1;
      max-width: 640px;
      margin: 0 auto 26px;
      line-height: 2;
    }

    .join-team-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--brand-purple, #7c2ca5);
      border: 1px solid #a855f7;
      height: var(--btn-h-lg, 46px);
      box-sizing: border-box;
      padding: 0 24px;
      text-decoration: none;
      font-size: 0.95rem;
      border-radius: 14px;
      color: #ffffff;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .join-team-btn:hover {
      background: #9333ea;
      border-color: #c084fc;
      color: #ffffff;
      box-shadow: 0 4px 18px rgba(124, 44, 165, 0.4);
    }


/* --- CSR Page Custom Styles --- */

.page-container {
      max-width: 1220px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    /* Hero */
    .csr-hero {
      text-align: center;
      padding: 40px 20px 50px;
      max-width: 980px;
      margin: 0 auto;
    }

    .csr-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: 9999px;
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(52, 211, 153, 0.35);
      font-size: 0.85rem;
      font-weight: 700;
      margin-bottom: 22px;
    }

    .csr-hero-title {
      font-family: var(--font-heading);
      font-size: clamp(2rem, 4.2vw, 3.2rem);
      color: #ffffff;
      margin-bottom: 20px;
      line-height: 1.35;
      font-weight: 900;
    }

    .csr-hero-lead {
      font-family: var(--font-body);
      font-size: 1.1rem;
      color: #cbd5e1;
      line-height: 2.2;
      margin: 0 auto 34px;
    }

    /* Key Impact Metrics Grid */
    .csr-metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-bottom: 50px;
    }

    .csr-metric-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 20px;
      padding: 24px;
      text-align: center;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: all 0.25s ease;
    }

    .csr-metric-card:hover {
      background: rgba(124, 44, 165, 0.12);
      border-color: #a855f7;
      transform: translateY(-3px);
    }

    .csr-metric-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
    }

    .csr-metric-icon--carbon {
      background: rgba(16, 185, 129, 0.2);
      color: #34d399;
    }

    .csr-metric-icon--probono {
      background: rgba(168, 85, 247, 0.2);
      color: #c084fc;
    }

    .csr-metric-icon--mentor {
      background: rgba(45, 212, 191, 0.2);
      color: #2dd4bf;
    }

    .csr-metric-icon--ethics {
      background: rgba(244, 114, 182, 0.2);
      color: #f472b6;
    }

    .csr-metric-val {
      font-family: var(--font-heading);
      font-size: 2.1rem;
      font-weight: 900;
      color: #ffffff;
      margin-bottom: 6px;
      line-height: 1.2;
    }

    .csr-metric-label {
      font-size: 0.88rem;
      color: #94a3b8;
      line-height: 1.6;
    }

    /* Section Cards with Cosmic Radial Gradients */
    .csr-section {
      margin-bottom: 50px;
      background: #080611;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 28px;
      padding: 44px 38px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
    }

    @media (max-width: 768px) {
      .csr-section {
        padding: 28px 20px;
        border-radius: 20px;
      }
    }

    .csr-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 28px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .csr-section-title-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .csr-section-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: rgba(124, 44, 165, 0.22);
      border: 1px solid rgba(168, 85, 247, 0.35);
      color: #c084fc;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .csr-section-icon--green {
      background: rgba(16, 185, 129, 0.2);
      border-color: rgba(52, 211, 153, 0.4);
      color: #34d399;
    }

    .csr-section-icon--heritage {
      background: rgba(234, 88, 12, 0.2);
      border-color: rgba(251, 146, 60, 0.4);
      color: #fb923c;
    }

    .csr-section-icon--society {
      background: rgba(168, 85, 247, 0.2);
      border-color: rgba(192, 132, 252, 0.4);
      color: #c084fc;
    }

    .csr-section-icon--education {
      background: rgba(206, 89, 234, 0.2);
      border-color: rgba(206, 89, 234, 0.4);
      color: #ce59ea;
    }

    .csr-section-icon--digital {
      background: rgba(244, 63, 94, 0.2);
      border-color: rgba(251, 113, 133, 0.4);
      color: #fb7185;
    }

    .csr-section-title {
      font-family: var(--font-heading);
      font-size: clamp(1.3rem, 2.6vw, 1.85rem);
      color: #ffffff;
      margin: 0;
      font-weight: 800;
      line-height: 1.35;
    }

    .csr-section-badge {
      font-family: var(--font-body);
      font-size: 0.8rem;
      padding: 4px 14px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #a855f7;
      font-weight: 600;
    }

    .csr-content {
      font-size: 1rem;
      color: #cbd5e1;
      line-height: 2.15;
    }

    .csr-content p {
      margin-top: 0;
      margin-bottom: 20px;
    }

    .csr-content p:last-child {
      margin-bottom: 0;
    }

    /* 2 & 3 Column Grids */
    .csr-grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 24px;
      margin-top: 28px;
    }

    .csr-grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 28px;
    }

    .csr-card-sub {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 18px;
      padding: 26px;
      transition: all 0.25s ease;
    }

    .csr-card-sub:hover {
      background: rgba(124, 44, 165, 0.08);
      border-color: rgba(168, 85, 247, 0.35);
      transform: translateY(-2px);
    }

    .csr-card-sub h3 {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      color: #f3e8ff;
      margin: 0 0 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .csr-card-sub p {
      margin: 0;
      font-size: 0.92rem;
      color: #94a3b8;
      line-height: 1.9;
    }

    /* Highlight Banner Box */
    .csr-highlight-box {
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(52, 211, 153, 0.3);
      border-radius: 20px;
      padding: 24px 28px;
      margin: 28px 0;
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .csr-highlight-icon {
      color: #34d399;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .csr-highlight-text h4 {
      font-family: var(--font-heading);
      font-size: 1.1rem;
      color: #a7f3d0;
      margin: 0 0 8px;
    }

    .csr-highlight-text p {
      margin: 0;
      font-size: 0.92rem;
      color: #d1fae5;
      line-height: 1.85;
    }

    /* Manifesto Principles */
    .csr-manifesto-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 18px;
      margin-top: 24px;
    }

    .csr-manifesto-item {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }

    .csr-manifesto-num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(124, 44, 165, 0.35);
      border: 1px solid rgba(168, 85, 247, 0.4);
      color: #e9d5ff;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .csr-manifesto-text h4 {
      font-family: var(--font-heading);
      font-size: 1rem;
      color: #ffffff;
      margin: 0 0 6px;
    }

    .csr-manifesto-text p {
      margin: 0;
      font-size: 0.86rem;
      color: #94a3b8;
      line-height: 1.75;
    }

    /* CTA Card with Clean Matte Button */
    .csr-probono-cta {
      background: rgba(20, 14, 34, 0.85);
      border: 1px solid rgba(168, 85, 247, 0.35);
      border-radius: 28px;
      padding: 44px 32px;
      text-align: center;
      margin-top: 50px;
    }

    .csr-probono-title {
      font-family: var(--font-heading);
      font-size: clamp(1.4rem, 2.8vw, 2.1rem);
      color: #ffffff;
      margin: 0 0 16px;
      font-weight: 800;
    }

    .csr-probono-desc {
      font-size: 1rem;
      color: #cbd5e1;
      max-width: 680px;
      margin: 0 auto 28px;
      line-height: 2;
    }

    .csr-probono-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
    }

    .btn-csr-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #7c2ca5;
      color: #ffffff;
      height: var(--btn-h-lg); /* 46px */
      box-sizing: border-box;
      padding: 0 24px;
      line-height: 1;
      border-radius: 12px;
      border: 1px solid #9333ea;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      box-shadow: none !important;
      transition: var(--glass-transition) !important;
    }

    .btn-csr-secondary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      color: #e2e8f0;
      height: var(--btn-h-lg); /* 46px */
      box-sizing: border-box;
      padding: 0 22px;
      line-height: 1;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      font-family: inherit;
      font-size: 0.92rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      box-shadow: none !important;
      transition: var(--glass-transition) !important;
    }


/* --- Privacy Page Custom Styles --- */

.page-container {
      max-width: 1180px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    /* Privacy Hero */
    .privacy-hero {
      text-align: center;
      padding: 40px 20px 50px;
      max-width: 960px;
      margin: 0 auto;
    }

    .privacy-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.85rem;
      font-weight: 700;
      margin-bottom: 22px;
    }

    .privacy-hero-title {
      font-family: var(--font-heading);
      font-size: clamp(2rem, 4vw, 3rem);
      color: #ffffff;
      margin-bottom: 20px;
      line-height: 1.35;
      font-weight: 900;
    }

    .privacy-hero-lead {
      font-family: var(--font-body);
      font-size: 1.08rem;
      color: #cbd5e1;
      line-height: 2.1;
      margin: 0 auto 30px;
    }

    /* Quick Meta Pills */
    .privacy-meta-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin-bottom: 40px;
    }

    .privacy-meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 9999px;
      padding: 6px 16px;
      font-size: 0.82rem;
      color: #94a3b8;
    }

    .privacy-meta-pill strong {
      color: #e2e8f0;
    }

    /* Quick Table of Contents / Navigator */
    .privacy-toc-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(168, 85, 247, 0.22);
      border-radius: 24px;
      padding: 24px 28px;
      margin-bottom: 48px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .privacy-toc-title {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      color: #e9d5ff;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .privacy-toc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
    }

    .privacy-toc-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 12px;
      color: #cbd5e1;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.22s ease;
    }

    .privacy-toc-link:hover {
      background: rgba(124, 44, 165, 0.25);
      border-color: #9333ea;
      color: #ffffff;
      transform: translateY(-1px);
    }

    .privacy-toc-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: rgba(124, 44, 165, 0.4);
      color: #e9d5ff;
      font-size: 0.76rem;
      font-weight: 700;
      flex-shrink: 0;
    }

    /* Policy Section Cards */
    .policy-section {
      margin-bottom: 40px;
      background: #080611;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 28px;
      padding: 40px 36px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
      scroll-margin-top: 90px;
    }

    @media (max-width: 768px) {
      .policy-section {
        padding: 28px 20px;
        border-radius: 20px;
      }
    }

    .policy-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 24px;
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .policy-section-title-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .policy-section-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(124, 44, 165, 0.2);
      border: 1px solid rgba(168, 85, 247, 0.3);
      color: #c084fc;
      flex-shrink: 0;
    }

    .policy-section-title {
      font-family: var(--font-heading);
      font-size: clamp(1.25rem, 2.5vw, 1.7rem);
      color: #ffffff;
      margin: 0;
      font-weight: 800;
      line-height: 1.4;
    }

    .policy-section-badge {
      font-family: var(--font-body);
      font-size: 0.78rem;
      padding: 4px 12px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #a855f7;
      font-weight: 600;
    }

    .policy-content {
      font-size: 0.98rem;
      color: #cbd5e1;
      line-height: 2.15;
    }

    .policy-content p {
      margin-top: 0;
      margin-bottom: 18px;
    }

    .policy-content p:last-child {
      margin-bottom: 0;
    }

    .policy-content h3 {
      font-family: var(--font-heading);
      font-size: 1.2rem;
      color: #e9d5ff;
      margin: 28px 0 14px;
      font-weight: 700;
    }

    .policy-content ul, .policy-content ol {
      margin: 14px 0 20px 24px;
      padding-right: 10px;
    }

    .policy-content li {
      margin-bottom: 10px;
      color: #cbd5e1;
    }

    /* Warning / Notice Box */
    .policy-alert-box {
      display: flex;
      gap: 14px;
      padding: 18px 22px;
      border-radius: 18px;
      margin: 24px 0;
      font-size: 0.92rem;
      line-height: 1.85;
    }

    .policy-alert-warning {
      background: rgba(234, 179, 8, 0.1);
      border: 1px solid rgba(234, 179, 8, 0.35);
      color: #fef08a;
    }

    .policy-alert-info {
      background: rgba(124, 44, 165, 0.16);
      border: 1px solid rgba(168, 85, 247, 0.3);
      color: #e9d5ff;
    }

    .policy-alert-security {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.35);
      color: #fecaca;
    }

    .policy-alert-icon {
      flex-shrink: 0;
      margin-top: 3px;
    }

    /* Table Styling */
    .policy-table-wrapper {
      overflow-x: auto;
      margin: 24px 0;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(10, 6, 20, 0.6);
    }

    .policy-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.88rem;
      text-align: right;
    }

    .policy-table th {
      background: rgba(124, 44, 165, 0.22);
      color: #e9d5ff;
      padding: 14px 18px;
      font-weight: 700;
      border-bottom: 1px solid rgba(168, 85, 247, 0.3);
      white-space: nowrap;
    }

    .policy-table td {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      color: #cbd5e1;
      line-height: 1.7;
    }

    .policy-table tr:last-child td {
      border-bottom: none;
    }

    .policy-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Interactive Cookie Action Card */
    .cookie-action-banner {
      background: rgba(124, 44, 165, 0.15);
      border: 1px solid rgba(168, 85, 247, 0.35);
      border-radius: 20px;
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-top: 28px;
    }

    @media (max-width: 640px) {
      .cookie-action-banner {
        flex-direction: column;
        text-align: center;
      }
    }

    .cookie-action-text h4 {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      color: #ffffff;
      margin: 0 0 6px;
    }

    .cookie-action-text p {
      margin: 0;
      font-size: 0.88rem;
      color: #cbd5e1;
    }

    .btn-privacy-cookie-modal {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #7c2ca5;
      color: #ffffff;
      height: var(--btn-h-md); /* 40px */
      box-sizing: border-box;
      padding: 0 20px;
      line-height: 1;
      border-radius: 12px;
      border: 1px solid #9333ea;
      font-family: inherit;
      font-size: 0.92rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow: none !important;
      transition: var(--glass-transition) !important;
      white-space: nowrap;
    }

    /* Contact DPO Card */
    .dpo-contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 18px;
      margin-top: 24px;
    }

    .dpo-contact-item {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .dpo-contact-item:hover {
      border-color: rgba(168, 85, 247, 0.4);
      background: rgba(124, 44, 165, 0.08);
    }

    .dpo-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(124, 44, 165, 0.25);
      color: #c084fc;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .dpo-item-content h4 {
      font-family: var(--font-heading);
      font-size: 1rem;
      color: #ffffff;
      margin: 0 0 6px;
    }

    .dpo-item-content p {
      margin: 0;
      font-size: 0.86rem;
      color: #94a3b8;
      line-height: 1.6;
    }

    .dpo-item-content a {
      color: #c084fc;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.2s ease;
    }

    .dpo-item-content a:hover {
      color: #f5d0fe;
      text-decoration: none;
    }

    .policy-code {
      color: #c084fc;
      background: rgba(0, 0, 0, 0.4);
      padding: 2px 8px;
      border-radius: 6px;
    }

    .policy-ext-link {
      color: #c084fc;
      font-weight: 700;
      word-break: break-all;
    }


/* --- Blog Single Article Styles --- */

/* Standalone Article Layout Styles */
    .article-container {
      max-width: 920px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    .article-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8rem;
      color: #94a3b8;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .article-breadcrumbs a {
      color: #cbd5e1;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .article-breadcrumbs a:hover {
      color: #c084fc;
    }

    .article-header {
      margin-bottom: 36px;
      padding-bottom: 28px;
      border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    }

    .article-category-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 5px 14px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.2);
      color: #d8b4fe;
      border: 1px solid rgba(168, 85, 247, 0.35);
      margin-bottom: 16px;
    }

    .article-main-title {
      font-family: var(--font-heading);
      font-size: 2.1rem;
      line-height: 1.45;
      color: #ffffff;
      margin-bottom: 20px;
      letter-spacing: -0.02em;
    }

    .article-meta-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 0.82rem;
      color: #94a3b8;
    }

    .article-meta-left {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .article-author-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #e2e8f0;
      font-weight: 600;
    }

    .article-author-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--brand-purple, #7c2ca5);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 800;
      border: 1.5px solid rgba(255, 255, 255, 0.2);
    }

    .article-share-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .share-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #cbd5e1;
      text-decoration: none;
      transition: all 0.25s ease;
      cursor: pointer;
    }

    .share-btn:hover {
      background: rgba(124, 44, 165, 0.3);
      border-color: #a855f7;
      color: #ffffff;
      transform: translateY(-2px);
    }

    .article-content-card {
      background: rgba(18, 14, 30, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(168, 85, 247, 0.16);
      border-radius: 24px;
      padding: 36px 32px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
      font-family: var(--font-body);
      font-size: 1.05rem;
      line-height: 2.1;
      color: #cbd5e1;
      margin-bottom: 40px;
    }

    .article-content-card h2, .article-content-card h3, .article-content-card h4 {
      font-family: var(--font-heading);
      color: #ffffff;
      margin-top: 36px;
      margin-bottom: 16px;
    }

    .article-content-card h4 {
      font-size: 1.35rem;
      border-right: 3px solid #a855f7;
      padding-right: 12px;
    }

    .article-content-card p.lead {
      font-size: 1.15rem;
      font-weight: 500;
      color: #e2e8f0;
      line-height: 2.2;
      margin-bottom: 24px;
    }

    .article-content-card blockquote {
      margin: 32px 0;
      padding: 20px 24px;
      border-radius: 16px;
      background: rgba(124, 44, 165, 0.12);
      border-right: 4px solid #a855f7;
      color: #f1f5f9;
      font-style: italic;
      font-size: 1.05rem;
      line-height: 1.9;
    }

    .article-content-card ul {
      margin: 20px 0 28px 0;
      padding-right: 24px;
    }

    .article-content-card li {
      margin-bottom: 12px;
    }

    .article-content-card li strong {
      color: #e9d5ff;
    }

    /* Author Bio Box */
    .author-bio-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 20px;
      padding: 24px;
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 48px;
    }

    .author-bio-avatar {
      width: 68px;
      height: 68px;
      border-radius: 20px;
      background: var(--brand-purple, #7c2ca5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: #fff;
      font-weight: 900;
      flex-shrink: 0;
      box-shadow: 0 4px 16px rgba(124, 44, 165, 0.4);
    }

    .author-bio-text h4 {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      color: #fff;
      margin-bottom: 6px;
    }

    .author-bio-text p {
      font-size: 0.85rem;
      color: #94a3b8;
      line-height: 1.7;
      margin: 0;
    }

    /* Related Articles */
    .related-section {
      margin-top: 50px;
    }

    .related-heading {
      font-family: var(--font-heading);
      font-size: 1.35rem;
      color: #fff;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .related-heading::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 20px;
      background: #a855f7;
      border-radius: 2px;
    }

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

    .toast-msg {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #1e152d;
      color: #e9d5ff;
      border: 1px solid #a855f7;
      padding: 10px 20px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
      font-size: 0.85rem;
      z-index: 1000;
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }

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

    .article-callout-box {
      background: rgba(30, 20, 50, 0.6);
      border: 1px solid rgba(168, 85, 247, 0.3);
      border-radius: 20px;
      padding: 28px;
      text-align: center;
      margin-bottom: 50px;
    }

    .article-callout-title {
      font-family: var(--font-heading, 'Modam', sans-serif);
      color: #fff;
      font-size: 1.25rem;
      margin-bottom: 8px;
    }

    .article-callout-desc {
      color: #cbd5e1;
      font-size: 0.9rem;
      max-width: 600px;
      margin: 0 auto 20px;
    }

    .article-callout-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #7c2ca5;
      border-color: #a855f7;
      height: var(--btn-h-md, 40px);
      box-sizing: border-box;
      padding: 0 20px;
      text-decoration: none;
    }

    .related-card-title {
      font-family: var(--font-heading, 'Modam', sans-serif);
      color: #fff;
      font-size: 1rem;
      margin: 12px 0 8px;
      line-height: 1.5;
    }

    .related-card-desc {
      font-size: 0.8rem;
      color: #94a3b8;
      line-height: 1.6;
      margin-bottom: 14px;
    }

    .related-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      color: #64748b;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 10px;
    }

    .related-card-link {
      color: #c084fc;
      text-decoration: none;
      font-weight: 700;
    }


/* ==========================================================================
   Portfolio Rail (Infinite scrolling showcase rail for DK/NL)
   Specification: docs/wp-migration/07-portfolio-rail.md
   ========================================================================== */
.portfolio-rail {
  position: relative;
  width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio-rail-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.portfolio-rail-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: rabean-rail var(--rail-duration, 60s) linear infinite;
  will-change: transform;
}

.portfolio-rail:hover .portfolio-rail-track,
.portfolio-rail:focus-within .portfolio-rail-track,
.portfolio-rail.is-paused .portfolio-rail-track {
  animation-play-state: paused;
}

@keyframes rabean-rail {
  to {
    transform: translateX(-50%);
  }
}

[dir="rtl"] .portfolio-rail-track {
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-rail-track {
    animation: none;
  }
  .portfolio-rail-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
}

/* Columns & Cards */
.rail-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.rail-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #141024;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

.rail-card--tall {
  height: 340px;
}

.rail-card--short {
  height: 220px;
}

.rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.rail-card:hover,
.rail-card:focus-visible {
  transform: scale(1.02);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 8px 30px rgba(124, 44, 165, 0.25);
  z-index: 2;
}

.rail-card:hover img,
.rail-card:focus-visible img {
  transform: scale(1.04);
}

.rail-card-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: rgba(9, 7, 18, 0.88);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.rail-card:hover .rail-card-meta,
.rail-card:focus-within .rail-card-meta {
  opacity: 1;
  transform: translateY(0);
}

.rail-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.rail-card-cat {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Pause / Play Toggle Button (36x36 btn-ctrl token) */
.rail-toggle {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(18, 14, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  padding: 0;
}

[dir="rtl"] .rail-toggle {
  right: auto;
  left: 16px;
}

.rail-toggle:hover {
  background: rgba(124, 44, 165, 0.85);
  border-color: #a855f7;
  transform: scale(1.05);
}

.rail-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .portfolio-rail {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .rail-col {
    width: 240px;
    gap: 12px;
  }
  .rail-card--tall {
    height: 290px;
  }
  .rail-card--short {
    height: 190px;
  }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .portfolio-rail {
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .portfolio-rail-track {
    gap: 8px;
  }
  .rail-col {
    width: 180px;
    gap: 8px;
  }
  .rail-card {
    border-radius: 14px;
  }
  .rail-card--tall {
    height: 220px;
  }
  .rail-card--short {
    height: 140px;
  }
  .rail-toggle {
    bottom: 8px;
    right: 8px;
  }
  [dir="rtl"] .rail-toggle {
    left: 8px;
    right: auto;
  }
}

/* ==========================================================================
   Home Orbit & Browse Sections Styling (Zero inline style rules)
   ========================================================================== */
#graph-viewport { width: 100%; height: 100%; }
.service-badge.service-badge-1,
.services-modal-grid .service-modal-card:nth-child(1) .service-badge { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.service-badge.service-badge-2,
.services-modal-grid .service-modal-card:nth-child(2) .service-badge { background: rgba(206, 89, 234, 0.2); color: #ce59ea; }
.service-badge.service-badge-3,
.services-modal-grid .service-modal-card:nth-child(3) .service-badge { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.service-badge.service-badge-4,
.services-modal-grid .service-modal-card:nth-child(4) .service-badge { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.service-badge.service-badge-5,
.services-modal-grid .service-modal-card:nth-child(5) .service-badge { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.service-badge.service-badge-6,
.services-modal-grid .service-modal-card:nth-child(6) .service-badge { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.about-hero-box { margin-bottom: 24px; }
.pillar-icon.pillar-icon-1,
.about-pillars-grid .about-pillar-card:nth-child(1) .pillar-icon { color: #a855f7; }
.pillar-icon.pillar-icon-2,
.about-pillars-grid .about-pillar-card:nth-child(2) .pillar-icon { color: #06b6d4; }
.pillar-icon.pillar-icon-3,
.about-pillars-grid .about-pillar-card:nth-child(3) .pillar-icon { color: #ec4899; }
.pillar-icon.pillar-icon-4,
.about-pillars-grid .about-pillar-card:nth-child(4) .pillar-icon { color: #ea2032; }

.contact-panel-title { font-size: 1.15rem; color: #fff; margin-bottom: 16px; }
.contact-items-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-icon-box { width: 40px; height: 40px; border-radius: 10px; background: rgba(124, 44, 165, 0.2); border: 1px solid rgba(168, 85, 247, 0.3); display: flex; align-items: center; justify-content: center; color: #c084fc; flex-shrink: 0; }
.contact-item-label { font-size: 0.75rem; color: #94a3b8; }
.contact-item-link { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1rem; direction: ltr; display: inline-block; }
.contact-address-text { color: #cbd5e1; font-size: 0.85rem; margin: 2px 0 6px; line-height: 1.5; }
.contact-maps-link { color: #c084fc; font-size: 0.78rem; text-decoration: none; }
.contact-social-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.contact-social-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 10px; }
.contact-social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.required-star { color: #ec4899; }
.btn-submit-contact { width: 100%; justify-content: center; }

#modal-project-satellites { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-contact-icon { flex-shrink: 0; margin-top: 3px; }
.about-cta-footer .btn-primary { text-decoration: none; }
.blog-preview-cta .btn-primary { background: transparent; border: 1.5px solid #a855f7; color: #f3e8ff; text-decoration: none; }

/* ==========================================================================
   Brand Identity Page Styles (Task T27 - rabean.html / template-brand.php)
   ========================================================================== */
.page-container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 40px 20px 80px;
      position: relative;
      z-index: 10;
    }

    /* Hero */
    .brand-hero {
      text-align: center;
      padding: 40px 20px 60px;
      max-width: 960px;
      margin: 0 auto;
    }

    .brand-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 18px;
      border-radius: 9999px;
      background: rgba(124, 44, 165, 0.18);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
      font-size: 0.84rem;
      font-weight: 700;
      margin-bottom: 22px;
    }

    .brand-hero-title {
      font-family: var(--font-heading, 'Modam', sans-serif);
      font-size: clamp(2rem, 4.5vw, 3.2rem);
      color: #ffffff;
      margin-bottom: 20px;
      line-height: 1.35;
      font-weight: 900;
    }

    .brand-hero-lead {
      font-family: var(--font-body, 'Vazirmatn', sans-serif);
      font-size: 1.12rem;
      color: #cbd5e1;
      line-height: 2.2;
      margin: 0 auto 30px;
    }

    /* Section Styling */
    .brand-section {
      margin-bottom: 72px;
      background:
        #080611;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 32px;
      padding: 48px 40px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
      position: relative;
      overflow: hidden;
    }

    @media (max-width: 768px) {
      .brand-section {
        padding: 32px 20px;
        border-radius: 24px;
      }
    }

    .section-header-tag {
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 700;
      color: #c084fc;
      letter-spacing: 1px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .section-title {
      font-family: var(--font-heading, 'Modam', sans-serif);
      font-size: clamp(1.4rem, 2.8vw, 2.1rem);
      color: #ffffff;
      margin-bottom: 20px;
      font-weight: 800;
      line-height: 1.4;
    }

    .section-desc {
      font-size: 1rem;
      color: #cbd5e1;
      line-height: 2.1;
      margin-bottom: 32px;
    }

    /* 2 Column Layout */
    .brand-grid-2 {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 40px;
      align-items: center;
    }

    @media (max-width: 960px) {
      .brand-grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    /* Interactive Logo Visualizer */
    .logo-inspector-card {
      background: rgba(14, 10, 24, 0.9);
      border: 1px solid rgba(168, 85, 247, 0.25);
      border-radius: 24px;
      padding: 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    }

    .logo-stage-wrap {
      width: 100%;
      max-width: 380px;
      height: 380px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      margin-bottom: 24px;
    }

    .logo-stage-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
      filter: drop-shadow(0 15px 35px rgba(124, 44, 165, 0.45));
    }

    /* Inspector Layer Controls */
    .inspector-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      width: 100%;
    }

    .layer-toggle-btn {
      height: 36px; padding: 0 16px; box-sizing: border-box;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #cbd5e1;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.25s ease;
      font-family: var(--font-body);
    }

    .layer-toggle-btn.active {
      background: rgba(124, 44, 165, 0.35);
      border-color: #c084fc;
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(124, 44, 165, 0.3);
    }

    .layer-indicator-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    /* Feature Cards Grid (4 items) */
    .features-grid-4 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
      margin-top: 32px;
    }

    .feature-point-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 20px;
      padding: 24px;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .feature-point-card:hover {
      background: rgba(124, 44, 165, 0.12);
      border-color: rgba(168, 85, 247, 0.35);
      transform: translateY(-3px);
    }

    .feature-point-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: rgba(124, 44, 165, 0.25);
      border: 1px solid rgba(168, 85, 247, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #f0abfc;
      font-size: 1.25rem;
    }

    .feature-point-title {
      font-family: var(--font-heading, 'Modam', sans-serif);
      font-size: 1.15rem;
      color: #ffffff;
      font-weight: 700;
      margin: 0;
    }

    .feature-point-desc {
      font-size: 0.88rem;
      color: #94a3b8;
      line-height: 1.85;
      margin: 0;
    }

    /* Construction Matrix Table */
    .specs-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 24px;
      font-size: 0.88rem;
    }

    .specs-table th {
      background: rgba(124, 44, 165, 0.2);
      color: #e9d5ff;
      padding: 14px 18px;
      text-align: right;
      font-weight: 700;
      border-bottom: 2px solid rgba(168, 85, 247, 0.3);
    }

    .specs-table td {
      padding: 14px 18px;
      color: #cbd5e1;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      line-height: 1.7;
    }

    .specs-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Color Swatches Grid */
    .swatches-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .swatch-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .swatch-color-box {
      height: 120px;
      width: 100%;
      position: relative;
    }

    .swatch-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .swatch-title {
      font-weight: 700;
      font-size: 0.95rem;
      color: #ffffff;
    }

    .swatch-hex {
      font-family: var(--font-body);
      font-size: 0.85rem;
      color: #c084fc;
      direction: ltr;
      text-align: right;
    }

    .swatch-desc {
      font-size: 0.8rem;
      color: #94a3b8;
      line-height: 1.6;
    }

    /* Dos and Don'ts */
    .compliance-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 24px;
    }

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

    .compliance-col {
      background: rgba(255, 255, 255, 0.02);
      border-radius: 20px;
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .compliance-header {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-heading, 'Modam', sans-serif);
      font-size: 1.15rem;
      margin-bottom: 16px;
    }

    .compliance-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      font-size: 0.88rem;
      color: #cbd5e1;
      line-height: 1.8;
    }

    .compliance-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    /* Scientific References Box */
    .academic-refs-box {
      background: rgba(14, 10, 24, 0.6);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 20px;
      padding: 28px;
      margin-top: 40px;
    }

    .academic-refs-box h4 {
      font-size: 1rem;
      color: #e9d5ff;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ref-citation {
      margin-bottom: 14px;
      padding-right: 14px;
      border-right: 2.5px solid #a855f7;
    }

    .ref-label {
      font-size: 0.88rem;
      font-weight: 700;
      color: #e9d5ff;
      margin-bottom: 4px;
    }

    .ref-latin {
      font-family: var(--font-body);
      font-size: 0.82rem;
      color: #94a3b8;
      line-height: 1.6;
      direction: ltr;
      text-align: left;
    }

    /* Download Kit Banner */
    .download-kit-banner {
      background: rgba(26, 12, 42, 0.9);
      border: 1px solid rgba(168, 85, 247, 0.35);
      border-radius: 28px;
      padding: 40px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    .download-kit-text h3 {
      font-family: var(--font-heading, 'Modam', sans-serif);
      font-size: 1.4rem;
      color: #ffffff;
      margin-bottom: 6px;
    }

    .download-kit-text p {
      font-size: 0.92rem;
      color: #cbd5e1;
      margin: 0;
    }

    .download-kit-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

.site-main-brand {
  flex: 1;
  position: relative;
}

/* ==========================================================================
   19. Dedicated Project Single & Showcase Styling
   ========================================================================== */
.project-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(13, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 44, 165, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.back-to-galaxy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(124, 44, 165, 0.15);
  border: 1px solid rgba(124, 44, 165, 0.4);
  color: #f3e8ff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
.back-to-galaxy-btn:hover {
  background: rgba(124, 44, 165, 0.35);
  border-color: #a855f7;
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(124, 44, 165, 0.4);
}
[dir="ltr"] .back-to-galaxy-btn:hover {
  transform: translateX(-4px);
}
.project-hero {
  position: relative;
  padding: 80px 6% 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: right;
  overflow-x: clip;
}
[dir="ltr"] .project-hero {
  text-align: left;
}
.project-halo {
  position: absolute;
  top: 0;
  right: 10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
[dir="ltr"] .project-halo {
  right: auto;
  left: 10%;
}
.project-meta-pill-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.project-cat-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.project-client-name {
  color: #94a3b8;
  font-size: 14px;
}
.project-main-title {
  font-family: var(--font-modam), var(--font-vazir), sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.project-summary-box {
  font-size: 17px;
  line-height: 1.85;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
/* Satellites deliverable cards */
.satellites-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.satellites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.sat-deliverable-card {
  background: rgba(22, 17, 43, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sat-deliverable-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, #7c2ca5);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px var(--card-glow, rgba(124, 44, 165, 0.3));
}
.sat-dot-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.sat-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: sat-pulse-anim 2s infinite;
}
@keyframes sat-pulse-anim {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0; }
}
.sat-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #f8fafc;
}
/* Gallery */
.artboards-heading {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.artboards-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  background: rgba(22, 17, 43, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.artboards-grid:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(124, 44, 165, 0.2);
}
@media (max-width: 768px) {
  .project-main-title {
    font-size: 32px;
  }
  .project-halo {
    width: 280px;
    height: 280px;
  }
}
.artboard-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  position: relative;
  width: 100%;
  transition: none;
}
.artboard-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.artboard-card p {
  line-height: 1.6;
  font-size: 14px;
}
.artboard-card:first-child,
.artboard-card:first-child img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.artboard-card:not(:first-child):not(:last-child),
.artboard-card:not(:first-child):not(:last-child) img {
  border-radius: 0;
}
.artboard-card:last-child,
.artboard-card:last-child img {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.artboard-card:only-child,
.artboard-card:only-child img {
  border-radius: 16px;
}
.artboard-card img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  transition: none;
}
.artboard-card:hover img,
.artboard-card img:hover {
  transform: none !important;
}
/* CTA Box */
.project-cta-banner {
  background: rgba(30, 20, 60, 0.7);
  border: 1px solid rgba(124, 44, 165, 0.45);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.project-cta-banner h3 {
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 800;
}
.project-cta-banner p {
  font-size: 15px;
  color: #d8b4fe;
  margin-bottom: 24px;
}
.cta-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 9999px;
  background: #7c2ca5;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(124, 44, 165, 0.6);
  transition: all 0.25s ease;
}
.cta-order-btn:hover {
  background: #9333ea;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.8);
}
/* Nav Footer Switcher */
.project-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  flex-wrap: wrap;
}
.nav-arrow-btn {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
.nav-arrow-btn:hover {
  color: #f3e8ff;
  background: rgba(124, 44, 165, 0.2);
  border-color: rgba(124, 44, 165, 0.5);
}

/* ==========================================================================
   20. Error Pages (4xx & 5xx) Styling
   ========================================================================== */
.error-page-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  position: relative;
  z-index: 10;
}

.error-card-container {
  max-width: 1140px;
  width: 100%;
  background: #080611;
  border: 1px solid rgba(234, 32, 50, 0.25);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 40px rgba(234, 32, 50, 0.12);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.error-card-container.error-card-5xx {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.10);
}

@media (max-width: 960px) {
  .error-card-container {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 36px;
  }
}

/* Top Accent Warning Bar */
.error-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-purple-light, #a855f7);
}

/* Content Col */
.error-content-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.error-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(234, 32, 50, 0.15);
  border: 1px solid rgba(234, 32, 50, 0.4);
  color: #ff6b7b;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.error-status-badge.badge-5xx {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.error-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea2032;
  box-shadow: 0 0 10px #ea2032;
  animation: pulse-dot 1.5s infinite;
}

.error-status-dot.dot-5xx {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot-blue 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulse-dot-blue {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.error-code-display {
  font-family: var(--font-heading, 'Modam', monospace);
  font-size: clamp(3.6rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  text-shadow: 0 0 35px rgba(234, 32, 50, 0.35);
}

.error-code-display.code-5xx {
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
}

.error-code-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ff8595;
  letter-spacing: 0;
}

.error-code-label.label-5xx {
  color: #38bdf8;
}

.error-title {
  font-family: var(--font-heading, 'Modam', sans-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.error-desc {
  font-family: var(--font-body, 'Vazirmatn', sans-serif);
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 2;
  margin: 0;
}

.error-explanation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 4px solid #ea2032;
  border-radius: 14px;
  padding: 16px 20px;
}
[dir="ltr"] .error-explanation-box {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #ea2032;
}

.error-explanation-box.box-5xx {
  border-right-color: #38bdf8;
}
[dir="ltr"] .error-explanation-box.box-5xx {
  border-left-color: #38bdf8;
}

.error-explanation-box h4 {
  font-size: 0.95rem;
  color: #fca5a5;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-explanation-box.box-5xx h4 {
  color: #7dd3fc;
}

.error-explanation-box p {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.8;
  margin: 0;
}

.error-causes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}

.error-cause-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.error-cause-bullet {
  color: #ea2032;
  font-weight: bold;
}

.error-cause-bullet.bullet-5xx {
  color: #38bdf8;
}

/* Actions Group */
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.btn-err-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--btn-h-lg, 46px);
  box-sizing: border-box;
  padding: 0 22px;
  line-height: 1;
  border-radius: 12px;
  background: var(--brand-purple, #7c2ca5);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(234, 32, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-err-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(234, 32, 50, 0.5);
  color: #ffffff;
}

.btn-err-primary.primary-5xx {
  box-shadow: 0 8px 24px rgba(124, 44, 165, 0.35);
}
.btn-err-primary.primary-5xx:hover {
  box-shadow: 0 12px 30px rgba(124, 44, 165, 0.5);
}

.btn-err-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--btn-h-lg, 46px);
  box-sizing: border-box;
  padding: 0 20px;
  line-height: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-err-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Mascot Col */
.error-mascot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.mascot-speech-bubble {
  background: rgba(234, 32, 50, 0.12);
  border: 1.5px solid rgba(234, 32, 50, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 18px 22px;
  position: relative;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-width: 340px;
}

.mascot-speech-bubble.bubble-5xx {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.38);
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: rgba(234, 32, 50, 0.45) transparent transparent transparent;
}

.mascot-speech-bubble.bubble-5xx::after {
  border-color: rgba(56, 189, 248, 0.38) transparent transparent transparent;
}

.mascot-speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mascot-speech-author {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff6b7b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mascot-speech-author.author-5xx {
  color: #7dd3fc;
}

.mascot-speech-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(234, 32, 50, 0.25);
  color: #fecaca;
  font-weight: 600;
}

.mascot-speech-tag.tag-5xx {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

.mascot-speech-text {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* Rebear Angry Mascot Visual */
.angry-rebear-wrapper {
  position: relative;
  width: 220px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 40px rgba(234, 32, 50, 0.35));
  animation: angry-vibrate 3s infinite ease-in-out;
}

@keyframes angry-vibrate {
  0%, 90%, 100% { transform: translateY(0); }
  92% { transform: translate(-2px, -1px); }
  94% { transform: translate(2px, 1px); }
  96% { transform: translate(-2px, 1px); }
  98% { transform: translate(1px, -1px); }
}

.angry-rebear-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.error-meta-accordion {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #64748b;
  cursor: pointer;
}

.error-meta-details {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  font-family: monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   21. Event Page & Brochure (T32) Styling
   ========================================================================== */
.event-page-main {
  min-height: calc(100vh - 180px);
  padding: 60px 20px 80px;
  position: relative;
  z-index: 10;
}

.event-doc-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 34px 38px;
  background: rgba(22, 16, 38, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.event-doc-header {
  text-align: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.event-doc-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(124, 44, 165, 0.25);
  border: 1px solid #a855f7;
  color: #e9d5ff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.event-doc-title {
  font-family: var(--font-heading, 'Modam', sans-serif);
  font-size: 1.9rem;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.event-doc-subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.6;
}

.event-poster-preview {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  margin: 24px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  box-sizing: border-box;
}

.event-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.event-meta-card {
  background: rgba(36, 24, 60, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.event-meta-label {
  font-size: 0.8rem;
  color: #c084fc;
  margin-bottom: 6px;
}

.event-meta-val {
  font-family: var(--font-heading, 'Modam', sans-serif);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: bold;
}

.syllabus-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  border-right: 4px solid #7c2ca5;
}

[dir="ltr"] .syllabus-box {
  border-right: none;
  border-left: 4px solid #7c2ca5;
}

.syllabus-title {
  margin-top: 0;
  color: #ffffff;
  font-family: var(--font-heading, 'Modam', sans-serif);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.syllabus-list {
  padding-right: 20px;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.9;
}

[dir="ltr"] .syllabus-list {
  padding-right: 0;
  padding-left: 20px;
}

.syllabus-list li {
  margin-bottom: 10px;
}

.btn-print {
  background: #7c2ca5;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-heading, 'Modam', sans-serif);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-print:hover {
  background: #9333ea;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-print-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-print-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.event-doc-actions {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.event-actions-subgroup {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-register-card {
  max-width: 900px;
  margin: 0 auto 40px;
  background: rgba(20, 14, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.event-register-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-family: var(--font-heading, 'Modam', sans-serif);
}

.event-register-header p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin: 0 0 24px 0;
}

.event-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.event-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c084fc;
}

.event-form-group input {
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 0 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.event-form-group input:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.event-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.event-submit-btn {
  border: none;
  font-size: 0.95rem;
  height: 46px;
  padding: 0 32px;
}

.event-secure-badge {
  font-size: 0.8rem;
  color: #94a3b8;
}

@media print {
  body { background: #ffffff !important; color: #000000 !important; }
  .event-doc-container { border: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
  .no-print, .site-header, .site-footer, .drawer-panel, .drawer-overlay, .cookie-floating-panel, canvas { display: none !important; }
}

@media (max-width: 768px) {
  .event-doc-container { padding: 24px 18px; margin: 20px auto; border-radius: 18px; }
  .event-doc-title { font-size: 1.45rem; }
  .event-doc-actions { flex-direction: column; align-items: stretch; }
  .event-actions-subgroup { flex-direction: column; }
  .btn-print { justify-content: center; width: 100%; box-sizing: border-box; }
  .event-register-card { padding: 24px 18px; }
  .event-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .event-form-actions { flex-direction: column; align-items: stretch; }
  .event-submit-btn { width: 100%; justify-content: center; }
}



