/* ==========================================================================
   BD EDITOR (bdeditor.com) — UNIFIED DESIGN SYSTEM & THEME
   Single Source of Truth: /bdeditor-theme.css
   ========================================================================== */

:root {
  --bg-base: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F7F7F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-subtle: #F5F5F5;
  --bg-glass: rgba(255, 255, 255, 0.96);

  --line: #E4E5E7;
  --line-soft: #EFEFF0;
  --line-hover: #C5C6C9;

  --text: #222325;
  --text-muted: #62646A;
  --text-dim: #95979D;

  --emerald: #1DBF73;
  --emerald-glow: rgba(29, 191, 115, 0.22);
  --emerald-light: #E8FAF0;
  --emerald-border: rgba(29, 191, 115, 0.35);

  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-bangla: 'Baloo Da 2', 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg-base: #0B0F17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-card: #131B2E;
  --bg-card-hover: #1A243B;
  --bg-subtle: #151E32;
  --bg-glass: rgba(11, 15, 23, 0.94);

  --line: #1F293D;
  --line-soft: #1A2334;
  --line-hover: #374151;

  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-light: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-base);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--emerald);
  width: 0%;
  z-index: 99999;
}

/* 1240px Container Alignment for Every Section */
.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ==========================================================================
   NAVIGATION BAR (Unified Top Nav)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .site-nav {
  background: var(--bg-glass) !important;
  border-bottom-color: var(--line) !important;
}

.site-nav .nav-inner {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo .logo-bd, .logo-bd {
  background: var(--emerald);
  color: #FFFFFF !important;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-right: 2px;
  font-weight: 800;
  display: inline-block;
  line-height: 1.1;
}

.brand-logo .logo-editor, .logo-editor {
  color: var(--text) !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}

[data-theme="dark"] .nav-links {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-links a:hover {
  background: var(--bg-surface-elevated) !important;
  color: var(--text) !important;
}

.nav-links a.active {
  color: #047857 !important;
  background: #FFFFFF !important;
  font-weight: 750 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .nav-links a.active {
  background: var(--bg-surface-elevated) !important;
  color: var(--emerald) !important;
  border-color: var(--emerald-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

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

.lang-pill {
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

[data-theme="dark"] .lang-pill {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.lang-pill:hover {
  border-color: var(--emerald-border);
  color: var(--emerald);
}

.btn-nav-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

[data-theme="dark"] .btn-nav-ghost {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.btn-nav-ghost:hover {
  border-color: var(--emerald-border);
  color: var(--emerald);
}

.hamburger-btn {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

[data-theme="dark"] .hamburger-btn {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.hamburger-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Mobile Top Sticky Bar */
.mobile-top-bar {
  display: none;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--line-soft);
  padding: 6px 0 8px;
}

[data-theme="dark"] .mobile-top-bar {
  background: var(--bg-surface) !important;
  border-top-color: var(--line) !important;
}

.mobile-top-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

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

.mob-nav-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  line-height: 1.2;
}

[data-theme="dark"] .mob-nav-pill {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--line) !important;
  color: var(--text-muted) !important;
}

.mob-nav-pill:hover, .mob-nav-pill:active {
  color: var(--emerald);
  border-color: var(--emerald-border);
  background: var(--emerald-light);
}

.mob-nav-pill.active {
  color: #FFFFFF !important;
  background: var(--emerald) !important;
  border-color: var(--emerald) !important;
  font-weight: 700;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 988;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.mobile-drawer-overlay.show {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.mobile-drawer {
  position: fixed; top: var(--nav-height, 72px); left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 989;
  transform: translateY(-110%);
  opacity: 0; pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - var(--nav-height, 72px));
  overflow-y: auto;
}

[data-theme="dark"] .mobile-drawer {
  background: var(--bg-surface) !important;
  border-bottom-color: var(--line) !important;
}

.mobile-drawer.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}

.drawer-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; color: var(--text); font-size: 0.92rem; font-weight: 600;
  transition: all 0.2s; text-decoration: none; background: transparent; border: 1px solid transparent;
}

[data-theme="dark"] .drawer-item {
  color: var(--text) !important;
}

.drawer-item:hover, .drawer-item:active {
  background: #F7F7F7; border-color: var(--line-soft); color: var(--emerald);
}

[data-theme="dark"] .drawer-item:hover {
  background: var(--bg-surface-elevated) !important;
}

.drawer-item .drawer-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0;
}

.drawer-item .drawer-label { flex: 1; }

.drawer-item .drawer-arrow-svg {
  color: var(--text-dim); margin-left: auto; flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s;
}

.drawer-item:hover .drawer-arrow-svg {
  transform: translateX(3px); color: var(--emerald);
}

body.drawer-open {
  overflow: hidden !important;
}

/* Nav Responsive Queries */
@media (max-width: 1260px) {
  .brand-logo { margin-right: 14px; }
  .nav-links { gap: 4px; padding: 3px 4px; }
  .nav-links a { font-size: 0.82rem; padding: 7px 11px; }
}

@media (max-width: 1040px) {
  .desktop-only { display: none !important; }
  .mobile-top-bar { display: block !important; }
  .hamburger-btn { display: inline-flex !important; }
  .site-nav .btn-nav-primary:not(.nav-auth-pill),
  .site-nav .btn-nav-ghost:not(.nav-auth-pill):not(.btn-nav-back) { display: none !important; }
  .site-nav { height: auto !important; flex-direction: column !important; align-items: stretch !important; }
  .site-nav .nav-inner { height: 54px; padding: 0 20px !important; }
  .mobile-drawer { top: var(--nav-height, 96px) !important; max-height: calc(100vh - var(--nav-height, 96px)) !important; }
}

@media (max-width: 767px) {
  .site-nav .nav-inner { height: 54px; padding: 0 16px !important; }
  .site-nav .container .nav-inner { padding-left: 0 !important; padding-right: 0 !important; }
  .btn-nav-back .btn-back-text { display: none !important; }
  .hero-title, .page-hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }
  .hero-subtitle, .page-hero p.subtitle, .page-hero p.lead, .page-hero p {
    font-size: clamp(0.88rem, 3.8vw, 1.02rem) !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }
  .page-hero {
    padding: 36px 0 24px !important;
  }
}

/* ==========================================================================
   BUTTONS (Primary Green Gradient & Shine Sweep)
   ========================================================================== */
.btn-gradient, .btn-primary, .btn-urgent-match, .cta-btn, .form-submit-btn, .btn-nav-primary {
  height: 54px;
  border-radius: 16px !important;
  border: 0 !important;
  font-weight: 800;
  letter-spacing: .01em;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #22D38A, #0E9F6E) !important;
  box-shadow: 0 16px 32px -12px rgba(16, 185, 129, .7), 0 1px 0 rgba(255, 255, 255, .35) inset !important;
  transition: transform .25s var(--ease), box-shadow .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.btn-nav-primary {
  height: 40px;
  padding: 8px 18px;
  border-radius: 999px !important;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px var(--emerald-glow) !important;
}

.btn-gradient:hover, .btn-primary:hover, .btn-urgent-match:hover, .cta-btn:hover, .form-submit-btn:hover, .btn-nav-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 40px -12px rgba(16, 185, 129, .85), 0 1px 0 rgba(255, 255, 255, .35) inset !important;
}

/* Button Shine Sweep - safe glow on hover, no escaping pseudo-elements */
.btn-gradient, .btn-primary, .btn-urgent-match, .cta-btn, .form-submit-btn, .btn-nav-primary {
  position: relative;
  overflow: hidden;
}

/* Card & Button containment: strictly prevent any escaping pseudo-elements */
.editor-card {
  position: relative !important;
  overflow: hidden !important;
  contain: paint !important;
}
.editor-card::before,
.editor-card::after,
.btn-wa-direct::before,
.btn-wa-direct::after,
.btn-fb-icon::before,
.btn-fb-icon::after,
.card-actions::before,
.card-actions::after,
.card-body::before,
.card-body::after,
.cards-grid::before,
.cards-grid::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.btn-secondary, .btn-pill {
  height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s var(--ease);
}

[data-theme="dark"] .btn-secondary, [data-theme="dark"] .btn-pill {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.btn-secondary:hover, .btn-pill:hover {
  border-color: var(--emerald-border);
  color: var(--emerald);
  background: var(--bg-surface-elevated);
}

/* ==========================================================================
   PAGE HERO SYSTEM
   ========================================================================== */
html[data-theme] .hero, html[data-theme] .page-hero {
  padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 96px) !important;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero > .container, .page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 90vw;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--emerald-glow) 0%, rgba(16, 185, 129, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow, .badge-pill, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[data-theme="dark"] .badge-pill, [data-theme="dark"] .hero-eyebrow, [data-theme="dark"] .eyebrow {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34D399 !important;
}

.hero-title, .page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subtitle, .page-hero p.subtitle, .page-hero p.lead, .page-hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

[data-theme="dark"] .hero-title, [data-theme="dark"] .page-hero h1 {
  color: #F9FAFB !important;
}

[data-theme="dark"] .hero-subtitle, [data-theme="dark"] .page-hero p.subtitle, [data-theme="dark"] .page-hero p.lead, [data-theme="dark"] .page-hero p {
  color: #D1D5DB !important;
}

/* ==========================================================================
   SECTION DIVIDERS: MARQUEE & HOW IT WORKS
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 16px 0;
  transform: none !important;
  margin: 0 0 36px;
  position: relative;
  z-index: 3;
}

[data-theme="dark"] .marquee {
  background: var(--bg-surface) !important;
  border-color: var(--line) !important;
  color: var(--text-muted) !important;
}

.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: mq 42s linear infinite;
  font: 700 0.98rem var(--font-heading);
  letter-spacing: .02em;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  margin-left: 34px;
  color: var(--emerald);
}

@keyframes mq {
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* How It Works Step Cards */
.how {
  padding: clamp(48px, 7vw, 96px) 0 12px;
  background: var(--bg-base);
}

.how-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.how-head h2 {
  font: 800 clamp(1.9rem, 4.4vw, 3.3rem)/1.04 var(--font-heading);
  letter-spacing: -.04em;
  max-width: 640px;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

.how-head p {
  max-width: 340px;
  color: var(--text-muted);
  margin: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.how-step {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  margin-top: 0 !important;
}

[data-theme="dark"] .how-step {
  background: var(--bg-card) !important;
  border-color: var(--line) !important;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px var(--emerald-glow);
  border-color: var(--emerald-border);
}

.how-step .n {
  font: 800 4.2rem/1 var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  letter-spacing: -.05em;
}

.how-step:hover .n {
  color: var(--emerald);
  -webkit-text-stroke-color: var(--emerald);
  transition: color .3s;
}

.how-step h3 {
  font: 800 1.3rem var(--font-heading);
  margin: 14px 0 8px;
  color: var(--text);
}

.how-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-head { align-items: flex-start; }
}

/* ==========================================================================
   CONTENT CARDS: BORDERLESS EDITORIAL WITH 26PX ROUNDED THUMBNAILS
   ========================================================================== */
/* Content cards thumbnail wrap (editorial / blog / tutorial / assets) */
.editorial-card .card-thumb-wrap,
.asset-card .card-thumb-wrap,
.tutorial-card .card-thumb-wrap,
.tutorial-thumb-wrap,
.blog-card .card-thumb-wrap,
.post-card .card-thumb-wrap,
.thumb-wrap {
  position: relative;
  border-radius: 26px !important;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface-elevated);
  aspect-ratio: 16/9;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

[data-theme="dark"] .editorial-card .card-thumb-wrap,
[data-theme="dark"] .asset-card .card-thumb-wrap,
[data-theme="dark"] .tutorial-card .card-thumb-wrap,
[data-theme="dark"] .tutorial-thumb-wrap,
[data-theme="dark"] .blog-card .card-thumb-wrap,
[data-theme="dark"] .post-card .card-thumb-wrap,
[data-theme="dark"] .thumb-wrap {
  border-color: var(--line) !important;
  background: var(--bg-surface-elevated) !important;
}

/* Ensure editor-card (index / profile) has authentic macOS Glass Card styling */
.editor-card {
  position: relative !important;
  overflow: hidden !important;
  contain: paint !important;
  border-radius: 22px !important;
  backdrop-filter: blur(24px) saturate(190%) contrast(105%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(105%) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .editor-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 18, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .editor-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(18, 24, 38, 0.82) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 32px -4px rgba(16, 185, 129, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .editor-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.68) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #0F172A !important;
}

[data-theme="light"] .editor-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.14), 0 0 25px -4px rgba(16, 185, 129, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 1) !important;
}

.editor-card .card-thumb-wrap {
  border-radius: 19px 19px 0 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.card-thumb-wrap img, .thumb-wrap img, .tutorial-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease), filter .5s;
}

.editorial-card, .asset-card, .tutorial-card, .blog-card, .post-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

.editorial-card:hover .card-thumb-wrap,
.asset-card:hover .card-thumb-wrap,
.tutorial-card:hover .tutorial-thumb-wrap,
.tutorial-card:hover .card-thumb-wrap,
.blog-card:hover .card-thumb-wrap,
.post-card:hover .card-thumb-wrap {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: 0 20px 40px -18px var(--emerald-glow) !important;
}

.editorial-card:hover img,
.asset-card:hover img,
.tutorial-card:hover img,
.blog-card:hover, .post-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.15);
}

/* ==========================================================================
   PANELS & FEATURED BOXES (Rotating Conic Gradient Border)
   Reference: .urgent-match-card
   ========================================================================== */
@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinAng {
  to { --ang: 360deg; }
}

@keyframes boltPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

html[data-theme] .urgent-match-card,
html[data-theme] .panel-highlight,
html[data-theme] .form-panel-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid transparent !important;
  border-radius: 30px !important;
  padding: clamp(22px, 3.4vw, 40px) !important;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-surface)) padding-box,
              conic-gradient(from var(--ang), rgba(16, 185, 129, .08) 0 55%, #10B981 78%, #3B82F6 90%, rgba(16, 185, 129, .08) 100%) border-box !important;
  box-shadow: 0 40px 80px -40px rgba(16, 185, 129, .45), 0 2px 0 rgba(255, 255, 255, .04) inset !important;
  animation: spinAng 7s linear infinite;
}

html[data-theme] .urgent-match-card::before,
html[data-theme] .panel-highlight::before,
html[data-theme] .form-panel-animated::before {
  content: "" !important;
  position: absolute !important;
  inset: auto !important;
  top: -140px !important;
  right: -90px !important;
  width: 380px !important;
  height: 380px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(16, 185, 129, .28), transparent 65%) !important;
  pointer-events: none;
  z-index: -1;
  animation: drift 12s ease-in-out infinite alternate;
}

html[data-theme] .urgent-match-card::after,
html[data-theme] .panel-highlight::after,
html[data-theme] .form-panel-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(120deg, transparent 35%, #000);
  mask: linear-gradient(120deg, transparent 35%, #000);
}

/* ==========================================================================
   FORM FIELDS (54px tall, 16px radius, Numbered Chips, Green Focus)
   ========================================================================== */
.urgent-match-form, .form-container-numbered {
  counter-reset: uf;
}

.urgent-form-field, .form-group-numbered {
  counter-increment: uf;
  margin-bottom: 20px;
}

.urgent-match-form .urgent-form-field {
  margin-bottom: 0 !important;
}

.urgent-assure {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
}
.urgent-assure span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.urgent-assure span:not(:last-child)::after {
  content: "•";
  margin-left: 14px;
  color: var(--line-hover);
  font-weight: bold;
}

.urgent-form-field label, .form-group-numbered label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font: 600 .72rem var(--font-mono) !important;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 9px !important;
}

.urgent-form-field label::before, .form-group-numbered label::before {
  content: "0" counter(uf);
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  font-weight: 700;
  font-size: 0.75rem;
}

html[data-theme] .form-input,
html[data-theme] .form-select,
html[data-theme] .form-textarea,
html[data-theme] .urgent-select {
  width: 100%;
  border-radius: 16px !important;
  border: 1.5px solid var(--line) !important;
  background: var(--bg-surface-elevated) !important;
  color: var(--text) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-sizing: border-box;
}

html[data-theme] .form-input,
html[data-theme] .form-select,
html[data-theme] .urgent-select {
  height: 54px;
  padding: 0 18px !important;
}

html[data-theme] .form-select,
html[data-theme] .urgent-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px !important;
  background: var(--bg-surface-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/16px !important;
}

html[data-theme] .form-textarea {
  padding: 14px 18px !important;
  min-height: 120px;
  resize: vertical;
}

html[data-theme] .form-input:hover,
html[data-theme] .form-select:hover,
html[data-theme] .form-textarea:hover,
html[data-theme] .urgent-select:hover {
  border-color: var(--emerald-border) !important;
  transform: translateY(-2px);
}

html[data-theme] .form-input:focus,
html[data-theme] .form-select:focus,
html[data-theme] .form-textarea:focus,
html[data-theme] .urgent-select:focus {
  outline: none;
  border-color: var(--emerald) !important;
  box-shadow: 0 0 0 4px var(--emerald-glow) !important;
}

/* ==========================================================================
   STICKY FILTER TOOLBAR
   ========================================================================== */
@media (min-width: 1024px) {
  html[data-theme] .filter-bar,
  html[data-theme] .sticky-filter-toolbar {
    position: sticky;
    top: 84px;
    z-index: 30;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px 16px !important;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45);
  }
}

/* ==========================================================================
   CTA BAND ("Are you an editor? Get found.")
   ========================================================================== */
.cta-band {
  padding: clamp(48px, 7vw, 96px) 0;
}

.cta-inner {
  background: var(--emerald);
  color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: clamp(30px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 30px 70px -30px var(--emerald-glow);
  position: relative;
  overflow: hidden;
}

.cta-inner h2 {
  font: 800 clamp(2rem, 5vw, 3.8rem)/1 var(--font-heading);
  letter-spacing: -.04em;
  margin: 0 0 12px;
  color: #FFFFFF !important;
  max-width: 720px;
  text-wrap: balance;
}

.cta-inner p {
  margin: 0;
  font-size: 1.15rem;
  opacity: .92;
  max-width: 580px;
  line-height: 1.6;
  color: #FFFFFF !important;
}

.cta-btn {
  background: #FFFFFF !important;
  color: #064E3B !important;
  font-size: 1.05rem;
  padding: 0 34px;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, .25) !important;
  flex-shrink: 0;
}

.cta-btn:hover {
  background: #F0FDF4 !important;
  color: #047857 !important;
}

@media (max-width: 640px) {
  .cta-inner { padding: 28px 22px; }
  .cta-btn { width: 100%; }
}

/* ==========================================================================
   FOOTER (Site-wide Standard)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
  background: var(--bg-surface);
  position: relative;
  margin-top: auto;
}

[data-theme="dark"] .site-footer {
  background: var(--bg-surface) !important;
  border-top-color: var(--line) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.footer-col h5 {
  color: var(--text) !important;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--emerald);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--emerald);
}

.btn-wa-direct, .job-apply-btn {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   MOTION SYSTEM (Layer 3 — Motion & Keyframes)
   ========================================================================== */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@keyframes popIn {
  from { opacity: 0; scale: .86; translate: 0 40px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes panelFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.08); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Hero Staggered Entrance */
.hero > .container > .hero-eyebrow, .page-hero > .container > .hero-eyebrow {
  animation: heroIn .8s var(--ease) .05s both;
}
.hero > .container > .hero-title, .page-hero > .container > h1 {
  animation: heroIn .9s var(--ease) .18s both;
}
.hero > .container > .hero-subtitle, .page-hero > .container > p.subtitle {
  animation: heroIn .9s var(--ease) .32s both;
}
.hero > .container > .search-wrapper, .page-hero > .container > .search-wrapper {
  animation: heroIn .9s var(--ease) .46s both;
}
.hero > .container > .hero-trust-row, .page-hero > .container > .hero-trust-row {
  animation: heroIn .9s var(--ease) .6s both;
}

/* Pulses */
.pulse-dot-green, .pulse-dot-online {
  animation: dotPulse 1.9s ease-out infinite;
}

/* Scroll reveal (class added by JS only) */
.js-reveal {
  opacity: 0;
  translate: 0 46px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.js-reveal.in {
  opacity: 1;
  translate: 0 0;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   SUBPAGE UNIFIED STYLES & COMPONENTS
   ========================================================================== */

/* 1. FILTER TOOLBARS (Assets, Tutorials, Blog) */
.category-buttons-wrap,
.filter-row,
.cat-filter-container {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 1240px;
  padding: 0 24px;
}

.category-filter-row,
.filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  width: fit-content;
  box-sizing: border-box;
  transition: all 0.22s var(--ease);
}

@media (min-width: 768px) and (max-width: 980px) {
  .category-filter-row,
  .filter-row {
    border-radius: 18px !important;
    padding: 8px 12px !important;
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  .category-buttons-wrap,
  .filter-row,
  .cat-filter-container {
    padding: 0 16px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .category-filter-row,
  .filter-row {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-pill) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }
  .category-filter-row::-webkit-scrollbar,
  .filter-row::-webkit-scrollbar {
    display: none !important;
  }
  .cat-btn,
  .filter-btn {
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 1024px) {
  .category-buttons-wrap,
  .filter-row-sticky {
    position: sticky;
    top: 84px;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.cat-btn,
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.cat-btn:hover,
.filter-btn:hover {
  color: var(--text);
  background: var(--bg-surface-elevated);
  border-color: var(--line);
}

.cat-btn.active,
.filter-btn.active {
  background: var(--emerald) !important;
  color: #FFFFFF !important;
  border-color: var(--emerald) !important;
  box-shadow: 0 4px 14px var(--emerald-glow) !important;
}

/* 2. RESOURCE DIRECTORY (assets.html) */
.category-section {
  margin-bottom: 56px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-title {
  font: 800 1.35rem var(--font-heading);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.category-count {
  font: 600 0.8rem var(--font-mono);
  color: var(--emerald);
  background: var(--emerald-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--emerald-border);
}

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

@media (min-width: 768px) and (max-width: 1024px) {
  .website-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .website-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.website-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.website-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: 0 16px 36px -12px var(--emerald-glow);
}

.website-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.website-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.website-address {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.website-card:hover .website-visit-btn {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.submit-callout {
  margin: 60px auto 40px;
  text-align: center;
  max-width: 780px;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.submit-callout h3 {
  font: 800 clamp(1.6rem, 3.5vw, 2.2rem) var(--font-heading);
  color: var(--text);
  margin-bottom: 12px;
}

.submit-callout p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 24px;
}

/* 3. TUTORIALS & VIDEO CARDS (tutorials.html) */
.tutorials-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tutorials-wrap {
    padding: 0 20px 50px;
  }
}

@media (max-width: 767px) {
  .tutorials-wrap {
    padding: 0 16px 40px;
  }
}

.tutorials-wrap .grid,
#tutorialGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tutorials-wrap .grid,
  #tutorialGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .tutorials-wrap .grid,
  #tutorialGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
}

.tutorial-thumb-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface-elevated);
  aspect-ratio: 16/9;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.tutorial-card:hover .tutorial-thumb-wrap {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: 0 20px 40px -16px var(--emerald-glow);
}

.tutorial-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.tutorial-card:hover .tutorial-thumb-img {
  transform: scale(1.05);
}

.thumb-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.btn-play-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(14, 16, 22, 0.82);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.editor-card:hover .btn-play-video,
.tutorial-card:hover .btn-play-video {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--emerald);
  border-color: var(--emerald);
  color: #022013;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.65);
}

.editor-card:hover .btn-play-video svg,
.tutorial-card:hover .btn-play-video svg {
  fill: #022013;
}

.video-platform-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font: 700 0.72rem var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.tutorial-card-body {
  padding: 16px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutorial-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.post-cat {
  font: 600 0.75rem var(--font-mono);
  color: var(--emerald);
  background: var(--emerald-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--emerald-border);
}

.tutorial-channel-name {
  font: 500 0.8rem var(--font-body);
  color: var(--text-muted);
}

.tutorial-title {
  font: 700 1.15rem var(--font-heading);
  line-height: 1.4;
  margin: 2px 0 4px;
}

.tutorial-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.tutorial-title a:hover {
  color: var(--emerald);
}

.tutorial-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.tutorial-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.btn-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.84rem;
  transition: transform 0.2s;
}

.btn-yt-link:hover {
  transform: translateX(3px);
}

/* 4. BLOG & ARTICLES (blog.html & blog-post.html) */
.blog-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-wrap {
    padding: 0 20px 50px;
  }
}

@media (max-width: 767px) {
  .blog-wrap {
    padding: 0 16px 40px;
  }
}

.blog-wrap .grid,
#blogGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-wrap .grid,
  #blogGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .blog-wrap .grid,
  #blogGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

.blog-card, .post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.post-cover {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface-elevated);
  aspect-ratio: 16/9;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.blog-card:hover, .post-card:hover .post-cover {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: 0 20px 40px -16px var(--emerald-glow);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.blog-card:hover, .post-card:hover .post-cover img {
  transform: scale(1.05);
}

.post-body {
  padding: 16px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-title {
  font: 700 1.2rem var(--font-heading);
  color: var(--text);
  line-height: 1.4;
  margin: 4px 0;
  transition: color 0.2s;
}

.blog-card:hover, .post-card:hover .post-title {
  color: var(--emerald);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 0.8rem var(--font-mono);
  color: var(--text-dim);
  margin-top: 6px;
}

/* Single Post Specific */
.single-post-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font: 800 clamp(2.2rem, 5vw, 3.6rem)/1.15 var(--font-heading);
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.article-cover {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 36px;
  aspect-ratio: 16/9;
}

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

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
  margin: 44px 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 28px;
}

.article-content li {
  margin-bottom: 10px;
}

/* 5. ABOUT PAGE (about.html) */
.about-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.content h2 {
  font: 800 clamp(1.8rem, 4vw, 2.4rem) var(--font-heading);
  color: var(--text);
  margin: 48px 0 16px;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 860px;
  margin-bottom: 24px;
}

.grid-do {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 60px;
}

.card-do {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

[data-theme="dark"] .card-do {
  background: var(--bg-card);
}

.card-do:hover {
  transform: translate(-4px, -4px);
  border-color: var(--emerald-border);
  box-shadow: 0 20px 40px -16px var(--emerald-glow);
}

.card-do h3 {
  font: 800 1.3rem var(--font-heading);
  color: var(--text);
  margin: 12px 0 10px;
}

.card-do p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
}

.stat-num {
  font: 800 clamp(2.8rem, 5vw, 4rem)/1 var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--emerald);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.stat-label {
  font: 600 0.9rem var(--font-body);
  color: var(--text-muted);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-do { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 767px) {
  .grid-do { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 40px; }
}

/* 6. CONTACT PAGE (contact.html) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 60px;
}

.contact-card {
  padding: 36px 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-border);
  box-shadow: 0 20px 40px -16px var(--emerald-glow);
}

.contact-card .ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  display: grid;
  place-items: center;
}

.contact-card .ic svg {
  width: 26px;
  height: 26px;
}

.contact-card h3 {
  font: 800 1.25rem var(--font-heading);
  color: var(--text);
  margin: 0;
}

.contact-card a {
  color: var(--emerald);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-card a:hover {
  text-decoration: underline;
}

.social-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.social-strip a:hover {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--emerald-glow);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 40px; }
}

/* 7. AUTH / LOGIN PAGE (login.html) */
.login-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.login-card {
  width: 100%;
  max-width: 540px;
}

.auth-mode-toggle {
  display: flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-mode-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}

.auth-mode-btn.active {
  background: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.78rem var(--font-mono);
  color: var(--emerald);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.login-title {
  font: 800 clamp(1.8rem, 4vw, 2.4rem) var(--font-heading);
  color: var(--text);
  margin-bottom: 8px;
}

.login-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 8. PROFILE PAGE (editor-profile.html) */
.profile-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  width: 100%;
}

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

.p-header-block {
  margin-bottom: 28px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.82rem var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--emerald);
}

.p-name-title {
  font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--font-heading);
  color: var(--text);
  margin-bottom: 16px;
}

.fiverr-seller-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.showreel-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface-elevated);
  aspect-ratio: 16/9;
  margin-bottom: 32px;
  box-shadow: 0 16px 36px -16px var(--emerald-glow);
}

.showreel-card iframe,
.showreel-card video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 9. TERMS & POLICIES (terms.html & cookie-policy.html) */
.terms-tabs-wrapper {
  position: sticky;
  top: 84px;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 36px;
}

.terms-tabs,
.terms-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 10px;
  padding: 2px 0;
}

.terms-tabs::-webkit-scrollbar,
.terms-tabs-nav::-webkit-scrollbar {
  display: none;
}

.terms-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.terms-tab:hover {
  color: var(--text);
  border-color: var(--line-hover);
  transform: translateY(-1px);
}

.terms-tab.active {
  background: var(--emerald) !important;
  color: #FFFFFF !important;
  border-color: var(--emerald) !important;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

@media (max-width: 768px) {
  .terms-tabs-wrapper {
    top: 60px;
    padding: 10px 0;
    margin-bottom: 24px;
  }
  .terms-tabs,
  .terms-tabs-nav {
    gap: 10px 8px;
  }
  .terms-tab {
    padding: 7px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }
}

.terms-card,
.cookie-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 40px;
}

.terms-section,
.cookie-section {
  margin-bottom: 36px;
}

.terms-section:last-child,
.cookie-section:last-child {
  margin-bottom: 0;
}

.terms-section h2,
.cookie-section h2 {
  font: 800 1.4rem var(--font-heading);
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-section p,
.cookie-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 10. 404 ERROR PAGE (404.html) */
.error-hero {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 24px;
  max-width: 720px;
  margin: 0 auto;
}

.error-code {
  font: 800 clamp(5rem, 15vw, 10rem)/1 var(--font-heading);
  color: transparent;
  -webkit-text-stroke: 2px var(--emerald);
  letter-spacing: -.05em;
  margin-bottom: 16px;
}

.error-title {
  font: 800 clamp(1.8rem, 4vw, 2.6rem) var(--font-heading);
  color: var(--text);
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}



/* Single Blog Post Page Styles */
.post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back-nav {
  margin-bottom: 28px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}

.back-btn:hover {
  color: var(--emerald);
  transform: translateX(-4px);
}

.article-title {
  font: 800 clamp(2rem, 5vw, 3.2rem)/1.2 var(--font-heading);
  color: var(--text);
  margin: 12px 0 18px;
}

.category-badge {
  display: inline-block;
  font: 700 0.75rem var(--font-mono);
  color: var(--emerald);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 0.82rem var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cover-wrap {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 36px;
  aspect-ratio: 16/9;
}

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

.article-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2,
.article-body h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 28px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--emerald);
  text-decoration: underline;
}

.article-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}

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

.share-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.hire-cta-card {
  margin-top: 48px;
  padding: 36px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-align: center;
}

.hire-cta-card h3 {
  font: 800 1.5rem var(--font-heading);
  color: var(--text);
  margin-bottom: 12px;
}

.hire-cta-card p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.btn-hire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #22D38A, #0E9F6E);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--emerald-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--emerald-glow);
}



@media (max-width: 640px) {
  .btn-primary:not([style*="width:auto"]):not([style*="width: auto"]):not([style*="width:fit-content"]),
  .btn-hero-primary,
  .btn-submit:not([style*="width:auto"]):not([style*="width: auto"]),
  .cta-btn,
  .urgent-btn,
  .btn-urgent-match,
  .btn-hire {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   DARK THEME TEXT CONTRAST FIXES
   ========================================================================== */
[data-theme="dark"] .urgent-pill-tag,
[data-theme="dark"] .login-badge {
  color: var(--emerald) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

[data-theme="dark"] .job-type-pill.project {
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(16, 185, 129, 0.15) !important;
}

[data-theme="dark"] .job-type-pill.office {
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  background: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="dark"] .job-type-pill.remote {
  color: #60A5FA !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  background: rgba(37, 99, 235, 0.15) !important;
}

[data-theme="dark"] .fiverr-badge-soft[style*="#059669"] {
  color: #34D399 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .fiverr-badge-soft[style*="#1877F2"] {
  color: #60A5FA !important;
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .fiverr-badge-soft[style*="#7A40F2"] {
  color: #C084FC !important;
  background: rgba(147, 51, 234, 0.15) !important;
  border-color: rgba(147, 51, 234, 0.3) !important;
}

/* Dark Theme High-Contrast Font & Text Overrides */
[data-theme="dark"] .job-card,
[data-theme="dark"] .editor-card {
  color: #F8FAFC !important;
}
[data-theme="dark"] .job-desc {
  color: #E2E8F0 !important;
}
[data-theme="dark"] .job-desc * {
  color: inherit;
}
[data-theme="dark"] .job-title,
[data-theme="dark"] .job-card-title {
  color: #FFFFFF !important;
}
[data-theme="dark"] .job-meta-company,
[data-theme="dark"] .job-company-name {
  color: #F8FAFC !important;
}
[data-theme="dark"] .job-meta-location,
[data-theme="dark"] .job-location-tag,
[data-theme="dark"] .job-company-meta,
[data-theme="dark"] .job-meta-item {
  color: #94A3B8 !important;
}
[data-theme="dark"] .job-budget,
[data-theme="dark"] .job-salary-amount {
  color: #34D399 !important;
}
[data-theme="dark"] .job-budget {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
[data-theme="dark"] .job-filter-pill {
  background: var(--bg-surface-elevated) !important;
  color: #E2E8F0 !important;
  border-color: var(--line) !important;
}
[data-theme="dark"] .job-filter-pill:hover {
  color: var(--emerald) !important;
  border-color: var(--emerald) !important;
}
[data-theme="dark"] .job-filter-pill.active {
  background: var(--emerald) !important;
  color: #FFFFFF !important;
  border-color: var(--emerald) !important;
}
[data-theme="dark"] .jobs-count-badge {
  color: #94A3B8 !important;
}
[data-theme="dark"] .tab-btn {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .tab-btn:hover {
  color: #FFFFFF !important;
}
[data-theme="dark"] .tab-btn.active {
  background: var(--bg-surface-elevated) !important;
  color: var(--emerald) !important;
}
[data-theme="dark"] .tab-count {
  color: #CBD5E1 !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .tab-btn.active .tab-count {
  color: var(--emerald) !important;
  background: var(--emerald-light) !important;
  border-color: var(--emerald-border) !important;
}
[data-theme="dark"] .jobs-community-left strong {
  color: #FFFFFF !important;
}
[data-theme="dark"] .jobs-community-left p {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .jobs-hero-title-wrap h2 {
  color: #FFFFFF !important;
}
[data-theme="dark"] .jobs-hero-title-wrap p {
  color: #94A3B8 !important;
}
[data-theme="dark"] .footer-col h5 {
  color: #F8FAFC !important;
}
[data-theme="dark"] .footer-col ul a {
  color: #94A3B8 !important;
}
[data-theme="dark"] .footer-col ul a:hover {
  color: var(--emerald) !important;
}
[data-theme="dark"] .gig-headline {
  color: #F8FAFC !important;
}
[data-theme="dark"] .author-name-title,
[data-theme="dark"] .author-name-title a {
  color: #FFFFFF !important;
}
[data-theme="dark"] .author-specialty-subtitle {
  color: #10B981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.26) !important;
  border-radius: 6px !important;
  padding: 3px 9px !important;
  display: inline-block !important;
}
[data-theme="dark"] .card-location {
  color: #94A3B8 !important;
}

/* macOS Frosted Glass 4-Stat Grid (About Editor) */
.seller-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin-bottom: 20px !important;
}
.seller-stats-grid > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 14px 10px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  min-height: 72px !important;
  gap: 6px !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.seller-stats-grid > div:hover {
  transform: translateY(-2px) !important;
}
[data-theme="dark"] .seller-stats-grid > div {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
}
[data-theme="light"] .seller-stats-grid > div {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95) !important;
}
.seller-stats-grid > div span {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  display: block !important;
  text-align: center !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  width: 100% !important;
}
.seller-stats-grid > div strong {
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  display: block !important;
  text-align: center !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 100% !important;
}
@media (max-width: 767px) {
  .seller-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
  }
  .seller-stats-grid > div {
    padding: 12px 8px !important;
    min-height: 64px !important;
  }
}




