/* ==========================================================================
   AI ART — design system.
   Colour / typography tokens are injected by ThemeService as CSS custom
   properties, so admin design overrides apply here without a build step.
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-body);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100%}
h1,h2,h3,h4,h5{font-family:var(--font-heading);color:var(--color-heading);line-height:1.2;margin:0 0 .5em;letter-spacing:-.02em}
h1{font-size:clamp(2rem,4.4vw,3.5rem);font-weight:800}
h2{font-size:clamp(1.45rem,2.5vw,2.1rem);font-weight:750}
h3{font-size:1.15rem;font-weight:700}
p{margin:0 0 1em}
a{color:inherit;text-decoration:none}
a:not([class]), a.link, a.text-link, .prose a, .rich-text a{color:var(--color-primary)}
a:not([class]):hover, a.link:hover, a.text-link:hover, .prose a:hover, .rich-text a:hover{color:var(--color-primary-hover);text-decoration:underline}
img{max-width:100%;display:block}
svg{display:block}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px;border-radius:4px}
::selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;background-image:none!important;text-shadow:none!important}
::-moz-selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;background-image:none!important;text-shadow:none!important}
*::selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;background-image:none!important;text-shadow:none!important}
*::-moz-selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;background-image:none!important;text-shadow:none!important}
.bg-clip-text::selection,.text-transparent::selection,.brand span.brand-word::selection,.hero h1 .accent::selection,.hero-title-gradient::selection,.text-gradient::selection,.text-gradient-primary::selection,.gradient-text::selection,[class*="bg-clip-text"]::selection,[class*="text-transparent"]::selection,.bg-clip-text *::selection,.text-transparent *::selection,[class*="bg-clip-text"] *::selection,[class*="text-transparent"] *::selection,
.bg-clip-text::-moz-selection,.text-transparent::-moz-selection,.brand span.brand-word::-moz-selection,.hero h1 .accent::-moz-selection,.hero-title-gradient::-moz-selection,.text-gradient::-moz-selection,.text-gradient-primary::-moz-selection,.gradient-text::-moz-selection,[class*="bg-clip-text"]::-moz-selection,[class*="text-transparent"]::-moz-selection,.bg-clip-text *::-moz-selection,.text-transparent *::-moz-selection,[class*="bg-clip-text"] *::-moz-selection,[class*="text-transparent"] *::-moz-selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;background-image:none!important;text-shadow:none!important}
input::selection,textarea::selection,select::selection,pre::selection,code::selection,input::-moz-selection,textarea::-moz-selection,select::-moz-selection,pre::-moz-selection,code::-moz-selection{background-color:#06b6d4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
hr{border:0;border-top:1px solid var(--color-border);margin:2rem 0}

/* ---------- Layout primitives ---------- */
.container{width:98%;max-width:98%;margin-inline:auto;padding-inline:0}
.section{padding-block:clamp(2.5rem,5vw,4.5rem)}
.section--tight{padding-block:2rem}
.section--muted{background:var(--color-surface-muted)}
.section--gradient{background:var(--hero-gradient)}
.section--elevated{background:var(--color-surface)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.75rem}
.section-head h2{margin:0}
.section-head p{color:var(--color-text-muted);margin:.35rem 0 0;max-width:60ch}
.section-actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:1rem}
.row{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.between{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.grid{display:grid;gap:1.1rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.grid-5{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.muted{color:var(--color-text-muted)}
.small{font-size:.85rem}
.tiny{font-size:.75rem}
.center{text-align:center}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.gap-1{gap:.4rem}.gap-2{gap:.75rem}.gap-3{gap:1.25rem}
.hidden,.d-none{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
/* Keyboard-first escape hatch: visible only while focused. */
.skip-link{position:fixed;top:0;left:0;z-index:300;transform:translateY(-120%);padding:.75rem 1.25rem;background:var(--color-primary);color:#fff;font-weight:700;font-size:.9rem;border-radius:0 0 var(--radius-button) 0;box-shadow:0 8px 24px rgba(8,13,26,.3);transition:transform .15s ease}
.skip-link:focus,.skip-link:focus-visible{transform:translateY(0);color:#fff;outline:3px solid var(--color-heading);outline-offset:2px}
#main-content:focus{outline:none}
#main-content:focus-visible{outline:3px solid var(--color-focus);outline-offset:4px}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.divider{height:1px;background:var(--color-border);margin:1.5rem 0}
.mono{font-family:var(--font-mono);font-size:.85em}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.1rem;border-radius:var(--radius-button);border:1px solid transparent;background:var(--color-surface-muted);color:var(--color-text);font-weight:600;font-size:.9rem;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap;text-decoration:none}
.btn:hover{transform:translateY(-1px);color:var(--color-text)}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--gradient-cta);color:#fff;box-shadow:0 6px 18px rgba(37,99,235,.22)}
.btn-primary:hover{color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.3)}
[data-theme="dark"] .btn-primary{box-shadow:0 6px 20px rgba(96,165,250,.18)}
.btn-outline{background:transparent;border-color:var(--color-border);color:var(--color-text)}
.btn-outline:hover{border-color:var(--color-primary);color:var(--color-primary)}
.btn-ghost{background:transparent;color:var(--color-text-muted)}
.btn-ghost:hover{background:var(--color-surface-muted);color:var(--color-text)}
.btn-danger{background:var(--color-danger);color:#fff}
.btn-danger:hover{color:#fff;filter:brightness(1.08)}
.btn-ai{background:var(--gradient-ai);color:#06121f}
.btn-ai:hover{color:#06121f}
.btn-sm{padding:.4rem .75rem;font-size:.8rem;border-radius:8px}
.btn-lg{padding:.9rem 1.6rem;font-size:1rem}
.btn-block{width:100%}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed;transform:none}
.icon-btn{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-muted);cursor:pointer;transition:.15s}
.icon-btn:hover{color:var(--color-primary);border-color:var(--color-primary)}
.icon-btn svg{width:18px;height:18px}

/* ---------- Header / navigation ---------- */
.site-header{position:sticky;top:0;z-index:60;background:var(--color-header);backdrop-filter:blur(14px);border-bottom:1px solid var(--color-border)}
.header-inner{display:flex;align-items:center;gap:1rem;min-height:68px}
.brand{display:inline-flex;align-items:center;gap:.65rem;font-family:var(--font-heading);font-weight:800;font-size:1.2rem;letter-spacing:-.03em;color:var(--color-heading);white-space:nowrap}
.brand:hover{color:var(--color-heading)}
.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--gradient-ai);display:grid;place-items:center;color:#06121f;font-weight:900;font-size:.9rem;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.brand span.brand-word{background:var(--gradient-ai);-webkit-background-clip:text;background-clip:text;color:transparent}
.main-nav{display:flex;align-items:center;gap:.15rem;margin-left:1.5rem;flex:1}
.nav-link{display:inline-flex;align-items:center;gap:.3rem;padding:.5rem .65rem;border-radius:9px;color:var(--color-text-muted);font-size:.88rem;font-weight:600;white-space:nowrap}
.nav-link:hover,.nav-link.is-active{background:var(--color-surface-muted);color:var(--color-primary)}
.header-actions{display:flex;align-items:center;gap:.5rem}
.header-search{display:flex;align-items:center;gap:.45rem;background:var(--color-surface-muted);border:1px solid var(--color-border-strong);border-radius:10px;padding:.4rem .7rem;min-width:190px}
.header-search input{border:0;background:transparent;outline:0;width:100%;font-size:.85rem}
.header-search svg{width:16px;height:16px;color:var(--color-text-muted);flex:none}
.mobile-toggle{display:none}
.mobile-nav{display:none;border-top:1px solid var(--color-border);padding:1rem 0;background:var(--color-surface)}
.mobile-nav.is-open{display:block}
.mobile-nav a{display:block;padding:.65rem .5rem;border-radius:8px;color:var(--color-text);font-weight:600}
.mobile-nav a:hover{background:var(--color-surface-muted)}
.announcement{background:var(--gradient-cta);color:#fff;text-align:center;padding:.55rem 1rem;font-size:.85rem;font-weight:600}
.announcement a{color:#fff;text-decoration:underline}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;background:var(--hero-gradient);border-bottom:1px solid var(--color-border)}
.hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 5%,rgba(124,58,237,.16),transparent 45%),radial-gradient(circle at 8% 95%,rgba(6,182,212,.14),transparent 45%);pointer-events:none}
.hero-inner{position:relative;z-index:1;text-align:center;padding-block:clamp(3.5rem,8vw,6.5rem)}
.hero-eyebrow{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .8rem;border-radius:999px;background:var(--color-surface);border:1px solid var(--color-border);font-size:.78rem;font-weight:700;color:var(--color-primary);margin-bottom:1.25rem}
.hero h1{max-width:18ch;margin-inline:auto}
.hero h1 .accent{background:var(--gradient-ai);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-subtitle{max-width:62ch;margin:1rem auto 2rem;color:var(--color-text-muted);font-size:1.05rem}
.hero-search{display:flex;max-width:640px;margin-inline:auto;background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:.45rem;box-shadow:0 14px 40px rgba(16,35,79,.12);gap:.4rem}
.hero-search input{flex:1;border:0;background:transparent;outline:0;padding:.5rem .75rem;min-width:0}
.hero-quick{display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem}
.hero-quick a{font-size:.8rem;padding:.3rem .7rem;border-radius:999px;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-muted)}
.hero-quick a:hover{color:var(--color-primary);border-color:var(--color-primary)}
.search-results{position:relative}
.autocomplete{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;background:var(--color-surface-elevated);border:1px solid var(--color-border);border-radius:14px;box-shadow:0 18px 40px rgba(8,13,26,.2);overflow:hidden;text-align:left}
.autocomplete a{display:block;padding:.6rem .9rem;color:var(--color-text);border-bottom:1px solid var(--color-border);font-size:.88rem}
.autocomplete a:last-child{border-bottom:0}
.autocomplete a:hover{background:var(--color-surface-muted)}

/* ---------- Stats ---------- */
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.stat{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:1.4rem;text-align:center}
.stat-value{font-family:var(--font-heading);font-size:2rem;font-weight:800;color:var(--color-heading);line-height:1}
.stat-label{color:var(--color-text-muted);font-size:.82rem;margin-top:.4rem}

/* ---------- Cards ---------- */
.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:1.25rem;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.card:hover{transform:translateY(-3px);border-color:var(--color-primary);box-shadow:0 14px 32px rgba(8,13,26,.1)}
.card-flat{transition:none}
.card-flat:hover{transform:none;box-shadow:none;border-color:var(--color-border)}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}
.card-title{margin:0;font-size:1.05rem;font-weight:700;color:var(--color-heading)}
.card-title a{color:inherit}
.card-title a:hover{color:var(--color-primary)}
.card-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;color:var(--color-text-muted);font-size:.78rem;margin-top:.75rem}
.card-body{color:var(--color-text-muted);font-size:.9rem}
.tool-logo{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--gradient-ai);color:#06121f;font-weight:800;font-size:1.1rem;flex:none;overflow:hidden}
.tool-logo img{width:100%;height:100%;object-fit:cover}
.tool-card{display:flex;flex-direction:column;gap:.6rem;min-height:210px}
.tool-card .tool-top{display:flex;gap:.8rem;align-items:flex-start}
.tool-card .card-actions{margin-top:auto;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.prompt-card{display:flex;flex-direction:column;gap:.6rem}
.prompt-preview{font-family:var(--font-mono);font-size:.8rem;background:var(--color-surface-muted);border:1px solid var(--color-border);border-radius:10px;padding:.8rem;color:var(--color-text-muted);max-height:110px;overflow:hidden;line-height:1.5}
.category-tile{display:flex;align-items:center;gap:.85rem;padding:1.1rem;border-radius:var(--radius-card);border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);transition:.18s}
.category-tile:hover{transform:translateY(-3px);border-color:var(--color-primary);box-shadow:0 12px 26px rgba(8,13,26,.1)}
.category-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--color-surface-muted);color:var(--color-primary);font-size:1.15rem;font-weight:800;flex:none}
.category-tile strong{display:block;color:var(--color-heading);font-size:.95rem}
.category-tile small{color:var(--color-text-muted)}
.article-card{display:flex;flex-direction:column;gap:.5rem}
.article-thumb{aspect-ratio:16/9;border-radius:12px;background:var(--hero-gradient);display:grid;place-items:center;color:var(--color-primary);font-weight:800;font-size:1.5rem;margin-bottom:.35rem;overflow:hidden}
.article-thumb img{width:100%;height:100%;object-fit:cover}
.callout{background:var(--hero-gradient);border:1px solid var(--color-border);border-radius:var(--radius-panel);padding:clamp(1.5rem,4vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.callout h2{margin:0 0 .4rem}
.callout p{margin:0;color:var(--color-text-muted)}

/* ---------- Badges / chips ---------- */
.badge{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .6rem;border-radius:999px;font-size:.72rem;font-weight:700;background:var(--color-surface-muted);color:var(--color-text-muted);border:1px solid var(--color-border);white-space:nowrap}
.badge-primary{background:color-mix(in srgb,var(--color-primary) 8%,transparent);color:var(--color-primary);border-color:transparent}
.badge-success{background:color-mix(in srgb,var(--color-success) 10%,transparent);color:var(--color-success);border-color:transparent}
.badge-warning{background:color-mix(in srgb,var(--color-warning) 10%,transparent);color:var(--color-warning);border-color:transparent}
.badge-danger{background:color-mix(in srgb,var(--color-danger) 10%,transparent);color:var(--color-danger);border-color:transparent}
.badge-info{background:color-mix(in srgb,var(--color-info) 10%,transparent);color:var(--color-info);border-color:transparent}
/* Dark surfaces need lighter badge/alert text: the tint darkens the
   background, which would otherwise drop the ratio below 4.5:1. */
[data-theme="dark"] .badge-primary,[data-theme="dark"] .alert-info{color:color-mix(in srgb,var(--color-primary) 62%,#fff)}
[data-theme="dark"] .badge-danger,[data-theme="dark"] .alert-error{color:color-mix(in srgb,var(--color-danger) 62%,#fff)}
[data-theme="dark"] .btn-danger{background:#B91C1C;color:#fff}
.chip{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .7rem;border-radius:999px;border:1px solid var(--color-border);background:var(--color-surface);font-size:.8rem;color:var(--color-text-muted)}
.chip.is-active,.chip:hover{border-color:var(--color-primary);color:var(--color-primary);background:color-mix(in srgb,var(--color-primary) 8%,transparent)}
.chip-row{display:flex;gap:.45rem;flex-wrap:wrap}

/* ---------- Filters / toolbar ---------- */
.toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;padding:1rem;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);margin-bottom:1.5rem}
.toolbar .field{margin:0;min-width:150px}
.toolbar .field--search{flex:1;min-width:220px}
.filters-sidebar{display:flex;flex-direction:column;gap:1.25rem}
.filter-group h3{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-muted);margin-bottom:.6rem}
.filter-option{display:flex;align-items:center;gap:.5rem;font-size:.88rem;padding:.3rem 0;color:var(--color-text-muted);cursor:pointer}
.filter-option:hover{color:var(--color-text)}
.layout-with-sidebar{display:grid;grid-template-columns:240px minmax(0,1fr);gap:1.75rem;align-items:start}
.view-toggle{display:inline-flex;border:1px solid var(--color-border);border-radius:9px;overflow:hidden}
.view-toggle button{background:var(--color-surface);border:0;padding:.45rem .65rem;cursor:pointer;color:var(--color-text-muted)}
.view-toggle button.is-active{background:var(--color-primary);color:#fff}
.list-view .grid{grid-template-columns:1fr}
.list-view .tool-card{min-height:0;flex-direction:row;align-items:center}
.list-view .tool-card .card-actions{margin:0 0 0 auto}

/* ---------- Forms ---------- */
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.label{font-size:.85rem;font-weight:650;color:var(--color-heading)}
.label .req{color:var(--color-danger)}
.input,.select,.textarea{width:100%;padding:.65rem .8rem;border-radius:var(--radius-input);border:1px solid var(--color-border-strong);background:var(--color-surface);color:var(--color-text);outline:0;transition:border-color .15s,box-shadow .15s}
.input:focus,.select:focus,.textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary) 16%,transparent)}
.textarea{min-height:120px;resize:vertical;line-height:1.6}
.input[type="color"]{padding:.25rem;height:42px;cursor:pointer}
.select[multiple]{min-height:110px}
.hint{font-size:.78rem;color:var(--color-text-muted)}
.error-text{font-size:.8rem;color:var(--color-danger);margin:.25rem 0 0}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 1rem}
.form-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-top:1.25rem}
.checkbox-row{display:flex;align-items:center;gap:.55rem;font-size:.88rem;color:var(--color-text);cursor:pointer}
.checkbox-row input{width:16px;height:16px;accent-color:var(--color-primary)}
.form-panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-panel);padding:clamp(1.25rem,3vw,2rem)}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:2rem 1rem;background:var(--hero-gradient)}
.auth-card{width:100%;max-width:440px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-panel);padding:2rem;box-shadow:0 20px 60px rgba(8,13,26,.16)}
.auth-card h1{font-size:1.6rem;margin-bottom:.3rem}
.auth-links{display:flex;justify-content:space-between;gap:1rem;font-size:.85rem;margin-top:1rem;flex-wrap:wrap}

/* ---------- Alerts / states ---------- */
.alert{padding:.85rem 1rem;border-radius:12px;border:1px solid var(--color-border);background:var(--color-surface);font-size:.88rem;margin-bottom:1rem;display:flex;gap:.6rem;align-items:flex-start}
.alert-success{background:color-mix(in srgb,var(--color-success) 10%,var(--color-surface));border-color:var(--color-success);color:var(--color-success)}
.alert-error{background:color-mix(in srgb,var(--color-danger) 10%,var(--color-surface));border-color:var(--color-danger);color:var(--color-danger)}
.alert-warning{background:color-mix(in srgb,var(--color-warning) 10%,var(--color-surface));border-color:var(--color-warning);color:var(--color-warning)}
.empty-state{text-align:center;padding:clamp(2rem,6vw,4rem) 1.5rem;border:1px dashed var(--color-border);border-radius:var(--radius-panel);background:var(--color-surface)}
.empty-state .empty-icon{font-size:2rem;margin-bottom:.75rem;opacity:.6}
.empty-state h3{margin-bottom:.35rem}
.empty-state p{color:var(--color-text-muted);max-width:48ch;margin-inline:auto}
.skeleton{background:linear-gradient(90deg,var(--color-surface-muted),var(--color-surface),var(--color-surface-muted));background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:8px}
@keyframes shimmer{to{background-position:-200% 0}}
.pagination{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:center;margin-top:2rem}
.pagination a,.pagination span{padding:.45rem .75rem;border-radius:9px;border:1px solid var(--color-border);background:var(--color-surface);font-size:.85rem;color:var(--color-text)}
.pagination .active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}
.pagination .disabled{opacity:.45}
.breadcrumbs{display:flex;gap:.45rem;flex-wrap:wrap;font-size:.82rem;color:var(--color-text-muted);margin-bottom:1.5rem}
.breadcrumbs a{color:var(--color-text-muted)}
.breadcrumbs a:hover{color:var(--color-primary)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}
.table{width:100%;border-collapse:collapse;font-size:.87rem;min-width:620px}
.table th,.table td{padding:.75rem .9rem;text-align:left;border-bottom:1px solid var(--color-border);vertical-align:middle}
.table th{background:var(--color-surface-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);font-weight:700;white-space:nowrap}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:color-mix(in srgb,var(--color-primary) 4%,transparent)}
.table td .row-actions{display:flex;gap:.35rem;flex-wrap:wrap}
.table input[type="checkbox"]{accent-color:var(--color-primary);width:15px;height:15px}

/* ---------- Admin shell ---------- */
.admin-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.admin-sidebar{background:var(--color-sidebar);border-right:1px solid var(--color-border);padding:1.1rem .85rem;position:sticky;top:0;height:100vh;overflow-y:auto}
.admin-sidebar .brand{margin:.25rem .5rem 1.5rem;font-size:1.05rem}
.admin-nav-group{margin-bottom:1.25rem}
.admin-nav-title{font-size:.68rem;text-transform:uppercase;letter-spacing:.09em;color:var(--color-text-muted);padding:.4rem .6rem;font-weight:700}
.admin-nav-link{display:flex;align-items:center;gap:.6rem;padding:.55rem .65rem;border-radius:9px;color:var(--color-text-muted);font-size:.86rem;font-weight:600;margin-bottom:2px}
.admin-nav-link:hover,.admin-nav-link.is-active{background:color-mix(in srgb,var(--color-primary) 12%,transparent);color:var(--color-primary)}
.admin-nav-dot{width:6px;height:6px;border-radius:50%;background:var(--color-border);flex:none}
.admin-nav-link.is-active .admin-nav-dot{background:var(--color-primary)}
.admin-main{min-width:0;display:flex;flex-direction:column}
.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem clamp(1rem,2.5vw,2rem);border-bottom:1px solid var(--color-border);background:var(--color-header);position:sticky;top:0;z-index:40;backdrop-filter:blur(10px)}
.admin-topbar h1{font-size:1.1rem;margin:0;font-weight:700}
.admin-content{padding:clamp(1.25rem,2.5vw,2rem);flex:1}
.admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}
.admin-page-head h1{font-size:1.6rem;margin:0}
.admin-page-head p{margin:.35rem 0 0;color:var(--color-text-muted);font-size:.88rem}
.panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:1.25rem;margin-bottom:1.25rem}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--color-border)}
.panel-head h2,.panel-head h3{margin:0;font-size:1.05rem}
.panel-title{font-weight:700;color:var(--color-heading)}
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin-bottom:1.5rem}
.metric{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:1.15rem}
.metric-label{font-size:.78rem;color:var(--color-text-muted);font-weight:600}
.metric-value{font-family:var(--font-heading);font-size:1.8rem;font-weight:800;color:var(--color-heading);margin-top:.25rem;line-height:1.1}
.metric-note{font-size:.75rem;color:var(--color-text-muted);margin-top:.3rem}
.split-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.25rem}
.tabs{display:flex;gap:.3rem;border-bottom:1px solid var(--color-border);margin-bottom:1.25rem;flex-wrap:wrap}
.tab{padding:.6rem .9rem;border:0;background:transparent;color:var(--color-text-muted);font-weight:650;font-size:.88rem;cursor:pointer;border-bottom:2px solid transparent}
.tab.is-active{color:var(--color-primary);border-bottom-color:var(--color-primary)}
.tab-panel[hidden]{display:none!important}
.table caption{caption-side:top;text-align:left;padding:.75rem .9rem;color:var(--color-text-muted);font-size:.82rem;border-bottom:1px solid var(--color-border)}
.bars{display:flex;align-items:flex-end;gap:4px;height:120px;margin-top:1rem}
.bar{flex:1;min-width:4px;background:var(--color-primary);border-radius:4px 4px 0 0;opacity:.85}
.drag-list{display:flex;flex-direction:column;gap:.6rem}
.drag-item{display:flex;align-items:center;gap:.75rem;padding:.8rem 1rem;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface)}
.drag-handle{cursor:grab;color:var(--color-text-muted);font-weight:800;letter-spacing:.1em}
.drag-item.is-disabled{opacity:.55}

/* ---------- Prose / detail pages ---------- */
.prose{line-height:1.8;color:var(--color-text)}
.prose h2,.prose h3{margin-top:1.8rem}
.prose ul,.prose ol{padding-left:1.4rem;margin-bottom:1rem}
.prose img{border-radius:12px;margin:1rem 0}
.prose blockquote{border-left:3px solid var(--color-primary);margin:1.2rem 0;padding:.3rem 0 .3rem 1rem;color:var(--color-text-muted)}
.prose pre{background:var(--color-surface-muted);border:1px solid var(--color-border);border-radius:10px;padding:1rem;overflow:auto;font-family:var(--font-mono);font-size:.85rem}
.detail-hero{display:flex;gap:1.25rem;align-items:flex-start;flex-wrap:wrap;padding:1.75rem;border:1px solid var(--color-border);border-radius:var(--radius-panel);background:var(--color-surface);margin-bottom:1.75rem}
.detail-hero .tool-logo{width:64px;height:64px;font-size:1.5rem;border-radius:16px}
.detail-meta{display:flex;gap:1.5rem;flex-wrap:wrap;color:var(--color-text-muted);font-size:.85rem;margin-top:1rem}
.prompt-body{white-space:pre-wrap;font-family:var(--font-mono);font-size:.9rem;background:var(--color-surface-muted);border:1px solid var(--color-border);border-radius:12px;padding:1.25rem;line-height:1.7}
.builder-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.builder-preview{position:sticky;top:90px}
.compare-table th[scope="row"]{font-weight:650;color:var(--color-heading);width:180px;background:transparent;text-transform:none;letter-spacing:normal;font-size:.87rem}
.glossary-nav{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:1.5rem}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--color-border);background:var(--color-surface);margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(auto-fit,minmax(150px,1fr));gap:2rem;padding-block:3rem}
.footer-brand p{color:var(--color-text-muted);font-size:.88rem;max-width:34ch}
.footer-col h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--color-text-muted);margin-bottom:.85rem}
.footer-col a{display:block;color:var(--color-text-muted);font-size:.87rem;padding:.22rem 0}
.footer-col a:hover{color:var(--color-primary)}
.footer-bottom{border-top:1px solid var(--color-border);padding:1.1rem 0;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--color-text-muted);font-size:.8rem}
.newsletter-form{display:flex;gap:.5rem;max-width:420px}
.newsletter-form .input{flex:1}

/* ---------- Toast ---------- */
.toast-stack{position:fixed;right:1rem;bottom:1rem;z-index:100;display:flex;flex-direction:column;gap:.5rem;max-width:min(380px,90vw)}
.toast{background:var(--color-surface-elevated);border:1px solid var(--color-border);border-left:3px solid var(--color-primary);border-radius:10px;padding:.8rem 1rem;box-shadow:0 12px 30px rgba(8,13,26,.25);font-size:.87rem;animation:toast-in .2s ease}
.toast.is-error{border-left-color:var(--color-danger)}
@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- Responsive ---------- */
@media(max-width:1080px){
  .main-nav{gap:0;margin-left:.75rem}
  .nav-link{padding:.45rem .45rem;font-size:.82rem}
  .header-search{min-width:150px}
  .admin-shell{grid-template-columns:210px minmax(0,1fr)}
}
@media(max-width:900px){
  .main-nav,.header-search{display:none}
  .mobile-toggle{display:inline-flex}
  .layout-with-sidebar{grid-template-columns:1fr}
  /* On small screens the article comes first; facts and forms follow it. */
  .layout-with-sidebar > aside{order:2}
  .layout-with-sidebar > :not(aside){order:1}
  .filters-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  .builder-grid{grid-template-columns:1fr}
  .builder-preview{position:static}
  .admin-shell{grid-template-columns:1fr}
  .admin-sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--color-border);display:none}
  .admin-sidebar.is-open{display:block}
  .admin-nav-group{display:inline-block;vertical-align:top;width:48%;margin-right:2%}
}
@media(max-width:640px){
  body{font-size:14px}
  .hero-inner{padding-block:3rem}
  .hero-search{flex-direction:column}
  .hero-search .btn{width:100%}
  .section-head{align-items:flex-start}
  .stat{padding:1rem}
  .stat-value{font-size:1.6rem}
  .auth-card{padding:1.5rem}
  .list-view .tool-card{flex-direction:column;align-items:stretch}
  .list-view .tool-card .card-actions{margin-top:.5rem}
  .footer-grid{grid-template-columns:1fr 1fr;gap:1.5rem}
  .footer-brand{grid-column:1/-1}
  .form-grid{grid-template-columns:1fr}
  .admin-nav-group{width:100%;margin-right:0}
  .callout{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{.site-header,.site-footer,.admin-sidebar,.admin-topbar,.btn,.header-actions{display:none!important}body{background:#fff;color:#000}}


/* ==========================================================================
   AI ART Frontend System — matching assets/Frontend.png
   Dark Navy Futuristic UI with neon cyan, purple & blue gradient accents
   ========================================================================== */

/* Header V2 */
.site-header-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 8, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  padding: 0.45rem 0;
}
[data-theme="disabled-light"] .site-header-v2 {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}
.header-inner-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}
.brand-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark-v2 {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}
.brand-mark-v2 svg {
  width: 28px;
  height: 28px;
}
.header-logo-emblem,
.footer-logo-emblem {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-name-v2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
[data-theme="disabled-light"] .brand-name-v2 {
  color: #0f172a;
}
.brand-tagline-v2 {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

/* Main Nav V2 */
.main-nav-v2 {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}
.nav-pill-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(135, 59, 255, 0.85) 0%, rgba(99, 102, 241, 0.85) 100%);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(135, 59, 255, 0.5);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-pill-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(135, 59, 255, 0.7);
}
.nav-link-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 550;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
[data-theme="disabled-light"] .nav-link-v2 {
  color: #475569;
}
.nav-link-v2:hover, .nav-link-v2.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="disabled-light"] .nav-link-v2:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.caret-down {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

/* Dropdowns */
.nav-dropdown-group {
  position: relative;
}
.nav-dropdown-group:hover .caret-down {
  transform: rotate(180deg);
}
.nav-dropdown-flyout {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 260px;
  background: #0c1322;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
  opacity: 0;
  visibility: hidden;
  display: none;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
}
[data-theme="disabled-light"] .nav-dropdown-flyout {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.nav-dropdown-group:hover .nav-dropdown-flyout,
.nav-dropdown-group:focus-within .nav-dropdown-flyout {
  opacity: 1;
  visibility: visible;
  display: block;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-group:hover .nav-dropdown-flyout.flyout-grid,
.nav-dropdown-group:focus-within .nav-dropdown-flyout.flyout-grid {
  display: grid;
}
.nav-dropdown-group:last-child .nav-dropdown-flyout,
.nav-dropdown-group:nth-last-child(2) .nav-dropdown-flyout {
  left: auto;
  right: 0;
  transform: translateY(6px);
}
.nav-dropdown-group:last-child:hover .nav-dropdown-flyout,
.nav-dropdown-group:last-child:focus-within .nav-dropdown-flyout,
.nav-dropdown-group:nth-last-child(2):hover .nav-dropdown-flyout,
.nav-dropdown-group:nth-last-child(2):focus-within .nav-dropdown-flyout {
  transform: translateY(0);
}
.nav-dropdown-flyout.flyout-grid {
  width: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.flyout-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.83rem;
  transition: background 0.15s ease, color 0.15s ease;
}
[data-theme="disabled-light"] .flyout-item {
  color: #334155;
}
.flyout-item:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #38bdf8;
}
.flyout-item-highlight {
  grid-column: 1 / -1;
  border-top: 1px solid #1e293b;
  margin-top: 0.3rem;
  padding-top: 0.6rem;
  color: #a855f7 !important;
  font-weight: 600;
}
.flyout-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex: none;
}
.flyout-content {
  flex: 1;
  min-width: 0;
}
.flyout-title {
  font-weight: 600;
  font-size: 0.82rem;
}
.flyout-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}

/* Header Actions */
.header-actions-v2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.header-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .header-action-btn {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.header-action-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}
.theme-toggle-btn {
  color: #fbbf24;
}
.theme-toggle-btn:hover {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}
.btn-pill-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-pill-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.65);
}
.avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.user-profile-dropdown-wrap {
  position: relative;
}
.user-flyout-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #0c1322;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 120;
}
.user-flyout-menu.is-active {
  display: block;
}
.flyout-user-header {
  padding: 0.4rem 0.6rem;
}
.flyout-user-header strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.flyout-divider {
  height: 1px;
  background: #1e293b;
  margin: 0.4rem 0;
}
.flyout-logout-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.mobile-hamburger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-v2 {
  display: none;
  background: #0c1322;
  border-bottom: 1px solid #1e293b;
  padding: 1.2rem 0;
}
.mobile-drawer-v2.is-open {
  display: block;
}

/* Global Search Modal */
.global-search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.search-modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 620px;
  background: #0c1322;
  border: 1px solid #263650;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.2);
}
.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #141d33;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
}
.modal-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}
.search-kbd-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #1e293b;
  border-radius: 6px;
  color: #94a3b8;
}
.search-modal-quick {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  align-items: center;
}
.search-modal-quick a {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  background: #141d33;
  border: 1px solid #1e293b;
  border-radius: 999px;
  color: #94a3b8;
  text-decoration: none;
}
.search-modal-quick a:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ==========================================================================
   Hero Section V2
   ========================================================================== */
.hero-v2 {
  position: relative;
  background: #01061a;
  overflow: hidden;
  padding: 1.5rem 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(20, 29, 51, 0.6);
}
.hero-container-v2 {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-left-v2 {
  padding: 0.5rem 0;
}
[data-theme="disabled-light"] .hero-v2 {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.hero-grid-v2 {
  display: grid;
  grid-template-columns: 1.05fr 1.08fr;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.eyebrow-sparkle {
  color: #c084fc;
}
.hero-title-v2 {
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.title-brand {
  display: block;
  font-size: clamp(2.05rem, 3.5vw, 2.65rem);
  font-weight: 950;
  margin-bottom: 0;
  line-height: 1.02;
}
.title-ai {
  color: #ffffff;
}
[data-theme="disabled-light"] .title-ai {
  color: #0f172a;
}
.title-art {
  background: linear-gradient(110deg, #38bdf8 0%, #a855f7 60%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-sub {
  display: block;
  font-size: clamp(1.15rem, 1.9vw, 1.48rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}
[data-theme="disabled-light"] .title-sub {
  color: #0f172a;
}
.title-creativity {
  display: block;
  font-size: clamp(1.15rem, 1.9vw, 1.48rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}
[data-theme="disabled-light"] .title-creativity {
  color: #0f172a;
}
.text-cyan-glow {
  background: linear-gradient(90deg, #00d5ff 0%, #a855f7 65%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 213, 255, 0.4));
}
.hero-description-v2 {
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 48ch;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
[data-theme="disabled-light"] .hero-description-v2 {
  color: #475569;
}

/* Hero Search Bar */
.hero-search-bar-v2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.16rem 0.25rem 0.16rem 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}
.hero-search-bar-v2:focus-within {
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.45), 0 0 24px rgba(6, 182, 212, 0.5);
}
.search-input-wrap-v2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
}
.search-input-wrap-v2 svg {
  color: #64748b;
  flex: none;
}
.search-input-wrap-v2 input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 500;
}
.search-input-wrap-v2 input::placeholder {
  color: #64748b;
}
.btn-hero-search {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
  transition: all 0.2s ease;
}
.btn-hero-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.7);
}

/* Popular Chips */
.hero-popular-chips-v2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.popular-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
}
[data-theme="disabled-light"] .popular-label {
  color: #475569;
}
.pop-chip {
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.70rem;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.15s ease;
}
[data-theme="disabled-light"] .pop-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.pop-chip:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}
.pop-chip-hot {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

/* Hero Artwork */
.hero-bg-art-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  max-width: 846px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg-art-layer .hero-cyborg-img,
.hero-cyborg-img {
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  display: block;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
}
.hero-right-v2 {
  min-height: 280px;
  pointer-events: none;
}

/* ==========================================================================
   Platform Statistics Bar
   ========================================================================== */
.stats-bar-section-v2 {
  background: #030817;
  padding: 0.85rem 0;
}
[data-theme="disabled-light"] .stats-bar-section-v2 {
  background: #f8fafc;
}
.stats-pill-container-v2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  background: rgba(8, 15, 36, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  min-height: 52px;
}
[data-theme="disabled-light"] .stats-pill-container-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.stat-item-v2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
}
.stat-icon-wrap {
  width: auto;
  height: auto;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stat-icon-cyan { color: #00d5ff; filter: drop-shadow(0 0 6px rgba(0, 213, 255, 0.6)); }
.stat-icon-amber { color: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)); }
.stat-icon-orange { color: #fb923c; filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.6)); }
.stat-icon-gold { color: #facc15; filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6)); }
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-num-v2 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
}
[data-theme="disabled-light"] .stat-num-v2 {
  color: #0f172a;
}
.stat-lbl-v2 {
  font-size: 0.66rem;
  font-weight: 550;
  color: #94a3b8;
  margin-top: 1px;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories-section-v2 {
  background: #030817;
  padding: 1.25rem 0;
}
[data-theme="disabled-light"] .categories-section-v2 {
  background: #f8fafc;
}
.section-heading-v2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.heading-left-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.heading-accent-bar {
  width: 3px;
  height: 22px;
  background: linear-gradient(180deg, #ec4899 0%, #38bdf8 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
  flex: none;
}
.heading-left-v2 h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}
[data-theme="disabled-light"] .heading-left-v2 h2 {
  color: #0f172a;
}
.heading-subtitle-v2 {
  margin: 0.12rem 0 0;
  color: #94a3b8;
  font-size: 0.74rem;
}
.btn-view-all-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 19, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .btn-view-all-v2 {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
.btn-view-all-v2:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.category-cards-grid-v2 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.55rem;
}
.cat-card-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.45rem 0.6rem;
  min-height: 64px;
  background: #080f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .cat-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}
.cat-card-v2:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.cat-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  flex: none;
}
.cat-icon-ai-writing { color: #00d5ff; filter: drop-shadow(0 0 6px rgba(0, 213, 255, 0.5)); }
.cat-icon-image-gen { color: #38bdf8; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5)); }
.cat-icon-video-gen { color: #ec4899; filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.5)); }
.cat-icon-audio-music { color: #06b6d4; filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5)); }
.cat-icon-chatbots { color: #a855f7; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5)); }
.cat-icon-ai-coding { color: #3b82f6; filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5)); }
.cat-icon-productivity { color: #00d5ff; filter: drop-shadow(0 0 6px rgba(0, 213, 255, 0.5)); }
.cat-icon-marketing { color: #f43f5e; filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.5)); }
.cat-icon-business { color: #0ea5e9; filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.5)); }
.cat-icon-education { color: #818cf8; filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.5)); }

.cat-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.2rem;
}
.cat-card-name {
  font-weight: 600;
  font-size: 0.68rem;
  color: #cbd5e1;
  white-space: nowrap;
}
[data-theme="disabled-light"] .cat-card-name {
  color: #334155;
}
.cat-card-arrow {
  color: #64748b;
  font-size: 0.68rem;
  transition: transform 0.15s ease;
  flex: none;
}
.cat-card-v2:hover .cat-card-arrow {
  transform: translateX(2px);
  color: #38bdf8;
}

/* ==========================================================================
   Showcase 3-Column Section: Tools | Prompts | News
   ========================================================================== */
.showcase-3col-section-v2 {
  background: #030817;
  padding: 1.25rem 0;
}
[data-theme="disabled-light"] .showcase-3col-section-v2 {
  background: #f8fafc;
}
.showcase-3col-grid-v2 {
  display: grid;
  grid-template-columns: 1.93fr 1fr 1.25fr;
  gap: 0.75rem;
  align-items: stretch;
}
.showcase-col-v2 {
  display: flex;
  flex-direction: column;
}
.showcase-panel-col-v2 {
  background: rgba(8, 15, 36, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  justify-content: space-between;
}
[data-theme="disabled-light"] .showcase-panel-col-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.col-head-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.col-title-wrap h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}
[data-theme="disabled-light"] .col-title-wrap h3 {
  color: #0f172a;
}
.col-icon-star { color: #f59e0b; font-size: 0.95rem; }
.col-icon-flame { color: #ef4444; font-size: 0.95rem; }
.col-icon-news { color: #ec4899; font-size: 0.95rem; }
.col-link-more {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}
.col-link-more:hover {
  text-decoration: underline;
}

/* Tool Cards in Column 1 (3 items side-by-side) */
.tool-cards-stack-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.showcase-tool-card-v2 {
  background: #080f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .showcase-tool-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
}
.showcase-tool-card-v2:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(59, 130, 246, 0.25);
}
.tool-card-top-v2 {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}
.tool-logo-box-v2 {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #141d33;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 800;
  color: #38bdf8;
}
.tool-logo-box-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tool-title-col-v2 {
  flex: 1;
  min-width: 0;
}
.tool-name-row-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.tool-name-link {
  font-size: 0.82rem;
  font-weight: 750;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
[data-theme="disabled-light"] .tool-name-link {
  color: #0f172a;
}
.tool-name-link:hover {
  color: #38bdf8;
}
.tool-status-pill {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-trending { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-popular { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-new { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tool-short-desc-v2 {
  margin: 0.08rem 0 0.15rem;
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-rating-row-v2 {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: #cbd5e1;
}
.star-gold { color: #f59e0b; }
.ratings-count { color: #64748b; font-size: 0.62rem; }
.tool-badges-row-v2 {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.tool-pill-badge {
  font-size: 0.60rem;
  font-weight: 600;
  padding: 0.08rem 0.4rem;
  border-radius: 5px;
}
.badge-free { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-paid { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-category { background: rgba(59, 130, 246, 0.15); color: #38bdf8; }
.tool-card-actions-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.btn-tool-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.68rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-tool-details:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-tool-heart {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
}
.btn-tool-heart:hover, .btn-tool-heart.is-saved {
  color: #ec4899;
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
}

/* Prompt Cards in Column 2 */
.prompt-cards-stack-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.showcase-prompt-card-v2 {
  background: #080f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  min-height: 44px;
}
[data-theme="disabled-light"] .showcase-prompt-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
}
.showcase-prompt-card-v2:hover {
  border-color: #8b5cf6;
  transform: translateY(-1px);
}
.prompt-thumb-box-v2 {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
}
.prompt-thumb-box-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prompt-info-col-v2 {
  flex: 1;
  min-width: 0;
}
.prompt-title-link {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="disabled-light"] .prompt-title-link {
  color: #0f172a;
}
.prompt-tags-row-v2 {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.prompt-tag-badge {
  font-size: 0.60rem;
  padding: 0.06rem 0.35rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #38bdf8;
}
.btn-prompt-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-prompt-copy-pill:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* News Cards in Column 3 */
.news-cards-stack-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.featured-news-card-v2 {
  background: #080f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .featured-news-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
}
.featured-news-thumb-wrap {
  display: block;
  width: 84px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
}
.featured-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-news-card-v2:hover .featured-news-img {
  transform: scale(1.04);
}
.featured-news-meta-col {
  padding: 0;
  flex: 1;
  min-width: 0;
}
.featured-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.73rem;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.25;
  text-decoration: none;
  margin-bottom: 0.2rem;
}
[data-theme="disabled-light"] .featured-news-title {
  color: #0f172a;
}
.featured-news-title:hover {
  color: #38bdf8;
}
.news-date-meta {
  font-size: 0.64rem;
  color: #94a3b8;
}
.secondary-news-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.1rem;
}
.secondary-news-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  transition: all 0.15s ease;
}
[data-theme="disabled-light"] .secondary-news-item {
  background: transparent;
  border-top-color: #e2e8f0;
}
.showcase-panel-col-v2 .featured-news-card-v2 {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.showcase-panel-col-v2 .featured-news-thumb-wrap {
  width: 96px;
  height: 62px;
  border-radius: 8px;
}
.showcase-panel-col-v2 .secondary-news-list-v2 {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.25rem;
  margin-top: 0.25rem;
}
.showcase-panel-col-v2 .secondary-news-item {
  border-top: none;
  padding: 0.22rem 0;
}
.secondary-news-item:hover {
  border-top-color: rgba(56, 189, 248, 0.4);
  transform: translateX(2px);
}
.cyan-bullet {
  color: #38bdf8;
  font-size: 0.72rem;
  line-height: 1;
}
.sec-news-headline {
  font-size: 0.70rem;
  font-weight: 550;
  color: #cbd5e1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="disabled-light"] .sec-news-headline {
  color: #334155;
}

/* ==========================================================================
   AI Learning Journey Banner (Four Steps Banner)
   ========================================================================== */
.learning-banner-section-v2 {
  background: #030817;
  padding: 1.25rem 0 1.5rem;
}
[data-theme="disabled-light"] .learning-banner-section-v2 {
  background: #f8fafc;
}
.learning-banner-card-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: 14px;
  min-height: 58px;
  background: linear-gradient(90deg, #6b21a8 0%, #3b0764 15%, #0f172a 45%, #1e1b4b 75%, #4c1d95 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.learning-left-col-v2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.learning-cap-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.learning-cap-img {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 213, 255, 0.6));
}
.learning-banner-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}
.learning-banner-subtitle {
  margin: 0.08rem 0 0;
  font-size: 0.68rem;
  color: #cbd5e1;
}
.learning-steps-flow-v2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.step-bubble-item {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  text-decoration: none;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.66rem;
  color: #fff;
}
.purple-circle { background: #9333ea; }
.blue-circle { background: #2563eb; }
.violet-circle { background: #7c3aed; }
.dark-circle { background: #3b0764; border: 1px solid #a855f7; }
.step-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
}
.step-flow-arrow {
  color: #94a3b8;
  font-size: 0.72rem;
}
.btn-learning-start {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c026d3 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(192, 38, 211, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-learning-start:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(192, 38, 211, 0.6);
}

/* ==========================================================================
   Newsletter Section V2
   ========================================================================== */
.newsletter-section-v2 {
  background: #070b14;
  padding: 2rem 0 4rem;
}
[data-theme="disabled-light"] .newsletter-section-v2 {
  background: #f8fafc;
}
.newsletter-card-v2 {
  background: #0c1322;
  border: 1px solid #1e293b;
  border-radius: 22px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.15);
}
[data-theme="disabled-light"] .newsletter-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
}
.newsletter-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}
.newsletter-card-v2 h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}
[data-theme="disabled-light"] .newsletter-card-v2 h2 {
  color: #0f172a;
}
.newsletter-form-v2 {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 1.75rem auto 0;
}
.newsletter-input-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  background: #141d33;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
}
[data-theme="disabled-light"] .newsletter-input-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.newsletter-input-group svg {
  color: #64748b;
  flex: none;
}
.input-plain-v2 {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
}
[data-theme="disabled-light"] .input-plain-v2 {
  color: #0f172a;
}
.btn-newsletter-submit {
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.2s ease;
}
.btn-newsletter-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Callout V2 */
.callout-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  border-radius: 18px;
  background: #0c1322;
  border: 1px solid #1e293b;
}
[data-theme="disabled-light"] .callout-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
}
.callout-v2 h2 {
  margin: 0 0 0.35rem;
  color: #fff;
}
[data-theme="disabled-light"] .callout-v2 h2 {
  color: #0f172a;
}
.callout-v2 p {
  margin: 0;
  color: #94a3b8;
}

/* ==========================================================================
   Featured Guides V2
   ========================================================================== */
.guides-section-v2 {
  padding: 3.5rem 0 2rem;
}
.heading-accent-purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #d946ef 100%) !important;
}
.heading-accent-amber {
  background: linear-gradient(180deg, #f59e0b 0%, #ef4444 100%) !important;
}
.guides-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.guide-card-v2 {
  background: #0b1324;
  border: 1px solid #1a2744;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
[data-theme="disabled-light"] .guide-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.guide-card-v2:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}
.guide-card-top-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.guide-badge-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
}
[data-theme="disabled-light"] .guide-badge-pill {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}
.guide-icon-sparkle {
  color: #38bdf8;
  font-size: 0.85rem;
}
.guide-card-title-v2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}
.guide-card-title-v2 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}
[data-theme="disabled-light"] .guide-card-title-v2 a {
  color: #0f172a;
}
.guide-card-title-v2 a:hover {
  color: #38bdf8;
}
.guide-card-excerpt-v2 {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 1.25rem;
  flex: 1;
}
[data-theme="disabled-light"] .guide-card-excerpt-v2 {
  color: #475569;
}
.guide-card-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="disabled-light"] .guide-card-footer-v2 {
  border-top-color: #f1f5f9;
}
.guide-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  transition: gap 0.15s ease;
}
.guide-read-btn:hover {
  gap: 0.65rem;
  color: #60a5fa;
}

/* ==========================================================================
   CTA Banners V2 (Compare & Submit)
   ========================================================================== */
.cta-banner-section-v2 {
  padding: 1.75rem 0;
}
.cta-banner-card-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.75rem;
  border-radius: 20px;
  background: #090e1c;
  border: 1px solid #1a2744;
  position: relative;
  overflow: hidden;
}
[data-theme="disabled-light"] .cta-banner-card-v2 {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}
.compare-cta-card {
  border-left: 4px solid #3b82f6;
}
.submit-cta-card {
  border-left: 4px solid #8b5cf6;
}
.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}
.cta-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.cta-badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}
[data-theme="disabled-light"] .cta-banner-title {
  color: #0f172a;
}
.cta-banner-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}
[data-theme="disabled-light"] .cta-banner-desc {
  color: #475569;
}
.btn-cta-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-cta-blue {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}
.btn-cta-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.6);
}
.btn-cta-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}
.btn-cta-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.6);
}

/* ==========================================================================
   Footer V2
   ========================================================================== */
.site-footer-v2 {
  background: #05080f;
  border-top: 1px solid #141d33;
  padding: 4rem 0 2rem;
  color: #94a3b8;
}
[data-theme="disabled-light"] .site-footer-v2 {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}
.footer-top-grid-v2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-bio-text {
  margin: 1rem 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-social-row {
  display: flex;
  gap: 0.6rem;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0c1322;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
[data-theme="disabled-light"] .social-icon-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}
.social-icon-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  transform: translateY(-2px);
}
.footer-col-title {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
}
[data-theme="disabled-light"] .footer-col-title {
  color: #0f172a;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links-list li a {
  font-size: 0.83rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
[data-theme="disabled-light"] .footer-links-list li a {
  color: #64748b;
}
.footer-links-list li a:hover {
  color: #38bdf8;
}
.footer-bottom-bar-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #141d33;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
[data-theme="disabled-light"] .footer-bottom-bar-v2 {
  border-top: 1px solid #e2e8f0;
}
.footer-badge-text {
  color: #64748b;
}

/* Responsive adjustments */
@media(max-width: 1200px) {
  .guides-grid-v2 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .main-nav-v2 { gap: 0.15rem; }
  .nav-link-v2 { padding: 0.32rem 0.45rem; font-size: 0.76rem; }
  .nav-pill-home { padding: 0.32rem 0.65rem; font-size: 0.76rem; }
  .brand-text-block .brand-tagline-v2 { display: none; }
}

@media(max-width: 900px) {
  .hero-grid-v2 { grid-template-columns: 1fr; gap: 2rem; }
  .hero-bg-art-layer { width: 100%; opacity: 0.35; }
  .hero-right-v2 { display: none; }
  .stats-pill-container-v2 { grid-template-columns: repeat(3, 1fr); border-radius: 20px; }
  .category-cards-grid-v2 { grid-template-columns: repeat(5, 1fr); }
  .showcase-3col-grid-v2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .tool-cards-stack-v2 { grid-template-columns: repeat(3, 1fr); }
  .guides-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .learning-banner-card-v2 { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cta-banner-card-v2 { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem; }
  .cta-banner-right { width: 100%; }
  .footer-top-grid-v2 { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 820px) {
  .main-nav-v2 { display: none; }
  .mobile-hamburger-btn { display: inline-flex; }
  .stats-pill-container-v2 { grid-template-columns: repeat(3, 1fr); }
  .category-cards-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .tool-cards-stack-v2 { grid-template-columns: 1fr; }
  .learning-steps-flow-v2 { flex-wrap: wrap; }
}

@media(max-width: 640px) {
  .header-actions-v2 .btn-pill-auth,
  .header-actions-v2 .user-profile-dropdown-wrap {
    display: none !important;
  }
  .brand-name-v2 { font-size: 1.15rem; }
  .brand-tagline-v2 { display: none; }
  .showcase-col-v2, .tool-cards-stack-v2, .showcase-tool-card-v2 {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-v2 { padding: 1.5rem 0 1rem; }
  .hero-title-v2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-search-bar-v2 { flex-direction: column; border-radius: 16px; padding: 0.75rem; }
  .btn-hero-search { width: 100%; justify-content: center; }
  .stats-pill-container-v2 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0.85rem; }
  .category-cards-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .tool-cards-stack-v2 { grid-template-columns: 1fr; }
  .guides-grid-v2 { grid-template-columns: 1fr; }
  .cta-banner-left { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-cta-action { width: 100%; justify-content: center; }
  .learning-steps-flow-v2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; width: 100%; }
  .step-flow-arrow { display: none; }
  .learning-cta-col-v2 { width: 100%; }
  .btn-learning-start { width: 100%; justify-content: center; }
  .newsletter-form-v2 { flex-direction: column; }
  .btn-newsletter-submit { width: 100%; }
  .footer-top-grid-v2 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-bar-v2 { flex-direction: column; text-align: center; gap: 0.75rem; }
}

@media(max-width: 390px) {
  .container { padding-left: 0.85rem; padding-right: 0.85rem; }
  .cat-card-pill-v2 { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
  .stat-item-v2 { padding: 0.5rem; gap: 0.5rem; }
  .stat-num-v2 { font-size: 1.1rem; }
  .stat-lbl-v2 { font-size: 0.68rem; }
  .hero-artwork-frame { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.25)); }
}

/* ==========================================================================
   UTILITY & COMPONENT LAYER
   The templates use a compact, fixed set of layout utilities. They are
   defined here explicitly rather than compiled from a framework, so the
   site keeps working with no build step and ships no unused CSS.
   Values follow a 4px rhythm.
   ========================================================================== */

/* ---------- Display & flex ---------- */
.flex{display:flex}.inline-flex{display:inline-flex}.inline-block{display:inline-block}
.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}
.flex-wrap{flex-wrap:wrap}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}
.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}
.justify-between{justify-content:space-between}.justify-center{justify-content:center}
.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}
.relative{position:relative}.absolute{position:absolute}.inset-0{inset:0}
.overflow-hidden{overflow:hidden}

/* ---------- Spacing ---------- */
.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}
.px-2{padding-inline:.5rem}.px-4{padding-inline:1rem}.px-5{padding-inline:1.25rem}
.py-1{padding-block:.25rem}.py-1\.5{padding-block:.375rem}.py-2{padding-block:.5rem}.py-5{padding-block:1.25rem}
.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}
.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-12{padding-bottom:3rem}
.pl-3{padding-left:.75rem}
.mb-0{margin-bottom:0}.mb-6{margin-bottom:1.5rem}
.my-1{margin-block:.25rem}.my-3{margin-block:.75rem}
.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}
.gap-4{gap:1rem}
.space-y-2>*+*{margin-top:.5rem}
.space-x-1>*+*{margin-left:.25rem}

/* ---------- Typography ---------- */
.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}
.text-center{text-align:center}.text-right{text-align:right}.text-left{text-align:left}
.text-inherit{color:inherit}
.text-muted{color:var(--color-text-muted)}
.text-primary{color:var(--color-primary)}
.text-danger{color:var(--color-danger)}
.text-success{color:var(--color-success)}
.text-warning{color:var(--color-warning)}
.text-cyan,.heading-accent-cyan{color:var(--color-accent-strong)}
.text-gold{color:#B45309}
[data-theme="dark"] .text-gold{color:#FBBF24}
.font-mono{font-family:var(--font-mono)}
.font-bold,.fw-bold{font-weight:700}
.font-medium,.fw-semibold{font-weight:600}
.leading-normal{line-height:1.6}
.underline{text-decoration:underline}
.underline-offset-4{text-underline-offset:4px}

/* ---------- Borders, radius, surfaces ---------- */
.border{border:1px solid var(--color-border)}
.border-t{border-top:1px solid var(--color-border)}
.border-b{border-bottom:1px solid var(--color-border)}
.border-transparent{border-color:transparent}
.border-danger{border-color:var(--color-danger)}
.rounded{border-radius:var(--radius-button)}
.rounded-sm{border-radius:6px}
.rounded-full{border-radius:9999px}
.rounded-t-lg{border-top-left-radius:var(--radius-card);border-top-right-radius:var(--radius-card)}
.rounded-bl-lg{border-bottom-left-radius:var(--radius-card)}
.rounded-br-lg{border-bottom-right-radius:var(--radius-card)}
.bg-surface-muted{background:var(--color-surface-muted)}
.bg-white{background:var(--color-surface)}
.w-full{width:100%}.h-full{height:100%}.min-w-0{min-width:0}.max-w-none{max-width:none}
.opacity-100{opacity:1}
.transition-all{transition:all .2s ease}
.transition-opacity{transition:opacity .2s ease}
.duration-750{transition-duration:750ms}
.delay-300{transition-delay:300ms}
.translate-y-0{transform:translateY(0)}

/* ---------- Buttons ---------- */
.btn-secondary{background:var(--color-surface-muted);color:var(--color-text);border-color:var(--color-border)}
.btn-secondary:hover{border-color:var(--color-primary);color:var(--color-primary)}
.btn-xs{padding:.2rem .5rem;font-size:.72rem;border-radius:6px;gap:.25rem}
.btn-success{background:var(--color-success);color:#fff}
.btn-success:hover{color:#fff;filter:brightness(1.06)}

/* ---------- Badges ---------- */
.badge-neutral{background:var(--color-surface-muted);color:var(--color-text-muted)}
.badge-subtle{background:color-mix(in srgb,var(--color-text-muted) 10%,transparent);color:var(--color-text-muted);border-color:transparent}
.badge-purple{background:color-mix(in srgb,var(--color-secondary) 10%,transparent);color:var(--color-secondary);border-color:transparent}
.badge-cyan{background:color-mix(in srgb,var(--color-accent) 12%,transparent);color:var(--color-accent-strong);border-color:transparent}
.badge-pink{background:color-mix(in srgb,#DB2777 10%,transparent);color:#BE185D;border-color:transparent}
[data-theme="dark"] .badge-pink{color:#F9A8D4}
[data-theme="dark"] .badge-purple{color:#C4B5FD}

/* ---------- Forms ---------- */
.form-stack{display:flex;flex-direction:column;gap:1rem}
.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.form-label{font-size:.85rem;font-weight:650;color:var(--color-heading)}
.input-sm,.select-sm{padding:.4rem .6rem;font-size:.82rem;border-radius:9px}
.input--error,.is-invalid{border-color:var(--color-danger)!important}
.field-error{font-size:.8rem;color:var(--color-danger);margin:.25rem 0 0}
.field-checkbox{display:flex;align-items:center;gap:.5rem;font-size:.88rem;color:var(--color-text)}
.field-checkbox input{width:16px;height:16px;accent-color:var(--color-primary)}
.checkbox,.cat-checkbox,.tool-checkbox,.prompt-checkbox,.tag-checkbox{accent-color:var(--color-primary)}
.color-picker{width:46px;height:38px;padding:.2rem;border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-surface);cursor:pointer}
.select-plain{appearance:none;background:transparent;border:0;color:inherit;font:inherit;padding:0 .25rem;cursor:pointer}
.auth-footer{text-align:center;font-size:.9rem}

/* ---------- Panels & admin components ---------- */
.stat-card{text-align:center}
.table-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);overflow:hidden}
.action-card{display:flex;align-items:center;gap:.75rem;padding:1rem;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);transition:border-color .18s ease,transform .18s ease}
.action-card:hover{border-color:var(--color-primary);transform:translateY(-2px)}
.tag-type-card{display:flex;flex-direction:column;gap:.2rem;padding:.85rem;border:1px solid var(--color-border);border-radius:10px;background:var(--color-surface);cursor:pointer}
.tag-type-card:hover{border-color:var(--color-primary)}
.kpi-sub-stats{margin-left:auto}
.clean-list{list-style:none;margin:0;padding:0}
.meta-tag,.meta-tag-cat,.meta-tag-pricing,.meta-tag-verified{display:inline-flex;align-items:center;gap:.25rem;padding:.15rem .5rem;border-radius:999px;background:var(--color-surface-muted);font-size:.72rem;color:var(--color-text-muted);border:1px solid var(--color-border)}
.feature-row{display:flex;gap:.6rem;align-items:flex-start}
.code-block{font-family:var(--font-mono);font-size:.82rem;background:var(--color-surface-muted);border:1px solid var(--color-border);border-radius:10px;padding:.85rem;overflow:auto}
.var-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:.5rem;align-items:center}
.var-key-input,.var-val-input,.var-input-field{width:100%;padding:.4rem .55rem;border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-surface);color:var(--color-text);font-size:.82rem}
.order-badge{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--color-surface-muted);font-size:.72rem;font-weight:700;color:var(--color-text-muted)}
.bulk-item{display:flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:8px}
.bulk-item:hover{background:var(--color-surface-muted)}
.container-fluid{width:100%;padding-inline:clamp(16px,3vw,32px)}
.preview-toolbar-v2{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.footer-links-col{min-width:0}
.custom-html-block{display:block}
.settings-tab-pane,.design-tab-pane,.builder-tab-content,.page-landing-template,.page-fullwidth-template,.page-sidebar-template{display:block}

@media(max-width:640px){
  .var-row{grid-template-columns:1fr}
}

/* ---------- Homepage tool card (secondary layout) ---------- */
.featured-tools-section-v2{display:block}
.tools-grid-v2{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.tool-card-v2{display:flex;flex-direction:column;gap:.6rem;padding:1rem;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.tool-card-v2:hover{transform:translateY(-3px);border-color:var(--color-primary);box-shadow:0 14px 32px rgba(8,13,26,.1)}
.tool-logo-img{width:44px;height:44px;border-radius:12px;object-fit:cover;flex:none}
.tool-logo-fallback{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#06121f;font-weight:800;flex:none}
.tool-header-meta{flex:1;min-width:0}
.tool-title-v2{font-size:1rem;margin:0;line-height:1.3}
.tool-tagline-v2{font-size:.85rem;color:var(--color-text-muted);margin:.2rem 0 0}
.tool-rating-chip{display:inline-flex;align-items:center;gap:.25rem;font-size:.78rem;color:var(--color-text-muted)}
.star-icon{color:#B45309}
[data-theme="dark"] .star-icon{color:#FBBF24}
.tool-desc-v2{font-size:.86rem;color:var(--color-text-muted);margin:0}
.tool-meta-tags-v2{display:flex;gap:.35rem;flex-wrap:wrap}
.tool-card-bottom-v2{margin-top:auto;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.btn-tool-visit{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:9px;background:var(--gradient-cta);color:#fff;font-size:.82rem;font-weight:600}
.btn-tool-visit:hover{color:#fff}

/* ---------- Footer, drawer & modal hooks ---------- */
.footer-brand-col-v2{min-width:0}
.footer-copy-text{font-size:.8rem;color:var(--color-text-muted)}
.user-toggle-btn{cursor:pointer}
.mobile-drawer-inner{display:flex;flex-direction:column;gap:.25rem;padding:1rem 0}
.mobile-search-form{display:flex;gap:.5rem;margin-bottom:.75rem}
.mobile-links-list{display:flex;flex-direction:column}
.mobile-accordion-group{border-bottom:1px solid var(--color-border)}
.mobile-accordion-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;padding:.7rem .25rem;font-weight:600;font-size:.9rem;color:var(--color-text);cursor:pointer}
.mobile-accordion-panel{display:block;padding-left:.75rem}
.mobile-child-link{display:block;padding:.45rem .25rem;color:var(--color-text-muted);font-size:.86rem}
.mobile-nav-link{display:block;padding:.55rem .25rem;color:var(--color-text);font-weight:600;font-size:.9rem}
.mobile-auth-footer{display:flex;flex-direction:column;gap:.5rem;padding-top:.75rem;margin-top:.5rem;border-top:1px solid var(--color-border)}
.search-modal-form{display:block}
.search-modal-suggestions{margin-top:.75rem}

/* Featured story: two columns on desktop, stacked on small screens. */
.featured-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:1.5rem;align-items:center;text-decoration:none;color:inherit}
@media(max-width:760px){.featured-story{grid-template-columns:1fr}}

/* Collapsible filter group: keeps list toolbars to four visible controls. */
.filters-disclosure{position:relative}
.filters-disclosure>summary{list-style:none;cursor:pointer}
.filters-disclosure>summary::-webkit-details-marker{display:none}
.filters-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;align-items:end;margin-top:.75rem;padding:1rem;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}
.filters-panel .field{margin:0}

/* Secondary action menu: keeps one primary button per detail page. */
.more-actions{position:relative}
.more-actions>summary{list-style:none;cursor:pointer}
.more-actions>summary::-webkit-details-marker{display:none}
.more-actions-panel{position:absolute;right:0;top:calc(100% + .4rem);z-index:30;min-width:235px;background:var(--color-surface-elevated);border:1px solid var(--color-border);border-radius:12px;box-shadow:0 16px 36px rgba(8,13,26,.18);padding:.4rem;display:flex;flex-direction:column}
.more-actions-panel a,.more-actions-panel button{display:flex;align-items:center;gap:.5rem;padding:.5rem .6rem;border-radius:8px;color:var(--color-text);font-size:.86rem;text-align:left;background:none;border:0;cursor:pointer;width:100%}
.more-actions-panel a:hover,.more-actions-panel button:hover{background:var(--color-surface-muted);color:var(--color-primary)}

/* Let <picture> wrap the hero art without changing its positioning context. */
.hero-art-picture{display:contents}

/* --------------------------------------------------------------------------
   Rating badge
   Rendered only when at least one approved review exists. The empty state is
   a first-class style, not a fallback value.
   -------------------------------------------------------------------------- */
.rating-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.78rem;line-height:1.2;color:var(--color-text-muted)}
.rating-badge strong{color:var(--color-text);font-weight:700;font-variant-numeric:tabular-nums}
.rating-badge .ratings-count{color:var(--color-text-muted);font-variant-numeric:tabular-nums}
.rating-badge .star-gold{color:#B45309}
[data-theme="dark"] .rating-badge .star-gold{color:#FBBF24}
.rating-badge--compact{font-size:.72rem}
.rating-badge--empty{color:var(--color-text-muted);font-style:italic}

/* --------------------------------------------------------------------------
   Pricing badges
   Token-driven so a listing's price label survives both themes. The legacy
   rgba() rules above are overridden here rather than edited in place, so the
   change is additive and reversible.
   -------------------------------------------------------------------------- */
.tool-pill-badge.badge-free{background:color-mix(in srgb,var(--color-success) 10%,transparent);color:var(--color-success);border-color:transparent}
.tool-pill-badge.badge-freemium{background:color-mix(in srgb,var(--color-primary) 10%,transparent);color:var(--color-primary);border-color:transparent}
.tool-pill-badge.badge-paid{background:color-mix(in srgb,var(--color-secondary) 10%,transparent);color:var(--color-secondary);border-color:transparent}
.tool-pill-badge.badge-neutral{background:var(--color-surface-muted);color:var(--color-text-muted);border-color:transparent}

/* --- AI ART Reference Design System Additions --- */



/* ==========================================================================
   GLOBAL DESIGN SYSTEM & BASE STYLES
   ========================================================================== */
:root {
    --bg-main: #050714;
    --bg-secondary: #090D20;
    --bg-card: #10152B;
    --bg-card-secondary: #141A35;
    --text-primary: #F8F9FF;
    --text-secondary: #B5BDDA;
    --text-muted: #818AA8;
    --border-main: #252D50;
    --purple-primary: #7625F5;
    --purple-highlight: #AA42FF;
    --neon-blue: #00BFFF;
    --soft-lavender: #C5A3FF;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}

/* Typography Helpers */
.text-purple-glow {
    color: var(--purple-highlight);
    text-shadow: 0 0 24px rgba(170, 66, 255, 0.65);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header-v3 {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(37, 45, 80, 0.5);
    height: 76px;
    display: flex;
    align-items: center;
}

.header-inner-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Brand */
.brand-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-logo-mark-v3 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-mark-v3 img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(170, 66, 255, 0.4));
}

.brand-text-col-v3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-title-v3 {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    line-height: 1.1;
    display: block;
}

.brand-tagline-v3 {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.025em;
    line-height: 1.2;
    margin-top: 1px;
    display: block;
}

/* Center Capsule Navigation */
.center-nav-capsule-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 21, 43, 0.75);
    border: 1px solid var(--border-main);
    border-radius: 9999px;
    padding: 0.32rem 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.center-nav-capsule-v3 .nav-pill-home {
    background: var(--purple-primary);
    color: #FFFFFF !important;
    padding: 0.38rem 1.15rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 10px rgba(118, 37, 245, 0.4);
    transition: all 0.2s ease;
}

.center-nav-capsule-v3 .nav-pill-home:hover {
    background: #8738FF;
}

.nav-dropdown-wrapper-v3 {
    position: relative;
}

.nav-dropdown-trigger-v3 {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.38rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.nav-dropdown-trigger-v3:hover,
.nav-dropdown-wrapper-v3:hover .nav-dropdown-trigger-v3 {
    color: #FFFFFF;
}

.nav-caret-v3 {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.nav-dropdown-wrapper-v3:hover .nav-caret-v3 {
    transform: rotate(180deg);
}

/* Flyout Menus */
.nav-flyout-menu-v3 {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0D132D;
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 120;
}

.nav-dropdown-wrapper-v3:hover .nav-flyout-menu-v3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-flyout-item-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-flyout-item-v3:hover {
    background: rgba(118, 37, 245, 0.15);
    color: #FFFFFF;
}

.flyout-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(118, 37, 245, 0.15);
    color: var(--purple-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flyout-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
}

.flyout-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Right Actions */
.header-right-actions-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-circle-btn-v3 {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-circle-btn-v3:hover {
    border-color: var(--purple-primary);
    color: #FFFFFF;
    background: var(--bg-card-secondary);
    transform: translateY(-1px);
}

.btn-purple-login-v3 {
    background: var(--purple-primary);
    color: #FFFFFF !important;
    padding: 0.5rem 1.35rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(118, 37, 245, 0.35);
    transition: all 0.2s ease;
}

.btn-purple-login-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(118, 37, 245, 0.5);
}

.mobile-hamburger-btn-v3 {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer-v3 {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.mobile-drawer-v3.is-open {
    display: block;
}

.mobile-drawer-inner-v3 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-search-form-v3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 9999px;
    padding: 0.6rem 1rem;
}

.mobile-search-form-v3 input {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 0.9rem;
    flex: 1;
}

.mobile-links-list-v3 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link-v3 {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-link-v3.is-active,
.mobile-nav-link-v3:hover {
    background: rgba(118, 37, 245, 0.15);
    color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-v2 {
    position: relative;
    padding: 3.5rem 0 2rem;
    overflow: hidden;
    background: var(--bg-main);
}

.hero-container-v2 {
    position: relative;
    z-index: 2;
}

.hero-grid-v2 {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 2rem;
    align-items: center;
}

.hero-left-v2 {
    padding: 1rem 0;
}

/* Eyebrow badge */
.hero-eyebrow-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.85rem;
    border-radius: 9999px;
    background: rgba(118, 37, 245, 0.12);
    border: 1px solid rgba(170, 66, 255, 0.35);
    color: var(--soft-lavender);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 16px rgba(118, 37, 245, 0.2);
}

.eyebrow-sparkle {
    color: var(--purple-highlight);
}

/* Hero Titles */
.hero-title-v2 {
    margin: 0 0 0.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.title-brand {
    display: block;
    font-size: clamp(3.2rem, 5.8vw, 4.8rem);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 0.65rem;
}

.title-ai {
    color: #FFFFFF;
}

.title-art {
    background: linear-gradient(135deg, #A845FF 0%, #D889FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(170, 66, 255, 0.55));
}

.title-sub,
.title-creativity {
    display: block;
    font-size: clamp(1.6rem, 2.9vw, 2.45rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.hero-description-v2 {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 52ch;
    margin: 1.25rem 0 1.85rem;
}

/* Hero Search Bar */
.hero-search-wrapper {
    max-width: 520px;
}

.hero-search-bar-v2 {
    display: flex;
    align-items: center;
    background: #0A0F24;
    border: 1px solid var(--border-main);
    border-radius: 9999px;
    padding: 0.3rem 0.35rem 0.3rem 1.15rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.hero-search-bar-v2:focus-within {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 2px rgba(118, 37, 245, 0.25), 0 12px 36px rgba(0, 0, 0, 0.65);
}

.search-input-wrap-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.search-icon-box {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-input-wrap-v2 input {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 0.88rem;
    flex: 1;
    padding: 0.45rem 0.25rem;
}

.search-input-wrap-v2 input::placeholder {
    color: var(--text-muted);
}

.btn-hero-search {
    background: var(--purple-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 0.6rem 1.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(118, 37, 245, 0.4);
}

.btn-hero-search:hover {
    background: #8738FF;
    transform: translateY(-1px);
}

.btn-search-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-hero-search:hover .btn-search-arrow {
    transform: translateX(2px);
}

/* Popular Search Chips */
.hero-popular-chips-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.15rem;
}

.popular-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    margin-right: 0.15rem;
}

.pop-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pop-chip:hover {
    border-color: var(--purple-primary);
    color: #FFFFFF;
    background: var(--bg-card-secondary);
    transform: translateY(-1px);
}

/* Hero Right Column: Particle Wave Canvas */
.hero-right-v2 {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-particle-wave-container {
    position: relative;
    width: 100%;
    height: 440px;
}

.hero-particle-wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
}

/* ==========================================================================
   HERO STATISTICS SECTION
   ========================================================================== */
.stats-bar-section-v2 {
    padding: 0.5rem 0 3.5rem;
}

.stats-card-container-v2 {
    background: #090D20;
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 1.35rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.stat-col-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-cyan {
    background: rgba(0, 191, 255, 0.12);
    color: #00BFFF;
}

.stat-icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.stat-icon-gold {
    background: rgba(234, 179, 8, 0.12);
    color: #EAB308;
}

.stat-icon-lightning {
    background: rgba(250, 204, 21, 0.12);
    color: #FACC15;
}

.stat-content-v2 {
    display: flex;
    flex-direction: column;
}

.stat-val-v2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

.stat-label-v2 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider-v2 {
    width: 1px;
    height: 38px;
    background: #1C2344;
}

/* ==========================================================================
   EXPLORE AI CATEGORIES SECTION
   ========================================================================== */
.categories-section-v3 {
    padding: 2rem 0 3.5rem;
}

.section-heading-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.85rem;
}

.heading-left-col-v3 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.purple-accent-bar {
    width: 4px;
    height: 30px;
    border-radius: 4px;
    background: var(--purple-primary);
    box-shadow: 0 0 12px rgba(118, 37, 245, 0.6);
}

.section-title-v3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-subtitle-v3 {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
}

.btn-view-all-pill-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-all-pill-v3:hover {
    border-color: var(--purple-primary);
    color: #FFFFFF;
    background: var(--bg-card-secondary);
    transform: translateY(-1px);
}

.view-all-arrow {
    transition: transform 0.2s ease;
}

.btn-view-all-pill-v3:hover .view-all-arrow {
    transform: translateX(2px);
}

/* 12-Card Category Grid */
.category-cards-grid-v3 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
}

.category-card-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-card-v3:hover {
    border-color: rgba(170, 66, 255, 0.6);
    background: var(--bg-card-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(118, 37, 245, 0.15);
}

.category-card-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-icon-theme-purple {
    background: rgba(118, 37, 245, 0.15);
    color: var(--purple-highlight);
}

.cat-icon-theme-cyan {
    background: rgba(0, 191, 255, 0.15);
    color: #00BFFF;
}

.cat-icon-theme-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.cat-icon-theme-violet {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
}

.cat-icon-theme-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #F472B6;
}

.cat-icon-theme-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
}

.cat-icon-theme-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #FB923C;
}

.category-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

/* ==========================================================================
   FEATURED AI TOOLS SECTION
   ========================================================================== */
.featured-tools-section-v3 {
    padding: 2rem 0 3.5rem;
}

.featured-tools-grid-v3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.featured-tool-card-v3 {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 18px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.featured-tool-card-v3:hover {
    border-color: rgba(170, 66, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(118, 37, 245, 0.22);
}

.card-badge-row-v3 {
    margin-bottom: 1rem;
}

.tool-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-popular {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-new {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-trending {
    background: rgba(249, 115, 22, 0.15);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-update {
    background: rgba(20, 184, 166, 0.15);
    color: #2DD4BF;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.tool-header-row-v3 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.tool-logo-box-v3 {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-logo-box-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-logo-fallback {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
}

.tool-name-v3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}

.tool-name-v3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tool-name-v3 a:hover {
    color: var(--purple-highlight);
}

.tool-desc-v3 {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0.4rem 0 1rem;
    flex: 1;
}

.tool-rating-wrapper-v3 {
    margin-bottom: 0.85rem;
}

.tool-footer-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(37, 45, 80, 0.6);
}

.tool-category-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.tool-arrow-btn-v3 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(118, 37, 245, 0.4);
}

.tool-arrow-btn-v3:hover {
    background: #8738FF;
    transform: translateX(2px);
}

/* ==========================================================================
   FEATURED AI GUIDES SECTION
   ========================================================================== */
.guides-section-v3 {
    padding: 2rem 0 3.5rem;
}

.guides-showcase-grid-v3 {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* Left Main Guide Card */
.featured-guide-main-v3 {
    background: radial-gradient(ellipse at 25% 50%, rgba(118, 37, 245, 0.35) 0%, #10152B 75%);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 1.65rem;
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.25s ease;
    height: 100%;
    box-sizing: border-box;
}

.featured-guide-main-v3:hover {
    border-color: rgba(170, 66, 255, 0.7);
    box-shadow: 0 12px 32px rgba(118, 37, 245, 0.22);
}

.guide-main-artwork-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-laptop-art {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 0 20px rgba(118, 37, 245, 0.4));
}

.guide-main-content-col {
    display: flex;
    flex-direction: column;
}

.guide-badge-pill-v3 {
    align-self: flex-start;
    display: inline-block;
    padding: 0.22rem 0.75rem;
    border-radius: 9999px;
    background: rgba(118, 37, 245, 0.25);
    border: 1px solid rgba(170, 66, 255, 0.45);
    color: var(--soft-lavender);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.guide-main-title-v3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
    margin: 0 0 0.65rem;
}

.guide-main-title-v3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-main-title-v3 a:hover {
    color: var(--purple-highlight);
}

.guide-main-desc-v3 {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.guide-main-meta-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

/* Right Secondary Stack */
.guides-secondary-stack-v3 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.guide-secondary-card-v3 {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    transition: all 0.2s ease;
}

.guide-secondary-card-v3:hover {
    border-color: rgba(170, 66, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(118, 37, 245, 0.18);
}

.guide-sec-thumb-col {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card-secondary);
}

.guide-sec-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-sec-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-highlight);
    font-size: 1.4rem;
}

.guide-sec-content-col {
    flex: 1;
    min-width: 0;
}

.guide-sec-title-v3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0.3rem 0 0.25rem;
    line-height: 1.3;
}

.guide-sec-title-v3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-sec-title-v3 a:hover {
    color: var(--purple-highlight);
}

.guide-sec-desc-v3 {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.guide-arrow-btn-v3 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(118, 37, 245, 0.4);
}

.guide-arrow-btn-v3:hover {
    background: #8738FF;
    transform: translateX(2px);
}

/* ==========================================================================
   NEWSLETTER SUBSCRIPTION SECTION
   ========================================================================== */
.newsletter-section-v3 {
    padding: 2rem 0 4rem;
}

.newsletter-card-v3 {
    background: radial-gradient(ellipse at 35% 50%, rgba(118, 37, 245, 0.4) 0%, #090D20 80%);
    border: 1px solid rgba(170, 66, 255, 0.45);
    border-radius: 24px;
    padding: 2.25rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(118, 37, 245, 0.2);
}

.newsletter-left-v3 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.newsletter-sparkle-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-sparkle-img {
    filter: drop-shadow(0 0 12px rgba(170, 66, 255, 0.8));
}

.newsletter-heading-v3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.newsletter-desc-v3 {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.newsletter-input-wrap-v3 {
    display: flex;
    align-items: center;
    background: #080C1F;
    border: 1px solid var(--border-main);
    border-radius: 9999px;
    padding: 0.28rem 0.35rem 0.28rem 1.15rem;
    min-width: 380px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.newsletter-input-wrap-v3:focus-within {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 2px rgba(118, 37, 245, 0.25);
}

.newsletter-mail-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.newsletter-email-input-v3 {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 0.85rem;
    flex: 1;
    padding: 0.5rem 0;
}

.newsletter-email-input-v3::placeholder {
    color: var(--text-muted);
}

.btn-newsletter-subscribe-v3 {
    background: var(--purple-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(118, 37, 245, 0.4);
}

.btn-newsletter-subscribe-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer-v3 {
    background: var(--bg-main);
    border-top: 1px solid #1C2344;
    padding: 4rem 0 2rem;
}

.footer-top-grid-v3 {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr;
    gap: 2.5rem;
}

.footer-brand-v3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #FFFFFF;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-brand-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.85rem 0 1.25rem;
    line-height: 1.5;
}

.footer-social-links-v3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-btn-v3 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn-v3:hover {
    border-color: var(--purple-primary);
    color: #FFFFFF;
    background: var(--bg-card-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 37, 245, 0.3);
}

.footer-title-v3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.footer-list-v3 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-list-v3 a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-list-v3 a:hover {
    color: #FFFFFF;
}

.footer-cta-desc-v3 {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.btn-footer-join-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--purple-primary);
    color: #FFFFFF;
    padding: 0.55rem 1.45rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(118, 37, 245, 0.4);
}

.btn-footer-join-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
}

.footer-bottom-bar-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    margin-top: 3.5rem;
    border-top: 1px solid #141A35;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .category-cards-grid-v3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .center-nav-capsule-v3 {
        display: none;
    }

    .mobile-hamburger-btn-v3 {
        display: flex;
    }

    .hero-grid-v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-right-v2 {
        min-height: 320px;
    }

    .hero-particle-wave-container {
        height: 320px;
    }

    .featured-tools-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .guides-showcase-grid-v3 {
        grid-template-columns: 1fr;
    }

    .footer-top-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .newsletter-card-v3 {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .newsletter-input-wrap-v3 {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-card-container-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .stat-divider-v2 {
        display: none;
    }

    .stat-col-v2 {
        justify-content: flex-start;
    }

    .category-cards-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-tools-grid-v3 {
        grid-template-columns: 1fr;
    }

    .featured-guide-main-v3 {
        grid-template-columns: 1fr;
    }

    .footer-top-grid-v3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-bar-v3 {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-tagline-v3 {
        display: none;
    }
    .title-brand {
        font-size: 2.8rem;
    }

    .hero-search-bar-v2 {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .btn-hero-search {
        justify-content: center;
        border-radius: 12px;
    }

    .newsletter-input-wrap-v3 {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .btn-newsletter-subscribe-v3 {
        border-radius: 12px;
    }
}


/* ==========================================================================
   PHASE 2: POPULAR PROMPTS, NEWS, ROADMAP, COMPARISON, SUBMIT (V3)
   ========================================================================== */
.prompts-section-v3 {
    padding: 4.5rem 0;
    background: var(--bg-main, #050714);
    border-top: 1px solid #141A35;
}

.prompt-cards-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.prompt-card-v3 {
    background: var(--bg-card, #10152B);
    border: 1px solid var(--border-main, #252D50);
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.prompt-card-v3:hover {
    border-color: #7625F5;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(118, 37, 245, 0.16);
}

.prompt-card-thumb-v3 {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.15rem;
    background: #0d1226;
    text-decoration: none;
}

.prompt-card-thumb-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.prompt-card-v3:hover .prompt-card-thumb-v3 img {
    transform: scale(1.05);
}

.prompt-model-badge-v3 {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(8, 13, 26, 0.75);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    letter-spacing: 0.02em;
}

.prompt-ratio-badge-v3 {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(8, 13, 26, 0.75);
    backdrop-filter: blur(6px);
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    font-family: var(--font-mono, monospace);
}

.prompt-card-top-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.prompt-category-badge-v3 {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(118, 37, 245, 0.15);
    border: 1px solid rgba(118, 37, 245, 0.35);
    color: #C5A3FF;
    font-size: 0.76rem;
    font-weight: 600;
}

.btn-copy-prompt-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 9999px;
    background: #141A35;
    border: 1px solid #252D50;
    color: #B5BDDA;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-prompt-v3:hover {
    background: #7625F5;
    border-color: #7625F5;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 37, 245, 0.35);
}

.btn-copy-prompt-v3.is-copied {
    background: #00B074;
    border-color: #00B074;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(0, 176, 116, 0.5);
}

.prompt-card-title-v3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.prompt-card-title-v3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.prompt-card-title-v3 a:hover {
    color: #AA42FF;
}

.prompt-card-desc-v3 {
    font-size: 0.86rem;
    color: #B5BDDA;
    line-height: 1.55;
    margin: 0;
}

/* Latest AI News (V3) */
.news-section-v3 {
    padding: 4.5rem 0;
    background: var(--bg-main, #050714);
    border-top: 1px solid #141A35;
}

.news-cards-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card-v3 {
    background: var(--bg-card, #10152B);
    border: 1px solid var(--border-main, #252D50);
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 190px;
}

.news-card-v3:hover {
    border-color: #7625F5;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(118, 37, 245, 0.16);
}

.news-card-top-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-date-badge-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #818AA8;
    font-size: 0.78rem;
    font-weight: 500;
}

.news-calendar-icon {
    color: #00BFFF;
    display: flex;
    align-items: center;
}

.news-category-badge-v3 {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: rgba(0, 191, 255, 0.10);
    border: 1px solid rgba(0, 191, 255, 0.25);
    color: #00BFFF;
    font-size: 0.72rem;
    font-weight: 600;
}

.news-card-title-v3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.45;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.news-card-title-v3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-card-title-v3 a:hover {
    color: #AA42FF;
}

.news-card-footer-v3 {
    display: flex;
    align-items: center;
}

.news-read-more-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #C5A3FF;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.news-read-more-v3:hover {
    color: #FFFFFF;
}

.news-read-more-v3:hover .news-arrow {
    transform: translateX(3px);
}

/* Learning Roadmap Strip (V3) */
.learning-roadmap-section-v3 {
    padding: 3rem 0;
    background: var(--bg-main, #050714);
    border-top: 1px solid #141A35;
}

.learning-roadmap-card-v3 {
    background: linear-gradient(135deg, rgba(16, 21, 43, 0.95) 0%, rgba(20, 26, 53, 0.85) 100%);
    border: 1px solid var(--border-main, #252D50);
    border-radius: 24px;
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.learning-roadmap-header-v3 {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 240px;
    flex-shrink: 0;
}

.learning-roadmap-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(118, 37, 245, 0.18);
    border: 1px solid rgba(118, 37, 245, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AA42FF;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(118, 37, 245, 0.3);
}

.learning-roadmap-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.learning-roadmap-desc {
    font-size: 0.8rem;
    color: #B5BDDA;
    margin: 0;
}

.learning-steps-track-v3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.learning-step-node-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(9, 13, 32, 0.65);
    border: 1px solid #252D50;
    transition: all 0.2s ease;
}

.learning-step-node-v3:hover {
    border-color: #7625F5;
    background: rgba(118, 37, 245, 0.15);
    transform: translateY(-1px);
}

.step-badge-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
}

.step-badge-purple { background: #7625F5; }
.step-badge-cyan { background: #00BFFF; color: #050714; }
.step-badge-violet { background: #AA42FF; }
.step-badge-lavender { background: #C5A3FF; color: #050714; }

.step-node-name {
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-track-arrow {
    color: #818AA8;
    font-size: 0.9rem;
}

.btn-learning-cta-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #7625F5;
    color: #FFFFFF;
    padding: 0.65rem 1.45rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(118, 37, 245, 0.4);
    white-space: nowrap;
}

.btn-learning-cta-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(118, 37, 245, 0.6);
}

/* Compare Banner (V3) */
.compare-banner-section-v3 {
    padding: 2.25rem 0;
    background: var(--bg-main, #050714);
    border-top: 1px solid #141A35;
}

.compare-banner-card-v3 {
    background: var(--bg-card, #10152B);
    border: 1px solid var(--border-main, #252D50);
    border-radius: 20px;
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: border-color 0.2s ease;
}

.compare-banner-card-v3:hover {
    border-color: #00BFFF;
}

.compare-banner-left-v3 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.compare-icon-box-v3 {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00BFFF;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.25);
}

.compare-banner-title-v3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.compare-banner-desc-v3 {
    font-size: 0.84rem;
    color: #B5BDDA;
    margin: 0;
}

.btn-compare-action-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #7625F5;
    color: #FFFFFF;
    padding: 0.65rem 1.45rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(118, 37, 245, 0.4);
    white-space: nowrap;
}

.btn-compare-action-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
}

/* Submit Tool Banner (V3) */
.submit-banner-section-v3 {
    padding: 2.25rem 0;
    background: var(--bg-main, #050714);
    border-top: 1px solid #141A35;
}

.submit-banner-card-v3 {
    background: var(--bg-card, #10152B);
    border: 1px solid var(--border-main, #252D50);
    border-radius: 20px;
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: border-color 0.2s ease;
}

.submit-banner-card-v3:hover {
    border-color: #7625F5;
}

.submit-banner-left-v3 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.submit-icon-box-v3 {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(118, 37, 245, 0.16);
    border: 1px solid rgba(118, 37, 245, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AA42FF;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(118, 37, 245, 0.25);
}

.submit-banner-title-v3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.submit-banner-desc-v3 {
    font-size: 0.84rem;
    color: #B5BDDA;
    margin: 0;
}

.btn-submit-action-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #7625F5;
    color: #FFFFFF;
    padding: 0.65rem 1.45rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(118, 37, 245, 0.4);
    white-space: nowrap;
}

.btn-submit-action-v3:hover {
    background: #8738FF;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .prompt-cards-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-cards-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .learning-roadmap-card-v3 {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    .learning-roadmap-header-v3 {
        justify-content: flex-start;
    }
    .compare-banner-card-v3,
    .submit-banner-card-v3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .prompt-cards-grid-v3 {
        grid-template-columns: 1fr;
    }
    .news-cards-grid-v3 {
        grid-template-columns: 1fr;
    }
    .learning-roadmap-header-v3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .step-track-arrow {
        display: none;
    }
    .learning-steps-track-v3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    .learning-step-node-v3 {
        justify-content: center;
    }
    .btn-learning-cta-v3,
    .btn-compare-action-v3,
    .btn-submit-action-v3 {
        width: 100%;
        justify-content: center;
    }
    .compare-banner-left-v3,
    .submit-banner-left-v3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}


/* =========================================
   HERO SECTION – ABSOLUTE WAVE BACKGROUND
   ========================================= */

/* Wave image: absolutely fills the right portion of the hero */
.hero-particle-wave-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 36%;
    z-index: 1;
    pointer-events: none;
}

.hero-wave-artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    mix-blend-mode: screen;
    pointer-events: none;
    user-select: none;
}

.hero-particle-wave-canvas {
    display: none;
}

/* Container: sits above the wave art */
.hero-container-v2 {
    position: relative;
    z-index: 5;
    max-width: 1360px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* Left content column */
.hero-left-v2 {
    position: relative;
    z-index: 5;
    max-width: 580px;
    padding: 0.5rem 0;
}

/* Keep old grid/right classes harmless */
.hero-grid-v2 { display: block; }
.hero-right-v2 { display: none; }

.hero-search-wrapper {
    max-width: 600px;
}

.hero-popular-chips-v2 {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

.popular-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    margin-right: 0.2rem;
    white-space: nowrap;
}

.pop-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pop-chip:hover {
    border-color: var(--purple-primary);
    color: #FFFFFF;
    background: var(--bg-card-secondary);
    transform: translateY(-1px);
}


/* ==========================================================================
   Tool Detail Page — Luxury Modern Layout (AI-1 Reference)
   ========================================================================== */

.glass-card {
    background: rgba(13, 19, 45, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 16px 38px -15px rgba(124, 58, 237, 0.25);
}

.shadow-glow-violet {
    box-shadow: 0 0 35px -5px rgba(124, 58, 237, 0.35);
}

.shadow-glow-cyan {
    box-shadow: 0 0 30px -5px rgba(6, 182, 212, 0.3);
}

.accent-violet {
    background-image: linear-gradient(135deg, #7c3aed, #4f46e5);
}

/* Metric Spec Box */
.metric-spec-box {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 23, 0.7);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-spec-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
}

.metric-spec-val {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.2rem;
    color: #ffffff;
}

/* Tool Interactive Upvote */
.btn-tool-upvote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.15rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tool-upvote:hover,
.btn-tool-upvote.is-voted {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Tool Launch CTA */
.btn-tool-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 0 25px -4px rgba(124, 58, 237, 0.5);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-tool-launch:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 0 35px -2px rgba(124, 58, 237, 0.7);
}

/* Tool Tag Pills */
.tool-tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.1);
    padding: 0.35rem 0.85rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #a78bfa;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.tool-tag-pill:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(124, 58, 237, 0.4);
    color: #c4b5fd;
    transform: translateY(-1px);
}

/* Tool Feature Items */
.tool-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 23, 0.6);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.tool-feature-item:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.08);
}

/* Share Pill Button */
.share-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-pill-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.5);
    color: #ffffff;
}

/* Sidebar Spec Row */
.sidebar-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.65rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
}

/* Related Tool Item in Sidebar */
.related-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 23, 0.6);
    padding: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-tool-item:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.1);
    transform: translateX(3px);
}

/* Star Rating Picker */
.star-rating-picker {
    display: inline-flex;
    gap: 0.35rem;
}

.star-rating-picker button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.1rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-picker button:hover,
.star-rating-picker button.is-selected {
    color: #fbbf24;
    transform: scale(1.15);
}

/* ==========================================================================
   AI PROMPT GALLERY & REMIX STUDIO
   ========================================================================== */
.page-view {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* ==========================================================================
   ARTWORK LIGHTBOX MODAL — BULLETPROOF 2-COLUMN GRID & POSITIONING
   ========================================================================== */
#artworkLightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    background: rgba(4, 7, 16, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#artworkLightbox.pointer-events-none {
    pointer-events: none !important;
}

#artworkLightbox.opacity-0 {
    opacity: 0 !important;
}

#artworkLightbox.opacity-100 {
    opacity: 1 !important;
}

#lightboxDialog {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 96vw !important;
    max-width: 1120px !important;
    max-height: 90vh !important;
    height: auto !important;
    border-radius: 1.5rem !important;
    background: #090D1E !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(124, 58, 237, 0.25) !important;
    overflow: hidden !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 860px) {
    #lightboxDialog {
        grid-template-columns: minmax(0, 1.35fr) minmax(380px, 440px) !important;
        height: 640px !important;
        max-height: 86vh !important;
    }
}

#lightboxDialog.scale-95 {
    transform: scale(0.95) !important;
}

#lightboxDialog.scale-100 {
    transform: scale(1) !important;
}

/* Close Button (top-right of modal) */
#closeLightboxBtn {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 9999px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.2s ease !important;
}

#closeLightboxBtn:hover {
    background: #7c3aed !important;
    border-color: #a78bfa !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Left Column: Full Artwork Preview Container */
.lightbox-preview-col {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #03050B !important;
    padding: 1.5rem !important;
    min-height: 280px !important;
    overflow: hidden !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

@media (min-width: 860px) {
    .lightbox-preview-col {
        height: 100% !important;
        min-height: 520px !important;
    }
}

#lightboxImage {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85) !important;
    transition: opacity 0.2s ease !important;
}

/* Fallback placeholder when image is missing / loading */
#lightboxFallback {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    text-align: center !important;
    user-select: none !important;
}

/* Prev / Next Floating Navigation Arrows */
#prevPromptBtn,
#nextPromptBtn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 35 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 9999px !important;
    background: rgba(9, 13, 28, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#prevPromptBtn {
    left: 1rem !important;
}

#nextPromptBtn {
    right: 1rem !important;
}

#prevPromptBtn:hover {
    background: #7c3aed !important;
    border-color: #a78bfa !important;
    color: #FFFFFF !important;
    transform: translateY(-50%) translateX(-2px) scale(1.08) !important;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.6) !important;
}

#nextPromptBtn:hover {
    background: #7c3aed !important;
    border-color: #a78bfa !important;
    color: #FFFFFF !important;
    transform: translateY(-50%) translateX(2px) scale(1.08) !important;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.6) !important;
}

/* Preview Index Pill (e.g. "3 / 24") */
.lightbox-index-badge {
    position: absolute !important;
    bottom: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: 9999px !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    pointer-events: none !important;
}

/* Right Column: Metadata & Prompt Directive Sidebar */
.lightbox-sidebar-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 1.6rem 1.85rem !important;
    background: #0B0F22 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

@media (min-width: 860px) {
    .lightbox-sidebar-col {
        border-top: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
        height: 100% !important;
        max-height: 100% !important;
    }
}

.lightbox-directive-box {
    background: rgba(4, 7, 16, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.85rem !important;
    padding: 0.85rem 1rem !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    user-select: all !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.lightbox-directive-box::-webkit-scrollbar {
    width: 5px;
}
.lightbox-directive-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
}

/* Prompt Card & Visual */
.prompt-card {
    background: rgba(16, 21, 43, 0.75);
    border: 1px solid rgba(37, 45, 80, 0.8);
    border-radius: 0.85rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.prompt-card:hover {
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.2);
}

.prompt-thumb-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #070913;
    cursor: pointer;
}

.prompt-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    display: block;
}

.prompt-card:hover .prompt-thumb-container img {
    transform: scale(1.05);
}

/* Aspect ratios */
.aspect-\[4\/5\] { aspect-ratio: 4 / 5 !important; }
.aspect-square { aspect-ratio: 1 / 1 !important; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3 !important; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9 !important; }
.aspect-\[21\/9\] { aspect-ratio: 21 / 9 !important; }

/* Ambient Mesh Background (AI-1 Reference) */
.ambient-mesh {
    background-image: radial-gradient(at 15% 10%, rgba(124, 58, 237, 0.16) 0, transparent 50%),
                      radial-gradient(at 85% 15%, rgba(6, 182, 212, 0.13) 0, transparent 50%),
                      radial-gradient(at 50% 80%, rgba(236, 72, 153, 0.07) 0, transparent 55%);
}

.font-display {
    font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.font-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
}

/* Prompt Card Virtualization Optimization */
.prompt-card, [data-prompt-card] {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

/* Prompt card fallback placeholder colours (Exact AI-1 Gradients) */
.prompt-emerald { background-image: linear-gradient(135deg, #059669, #f59e0b 55%, #134e4a) !important; }
.prompt-cyan    { background-image: linear-gradient(135deg, #06b6d4, #c026d3 55%, #1e1b4b) !important; }
.prompt-violet  { background-image: linear-gradient(135deg, #7c3aed, #6b21a8 55%, #020617) !important; }
.prompt-pink    { background-image: linear-gradient(135deg, #ec4899, #e11d48 55%, #3b0764) !important; }
.prompt-amber   { background-image: linear-gradient(135deg, #f59e0b, #c2410c 55%, #0c0a09) !important; }

/* Filter Buttons & Controls */
.prompt-filter-btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Studio Header & Pills */
.studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 23, 38, 0.85);
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1;
}

.studio-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.studio-pill.is-active {
    background: #7c3aed !important;
    border-color: rgba(167, 139, 250, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45) !important;
}

.studio-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-family: var(--font-mono, monospace);
    background: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.studio-pill.is-active .studio-pill-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Studio Customizer Card */
.studio-customizer-card {
    background: #0B0F1D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    margin: 1.75rem 0 2rem;
}

.studio-input,
.studio-select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.7);
    background-color: #070A14;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    color: #f1f5f9;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.studio-input:focus,
.studio-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

.studio-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.1em 1.1em;
    padding-right: 2.2rem;
    cursor: pointer;
}

.studio-select option {
    background-color: #0b0f1d;
    color: #f1f5f9;
}

.studio-output-box {
    background: #060813;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .studio-output-box {
        flex-direction: row;
        align-items: center;
    }
}

.studio-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7c3aed;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.65rem 1.2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.studio-copy-btn:hover {
    background: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.view-ratio-btn,
.grid-cols-btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.pagination-nav-btn {
    cursor: pointer;
    font-family: inherit;
}

.pagination-page-btn {
    cursor: pointer;
    font-family: var(--font-mono, monospace);
}

/* ==========================================================================
   PROMPT STUDIO - HEADER, CUSTOMIZER & TOOLBAR LAYOUTS
   ========================================================================== */
.prompt-header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 1024px) {
    .prompt-header-container {
        flex-direction: row;
        align-items: center;
    }
}

.prompt-header-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .prompt-header-pills {
        max-width: 620px;
        justify-content: flex-end;
    }
}

/* Prompt Customizer - 1-Line Inputs Grid and 2nd Line Output */
.prompt-customizer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}
@media (min-width: 640px) {
    .prompt-customizer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .prompt-customizer-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

.prompt-customizer-output {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070B;
}
@media (min-width: 640px) {
    .prompt-customizer-output {
        flex-direction: row;
        align-items: center;
    }
}

/* Prompt Gallery Toolbar - Bulletproof Horizontal Bar */
.prompt-gallery-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(13, 15, 23, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.prompt-toolbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex: 1 1 360px !important;
    min-width: 260px !important;
}

.prompt-toolbar-search {
    position: relative !important;
    flex: 1 1 220px !important;
    min-width: 180px !important;
    max-width: 420px !important;
}

.prompt-toolbar-search i {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
}

.prompt-toolbar-search input {
    width: 100% !important;
    height: 38px !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 0.35rem 0.75rem 0.35rem 2.25rem !important;
    font-size: 0.75rem !important;
    color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.prompt-toolbar-search input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) !important;
}

.prompt-toolbar-category {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    flex-shrink: 0 !important;
}

.prompt-toolbar-category i {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

.prompt-toolbar-category select {
    height: 38px !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease !important;
    max-width: 250px !important;
}
.prompt-toolbar-category select:focus {
    border-color: #8b5cf6 !important;
}

.prompt-toolbar-right {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.625rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.prompt-toolbar-pill-box {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

/* Dynamic Grid Column Density: 4-Col and 5-Col */
#promptGalleryGrid {
    display: grid;
    gap: 0.875rem;
}

/* 4-Columns Mode */
#promptGalleryGrid.is-4-cols,
#promptGalleryGrid.lg\:grid-cols-4:not(.is-5-cols):not(.xl\:grid-cols-5),
#promptGalleryGrid:not(.is-5-cols):not(.xl\:grid-cols-5) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 500px) {
    #promptGalleryGrid.is-4-cols,
    #promptGalleryGrid.lg\:grid-cols-4:not(.is-5-cols):not(.xl\:grid-cols-5),
    #promptGalleryGrid:not(.is-5-cols):not(.xl\:grid-cols-5) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    #promptGalleryGrid.is-4-cols,
    #promptGalleryGrid.lg\:grid-cols-4:not(.is-5-cols):not(.xl\:grid-cols-5),
    #promptGalleryGrid:not(.is-5-cols):not(.xl\:grid-cols-5) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    #promptGalleryGrid.is-4-cols,
    #promptGalleryGrid.lg\:grid-cols-4:not(.is-5-cols):not(.xl\:grid-cols-5),
    #promptGalleryGrid:not(.is-5-cols):not(.xl\:grid-cols-5) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* 5-Columns Mode */
#promptGalleryGrid.is-5-cols,
#promptGalleryGrid.xl\:grid-cols-5 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 500px) {
    #promptGalleryGrid.is-5-cols,
    #promptGalleryGrid.xl\:grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 720px) {
    #promptGalleryGrid.is-5-cols,
    #promptGalleryGrid.xl\:grid-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 960px) {
    #promptGalleryGrid.is-5-cols,
    #promptGalleryGrid.xl\:grid-cols-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    #promptGalleryGrid.is-5-cols,
    #promptGalleryGrid.xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================================
   AI TOOLS DIRECTORY & GRID SYSTEM (V4)
   ========================================================================== */
.tools-header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 1024px) {
    .tools-header-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.tools-header-pills {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
    .tools-header-pills {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.tools-pills-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.tools-pills-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Bulletproof Directory Toolbar */
.tools-gallery-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(13, 15, 23, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tools-toolbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex: 1 1 360px !important;
    min-width: 260px !important;
}

.tools-toolbar-search {
    position: relative !important;
    flex: 1 1 220px !important;
    min-width: 180px !important;
    max-width: 380px !important;
}

.tools-toolbar-search i.fa-magnifying-glass {
    position: absolute !important;
    left: 0.85rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    pointer-events: none !important;
}

.tools-toolbar-search input {
    width: 100% !important;
    padding-left: 2.25rem !important;
    padding-right: 2rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #07090E !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.tools-toolbar-search input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25) !important;
}

.tools-toolbar-search-clear {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
}
.tools-toolbar-search-clear:hover {
    color: #ffffff !important;
}

.tools-toolbar-select {
    position: relative !important;
    min-width: 160px !important;
    max-width: 240px !important;
}

.tools-toolbar-select i.fa-tags,
.tools-toolbar-select i.fa-arrow-down-wide-short {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    pointer-events: none !important;
}

.tools-toolbar-select select {
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 1.75rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #07090E !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 0.85rem !important;
}

.tools-toolbar-select select:focus {
    border-color: #7c3aed !important;
}

.tools-toolbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.tools-segmented-pills {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px !important;
    border-radius: 0.65rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    gap: 2px !important;
}

.tools-view-mode-box {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px !important;
    border-radius: 0.65rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

/* ==========================================================================
   TOOL CARD V4 SYSTEM (Grid, Compact, List views)
   ========================================================================== */
.tool-card-v4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card-v4:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(118, 37, 245, 0.2) !important;
}

/* List View transformation */
#toolsGalleryGrid.is-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}

#toolsGalleryGrid.is-list-view .tool-card-v4 {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.25rem !important;
    gap: 1.25rem !important;
}

#toolsGalleryGrid.is-list-view .tool-card-v4 > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#toolsGalleryGrid.is-list-view .tool-card-top-badges {
    margin-bottom: 0 !important;
    order: 3 !important;
    flex-shrink: 0 !important;
}

#toolsGalleryGrid.is-list-view .tool-identity-row {
    margin-bottom: 0 !important;
    order: 1 !important;
    flex: 0 0 240px !important;
}

#toolsGalleryGrid.is-list-view .tool-card-desc {
    margin-bottom: 0 !important;
    order: 2 !important;
    flex: 1 1 300px !important;
    -webkit-line-clamp: 1 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

#toolsGalleryGrid.is-list-view .tool-card-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
}

/* Compact View transformation */
#toolsGalleryGrid.is-compact-view {
    display: grid !important;
    gap: 0.75rem !important;
}
@media (min-width: 640px) {
    #toolsGalleryGrid.is-compact-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 768px) {
    #toolsGalleryGrid.is-compact-view {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1024px) {
    #toolsGalleryGrid.is-compact-view {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1280px) {
    #toolsGalleryGrid.is-compact-view {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

#toolsGalleryGrid.is-compact-view .tool-card-v4 {
    padding: 0.85rem !important;
}

#toolsGalleryGrid.is-compact-view .tool-logo-box {
    width: 38px !important;
    height: 38px !important;
}

#toolsGalleryGrid.is-compact-view .tool-card-title {
    font-size: 0.95rem !important;
}

#toolsGalleryGrid.is-compact-view .tool-card-desc {
    -webkit-line-clamp: 1 !important;
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}


/* ==========================================================================
   AI GUIDES DIRECTORY & GRID SYSTEM
   ========================================================================== */
#guidesGalleryGrid.is-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

#guidesGalleryGrid.is-list-view .article-card-v4 {
    flex-direction: row !important;
    align-items: center !important;
}

#guidesGalleryGrid.is-list-view .article-thumb {
    width: 260px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 16/10 !important;
}

#guidesGalleryGrid.is-list-view .article-card-v4 > div:first-child {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

@media (max-width: 768px) {
    #guidesGalleryGrid.is-list-view .article-card-v4 {
        flex-direction: column !important;
    }
    #guidesGalleryGrid.is-list-view .article-thumb {
        width: 100% !important;
    }
}

/* Guides Top Section Positioning & Spotlight Enhancements */
.guides-header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (min-width: 1024px) {
    .guides-header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.guides-spotlight-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(16, 21, 43, 0.95) 0%, rgba(10, 13, 26, 0.9) 50%, rgba(24, 17, 53, 0.9) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 35px -5px rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 2rem;
}

.guides-spotlight-image-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0B0E17;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    display: block;
}
@media (min-width: 640px) {
    .guides-spotlight-image-wrap {
        height: 260px;
    }
}
@media (min-width: 1024px) {
    .guides-spotlight-image-wrap {
        height: 280px;
    }
}

/* ==========================================================================
   AI Glossary Alphabet Strip, Directory Grid & Cards (Modern Dark Glass)
   ========================================================================== */
.glossary-alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 15, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.glossary-letter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.55rem;
    border-radius: 0.65rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    user-select: none;
    gap: 0.3rem;
}
.glossary-letter-chip:hover:not(.is-disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.glossary-letter-chip.active-chip {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.glossary-letter-chip.is-disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
}

.glossary-card-v4 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 21, 43, 0.65);
    padding: 1.35rem 1.4rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
.glossary-card-v4:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(124, 58, 237, 0.2);
}

#glossaryGalleryGrid.is-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}
#glossaryGalleryGrid.is-list-view .glossary-card-v4 {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    padding: 1.15rem 1.4rem !important;
}
#glossaryGalleryGrid.is-list-view .glossary-card-head {
    width: 220px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}
#glossaryGalleryGrid.is-list-view .glossary-card-def {
    flex: 1 1 350px !important;
    margin-bottom: 0 !important;
}
#glossaryGalleryGrid.is-list-view .glossary-card-example {
    flex: 1 1 300px !important;
    margin-bottom: 0 !important;
}
#glossaryGalleryGrid.is-list-view .glossary-card-footer {
    width: 100% !important;
    border-top: none !important;
    padding-top: 0.5rem !important;
}
@media (max-width: 900px) {
    #glossaryGalleryGrid.is-list-view .glossary-card-v4 {
        flex-direction: column !important;
    }
    #glossaryGalleryGrid.is-list-view .glossary-card-head {
        width: 100% !important;
    }
}

/* ==========================================================================
   AI Categories Directory Cards & Grid Styles (Modern Dark Glass)
   ========================================================================== */
.category-directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 21, 43, 0.65);
    padding: 1.35rem 1.4rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
.category-directory-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(124, 58, 237, 0.2);
}

#categoriesGalleryGrid.is-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}
#categoriesGalleryGrid.is-list-view .category-directory-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    padding: 1.15rem 1.4rem !important;
}
#categoriesGalleryGrid.is-list-view .category-card-head {
    width: 250px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}
@media (max-width: 900px) {
    #categoriesGalleryGrid.is-list-view .category-directory-card {
        flex-direction: column !important;
    }
    #categoriesGalleryGrid.is-list-view .category-card-head {
        width: 100% !important;
    }
}

/* ==========================================================================
   UNIVERSAL HIGH-SPECIFICITY BUTTON HOVER INTEGRITY SHIELD
   Guarantees that all solid violet/purple buttons maintain pure white text
   and icons in all states (resting, hover, focus, active).
   ========================================================================== */
a[class*="bg-violet"], button[class*="bg-violet"],
a[class*="bg-purple"], button[class*="bg-purple"],
.btn-primary, .btn-learning-cta-v3, .btn-compare-action-v3,
.btn-submit-action-v3, .btn-newsletter-subscribe-v3, .btn-footer-join-v3,
.btn-purple-login-v3 {
    color: #FFFFFF !important;
}

a[class*="bg-violet"] *, button[class*="bg-violet"] *,
a[class*="bg-purple"] *, button[class*="bg-purple"] *,
.btn-primary *, .btn-learning-cta-v3 *, .btn-compare-action-v3 *,
.btn-submit-action-v3 *, .btn-newsletter-subscribe-v3 *, .btn-footer-join-v3 *,
.btn-purple-login-v3 * {
    color: inherit !important;
}

a[class*="bg-violet"]:hover, button[class*="bg-violet"]:hover,
a[class*="bg-violet"]:focus, button[class*="bg-violet"]:focus,
a[class*="bg-violet"]:active, button[class*="bg-violet"]:active,
a[class*="bg-purple"]:hover, button[class*="bg-purple"]:hover,
a[class*="bg-purple"]:focus, button[class*="bg-purple"]:focus,
a[class*="bg-purple"]:active, button[class*="bg-purple"]:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-learning-cta-v3:hover, .btn-learning-cta-v3:focus,
.btn-compare-action-v3:hover, .btn-compare-action-v3:focus,
.btn-submit-action-v3:hover, .btn-submit-action-v3:focus,
.btn-newsletter-subscribe-v3:hover, .btn-newsletter-subscribe-v3:focus,
.btn-footer-join-v3:hover, .btn-footer-join-v3:focus,
.btn-purple-login-v3:hover, .btn-purple-login-v3:focus {
    color: #FFFFFF !important;
    background-color: #8738FF !important;
    border-color: #8738FF !important;
    box-shadow: 0 6px 20px rgba(118, 37, 245, 0.55) !important;
}

a[class*="bg-violet"]:hover *, button[class*="bg-violet"]:hover *,
a[class*="bg-violet"]:focus *, button[class*="bg-violet"]:focus *,
a[class*="bg-violet"]:active *, button[class*="bg-violet"]:active *,
a[class*="bg-purple"]:hover *, button[class*="bg-purple"]:hover *,
a[class*="bg-purple"]:focus *, button[class*="bg-purple"]:focus *,
a[class*="bg-purple"]:active *, button[class*="bg-purple"]:active *,
.btn-primary:hover *, .btn-primary:focus *,
.btn-learning-cta-v3:hover *, .btn-compare-action-v3:hover *,
.btn-submit-action-v3:hover *, .btn-newsletter-subscribe-v3:hover *,
.btn-footer-join-v3:hover *, .btn-purple-login-v3:hover * {
    color: #FFFFFF !important;
}




