/* ==========================================================================
   FontGenixy - Dark Glass UI System
   Reference target: compact premium SaaS tool with blue/purple/orange glow.
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-main: #050917;
  --bg-main-2: #090922;
  --bg-card: rgba(29, 34, 52, 0.72);
  --bg-card-strong: rgba(36, 42, 63, 0.84);
  --bg-input: rgba(255, 255, 255, 0.09);
  --bg-input-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f7f8ff;
  --text-muted: rgba(239, 242, 255, 0.86);
  --text-light: rgba(239, 242, 255, 0.68);
  --primary: #ff9358;
  --primary-hover: #ffb174;
  --primary-light: rgba(255, 147, 88, 0.16);
  --secondary: #63a7ff;
  --secondary-hover: #8a7dff;
  --secondary-light: rgba(99, 167, 255, 0.18);
  --pink: #e176d7;
  --violet: #8e5cff;
  --success: #72e6a5;
  --border: rgba(221, 230, 255, 0.2);
  --border-strong: rgba(235, 240, 255, 0.34);
  --border-focus: rgba(255, 169, 106, 0.82);
  --hero-gradient: linear-gradient(90deg, #65a9ff 6%, #9d7cff 41%, #f27bc4 66%, #ffa45e 96%);
  --accent-gradient: linear-gradient(135deg, #6cb3ff 0%, #8c74ff 42%, #f47cc3 68%, #ff9b5a 100%);
  --surface-gradient: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 0 1px rgba(108,179,255,0.5), 0 0 22px rgba(100,166,255,0.42), 0 0 28px rgba(255,147,88,0.28);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;
  --container: 1210px;
  --tool: 860px;
}

/* ── Dark theme (explicit) ── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #050917;
  --bg-main-2: #090922;
  --bg-card: rgba(29, 34, 52, 0.72);
  --bg-card-strong: rgba(36, 42, 63, 0.84);
  --bg-input: rgba(255, 255, 255, 0.09);
  --bg-input-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f7f8ff;
  --text-muted: rgba(239, 242, 255, 0.86);
  --text-light: rgba(239, 242, 255, 0.68);
  --border: rgba(221, 230, 255, 0.2);
  --border-strong: rgba(235, 240, 255, 0.34);
  --border-focus: rgba(255, 169, 106, 0.82);
}

/* ── Light theme ── */
[data-theme="light"] {
  color-scheme: light;
  --bg-main: #f0f2fa;
  --bg-main-2: #e8eaf6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-strong: rgba(255, 255, 255, 0.94);
  --bg-input: rgba(0, 0, 0, 0.06);
  --bg-input-strong: rgba(0, 0, 0, 0.1);
  --text-main: #12172e;
  --text-muted: rgba(18, 23, 46, 0.72);
  --text-light: rgba(18, 23, 46, 0.48);
  --border: rgba(18, 23, 80, 0.15);
  --border-strong: rgba(18, 23, 80, 0.28);
  --border-focus: rgba(255, 120, 60, 0.72);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 0 1px rgba(99,167,255,0.35), 0 0 18px rgba(99,167,255,0.28), 0 0 22px rgba(255,120,60,0.18);
}

/* Light-mode body overrides */
[data-theme="light"] body {
  background:
    radial-gradient(circle at 17% 9%,  rgba(99, 167, 255, 0.25) 0 8%,  transparent 28%),
    radial-gradient(circle at 73% 20%, rgba(180, 100, 220, 0.18) 0 11%, transparent 32%),
    radial-gradient(circle at 89% 12%, rgba(255, 140, 60,  0.22) 0 9%,  transparent 27%),
    linear-gradient(155deg, #eef0fc 0%, #e8eaf6 40%, #ede8f8 70%, #f0eefa 100%);
  background-attachment: fixed;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(180,200,255,0.18), transparent 34%);
  filter: blur(18px);
}

[data-theme="light"] body::after {
  background: none;
}

/* Light-mode navbar */
[data-theme="light"] .navbar {
  background: linear-gradient(90deg, rgba(225,232,255,0.82), rgba(240,230,255,0.78), rgba(255,230,220,0.72));
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] .nav-link,
[data-theme="light"] .nav-dropdown-toggle {
  color: rgba(18, 23, 46, 0.82);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-dropdown-toggle:hover {
  color: #12172e;
  text-shadow: 0 0 10px rgba(99,167,255,0.35);
}

[data-theme="light"] .hamburger span {
  background: #12172e;
}

[data-theme="light"] .hamburger {
  border-color: var(--border);
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .dropdown-menu {
  background: rgba(245, 247, 255, 0.96);
  border-color: var(--border-strong);
}

[data-theme="light"] .dropdown-item {
  color: var(--text-muted);
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item.active {
  background: rgba(99,167,255,0.12);
  color: #12172e;
}

/* Light-mode main input */
[data-theme="light"] .main-input-wrapper {
  background: linear-gradient(90deg, rgba(200,220,255,0.45), rgba(245,246,255,0.6), rgba(255,210,180,0.38));
  border-color: rgba(99,167,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 16px rgba(99,167,255,0.14), 0 0 26px rgba(255,140,60,0.1);
}

[data-theme="light"] .main-input {
  color: #12172e;
}

[data-theme="light"] .main-input::placeholder {
  color: rgba(18,23,46,0.5);
}

/* Light-mode buttons / filter pills */
[data-theme="light"] .btn-action,
[data-theme="light"] .filter-btn,
[data-theme="light"] .preview-tab,
[data-theme="light"] .toc-toggle-btn,
[data-theme="light"] .tool-link-card,
[data-theme="light"] .symbol-btn {
  background: rgba(255,255,255,0.72);
  border-color: rgba(18,23,80,0.18);
  color: #12172e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .btn-paste {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 110, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(120, 110, 255, 0.15);
  color: #12172e;
}

[data-theme="light"] .btn-ai,
[data-theme="light"] .form-submit {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 147, 88, 0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(255, 147, 88, 0.15);
  color: #12172e;
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .preview-tab.active {
  background:
    linear-gradient(rgba(220,226,255,0.92), rgba(220,226,255,0.92)) padding-box,
    var(--accent-gradient) border-box;
  border: 1px solid transparent;
  color: #12172e;
}

/* Light-mode cards / surfaces */
[data-theme="light"] .seo-card,
[data-theme="light"] .ai-panel,
[data-theme="light"] .toc,
[data-theme="light"] .author-bio,
[data-theme="light"] .blog-card,
[data-theme="light"] .contact-form {
  background: rgba(255,255,255,0.82);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .font-card {
  background: rgba(255,255,255,0.78);
  border-color: rgba(18,23,80,0.12);
}

[data-theme="light"] .font-card:hover {
  background: rgba(255,255,255,0.95);
}

[data-theme="light"] .ai-input {
  background: rgba(255,255,255,0.65);
  color: #12172e;
  border-color: var(--border-strong);
}

/* Light-mode footer */
[data-theme="light"] .footer {
  background: rgba(225,228,255,0.82);
  border-top: 1px solid var(--border);
}

/* Light-mode scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(225,228,255,0.5);
}

/* Light-mode theme toggle button */
[data-theme="light"] .btn-theme {
  background: rgba(18,23,80,0.1);
  border-color: rgba(18,23,80,0.22);
  color: #12172e;
}

[data-theme="light"] .btn-theme::before {
  background: rgba(18,23,80,0.82);
  box-shadow: 0 0 10px rgba(18,23,80,0.2);
}

[data-theme="light"] .btn-theme::after {
  color: rgba(18,23,46,0.72);
}

/* Smooth theme transition */
body,
.navbar,
.font-card,
.seo-card,
.toc,
.author-bio,
.footer,
.ai-panel,
.main-input-wrapper,
.btn-theme,
.dropdown-menu {
  transition:
    background 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

/* ==========================================================================
   LIGHT MODE — comprehensive overrides for all hardcoded white/dark values
   ========================================================================== */

/* ── Font cards ── */
[data-theme="light"] .font-card {
  border-color: rgba(18, 23, 80, 0.14);
  background:
    linear-gradient(130deg, rgba(255,255,255,0.9), rgba(240,242,255,0.82)),
    rgba(245, 246, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 18px rgba(0,0,0,0.08);
}

[data-theme="light"] .font-card:hover,
[data-theme="light"] .font-card:focus-visible {
  border-color: rgba(255, 120, 50, 0.55);
  box-shadow: var(--shadow-glow), 0 8px 28px rgba(0,0,0,0.12);
}

[data-theme="light"] .font-preview {
  color: #12172e;
  text-shadow: none;
}

[data-theme="light"] .font-preview.placeholder {
  color: rgba(18, 23, 46, 0.55);
}

[data-theme="light"] .font-name {
  background: rgba(18, 23, 80, 0.1);
  color: rgba(18, 23, 46, 0.72);
}

[data-theme="light"] .copy-hint {
  color: rgba(18, 23, 46, 0.82);
}

/* ── Filter scroll arrows ── */
[data-theme="light"] .filter-scroll::before,
[data-theme="light"] .filter-scroll::after {
  color: rgba(18, 23, 46, 0.55);
}

/* ── Filter buttons & preview tabs ── */
[data-theme="light"] .filter-btn,
[data-theme="light"] .preview-tab {
  background: rgba(255,255,255,0.72);
  color: rgba(18, 23, 46, 0.82);
  border-color: rgba(18, 23, 80, 0.18);
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .preview-tab:hover {
  color: #12172e;
  border-color: rgba(99, 167, 255, 0.5);
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .preview-tab.active {
  color: #12172e;
}

/* ── Hero ── */
[data-theme="light"] .hero-subtitle {
  color: rgba(18, 23, 46, 0.82);
}

[data-theme="light"] .hero-subtitle a,
[data-theme="light"] .seo-card a,
[data-theme="light"] .blog-article a,
[data-theme="light"] .info-page a {
  color: #2563eb !important;
}

[data-theme="light"] .hero-subtitle a:hover,
[data-theme="light"] .seo-card a:hover,
[data-theme="light"] .blog-article a:hover,
[data-theme="light"] .info-page a:hover {
  color: #ea580c !important;
}

/* ── Breadcrumb ── */
[data-theme="light"] .breadcrumb {
  color: rgba(18, 23, 46, 0.55);
}

[data-theme="light"] .breadcrumb a {
  color: rgba(18, 23, 46, 0.65);
}

[data-theme="light"] .breadcrumb a:hover {
  color: #12172e;
}

[data-theme="light"] .breadcrumb span {
  color: rgba(18, 23, 46, 0.32);
}

/* ── SEO card ── */
[data-theme="light"] .seo-card {
  background:
    linear-gradient(140deg, rgba(255,255,255,0.92), rgba(245,247,255,0.88));
  border-color: var(--border);
}

[data-theme="light"] .seo-card h2,
[data-theme="light"] .seo-card h3,
[data-theme="light"] .seo-card h4,
[data-theme="light"] .info-page h2,
[data-theme="light"] .info-page h3,
[data-theme="light"] .blog-article h2,
[data-theme="light"] .blog-article h3 {
  color: #12172e;
}

[data-theme="light"] .seo-card p,
[data-theme="light"] .seo-card li,
[data-theme="light"] .info-page p,
[data-theme="light"] .info-page li,
[data-theme="light"] .blog-article p,
[data-theme="light"] .blog-article li {
  color: rgba(18, 23, 46, 0.78);
}

/* ── AEO block ── */
[data-theme="light"] .aeo-block {
  background: linear-gradient(90deg, rgba(99,167,255,0.1), rgba(255,147,88,0.06));
  border-color: rgba(99, 167, 255, 0.3);
}

[data-theme="light"] .aeo-block p {
  color: rgba(18, 23, 46, 0.88);
}

/* ── Trust strip ── */
[data-theme="light"] .trust-strip {
  background: rgba(255,255,255,0.7);
  border-color: var(--border);
}

[data-theme="light"] .trust-item {
  color: rgba(18, 23, 46, 0.78);
}

/* ── TOC ── */
[data-theme="light"] .toc {
  background: rgba(245, 247, 255, 0.88);
  border-color: var(--border);
}

[data-theme="light"] .toc h4,
[data-theme="light"] .toc-toggle-btn {
  color: #12172e;
}

[data-theme="light"] .toc a {
  color: rgba(18, 23, 46, 0.78);
}

[data-theme="light"] .toc a:hover {
  color: #2563eb;
}

/* ── Author bio ── */
[data-theme="light"] .author-bio {
  background: rgba(245, 247, 255, 0.85);
  border-color: var(--border);
}

[data-theme="light"] .author-name {
  color: #12172e;
}

[data-theme="light"] .author-role {
  color: rgba(18, 23, 46, 0.6);
}

/* ── Section header ── */
[data-theme="light"] .section-header h3 {
  color: rgba(18, 23, 46, 0.6);
}

[data-theme="light"] .badge-count {
  background: rgba(18, 23, 80, 0.07);
  color: rgba(18, 23, 46, 0.65);
  border-color: var(--border);
}

/* ── Tool link cards ── */
[data-theme="light"] .tool-link-card {
  background: rgba(255,255,255,0.78);
  border-color: rgba(18,23,80,0.14);
  color: #12172e;
}

[data-theme="light"] .tool-link-card:hover {
  background: rgba(255,255,255,0.96);
}

/* ── FAQ / details ── */
[data-theme="light"] details {
  border-color: var(--border);
}

[data-theme="light"] details summary {
  color: #12172e;
}

[data-theme="light"] details p {
  color: rgba(18, 23, 46, 0.78);
}

/* ── Footer ── */
[data-theme="light"] .footer {
  background: rgba(220, 225, 255, 0.88);
}

[data-theme="light"] .footer h4 {
  color: #12172e;
}

[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-bottom {
  color: rgba(18, 23, 46, 0.72);
}

[data-theme="light"] .footer-links a:hover {
  color: #12172e;
}

/* ── Mockup / platform preview (phone stays dark on both themes) ── */
[data-theme="light"] .mockup-container {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(142,92,255,0.12), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255,147,88,0.1), transparent 70%),
    rgba(18, 23, 46, 0.03);
  border-color: var(--border);
}

/* ── Scroll progress ── */
[data-theme="light"] .scroll-progress {
  box-shadow: 0 0 12px rgba(99, 167, 255, 0.5);
}

/* ── Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99,167,255,0.5), rgba(255,120,60,0.45));
}

/* ── Selection ── */
[data-theme="light"] ::selection {
  background: rgba(255, 120, 50, 0.25);
  color: #12172e;
}

/* ── Brand logo ── */
[data-theme="light"] .brand-logo {
  color: #12172e;
}

/* ── Nav links (all variants) ── */
[data-theme="light"] .nav-link,
[data-theme="light"] .nav-link--pill,
[data-theme="light"] .nav-dropdown-toggle {
  color: rgba(18, 23, 46, 0.8);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-link--pill:hover,
[data-theme="light"] .nav-link--pill.active,
[data-theme="light"] .nav-dropdown-toggle:hover {
  color: #12172e;
  text-shadow: 0 0 10px rgba(99,167,255,0.3);
}

/* Active nav pill background — light version */
[data-theme="light"] .nav-link.active::before {
  background:
    linear-gradient(rgba(220,228,255,0.88), rgba(220,228,255,0.88)) padding-box,
    var(--accent-gradient) border-box;
  box-shadow: 0 0 0 1px rgba(99,167,255,0.25), 0 0 12px rgba(99,167,255,0.2);
}

/* Dropdown arrow */
[data-theme="light"] .nav-dropdown-toggle .dd-arrow {
  color: rgba(18, 23, 46, 0.6);
}

/* ── Theme toggle ── */
/* The toggle pill itself */
[data-theme="light"] .btn-theme {
  background: rgba(255, 200, 40, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #f59e0b;
}

/* The sliding dot (CSS ::before) */
[data-theme="light"] .btn-theme::before {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* The moon icon (CSS ::after) */
[data-theme="light"] .btn-theme::after {
  color: #f59e0b;
}

/* The JS-injected toggle elements */
[data-theme="light"] .theme-switch-dot {
  background: #f59e0b;
}

[data-theme="light"] .theme-moon,
[data-theme="light"] .theme-sun {
  color: #f59e0b;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}

[data-theme="light"] .btn-theme:hover {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.35), 0 0 12px rgba(245,158,11,0.25);
}

/* ── Input placeholder ── */
[data-theme="light"] .main-input {
  color: #12172e;
}

[data-theme="light"] .main-input::placeholder {
  color: rgba(18, 23, 46, 0.45) !important;
}

/* ── AI input ── */
[data-theme="light"] .ai-input::placeholder {
  color: rgba(18, 23, 46, 0.45);
}

/* ── Footer description paragraph ── */
[data-theme="light"] .footer p {
  color: rgba(18, 23, 46, 0.65) !important;
}

/* Fix language toggle color in light mode */
[data-theme="light"] .lang-dropdown .nav-dropdown-toggle {
  color: #12172e !important;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 17% 9%, rgba(31, 132, 219, 0.8) 0 8%, transparent 28%),
    radial-gradient(circle at 73% 20%, rgba(144, 42, 179, 0.72) 0 11%, transparent 32%),
    radial-gradient(circle at 89% 12%, rgba(255, 129, 54, 0.82) 0 9%, transparent 27%),
    radial-gradient(circle at 62% 50%, rgba(115, 55, 218, 0.42) 0 12%, transparent 33%),
    linear-gradient(155deg, #051225 0%, #071225 34%, #0d0a2a 62%, #070a1a 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(128deg, transparent 0 10%, rgba(48,147,235,0.28) 15%, transparent 31%),
    linear-gradient(311deg, transparent 0 14%, rgba(255,146,71,0.3) 22%, transparent 43%),
    radial-gradient(ellipse at 50% 14%, rgba(255,255,255,0.08), transparent 23%);
  filter: blur(28px);
  transform: scale(1.04);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(5,9,23,0.05), rgba(5,9,23,0.58) 55%, rgba(5,9,23,0.88)),
    radial-gradient(circle at 50% 58%, transparent 0, rgba(5,9,23,0.2) 46%, rgba(5,9,23,0.78) 100%);
}

a { color: inherit; }

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-main);
  letter-spacing: 0;
}

::selection { background: rgba(255, 147, 88, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(4, 8, 22, 0.85); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99,167,255,0.7), rgba(255,147,88,0.62));
  border: 2px solid rgba(4,8,22,0.85);
  border-radius: 999px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 18px rgba(120, 176, 255, 0.72);
  transition: width 0.1s linear;
}

/* Shared Surfaces */
.navbar,
.main-input-wrapper,
.font-card,
.seo-card,
.toc,
.blog-card,
.author-bio,
.footer,
.ai-panel,
.mockup-container,
.contact-form,
.ad-slot,
.trust-strip,
.mobile-mockup {
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  width: min(1012px, calc(100% - 32px));
  margin: 10px auto 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(38, 55, 82, 0.56), rgba(46, 39, 65, 0.56), rgba(75, 48, 62, 0.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 52px rgba(0, 0, 0, 0.26);
}

.nav-container {
  max-width: none;
  height: 45px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: rgba(255,255,255,0.92);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo .icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: transparent;
  font-size: 0;
  background:
    linear-gradient(135deg, transparent 0 21%, #ff8758 22% 42%, transparent 43%),
    linear-gradient(135deg, transparent 18%, #d574ff 19% 42%, transparent 43%),
    linear-gradient(135deg, transparent 38%, #59a7ff 39% 66%, transparent 67%);
  filter: drop-shadow(0 0 8px rgba(118, 170, 255, 0.35));
}

.brand-logo span.accent {
  margin-left: 0.17em;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.nav-link,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0 2px;
  color: rgba(255,255,255,0.87);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-toggle:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(99, 167, 255, 0.52);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  inset: 3px -8px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(rgba(27,36,60,0.78), rgba(27,36,60,0.78)) padding-box,
    var(--accent-gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
}

.nav-link--pill {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255,255,255,0.87);
  font-weight: 500;
}

.nav-link--pill:hover,
.nav-link--pill.active {
  background: transparent;
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}

.pill-icon,
.di-icon { display: none !important; }

.btn-theme {
  position: relative;
  width: 48px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px 0 25px;
  overflow: hidden;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.18);
  cursor: pointer;
  font-size: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-theme::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 14px rgba(255,255,255,0.4);
}

.btn-theme::after {
  content: "\263E";
  font-size: 0.8rem;
  line-height: 1;
}

.btn-theme:hover {
  border-color: rgba(255, 165, 105, 0.65);
  box-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle .dd-arrow {
  display: inline-block;
  color: rgba(255,255,255,0.72);
  transition: transform 0.22s ease;
}
.nav-dropdown:hover .dd-arrow,
.nav-dropdown.open .dd-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 200;
  min-width: 230px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(19, 24, 43, 0.9);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: 0;
  right: 0;
  height: 1.25rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.8rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.lang-dropdown .dropdown-menu {
  left: auto;
  right: 0;
  transform: translateY(-8px);
}

.lang-dropdown:hover .dropdown-menu,
.lang-dropdown.open .dropdown-menu { transform: translateY(0); }

/* Hero */
.breadcrumb {
  max-width: var(--container);
  margin: 10px auto 0;
  padding: 0 24px;
  color: var(--text-light);
  font-size: 0.82rem;
}

.breadcrumb,
.char-counter,
.section-header {
  display: none !important;
}

.breadcrumb a {
  color: rgba(255,255,255,0.64);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.5rem; color: rgba(255,255,255,0.32); }

.hero-section {
  max-width: 940px;
  margin: 0 auto;
  padding: 44px 24px 24px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.hero-title {
  margin-bottom: 10px;
  color: transparent;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 42px rgba(116, 158, 255, 0.2);
  font-size: clamp(3.35rem, 6vw, 4.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-title .gradient-text {
  color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.75vw, 1.12rem);
  line-height: 1.35;
}

.hero-subtitle a,
.seo-card a,
.blog-article a,
.info-page a {
  color: #8fbfff !important;
  text-decoration: none;
  font-weight: 700;
}

.hero-subtitle a:hover,
.seo-card a:hover,
.blog-article a:hover,
.info-page a:hover { color: #ffb174 !important; }

/* Tool input */
.tool-container {
  max-width: var(--container);
  margin: 0 auto 46px;
  padding: 0 24px;
}

.main-input-wrapper {
  position: relative;
  z-index: 10;
  max-width: var(--tool);
  min-height: 62px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(232, 240, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(105, 174, 220, 0.28), rgba(236, 238, 255, 0.11), rgba(255, 147, 88, 0.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 20px rgba(99, 167, 255, 0.28), 0 0 35px rgba(255, 147, 88, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.main-input-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.45;
  background: var(--accent-gradient);
  filter: blur(10px);
}

.main-input-wrapper:focus-within {
  border-color: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.main-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.2rem, 2.3vw, 1.52rem);
  font-weight: 400;
  line-height: 1.2;
}

.main-input::placeholder { color: rgba(255,255,255,0.88); }
.input-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.btn-action,
.filter-btn,
.preview-tab,
.form-submit,
.toc-toggle-btn,
.tool-link-card,
.symbol-btn {
  min-height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35); /* Top glass light reflection */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.02rem;
  font-size: 0.98rem;
  white-space: nowrap;
}

/* Glassmorphism Paste Button Style */
.btn-paste {
  background: rgba(20, 16, 35, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glassmorphism AI Style Button Style */
.btn-ai {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(124, 58, 237, 0.35));
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Form submit button behaves like premium primary glass */
.form-submit {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(124, 58, 237, 0.35));
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-action:hover,
.filter-btn:hover,
.preview-tab:hover,
.form-submit:hover,
.tool-link-card:hover,
.symbol-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-paste:hover {
  background: rgba(20, 16, 35, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ai:hover,
.form-submit:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(124, 58, 237, 0.45)) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
/* Glassmorphism x Button Style */
button[onclick="clearText()"] {
  width: 40px;
  min-width: 40px;
  padding-left: 0;
  padding-right: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 0 12px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button[onclick="clearText()"]:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35), 0 0 18px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.char-counter {
  max-width: var(--tool);
  margin: -2px auto 0;
  padding-right: 6px;
  color: var(--text-light);
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

/* AI panel */
.ai-panel {
  display: none;
  max-width: var(--tool);
  margin: 0 auto 18px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-gradient);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

.ai-panel.active { display: block; }
.ai-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.ai-header h3 { font-size: 1.1rem; }
.ai-input-group { display: flex; gap: 0.8rem; }
.ai-input {
  flex: 1;
  min-height: 46px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: rgba(5, 9, 23, 0.35);
  color: var(--text-main);
  font: inherit;
}
.ai-input:focus { border-color: var(--border-focus); box-shadow: var(--shadow-glow); }
.ai-results { margin-top: 1rem; display: grid; gap: 0.75rem; }

/* Filters */
.filter-scroll {
  max-width: var(--tool);
  margin: 12px auto 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow-x: auto;
  padding: 8px 0 6px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-scroll::before,
.filter-scroll::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  height: 32px;
  color: rgba(255,255,255,0.76);
  font-size: 1.35rem;
  line-height: 1;
}

.filter-scroll::before { content: "\2039"; }
.filter-scroll::after { content: "\203A"; }

.filter-btn,
.preview-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0.39rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 13, 30, 0.34);
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.filter-btn:hover,
.preview-tab:hover {
  color: #fff;
  border-color: rgba(122, 181, 255, 0.56);
  transform: translateY(-1px);
}

.filter-btn.active,
.preview-tab.active {
  color: #fff;
  background:
    linear-gradient(rgba(46, 52, 77, 0.74), rgba(46, 52, 77, 0.74)) padding-box,
    var(--accent-gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
}

/* Results cards */
.section-header {
  max-width: var(--container);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h3 {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 600px;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
  max-width: var(--container);
  margin: 0 auto 48px;
}

.font-card {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(233, 240, 255, 0.14);
  border-bottom: none;
  border-radius: 0;
  background: rgba(31, 36, 54, 0.56);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.font-card:first-child {
  border-radius: 10px 10px 0 0;
}

.font-card:last-child {
  border-bottom: 1px solid rgba(233, 240, 255, 0.14);
  border-radius: 0 0 10px 10px;
}

.font-card::after {
  display: none;
}

.font-card:hover,
.font-card:focus-visible {
  background: rgba(99, 167, 255, 0.10);
  outline: 0;
}


.font-card-header {
  display: none;
}

.font-name {
  display: none;
}

.copy-hint {
  display: none;
}

.copy-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.copy-btn:hover {
  background: var(--accent-hover, #3a8bff);
  transform: scale(1.08);
}

.font-preview {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-preview.placeholder { color: rgba(255,255,255,0.96); }

.copied-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(49, 220, 131, 0.86);
  color: #03110a;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.font-card.copied .copied-overlay { opacity: 1; }

/* Content cards */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.seo-card {
  margin-bottom: 22px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045)),
    rgba(18, 24, 43, 0.72);
  box-shadow: var(--shadow-md);
}

.seo-card h2,
.info-page h2,
.blog-article h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.seo-card h3,
.info-page h3,
.blog-article h3 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.12rem;
}

.seo-card p,
.seo-card li,
.info-page p,
.info-page li,
.blog-article p,
.blog-article li {
  color: var(--text-muted);
}

.seo-card p,
.info-page p,
.blog-article p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.seo-card ul,
.seo-card ol,
.info-page ul,
.blog-article ul,
.blog-article ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.seo-card li,
.info-page li,
.blog-article li { margin-bottom: 0.45rem; line-height: 1.7; }

.aeo-block {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(99, 167, 255, 0.32);
  border-left: 3px solid #7ab6ff;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(99,167,255,0.15), rgba(255,147,88,0.08));
}

.aeo-block p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  line-height: 1.6;
}

.toc {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,0.055);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toc h4 {
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.45rem; }
.toc a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.toc a::before { content: "\2192"; color: var(--primary); font-size: 0.8rem; }
.toc a:hover { color: #fff; }

.toc-toggle-btn {
  min-height: 28px;
  padding: 0.25rem 0.7rem;
  color: #fff;
  font-size: 0.8rem;
}

.toc-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.toc-body.collapsed { max-height: 0 !important; opacity: 0; }

.faq-container details {
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

.faq-container summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-container summary::-webkit-details-marker { display: none; }
.faq-container summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 500;
}
.faq-container details[open] summary::after { content: "-"; }
.faq-container details p { padding: 0 1.1rem 1.1rem; margin: 0; }

/* Preview / mockups */
.preview-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.mockup-container {
  padding: 2rem 1rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(142,92,255,0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255,147,88,0.12), transparent 70%),
    rgba(255,255,255,0.04);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Premium iPhone-style frame */
.mobile-mockup {
  position: relative;
  width: min(300px, 100%);
  height: 620px;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(180deg, #0b0f1f 0%, #050813 100%);
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 0 0 10px #0a0d1a,
    0 0 0 11px rgba(255,255,255,0.06),
    0 30px 80px -20px rgba(0,0,0,0.65),
    0 0 60px rgba(142,92,255,0.18);
  isolation: isolate;
}

/* Subtle side-button hints (power + volume) */
.mobile-mockup::before,
.mobile-mockup::after {
  content: "";
  position: absolute;
  width: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 2px 2px 0;
  z-index: -1;
}
.mobile-mockup::before { left: -3px; top: 110px; height: 34px; }
.mobile-mockup::after  { left: -3px; top: 160px; height: 56px; box-shadow: 0 74px 0 rgba(255,255,255,0.08); }

/* Screen (the rounded interior of the phone) */
.mockup-screen {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1328 0%, #131a35 45%, #0a0e20 100%);
  display: flex;
  flex-direction: column;
}

/* Dynamic-island / notch */
.mockup-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup-notch::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1f3a 35%, #000 40%);
}

/* Status bar (time + signal icons) */
.mockup-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.mockup-statusbar .status-right {
  display: flex;
  gap: 4px;
  align-items: center;
}
.status-icon {
  width: 14px;
  height: 10px;
  fill: #fff;
  opacity: 0.9;
}
.status-battery {
  width: 22px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.status-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 0 1px 1px 0;
}
.status-battery-fill {
  display: block;
  width: 82%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}

/* Platform header inside screen */
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.mockup-header-icons {
  display: flex;
  gap: 10px;
  opacity: 0.85;
  font-size: 13px;
}

.mockup-body {
  padding: 14px 14px 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-profile { display: flex; align-items: center; gap: 14px; }
.mockup-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-gradient);
  padding: 2.5px;
  position: relative;
}
.mockup-avatar::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: #1a1f3a;
}
.mockup-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9358, #e176d7 50%, #63a7ff);
}
.mockup-name { font-weight: 700; margin-bottom: 3px; font-size: 13px; color: #fff; }
.mockup-text { color: rgba(255,255,255,0.88); font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }

/* Stats row: posts / followers / following */
.mockup-stats {
  display: flex;
  gap: 18px;
  padding: 2px 0 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}
.mockup-stats b { color: #fff; font-size: 12px; display: block; font-weight: 700; }

/* Action buttons */
.mockup-actions { display: flex; gap: 6px; }
.mockup-btn {
  flex: 1;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11.5px;
  color: #fff;
}
.mockup-btn.primary { background: linear-gradient(135deg, #ff9358, #f27bc4); }
.mockup-btn.secondary { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12); }

/* Stories / highlights row */
.mockup-stories {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 4px 0;
}
.story-item {
  width: 46px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.story-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 45deg, #ff9358, #e176d7, #8e5cff, #63a7ff, #ff9358);
}
.story-ring::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1a1f3a;
  background-size: cover;
  background-position: center;
  border: 2px solid #0f1327;
}
.story-ring.s1::after { background-image: linear-gradient(135deg,#ff9358,#f27bc4); }
.story-ring.s2::after { background-image: linear-gradient(135deg,#63a7ff,#8e5cff); }
.story-ring.s3::after { background-image: linear-gradient(135deg,#e176d7,#63a7ff); }
.story-ring.s4::after { background-image: linear-gradient(135deg,#ff9358,#8e5cff); }
.story-label { font-size: 9px; color: rgba(255,255,255,0.7); white-space: nowrap; }

/* Post grid (3×2 for fill) */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}
.mockup-grid > div {
  aspect-ratio: 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.mockup-grid > div:nth-child(1) { background: linear-gradient(135deg, #ff9358, #f27bc4); }
.mockup-grid > div:nth-child(2) { background: linear-gradient(135deg, #8e5cff, #63a7ff); }
.mockup-grid > div:nth-child(3) { background: linear-gradient(135deg, #f27bc4, #8e5cff); }
.mockup-grid > div:nth-child(4) { background: linear-gradient(135deg, #63a7ff, #ff9358); }
.mockup-grid > div:nth-child(5) { background: linear-gradient(135deg, #e176d7, #ff9358); }
.mockup-grid > div:nth-child(6) { background: linear-gradient(135deg, #8e5cff, #e176d7); }
.mockup-grid > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18), transparent 55%);
}

/* Bottom tab bar */
.mockup-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 14, 30, 0.55);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.mockup-tabbar span {
  font-size: 17px;
  opacity: 0.75;
  filter: grayscale(30%);
}
.mockup-tabbar span.active { opacity: 1; filter: none; transform: scale(1.12); }

/* Home indicator bar at the very bottom */
.mockup-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  z-index: 11;
}

/* Blog and info pages */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(22, 28, 47, 0.74);
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 178, 116, 0.72);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.blog-card-body,
.blog-content { padding: 1.35rem; }

.blog-card-body h3,
.blog-title { color: var(--text-main); }

.blog-card-body p,
.blog-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.blog-card-meta,
.blog-meta {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  margin-right: 0.45rem;
  border: 1px solid rgba(255, 147, 88, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255,147,88,0.12);
  color: #ffb174;
  font-size: 0.74rem;
  font-weight: 800;
}

.blog-article,
.info-page {
  max-width: 840px;
  margin: 0 auto 52px;
  padding: 0 24px;
}

.info-page h1 {
  margin: 2rem 0 1.4rem;
  text-align: center;
  color: transparent;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 900;
}

/* Forms */
.contact-form { max-width: 620px; margin: 2rem auto 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.form-submit {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
}

/* Link grids / trust */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tool-link-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}

.tool-link-card .tool-icon { display: block; margin-bottom: 0.4rem; font-size: 1.5rem; }

.trust-strip,
.author-bio {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.trust-strip { flex-wrap: wrap; justify-content: center; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.author-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.author-info .author-name { color: var(--text-main); font-weight: 800; }
.author-info .author-role { color: var(--text-muted); font-size: 0.86rem; }

/* Brat/canvas controls and generic inline blocks */
input[type="color"] {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,0.08) !important;
}

input[type="range"] { accent-color: var(--primary); }
canvas {
  box-shadow: var(--shadow-md);
}

.symbol-btn {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

/* Footer */
.footer {
  margin-top: 56px;
  padding: 3.4rem 24px 2rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 20, 0.46);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}

.footer-col h4 { margin-bottom: 1rem; font-size: 1.02rem; }
.footer-col p { color: var(--text-muted) !important; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  text-align: center;
  font-size: 0.86rem;
}

/* Feedback / utility */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 1000;
  padding: 0.76rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(18, 24, 43, 0.92);
  color: #fff;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  font-weight: 800;
  transform: translateX(-50%) translateY(110px);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show { transform: translateX(-50%) translateY(0); }

.ad-slot {
  min-height: 90px;
  margin: 2rem 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,0.045);
  color: var(--text-light);
  font-size: 0.85rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-links { gap: 12px; }
  .nav-link,
  .nav-dropdown-toggle { font-size: 0.84rem; }
}

@media (max-width: 960px) {
  .navbar { width: min(760px, calc(100% - 28px)); }
  .nav-links { gap: 10px; }
  .brand-logo { font-size: 1.12rem; }
}

@media (max-width: 768px) {
  .navbar {
    top: 8px;
    width: calc(100% - 20px);
    border-radius: 10px;
  }

  .nav-container { height: 50px; padding: 0 10px 0 13px; }
  .hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(14, 19, 36, 0.94);
    box-shadow: var(--shadow-lg);
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s ease, padding 0.25s ease;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .nav-links.open {
    max-height: 78vh;
    opacity: 1;
    padding: 0.75rem 0.85rem;
    overflow-y: auto;
  }

  .nav-links .nav-link,
  .nav-links .nav-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 0.72rem 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    font-size: 0.98rem;
  }

  .nav-link.active::before { inset: 6px -4px; border-radius: 8px; }
  .btn-theme { margin: 0.75rem 0 0.25rem; }

  /* Light-mode mobile menu: use light bg so dark text stays readable */
  [data-theme="light"] .nav-links {
    background: rgba(248, 250, 255, 0.97);
    border-color: rgba(18, 23, 46, 0.12);
    box-shadow: 0 18px 40px rgba(18, 23, 46, 0.18);
  }
  [data-theme="light"] .nav-links .nav-link,
  [data-theme="light"] .nav-links .nav-dropdown-toggle {
    color: #12172e;
    border-bottom-color: rgba(18, 23, 46, 0.10);
  }
  [data-theme="light"] .nav-links .dropdown-item {
    color: rgba(18, 23, 46, 0.82);
  }

  .dropdown-menu,
  .lang-dropdown .dropdown-menu {
    position: static !important;
    min-width: unset !important;
    display: none;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    padding: 0.25rem 0 0.25rem 0.75rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-dropdown.open .dropdown-menu { display: block; }

  .hero-section { padding: 36px 18px 20px; }
  .hero-title { font-size: clamp(2.7rem, 14vw, 3.55rem); }
  .hero-subtitle { font-size: 1rem; max-width: 520px; }
  .tool-container,
  .content-wrapper,
  .blog-article,
  .info-page { padding-left: 16px; padding-right: 16px; }

  .main-input-wrapper {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .main-input {
    min-height: 48px;
    text-align: center;
  }

  .input-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-action { flex: 1 1 auto; }
  .filter-scroll { margin-bottom: 22px; }
  .results-grid { min-height: 1400px; contain-intrinsic-size: 2400px; }
  .font-card { padding: 12px 14px; }
  .font-preview { font-size: 1.08rem; }
  .copy-btn { width: 38px; height: 38px; font-size: 1.1rem; }
  .seo-card { padding: 1.35rem; }
  .ai-input-group { flex-direction: column; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-bio { align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand-logo { font-size: 1.02rem; }
  .brand-logo .icon { width: 22px; height: 22px; }
  .hero-title { font-size: clamp(2.4rem, 16vw, 3rem); }
  .hero-subtitle { line-height: 1.45; }
  .main-input { font-size: 1.12rem; }
  .font-card { padding: 10px 12px; }
  .copy-btn { width: 36px; height: 36px; margin-left: 8px; }
  .filter-scroll::before,
  .filter-scroll::after { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .tools-grid { grid-template-columns: 1fr; }
  .trust-strip,
  .author-bio { flex-direction: column; align-items: flex-start; }
  .mobile-mockup { height: 540px; }
}

/* Header reference match */
.navbar {
  top: 7px;
  width: min(1140px, calc(100% - 16px));
  margin: 7px auto 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(28, 64, 103, 0.68) 0%, rgba(38, 36, 72, 0.66) 48%, rgba(95, 44, 82, 0.68) 100%);
  border-color: rgba(207, 226, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 36px rgba(0,0,0,0.2);
}

.nav-container {
  height: 50px;
  padding: 0 13px;
  gap: 24px;
}

.brand-logo {
  gap: 8px;
  color: #f5f7ff;
  background: linear-gradient(90deg, #ffffff 0%, #e8eeff 55%, #d9dded 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(255,255,255,0.08);
}

.brand-logo .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='5' y1='4' x2='24' y2='24' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23ff9a54'/%3E%3Cstop offset='1' stop-color='%23d968ff'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='4' y1='10' x2='20' y2='22' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23b66cff'/%3E%3Cstop offset='1' stop-color='%236fa8ff'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='4' y1='17' x2='15' y2='27' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2356b6ff'/%3E%3Cstop offset='1' stop-color='%237376ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8.2 4.4h13.7c1.4 0 2.1 1 1.5 2.2l-.7 1.5c-.4.8-1.1 1.2-2.1 1.2H6.9c-1.4 0-2.1-1-1.5-2.2l.7-1.5c.4-.8 1.1-1.2 2.1-1.2z' fill='url(%23a)'/%3E%3Cpath d='M7 11.4h10.8c1.4 0 2.1 1 1.5 2.2l-.7 1.5c-.4.8-1.1 1.2-2.1 1.2H5.7c-1.4 0-2.1-1-1.5-2.2l.7-1.5c.4-.8 1.1-1.2 2.1-1.2z' fill='url(%23b)'/%3E%3Cpath d='M5.9 18.4h7.8c1.4 0 2.1 1 1.5 2.2l-.7 1.5c-.4.8-1.1 1.2-2.1 1.2H4.6c-1.4 0-2.1-1-1.5-2.2l.7-1.5c.4-.8 1.1-1.2 2.1-1.2z' fill='url(%23c)'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 0 7px rgba(91, 161, 255, 0.35));
}

.brand-logo span.accent {
  margin-left: 0.22em;
  color: inherit;
}

.nav-links {
  flex: 1 1 auto;
  gap: 22px;
}

.nav-link,
.nav-dropdown-toggle {
  min-height: 34px;
  padding: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-toggle:hover,
.nav-dropdown.open > .nav-dropdown-toggle {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(130, 181, 255, 0.45);
}

.nav-link.active::before {
  inset: 3px -10px;
  border-radius: 9px;
  background: linear-gradient(rgba(63, 70, 104, 0.62), rgba(63, 70, 104, 0.62)) padding-box, var(--accent-gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(122, 179, 255, 0.22), 0 0 12px rgba(98, 166, 255, 0.55), 0 0 14px rgba(255, 147, 88, 0.32);
}

.nav-dropdown-toggle .dd-arrow {
  margin-left: 1px;
  color: rgba(255,255,255,0.74);
  font-size: 10px;
}

.lang-dropdown {
  margin-left: 4px;
}

.lang-dropdown .nav-dropdown-toggle {
  gap: 5px !important;
  min-height: 34px;
  padding: 0 !important;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.9);
}

#currentLangDisplay {
  min-width: 18px;
  font-weight: 700;
}

.lang-dropdown .dropdown-menu {
  right: -8px !important;
  min-width: 148px !important;
  border-radius: 10px;
}

.btn-theme {
  width: 75px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin-left: -4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

.btn-theme::before,
.btn-theme::after {
  content: none;
}

.theme-sun {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: transparent;
  opacity: 0.88;
}

.theme-sun::before {
  content: "\2600";
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 18px;
  text-align: center;
}

.theme-switch {
  position: relative;
  width: 48px;
  height: 24px;
  flex: 0 0 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.18);
}

.theme-switch-dot {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 12px rgba(255,255,255,0.35);
  transform: translateY(-50%) translateX(21px);
  transition: transform 0.25s ease;
}

.theme-moon {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: -3px 0 0 0 rgba(255,255,255,0.82);
  transform: translateY(-50%);
  opacity: 0.62;
  transition: opacity 0.25s ease;
}

body.dark-mode .theme-switch-dot {
  transform: translateY(-50%) translateX(0);
}

body.dark-mode .theme-moon {
  opacity: 1;
}

.btn-theme:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.btn-theme:hover .theme-switch {
  border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.2), 0 0 13px rgba(255,255,255,0.13);
}

@media (max-width: 1180px) {
  .navbar {
    width: calc(100% - 16px);
  }

  .nav-links {
    gap: 26px;
  }
}

@media (max-width: 940px) {
  .nav-links {
    gap: 13px;
  }

  .nav-link,
  .nav-dropdown-toggle {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 10px;
  }

  .nav-container {
    height: 50px;
    padding: 0 10px 0 13px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .brand-logo .icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    background-size: 26px 26px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links .nav-link,
  .nav-links .nav-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.2rem;
    font-size: 0.98rem;
  }

  .lang-dropdown {
    margin-left: 0;
  }

  .lang-dropdown .nav-dropdown-toggle {
    padding: 0.72rem 0.2rem !important;
  }

  .btn-theme {
    width: 75px;
    margin: 0.75rem 0 0.25rem;
  }
}

/* ==========================================================================
   PREMIUM ARTICLE INTERACTIVE COMPONENTS (SaaS-Level)
   ========================================================================== */

/* ── Decoration Showcase Panel ── */
.deco-showcase {
  position: relative;
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(99,167,255,0.06), rgba(142,92,255,0.08), rgba(255,147,88,0.05)) padding-box,
    linear-gradient(135deg, rgba(99,167,255,0.35), rgba(142,92,255,0.3), rgba(255,147,88,0.25)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.deco-showcase::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px; bottom: -1px; left: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,167,255,0.15), rgba(142,92,255,0.1), rgba(255,147,88,0.12));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.deco-showcase:hover::before {
  opacity: 1;
}

.deco-showcase__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.deco-showcase__title .showcase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(142,92,255,0.3);
}

.deco-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.deco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
  overflow: hidden;
}

.deco-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.deco-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 20px var(--_glow, rgba(128,90,213,0.2));
}

.deco-card:hover::after {
  opacity: 1;
}

.deco-card--purple   { --_glow: rgba(128,90,213,0.35); }
.deco-card--pink     { --_glow: rgba(236,72,153,0.35); }
.deco-card--green    { --_glow: rgba(56,161,105,0.35); }
.deco-card--blue     { --_glow: rgba(49,130,206,0.35); }

.deco-card--purple::after { background: linear-gradient(135deg, rgba(128,90,213,0.12), transparent 60%); }
.deco-card--pink::after   { background: linear-gradient(135deg, rgba(236,72,153,0.12), transparent 60%); }
.deco-card--green::after  { background: linear-gradient(135deg, rgba(56,161,105,0.12), transparent 60%); }
.deco-card--blue::after   { background: linear-gradient(135deg, rgba(49,130,206,0.12), transparent 60%); }

.deco-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.deco-card--purple .deco-card__label { color: #b794f6; }
.deco-card--pink .deco-card__label   { color: #f687b3; }
.deco-card--green .deco-card__label  { color: #68d391; }
.deco-card--blue .deco-card__label   { color: #63b3ed; }

.deco-card__preview {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Platform Compatibility Grid ── */
.compat-panel {
  position: relative;
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(56,161,105,0.04), rgba(99,167,255,0.06), rgba(142,92,255,0.05)) padding-box,
    linear-gradient(160deg, rgba(56,161,105,0.25), rgba(99,167,255,0.25), rgba(142,92,255,0.2)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compat-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.compat-panel__title .compat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38a169, #3182ce);
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(56,161,105,0.3);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.compat-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(56,161,105,0.08);
  border: 1px solid rgba(56,161,105,0.18);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compat-chip .chip-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #38a169, #2f855a);
  font-size: 0.6rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(56,161,105,0.35);
  flex-shrink: 0;
}

.compat-chip:hover {
  transform: translateY(-2px);
  background: rgba(56,161,105,0.14);
  border-color: rgba(56,161,105,0.35);
  box-shadow: 0 6px 20px rgba(56,161,105,0.15);
}

/* ── Step Flow (How-to) ── */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.step-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.step-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px rgba(142,92,255,0.3), 0 0 20px rgba(255,147,88,0.15);
}

.step-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-card__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Pro Tips Cards ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.tip-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}

.tip-card--warn::before  { background: linear-gradient(180deg, #f6ad55, #ed8936); }
.tip-card--info::before  { background: linear-gradient(180deg, #63b3ed, #4299e1); }
.tip-card--alert::before { background: linear-gradient(180deg, #fc8181, #e53e3e); }

.tip-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.tip-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.tip-card--warn .tip-card__icon  { background: rgba(246,173,85,0.15); }
.tip-card--info .tip-card__icon  { background: rgba(99,179,237,0.15); }
.tip-card--alert .tip-card__icon { background: rgba(252,129,129,0.15); }

.tip-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.tip-card__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Tools Grid Premium ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.tool-link-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.tool-link-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(142,92,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142,92,255,0.12);
  color: var(--text-main);
}

.tool-link-card .tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-gradient);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Trust Strip Premium ── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(99,167,255,0.04), rgba(142,92,255,0.05), rgba(255,147,88,0.03)) padding-box,
    linear-gradient(135deg, rgba(99,167,255,0.2), rgba(142,92,255,0.18), rgba(255,147,88,0.15)) border-box;
  border: 1px solid transparent;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.trust-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(142,92,255,0.25);
  color: var(--text-main);
}

.trust-item span {
  font-size: 0.95rem;
}

/* ── Author Bio Premium ── */
.author-bio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--accent-gradient);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(142,92,255,0.3);
}

.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Light mode overrides for article components ── */
[data-theme="light"] .deco-showcase,
[data-theme="light"] .compat-panel {
  background:
    linear-gradient(135deg, rgba(99,167,255,0.08), rgba(180,140,255,0.06), rgba(255,147,88,0.05)) padding-box,
    linear-gradient(135deg, rgba(99,167,255,0.3), rgba(180,140,255,0.25), rgba(255,147,88,0.2)) border-box;
}

[data-theme="light"] .deco-card,
[data-theme="light"] .step-card,
[data-theme="light"] .tip-card,
[data-theme="light"] .tool-link-card,
[data-theme="light"] .trust-item {
  background: rgba(255,255,255,0.65);
  border-color: rgba(18,23,80,0.1);
}

[data-theme="light"] .deco-card:hover,
[data-theme="light"] .step-card:hover,
[data-theme="light"] .tip-card:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(18,23,80,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

[data-theme="light"] .deco-card--purple .deco-card__label { color: #805ad5; }
[data-theme="light"] .deco-card--pink .deco-card__label   { color: #d53f8c; }
[data-theme="light"] .deco-card--green .deco-card__label  { color: #38a169; }
[data-theme="light"] .deco-card--blue .deco-card__label   { color: #3182ce; }

[data-theme="light"] .compat-chip {
  background: rgba(56,161,105,0.08);
  border-color: rgba(56,161,105,0.18);
}

[data-theme="light"] .compat-chip:hover {
  background: rgba(56,161,105,0.14);
}

[data-theme="light"] .trust-strip {
  background:
    linear-gradient(135deg, rgba(99,167,255,0.06), rgba(180,140,255,0.04), rgba(255,147,88,0.03)) padding-box,
    linear-gradient(135deg, rgba(99,167,255,0.22), rgba(180,140,255,0.18), rgba(255,147,88,0.14)) border-box;
}

[data-theme="light"] .author-bio {
  background: rgba(255,255,255,0.6);
  border-color: rgba(18,23,80,0.1);
}

/* ── Responsive for article components ── */
@media (max-width: 640px) {
  .deco-showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card { flex-direction: column; gap: 0.65rem; }
  .deco-showcase, .compat-panel { padding: 1.25rem; }
}

/* ══════════════════════════════════════════════
   MOBILE FIXES — Interactive diagrams & inline widgets
   Targets: flow diagrams, vaporwave chips, compat panels
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── 1. Inline interactive diagrams (flow arrows) ──
     The "Du tippst → Fullwidth Mapping → Ausgabe" style boxes
     Stack them vertically, hide side arrows, show down arrows */
  div[style*="display:flex"][style*="align-items:center"][style*="justify-content:center"],
  div[style*="display: flex"][style*="align-items: center"][style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  /* Hide the → arrow spans that are between flex boxes in flow diagrams */
  div[style*="display:flex"][style*="align-items:center"][style*="justify-content:center"] > span,
  div[style*="display: flex"][style*="align-items: center"][style*="justify-content: center"] > span {
    display: none !important;
  }

  /* ── 2. "How it works" 3-step flow diagrams (Eingabetext / Anzahl / Ergebnis)
     These use flex with boxes and "+" / "→" text nodes between them */
  div[style*="display:flex"][style*="justify-content:space-around"],
  div[style*="display: flex"][style*="justify-content: space-around"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  /* Make diagram boxes full-width */
  div[style*="display:flex"][style*="justify-content:space-around"] > div,
  div[style*="display: flex"][style*="justify-content: space-around"] > div {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  /* Hide the "+" and "→" separator elements */
  div[style*="display:flex"][style*="justify-content:space-around"] > span,
  div[style*="display: flex"][style*="justify-content: space-around"] > span {
    transform: rotate(90deg) !important;
    font-size: 1.1rem !important;
  }

  /* ── 3. Vaporwave / quick-copy chip rows that overflow ──
     They use display:flex with gap but no wrapping */
  div[style*="display:flex"][style*="flex-wrap:wrap"],
  div[style*="display: flex"][style*="flex-wrap: wrap"] {
    flex-wrap: wrap !important;
  }

  /* Force wrapping on ALL inline flex rows inside seo-card */
  .seo-card div[style*="display:flex"],
  .seo-card div[style*="display: flex"] {
    flex-wrap: wrap !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  /* Quick copy chip buttons — make them wrap and not overflow */
  .seo-card div[style*="display:flex"] > div,
  .seo-card div[style*="display: flex"] > div {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* ── 4. Compat panel — perfect 2-col alignment on mobile ── */
  .compat-panel {
    padding: 1.1rem !important;
    margin: 1.25rem 0 !important;
    overflow: hidden !important;
  }

  .compat-panel__title {
    font-size: 0.9rem !important;
    margin-bottom: 0.9rem !important;
  }

  .compat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }

  .compat-chip {
    padding: 0.55rem 0.5rem !important;
    font-size: 0.78rem !important;
    gap: 0.35rem !important;
    border-radius: 8px !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .compat-chip .chip-check {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 0.55rem !important;
  }

  /* ── 5. Cross-platform rendering check diagram ── */
  div[style*="justify-content:space-around"][style*="flex-wrap:wrap"],
  div[style*="justify-content: space-around"][style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* ── 6. Inline grid widget cards (What makes text cute, Font showcase) ── */
  div[style*="grid-template-columns:repeat(auto-fill"],
  div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── 7. Font showcase — single column on very small ── */
  div[style*="minmax(200px"] {
    grid-template-columns: 1fr !important;
  }

  /* ── 8. Platform where-it-works chips ── */
  div[style*="minmax(120px"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }

  /* ── 9. Step flow cards: full width ── */
  .step-flow {
    gap: 0.75rem !important;
  }

  .step-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.9rem !important;
  }

  .step-card__num {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  /* ── 10. Tips grid: single column ── */
  .tips-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* ── 11. Trust strip: wrap ── */
  .trust-strip {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  .trust-item {
    flex: 0 0 auto !important;
    font-size: 0.78rem !important;
  }

  /* ── 12. Prevent page overflow from wide inline content ── */
  .seo-card {
    overflow-x: hidden !important;
  }

  .seo-card * {
    max-width: 100% !important;
    word-break: break-word !important;
  }

  /* ── 13. Copy-Ready Vaporwave Grid — 1 column on mobile ──
     The buttons use display:grid with 1fr 1fr — vaporwave wide text
     overflows on mobile so force single column */
  div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* engagement-block buttons: full width, text truncate */
  .engagement-block div[style*="grid"] > button,
  .engagement-block div[style*="grid"] > .btn-action {
    width: 100% !important;
    font-size: 0.85rem !important;
    padding: 0.7rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    letter-spacing: 0.05em !important;
  }

  /* engagement-block container itself */
  .engagement-block {
    padding: 1rem !important;
    margin: 1.25rem 0 !important;
    overflow: hidden !important;
  }

  /* ── 14. Real-Time Generation Process flow diagram ──
     Selector targets the wrapper div with flex+wrap+center
     Arrow spans between boxes become ↓ via rotate */
  div[style*="display:flex"][style*="flex-wrap:wrap"][style*="align-items:center"] > span,
  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="align-items: center"] > span {
    display: block !important;
    text-align: center !important;
    transform: rotate(90deg) !important;
    font-size: 1.2rem !important;
    color: var(--primary) !important;
  }

  div[style*="display:flex"][style*="flex-wrap:wrap"][style*="align-items:center"] > div,
  div[style*="display: flex"][style*="flex-wrap: wrap"][style*="align-items: center"] > div {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ── Nickname / other pages: same real-time generation box fix ── */
@media (max-width: 600px) {
  /* The nickname generator "Real-Time Process" uses space-around with square boxes */
  div[style*="display:flex"][style*="justify-content:space-around"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.6rem !important;
  }

  div[style*="display:flex"][style*="justify-content:space-around"] > div {
    width: 85% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  div[style*="display:flex"][style*="justify-content:space-around"] > span {
    display: inline-block !important;
    transform: rotate(90deg) !important;
    font-size: 1.4rem !important;
  }
}

/* ==========================================================================
   BLOG GRID — Mobile Responsive Fixes
   ========================================================================== */

/* Blog index grid: switch to 1-column on mobile */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Blog card: full width, clean layout */
  .blog-card {
    width: 100% !important;
    display: block !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
  }

  /* Blog card image: fixed height, cover fit */
  .blog-image {
    height: 200px !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  }

  .blog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }

  /* Blog card content padding */
  .blog-content {
    padding: 1rem !important;
  }

  .blog-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.4rem !important;
  }

  .blog-excerpt {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    /* Limit excerpt to 3 lines on mobile for clean look */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .blog-meta {
    font-size: 0.8rem !important;
  }
}

/* Also fix the inline-style grid on blog index specifically */
@media (max-width: 680px) {
  div.blog-grid[style*="grid-template-columns"],
  main div[style*="minmax(320px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Blog post: give author-bio breathing room before/after FAQ & sections */
.blog-article .author-bio,
article .author-bio {
  margin: 2.5rem 0 !important;
}
@media (max-width: 560px) {
  .blog-article .author-bio,
  article .author-bio {
    margin: 2rem 0 !important;
  }
}

/* ==========================================================================
   Text to Image Live Font Directory & Categories Component
   ========================================================================== */
.tti-directory-section {
  max-width: var(--container);
  margin: 40px auto 48px;
  padding: 0 24px;
}

.directory-header {
  margin-bottom: 24px;
  text-align: center;
}

.directory-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.directory-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Horizontal scrollable pills for categories */
.dir-filter-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 16px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.dir-filter-scroll::-webkit-scrollbar {
  display: none;
}

.dir-filter-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(233, 240, 255, 0.16);
  border-radius: 20px;
  background: rgba(8, 13, 30, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dir-filter-btn:hover {
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.dir-filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #f27bc4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(255, 147, 88, 0.35);
}

/* Listing cards grid */
.dir-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dir-font-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(233, 240, 255, 0.14);
  border-radius: 16px;
  background: rgba(31, 36, 54, 0.56);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}

.dir-font-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(99, 167, 255, 0.08);
  box-shadow: var(--shadow-glow);
}

.dir-font-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dir-font-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.dir-font-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Card Canvas Preview */
.dir-canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  background: repeating-conic-gradient(rgba(128,128,128,0.1) 0% 25%, transparent 0% 50%) 50% / 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
  padding: 8px;
  overflow: hidden;
}

.dir-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.dir-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dir-font-use-btn {
  flex: 1;
  min-height: 38px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #8e5cff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-font-use-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(120, 110, 255, 0.35);
}

.dir-font-use-btn span {
  font-size: 1.1rem;
}

/* ==========================================================================
   FontGenixy - Premium Text to Image Generator Rework
   ========================================================================== */

/* Layout: 2 Column Grid */
.tti-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .tti-workspace {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Premium Customize Panel */
.tti-panel {
  background: rgba(17, 22, 37, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.tti-panel h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

/* Side by side rows */
.tti-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tti-col {
  flex: 1;
  min-width: 0; /* prevent layout break */
}

@media (max-width: 576px) {
  .tti-row {
    flex-direction: column;
    gap: 1.25rem;
  }
}

.tti-group {
  margin-bottom: 1.25rem;
}

.tti-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c9bb4;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Custom header labels with values inline right */
.tti-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tti-label-row label {
  margin-bottom: 0;
}

.tti-label-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8c9bb4;
}

/* YOUR TEXT text area */
.tti-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(10, 14, 26, 0.75);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  transition: all 0.25s ease;
}

.tti-textarea:focus {
  border-color: #3b82f6;
  background: rgba(10, 14, 26, 0.9);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

/* FONT FAMILY wrapper and search input with search icon */
.tti-font-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tti-font-search {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(10, 14, 26, 0.75);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
}

.tti-font-search:focus {
  border-color: #3b82f6;
  background: rgba(10, 14, 26, 0.9);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

/* Search glass icon in Font Family input */
.tti-font-search-icon {
  position: absolute;
  right: 1rem;
  color: #5d7290;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tti-font-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #111625;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 10px 10px;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  margin-top: 2px;
}

.tti-font-dropdown.open {
  display: block;
}

.tti-font-option {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #cdd7e5;
  transition: all 0.15s ease;
}

.tti-font-option:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
}

.tti-font-more {
  color: #5d7290;
  font-size: 0.8rem;
  cursor: default;
}

.tti-font-more:hover {
  background: none;
  color: #5d7290;
}

/* Custom premium color cards */
.tti-colors-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tti-color-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35); /* glass reflection line */
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  user-select: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cdd7e5;
}

.tti-color-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.tti-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Custom transparent checkbox card */
.tti-checkbox-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cdd7e5;
  margin-left: 0.5rem;
}

.tti-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
  border-radius: 4px;
}

/* Style row buttons */
.tti-style-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tti-style-btn, .tti-align-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35); /* glass reflection line */
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #cdd7e5;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tti-style-btn:hover, .tti-align-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.tti-style-btn.active, .tti-align-btn.active {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.tti-style-btn i {
  font-style: normal;
}

/* Divider in style row */
.tti-style-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.25rem;
}

/* Custom premium Preset Cards */
.tti-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 576px) {
  .tti-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tti-preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.tti-preset-card .preset-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.tti-preset-card .preset-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8c9bb4;
  transition: color 0.2s ease;
}

.tti-preset-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.tti-preset-card:hover .preset-icon {
  transform: scale(1.15);
}

.tti-preset-card:hover .preset-name {
  color: #fff;
}

/* Preset Specific Border Glows */
.tti-preset-card[data-preset="gold"] {
  border-color: rgba(212, 175, 55, 0.3);
}
.tti-preset-card[data-preset="gold"]:hover {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.tti-preset-card[data-preset="fire"] {
  border-color: rgba(255, 68, 68, 0.3);
}
.tti-preset-card[data-preset="fire"]:hover {
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.25);
}

.tti-preset-card[data-preset="pink"] {
  border-color: rgba(255, 105, 180, 0.3);
}
.tti-preset-card[data-preset="pink"]:hover {
  border-color: #ff69b4;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.25);
}

.tti-preset-card[data-preset="cyber"] {
  border-color: rgba(0, 255, 136, 0.3);
}
.tti-preset-card[data-preset="cyber"]:hover {
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
}

/* RIGHT: Live Preview Canvas Desk */
.tti-canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  background: #0f1322;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.tti-canvas-wrapper.is-transparent {
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
  background-color: #090c15;
}

.tti-canvas-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #0088ff, #a855f7) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.tti-canvas-wrapper:hover::before {
  opacity: 1;
}

.tti-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

/* Action button styles */
.tti-action-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
  margin-bottom: 0.75rem;
}

.tti-action-btn:last-child {
  margin-bottom: 0;
}

.tti-action-btn.primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(124, 58, 237, 0.35)) !important;
  border: 1.5px solid rgba(168, 85, 247, 0.3) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tti-action-btn.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(124, 58, 237, 0.45)) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tti-action-btn.secondary {
  background: rgba(20, 16, 35, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tti-action-btn.secondary:hover {
  transform: translateY(-2px);
  background: rgba(20, 16, 35, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tti-action-btn svg {
  flex-shrink: 0;
}

/* --- Interactive Directory Category Pills Update --- */
.dir-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 94px; /* EXACTLY 2 rows of pills */
}

.dir-filter-scroll.expanded {
  max-height: 500px; /* Expands to fit all pills */
  overflow: visible;
}

/* Hide extra pills unless expanded */
.dir-filter-scroll:not(.expanded) .dir-more-pill {
  display: none !important;
}

/* Clear active category x button style matching screenshot */
.dir-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.dir-filter-btn .clear-pill {
  display: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  transition: color 0.15s;
}

.dir-filter-btn.active {
  background: rgba(99, 167, 255, 0.1) !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

.dir-filter-btn.active .clear-pill {
  display: inline-block;
}

.dir-filter-btn.active:hover .clear-pill {
  color: #ff4444;
}

/* Expand button "+" circle style matching screenshot */
.dir-filter-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35); /* glass reflection line */
  color: #cdd7e5;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
  line-height: 1;
}

.dir-filter-expand-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}



