/* ==========================================================================
   WebBuild — Shared design system + public homepage styles.
   Hand-written, no framework. Dark theme with lime accent.
   Panels load this file first, then panel.css (panel.css owns the
   sidebar/topbar/table/modal styles listed in includes/layout.php).
   ========================================================================== */

:root {
    --bg: #050507;
    --panel: #0b0b0f;
    --panel2: #141419;
    --line: #23232b;
    --lime: #c8ff2e;
    --lime-dark: #a8d61f;
    --text: #f5f5f5;
    --muted: #9a9aa5;
    --radius: 14px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--lime);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1em;
}

::selection {
    background: var(--lime);
    color: #050507;
}

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--panel2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        transform 0.1s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--lime);
    color: #050507;
}

.btn-primary:hover {
    background: var(--lime-dark);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--muted);
    background: var(--panel2);
}

.btn-danger {
    background: #e5484d;
    color: #fff;
}

.btn-danger:hover {
    background: #c93a3f;
}

.btn-sm {
    padding: 0.45em 1em;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.9em 1.9em;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------------------ public nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 20px 0;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.95), rgba(5, 5, 7, 0.75) 70%, transparent);
}

.nav-pill {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 12px 10px 20px;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    white-space: nowrap;
}

.nav-logo span {
    color: var(--lime);
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------------ hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 20px 72px;
    text-align: center;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(200, 255, 46, 0.4);
    border-radius: 999px;
    background: rgba(200, 255, 46, 0.08);
    color: var(--lime);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.badge-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--lime);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.prompt-box {
    display: flex;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto;
    padding: 8px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.prompt-box:focus-within {
    border-color: rgba(200, 255, 46, 0.55);
}

.prompt-box textarea,
.prompt-box input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    resize: none;
}

.prompt-box textarea::placeholder,
.prompt-box input[type="text"]::placeholder {
    color: #6b6b76;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.prompt-chip {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.83rem;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.prompt-chip:hover {
    color: var(--text);
    border-color: var(--lime);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats span {
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-stats strong {
    color: var(--text);
    font-weight: 700;
}

/* --------------------------------------------------------------- sections */
.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-head .kicker {
    display: block;
    color: var(--lime);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------- preset gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.preset-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.preset-card:hover {
    border-color: rgba(200, 255, 46, 0.45);
    transform: translateY(-3px);
}

.preset-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preset-thumb .thumb-letter {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.preset-thumb .thumb-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.thumb-aether   { background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7); }
.thumb-volta    { background: linear-gradient(135deg, #f59e0b, #ef4444 55%, #7c2d12); }
.thumb-obsidian { background: linear-gradient(135deg, #334155, #0f172a 60%, #000000); }
.thumb-vanta    { background: linear-gradient(135deg, #ec4899, #8b5cf6 55%, #312e81); }
.thumb-helix    { background: linear-gradient(135deg, #22c55e, #06b6d4 55%, #1e3a8a); }
.thumb-haloglass { background: linear-gradient(135deg, #67e8f9, #a78bfa 55%, #f0abfc); }

.preset-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.preset-body h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.preset-body p {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.preset-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------- testimonials */
.testimonials {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.t-viewport {
    overflow: hidden;
}

.t-slide {
    display: none;
    padding: 12px 8px 4px;
    animation: t-fade 0.4s ease;
}

.t-slide.active {
    display: block;
}

@keyframes t-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.t-quote {
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 20px;
}

.t-quote::before {
    content: "\201C";
    color: var(--lime);
    font-size: 2.2rem;
    line-height: 0;
    margin-right: 4px;
    vertical-align: -0.35em;
}

.t-author {
    color: var(--muted);
    font-size: 0.95rem;
}

.t-author strong {
    color: var(--text);
}

.t-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.t-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.t-arrow:hover {
    border-color: var(--lime);
}

.t-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.t-dot.active {
    background: var(--lime);
    transform: scale(1.25);
}

/* --------------------------------------------------------------- pipeline */
.pipeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
}

.pipeline::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), rgba(200, 255, 46, 0.15));
    z-index: 0;
}

.pipe-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 14px 18px;
}

.pipe-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--lime);
    color: var(--lime);
    font-size: 1.2rem;
    font-weight: 800;
}

.pipe-step h3 {
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.pipe-step p {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 0;
}

/* --------------------------------------------------------- scroll section */
.scroll-exp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.scroll-exp h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.scroll-exp p {
    color: var(--muted);
}

.scroll-points {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
}

.scroll-points li {
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
}

.scroll-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lime);
    font-weight: 800;
}

.mock-browser {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: var(--panel2);
    border-bottom: 1px solid var(--line);
}

.mock-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--line);
    display: block;
}

.mock-bar i:first-child { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }

.mock-bar span {
    margin-left: 10px;
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 12px;
}

.mock-frames {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}

.mock-frame {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    animation: frame-pulse 4s ease-in-out infinite alternate;
}

.mock-frame:nth-child(1) { background: linear-gradient(135deg, #c8ff2e, #06b6d4); }
.mock-frame:nth-child(2) { background: linear-gradient(135deg, #a855f7, #ec4899); animation-delay: 0.6s; }
.mock-frame:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #ef4444); animation-delay: 1.2s; }
.mock-frame:nth-child(4) { background: linear-gradient(135deg, #0ea5e9, #22c55e); animation-delay: 1.8s; }

@keyframes frame-pulse {
    from { transform: scale(1); filter: brightness(0.85); }
    to   { transform: scale(1.04); filter: brightness(1.1); }
}

.mock-caption {
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

/* ---------------------------------------------------------------- pro grid */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pro-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pro-card:hover {
    border-color: rgba(200, 255, 46, 0.45);
    transform: translateY(-3px);
}

.pro-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(200, 255, 46, 0.12);
    color: var(--lime);
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.pro-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.pro-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* -------------------------------------------------------------- cta banner */
.cta-banner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 72px;
}

.cta-inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #131a05, #0b0b0f 60%);
    border: 1px solid rgba(200, 255, 46, 0.35);
    border-radius: calc(var(--radius) + 6px);
    padding: 56px 32px;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

.cta-inner p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 26px;
}

.cta-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.cta-stats span {
    font-size: 0.9rem;
    color: var(--muted);
}

.cta-stats strong {
    color: var(--text);
}

/* ---------------------------------------------------------------- pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.price-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    border-color: var(--lime);
    background: linear-gradient(180deg, rgba(200, 255, 46, 0.07), var(--panel) 55%);
}

.price-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: #050507;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 10px 0 2px;
}

.price-amount small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.price-card > p {
    color: var(--muted);
    font-size: 0.9rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    display: grid;
    gap: 9px;
    flex: 1;
}

.price-list li {
    padding-left: 24px;
    position: relative;
    font-size: 0.92rem;
}

.price-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lime);
    font-weight: 800;
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 24px;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--panel);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    padding: 4px 0;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ------------------------------------------------------------ auth + forms */
.auth-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
}

.auth-card h1 {
    font-size: 1.6rem;
    text-align: center;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.auth-alt {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    border-color: var(--lime);
}

.form-control::placeholder {
    color: #6b6b76;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aa5' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 5px;
}

.form-error {
    font-size: 0.85rem;
    color: #ff8a8e;
    margin-top: 5px;
}

/* ----------------------------------------------------------------- alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel2);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.alert-success {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.08);
    color: #bbf7d0;
}

.alert-error {
    border-color: rgba(229, 72, 77, 0.55);
    background: rgba(229, 72, 77, 0.1);
    color: #fecaca;
}

.alert-info {
    border-color: rgba(200, 255, 46, 0.45);
    background: rgba(200, 255, 46, 0.07);
    color: #ecfccb;
}

/* ------------------------------------------- shared utilities (panels too) */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-ready,
.badge-success {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.5);
}

.badge-building,
.badge-warning {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.5);
}

.badge-failed,
.badge-danger {
    color: #fca5a5;
    border-color: rgba(229, 72, 77, 0.5);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th,
.table td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
}

.table th {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-state h3 {
    color: var(--text);
}

/* ------------------------------------------------------- preview + errors */
.preview-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.preview-toolbar .preview-title {
    font-weight: 700;
    font-size: 1rem;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.preview-toolbar .preview-title small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 61px);
    border: 0;
    background: #fff;
}

.preview-building {
    min-height: calc(100vh - 61px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 10px;
}

.preview-building p {
    color: var(--muted);
    max-width: 440px;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--line);
    border-top-color: var(--lime);
    animation: spin 0.9s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-page {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 2rem;
}

.error-page p {
    color: var(--muted);
    max-width: 440px;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 16px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pipeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .pipeline::before {
        display: none;
    }

    .pro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-pill {
        gap: 12px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .scroll-exp {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero {
        padding: 64px 20px 56px;
    }

    .section {
        padding: 56px 20px;
    }
}

@media (max-width: 560px) {
    .gallery-grid,
    .pro-grid {
        grid-template-columns: 1fr;
    }

    .pipeline {
        grid-template-columns: 1fr 1fr;
    }

    .prompt-box {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .prompt-box .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .preview-toolbar .preview-title {
        max-width: 100%;
        width: 100%;
    }

    .preview-frame {
        height: calc(100vh - 108px);
    }

    .t-quote {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .mock-frame,
    .spinner {
        animation: none;
    }
}
