/* Forge Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}
body {
    min-height: 100dvh;
    line-height: 1.5;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
    border: none;
    background: none;
}
a {
    color: inherit;
    text-decoration: none;
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    font-weight: inherit;
    font-size: inherit;
}
p {
    overflow-wrap: break-word;
}
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
/* Forge Design Tokens */
:root {
    /* ── Colors: Dark Theme ── */
    --color-bg:             #0a0a0f;
    --color-bg-raised:      #12121a;
    --color-bg-overlay:     #1a1a25;
    --color-bg-hover:       #22222f;
    --color-bg-input:       #15151f;
    --color-surface:        #1e1e2a;
    --color-surface-hover:  #282838;
    --color-border:         #2a2a3a;
    --color-border-subtle:  #1f1f2f;
    --color-border-focus:   var(--color-primary);
    /* Text */
    --color-text:           #f0f0f5;
    --color-text-secondary: #b0b0c8;
    --color-text-muted:     #9898b0;
    --color-text-inverse:   #0a0a0f;
    /* Primary — Electric Indigo (AA contrast on white: 5.1:1) */
    --color-primary:        #4f46e5;
    --color-primary-hover:  #6366f1;
    --color-primary-active: #4338ca;
    --color-primary-subtle: rgba(99, 102, 241, 0.12);
    /* Accent — Amber/Gold (crédits) */
    --color-accent:         #f59e0b;
    --color-accent-hover:   #fbbf24;
    --color-accent-subtle:  rgba(245, 158, 11, 0.12);
    /* Semantic */
    --color-success:        #10b981;
    --color-success-subtle: rgba(16, 185, 129, 0.12);
    --color-warning:        #f59e0b;
    --color-warning-subtle: rgba(245, 158, 11, 0.12);
    --color-error:          #ef4444;
    --color-error-subtle:   rgba(239, 68, 68, 0.12);
    --color-info:           #3b82f6;
    --color-info-subtle:    rgba(59, 130, 246, 0.12);
    /* ── Typography ── */
    --font-sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:            'JetBrains Mono', 'Fira Code', monospace;
    --text-xs:              clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);     /* ~11-12px */
    --text-sm:              clamp(0.8125rem, 0.78rem + 0.1vw, 0.875rem);    /* ~13-14px */
    --text-base:            clamp(0.875rem, 0.85rem + 0.1vw, 1rem);         /* ~14-16px */
    --text-lg:              clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);        /* ~17-20px */
    --text-xl:              clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);         /* ~20-24px */
    --text-2xl:             clamp(1.5rem, 1.3rem + 0.6vw, 2rem);           /* ~24-32px */
    --text-3xl:             clamp(1.875rem, 1.5rem + 1vw, 2.5rem);         /* ~30-40px */
    --leading-tight:        1.25;
    --leading-normal:       1.5;
    --leading-relaxed:      1.75;
    --weight-normal:        400;
    --weight-medium:        500;
    --weight-semibold:      600;
    --weight-bold:          700;
    --weight-extrabold:     800;
    /* ── Spacing ── */
    --space-1:              0.25rem;    /* 4px */
    --space-2:              0.5rem;     /* 8px */
    --space-3:              0.75rem;    /* 12px */
    --space-4:              1rem;       /* 16px */
    --space-5:              1.25rem;    /* 20px */
    --space-6:              1.5rem;     /* 24px */
    --space-8:              2rem;       /* 32px */
    --space-10:             2.5rem;     /* 40px */
    --space-12:             3rem;       /* 48px */
    --space-16:             4rem;       /* 64px */
    --space-20:             5rem;       /* 80px */
    /* ── Shadows ── */
    --shadow-sm:            0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md:            0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg:            0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl:            0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-glow:          0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-gold:          0 0 20px rgba(245, 158, 11, 0.3);
    /* ── Radii ── */
    --radius-sm:            0.375rem;   /* 6px */
    --radius-md:            0.5rem;     /* 8px */
    --radius-lg:            0.75rem;    /* 12px */
    --radius-xl:            1rem;       /* 16px */
    --radius-2xl:           1.5rem;     /* 24px */
    --radius-full:          9999px;
    /* ── Transitions ── */
    --transition-fast:      150ms ease;
    --transition-base:      250ms ease;
    --transition-slow:      400ms ease;
    /* ── Z-index ── */
    --z-dropdown:           10;
    --z-sticky:             20;
    --z-overlay:            30;
    --z-modal:              40;
    --z-toast:              50;
    /* ── Layout ── */
    --sidebar-width:        260px;
    --header-height:        64px;
    --container-max:        1280px;
}
/* Forge Layout System */
body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
}
/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}
/* ── App Layout: Header + Sidebar + Main ── */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    grid-template-areas:
        "header header"
        "sidebar main";
    min-height: 100dvh;
}
.app-header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--space-6);
    background-color: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
}
.app-sidebar {
    grid-area: sidebar;
    background-color: var(--color-bg-raised);
    border-right: 1px solid var(--color-border);
    padding: var(--space-4);
    overflow-y: auto;
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
}
.app-main {
    grid-area: main;
    padding: var(--space-8);
    overflow-y: auto;
}
.app-footer {
    padding: var(--space-6);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    border-top: 1px solid var(--color-border);
}
/* ── Header elements ── */
.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}
.header-logo img {
    height: 32px;
    width: auto;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.header-nav a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--color-text);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
/* ── Sidebar nav ── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}
.sidebar-nav a:hover {
    background-color: var(--color-bg-hover);
    color: var(--color-text);
}
.sidebar-nav a.active {
    background-color: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.sidebar-section-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-4) var(--space-3) var(--space-2);
}
/* ── Auth Layout (centered) ── */
.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: var(--space-4);
    background-color: var(--color-bg);
}
.auth-container {
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}
.auth-logo img {
    height: 40px;
    margin-inline: auto;
}
.auth-card {
    background-color: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}
/* ── Admin Layout ── */
.admin-sidebar .sidebar-nav a {
    font-size: var(--text-sm);
}
/* ── Grid utilities ── */
.grid {
    display: grid;
    gap: var(--space-6);
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
/* ── Flex utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
/* ── Mobile menu button ── */
.btn-mobile-menu {
    display: none;
    padding: var(--space-1);
    color: var(--color-text-secondary);
    cursor: pointer;
    border: none;
    background: none;
}
/* ── Sidebar overlay (mobile) ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-overlay) - 1);
}
.sidebar-overlay.active {
    display: block;
}
/* ── Mobile visibility helpers ── */
.show-mobile-only { display: none; }
/* ── Responsive ── */
@media (max-width: 768px) {
    .btn-mobile-menu { display: flex; }
    .hide-mobile { display: none !important; }
    .show-mobile-only { display: block; }
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main";
    }
    .app-header {
        padding-inline: var(--space-3);
    }
    .app-sidebar {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 280px;
        height: calc(100dvh - var(--header-height));
        z-index: var(--z-overlay);
        box-shadow: var(--shadow-xl);
        background-color: var(--color-bg-raised);
        border-right: 1px solid var(--color-border);
        overflow-y: auto;
    }
    .app-sidebar.open {
        display: block;
        animation: slideInLeft var(--transition-base) ease;
    }
    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }
    .app-main {
        padding: var(--space-3);
        min-height: calc(100dvh - var(--header-height));
    }
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    /* Cards: reduce padding */
    .card-body { padding: var(--space-4); }
    .card-header, .card-footer { padding: var(--space-3) var(--space-4); }
    /* Auth: reduce padding */
    .auth-card { padding: var(--space-5); }
    /* Tables: horizontal scroll */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Flex wrapping */
    .flex.justify-between { flex-wrap: wrap; gap: var(--space-2); }
    /* Headings */
    h1, .h1 { font-size: var(--text-2xl); }
    h2, .h2 { font-size: var(--text-xl); }
    /* Buttons full width on mobile */
    .btn-lg { width: 100%; }
    /* Stats cards: 2 columns */
    .grid-cols-4.card-stat-grid { grid-template-columns: repeat(2, 1fr); }
    /* Toast: full width */
    .toast-container { left: var(--space-3); right: var(--space-3); max-width: none; }
    .toast { min-width: auto; }
    /* Pricing: single column */
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card-popular { transform: none; }
    /* Edit text: stack vertically */
    .gallery-edit-layout { grid-template-columns: 1fr !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Forge Typography */
body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}
h1, .h1 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}
h2, .h2 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}
h3, .h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
}
h4, .h4 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
}
h5, .h5 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
}
h6, .h6 {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leading-tight { line-height: var(--leading-tight); }
.leading-relaxed { line-height: var(--leading-relaxed); }
/* Forge Animations */
/* ── Transitions ── */
.transition {
    transition: all var(--transition-base);
}
.transition-fast {
    transition: all var(--transition-fast);
}
.transition-slow {
    transition: all var(--transition-slow);
}
/* ── Fade ── */
.fade-in {
    animation: fadeIn var(--transition-base) ease forwards;
}
.fade-out {
    animation: fadeOut var(--transition-base) ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
/* ── Slide ── */
.slide-up {
    animation: slideUp var(--transition-base) ease forwards;
}
.slide-down {
    animation: slideDown var(--transition-base) ease forwards;
}
.slide-in-right {
    animation: slideInRight var(--transition-base) ease forwards;
}
.slide-out-right {
    animation: slideOutRight var(--transition-base) ease forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes slideOutRight {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}
/* ── Lift (hover effect) ── */
.lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
/* ── Spin ── */
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
/* ── Pulse ── */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
/* ── Float ── */
.float {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
/* ── Shake (error) ── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.4s ease;
}
/* ── Scale ── */
.scale-in {
    animation: scaleIn var(--transition-fast) ease forwards;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
/* ── Toast slide ── */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}
/* Forge Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
/* Primary */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
}
.btn-primary:active {
    background-color: var(--color-primary-active);
}
/* Secondary */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background-color: var(--color-bg-hover);
    border-color: var(--color-text-muted);
}
/* Danger */
.btn-danger {
    background-color: var(--color-error);
    color: #fff;
}
.btn-danger:hover {
    background-color: #dc2626;
}
/* Ghost */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
}
.btn-ghost:hover {
    background-color: var(--color-bg-hover);
    color: var(--color-text);
}
/* Sizes */
.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}
.btn-lg {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}
/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
/* Disabled */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/* Icon-only button */
.btn-icon {
    padding: var(--space-2);
    aspect-ratio: 1;
}
/* Button group */
.btn-group {
    display: flex;
    gap: 0;
}
.btn-group .btn {
    border-radius: 0;
}
.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
/* Forge Cards */
.card {
    background-color: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-hover {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body {
    padding: var(--space-6);
}
.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
}
/* Card with image */
.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
/* Compact card */
.card-compact .card-header,
.card-compact .card-footer {
    padding: var(--space-3) var(--space-4);
}
.card-compact .card-body {
    padding: var(--space-4);
}
/* Highlighted card (pricing) */
.card-highlighted {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}
/* Stat card */
.card-stat {
    text-align: center;
    padding: var(--space-6);
}
.card-stat .stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.card-stat .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
/* Forge Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
.form-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--color-text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}
.form-input::placeholder {
    color: var(--color-text-muted);
}
.form-textarea {
    min-height: 100px;
    resize: vertical;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239090a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-8);
}
/* Floating label */
.form-floating {
    position: relative;
}
.form-floating .form-input {
    padding-top: var(--space-5);
    padding-bottom: var(--space-1);
}
.form-floating .form-label {
    position: absolute;
    top: 50%;
    left: var(--space-3);
    transform: translateY(-50%);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}
.form-floating .form-input:focus ~ .form-label,
.form-floating .form-input:not(:placeholder-shown) ~ .form-label {
    top: var(--space-2);
    transform: translateY(0);
    font-size: var(--text-xs);
    color: var(--color-primary);
}
/* Validation states */
.form-input.is-valid {
    border-color: var(--color-success);
}
.form-input.is-valid:focus {
    box-shadow: 0 0 0 3px var(--color-success-subtle);
}
.form-input.is-invalid {
    border-color: var(--color-error);
}
.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--color-error-subtle);
}
.form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
}
.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}
/* Input sizes */
.form-input-sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
}
.form-input-lg {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
}
/* Input group */
.input-group {
    display: flex;
}
.input-group .form-input {
    border-radius: 0;
}
.input-group .form-input:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group .form-input:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}
/* Forge Modal & Drawer */
/* ── Overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn var(--transition-fast) ease;
}
.modal-overlay[hidden] {
    display: none;
}
/* ── Modal ── */
.modal {
    background-color: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn var(--transition-fast) ease;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}
.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background-color: var(--color-bg-hover);
    color: var(--color-text);
}
.modal-body {
    padding: var(--space-6);
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
}
/* Modal sizes */
.modal-sm { max-width: 380px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
/* ── Drawer (slide-in from right) ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    animation: fadeIn var(--transition-fast) ease;
}
.drawer-overlay[hidden] {
    display: none;
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background-color: var(--color-bg-raised);
    border-left: 1px solid var(--color-border);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    flex-direction: column;
    animation: slideInRight var(--transition-base) ease;
    box-shadow: var(--shadow-xl);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.drawer-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}
.drawer-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}
/* Forge Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
    max-width: 400px;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background-color: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn var(--transition-base) ease;
    min-width: 300px;
}
.toast.removing {
    animation: toastOut var(--transition-base) ease forwards;
}
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    margin-top: 1px;
}
.toast-content {
    flex: 1;
    min-width: 0;
}
.toast-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}
.toast-message {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}
.toast-close:hover {
    background-color: var(--color-bg-hover);
    color: var(--color-text);
}
/* Variants */
.toast-success {
    border-left: 3px solid var(--color-success);
}
.toast-success .toast-icon {
    background-color: var(--color-success-subtle);
    color: var(--color-success);
}
.toast-warning {
    border-left: 3px solid var(--color-warning);
}
.toast-warning .toast-icon {
    background-color: var(--color-warning-subtle);
    color: var(--color-warning);
}
.toast-error {
    border-left: 3px solid var(--color-error);
}
.toast-error .toast-icon {
    background-color: var(--color-error-subtle);
    color: var(--color-error);
}
.toast-info {
    border-left: 3px solid var(--color-info);
}
.toast-info .toast-icon {
    background-color: var(--color-info-subtle);
    color: var(--color-info);
}
/* Progress bar for auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: currentColor;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    animation: toastProgress linear forwards;
}
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}
/* Forge Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    line-height: 1.4;
    white-space: nowrap;
}
.badge-primary {
    background-color: var(--color-primary-subtle);
    color: var(--color-primary-hover);
}
.badge-success {
    background-color: var(--color-success-subtle);
    color: var(--color-success);
}
.badge-warning {
    background-color: var(--color-warning-subtle);
    color: var(--color-warning);
}
.badge-error {
    background-color: var(--color-error-subtle);
    color: var(--color-error);
}
.badge-info {
    background-color: var(--color-info-subtle);
    color: var(--color-info);
}
/* Credit badge — Gold accent */
.badge-credit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    color: var(--color-accent);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: var(--space-1) var(--space-3);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
}
.badge-credit-lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}
/* Status dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.status-dot-success { background-color: var(--color-success); }
.status-dot-warning { background-color: var(--color-warning); }
.status-dot-error   { background-color: var(--color-error); }
.status-dot-info    { background-color: var(--color-info); }
.status-dot-muted   { background-color: var(--color-text-muted); }
/* Pulsing dot (active/processing) */
.status-dot-pulse {
    position: relative;
}
.status-dot-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}
/* Badge with dot */
.badge-with-dot {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
/* Forge Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.table {
    width: 100%;
    font-size: var(--text-sm);
}
.table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text);
}
.table tr:last-child td {
    border-bottom: none;
}
.table tr:hover td {
    background-color: var(--color-bg-hover);
}
/* Striped */
.table-striped tr:nth-child(even) td {
    background-color: var(--color-bg-raised);
}
/* Responsive: cards on mobile */
@media (max-width: 768px) {
    .table-responsive thead {
        display: none;
    }
    .table-responsive tbody tr {
        display: block;
        background-color: var(--color-bg-raised);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: var(--space-4);
        margin-bottom: var(--space-3);
    }
    .table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--color-border-subtle);
    }
    .table-responsive tbody td:last-child {
        border-bottom: none;
    }
    .table-responsive tbody td::before {
        content: attr(data-label);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}
/* Compact table */
.table-compact th,
.table-compact td {
    padding: var(--space-2) var(--space-3);
}
/* Forge Dropzone */
.dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    overflow: hidden;
}
.dropzone.dragover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-subtle);
}
.dropzone-content {
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
}
.dropzone-content:hover {
    background-color: var(--color-bg-hover);
}
.dropzone-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3);
}
.dropzone-preview:empty {
    display: none;
}
.dropzone-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.dropzone-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dropzone-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-error);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.dropzone-thumb:hover .dropzone-thumb-remove {
    opacity: 1;
}
/* Forge Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}
@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* Sizes */
.progress-bar-sm { height: 4px; }
.progress-bar-lg { height: 12px; }
/* Forge Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background-color: var(--color-border);
}
.timeline-item {
    position: relative;
    padding-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: calc(var(--space-8) * -1 + 4px);
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    z-index: 1;
    transition: all var(--transition-fast);
}
.timeline-item.done .timeline-dot {
    background-color: var(--color-success);
    border-color: var(--color-success);
}
.timeline-item.active .timeline-dot {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
    animation: pulse 2s ease-in-out infinite;
}
.timeline-content {
    flex: 1;
    padding-top: 1px;
}
/* Forge Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    align-items: start;
}
.pricing-card {
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card-popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}
.pricing-card-popular:hover {
    transform: scale(1.03) translateY(-4px);
}
.pricing-badge {
    position: absolute;
    top: calc(var(--space-3) * -1);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}
.pricing-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}
.pricing-credits {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-1);
}
.pricing-credits-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}
.pricing-price {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-1);
}
.pricing-unit {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}
.pricing-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    min-height: 40px;
}
.pricing-cta {
    width: 100%;
}
/* Animation on scroll */
.pricing-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp var(--transition-slow) ease forwards;
}
.pricing-card:nth-child(1) { animation-delay: 0ms; }
.pricing-card:nth-child(2) { animation-delay: 100ms; }
.pricing-card:nth-child(3) { animation-delay: 200ms; }
.pricing-card:nth-child(4) { animation-delay: 300ms; }
.pricing-card-popular {
    opacity: 0;
    transform: scale(1.03) translateY(20px);
    animation: pricingPopIn var(--transition-slow) ease forwards;
}
@keyframes pricingPopIn {
    to { opacity: 1; transform: scale(1.03) translateY(0); }
}
/* Forge Social Cards */
.social-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}
.social-card:hover {
    border-color: var(--color-text-muted);
}
.social-card-connected {
    border-color: var(--color-success);
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
}
.social-icon-meta      { background: rgba(24, 119, 242, 0.15); color: #1877f2; }
.social-icon-google    { background: rgba(66, 133, 244, 0.15); color: #4285f4; }
.social-icon-tiktok    { background: rgba(255, 0, 80, 0.15); color: #ff0050; }
.social-icon-pinterest { background: rgba(230, 0, 35, 0.15); color: #e60023; }
.social-icon-linkedin  { background: rgba(10, 102, 194, 0.15); color: #0a66c2; }
.social-icon-x         { background: rgba(255, 255, 255, 0.1); color: var(--color-text); }
.social-info {
    flex: 1;
    min-width: 0;
}
.social-name {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}
.social-status {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.social-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}
/* Forge Landing Page */
/* ── Nav ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
}
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.landing-nav-links a:not(.btn) {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}
.landing-nav-links a:not(.btn):hover {
    color: var(--color-text);
}
/* ── Hero ── */
.hero {
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-extrabold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin: 0 auto var(--space-6);
}
.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}
.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-4);
}
.hero-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
/* ── Sections ── */
.landing-section {
    padding: var(--space-20) 0;
}
.landing-section:nth-child(even) {
    background: var(--color-bg-raised);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}
.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-4);
}
.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}
/* ── Features ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.feature-card {
    padding: var(--space-6);
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}
.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 24px;
}
.feature-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}
.feature-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}
/* ── Stats banner ── */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
    padding: var(--space-12) 0;
}
.stat-item .stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-accent);
    line-height: 1;
}
.stat-item .stat-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}
/* ── FAQ ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
    padding: var(--space-5) 0;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 0 var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}
/* ── CTA final ── */
.cta-section {
    text-align: center;
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(99, 102, 241, 0.05) 100%);
}
/* ── Footer ── */
.landing-footer {
    padding: var(--space-12) 0 var(--space-8);
    background: var(--color-bg-raised);
    border-top: 1px solid var(--color-border);
}
/* ── Responsive ── */
@media (max-width: 768px) {
    .landing-nav-links a:not(.btn) { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-banner { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
    .hero-cta { flex-direction: column; align-items: center; }
    .landing-footer .grid-cols-4 { grid-template-columns: 1fr 1fr; }
}
/* Forge Gallery */
/* ── Grid masonry ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}
.gallery-item {
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.gallery-item.hidden {
    display: none;
}
/* ── Image wrapper ── */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-img-wrap img {
    width: 100%;
    display: block;
    transition: transform var(--transition-base);
}
.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.03);
}
/* ── Hover actions ── */
.gallery-actions {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    display: flex;
    gap: var(--space-1);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.gallery-item:hover .gallery-actions {
    opacity: 1;
}
.gallery-fav {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: var(--color-text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}
.gallery-fav:hover,
.gallery-fav.active {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.8);
}
/* ── Meta ── */
.gallery-meta {
    padding: var(--space-2) var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ── Prompt collapse ── */
.gallery-prompt {
    padding: 0 var(--space-3) var(--space-3);
}
.gallery-prompt summary {
    cursor: pointer;
    user-select: none;
}
.gallery-prompt summary:hover {
    color: var(--color-text);
}
/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn var(--transition-fast) ease;
}
.lightbox-overlay[hidden] {
    display: none;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.lightbox-close {
    position: absolute;
    top: calc(var(--space-4) * -1);
    right: calc(var(--space-4) * -1);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.lightbox-close:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    color: #fff;
}
.lightbox-caption {
    margin-top: var(--space-3);
}
/* ── Responsive ── */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    .gallery-actions {
        opacity: 1;
    }
}
/* PubForge — Mobile Overrides (loaded AFTER app.css, no @layer) */
/* ── Mobile menu button ── */
.btn-mobile-menu {
    display: none;
    padding: 4px;
    color: var(--color-text-secondary, #b0b0c8);
    cursor: pointer;
    border: none;
    background: none;
    align-items: center;
    justify-content: center;
}
/* ── Sidebar overlay ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 29;
}
.sidebar-overlay.active {
    display: block;
}
/* ── Show/hide helpers ── */
.show-mobile-only { display: none; }
/* ══════════════════════════════════════ */
/* MOBILE — max 768px                    */
/* ══════════════════════════════════════ */
@media (max-width: 768px) {
    /* Show burger, hide desktop nav */
    .btn-mobile-menu {
        display: flex !important;
    }
    .hide-mobile {
        display: none !important;
    }
    .show-mobile-only {
        display: block !important;
    }
    /* Header compact */
    .app-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 8px;
    }
    .header-logo span {
        display: none !important;
    }
    .header-nav {
        display: none !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    /* Layout: no sidebar */
    .app-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas: "header" "main" !important;
    }
    /* Sidebar: hidden by default, slide-in when open */
    .app-sidebar {
        display: none !important;
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100dvh - 64px);
        z-index: 30;
        background-color: var(--color-bg-raised, #12121a);
        border-right: 1px solid var(--color-border, #2a2a3a);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
        overflow-y: auto;
        padding: 16px;
    }
    .app-sidebar.open {
        display: block !important;
        animation: mobileSlideIn 0.25s ease forwards;
    }
    @keyframes mobileSlideIn {
        from { transform: translateX(-100%); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }
    /* Main content */
    .app-main {
        padding: 12px !important;
        min-height: calc(100dvh - 64px);
    }
    /* Grids → 1 column */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    /* Cards compact */
    .card-body { padding: 16px !important; }
    .card-header, .card-footer { padding: 12px 16px !important; }
    /* Auth compact */
    .auth-card { padding: 20px !important; }
    /* Tables horizontal scroll */
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    /* Headings smaller */
    h1, .h1 { font-size: clamp(1.25rem, 4vw, 1.75rem) !important; }
    h2, .h2 { font-size: clamp(1.125rem, 3.5vw, 1.5rem) !important; }
    /* Stat cards: 2 columns */
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Big buttons full width */
    .btn-lg { width: 100%; }
    /* Toasts full width */
    .toast-container {
        left: 8px !important;
        right: 8px !important;
        max-width: none !important;
    }
    .toast { min-width: auto !important; }
    /* Pricing single column */
    .pricing-grid { grid-template-columns: 1fr !important; }
    .pricing-card-popular { transform: none !important; }
    /* Gallery: 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    /* Flex wrap for tight spaces */
    .flex.justify-between {
        flex-wrap: wrap;
        gap: 8px;
    }
    /* Footer compact */
    .app-footer { padding: 16px 12px !important; font-size: 11px !important; }
    /* Landing footer: 2 cols */
    .landing-footer .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
/* ══════════════════════════════════════ */
/* TABLET — 769px to 1024px              */
/* ══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
