/* ==========================================================================
   Unlucid Studio — core stylesheet
   Dark, editorial, high-contrast. No external fonts or frameworks.
   ========================================================================== */

:root {
    --bg: #06060a;
    --bg-soft: #0b0b12;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.055);
    --surface-solid: #111119;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f4fa;
    --muted: #9b99ab;
    --muted-2: #6f6d80;
    --violet: #a78bfa;
    --violet-deep: #7c3aed;
    --pink: #f472b6;
    --cyan: #22d3ee;
    --green: #34d399;
    --amber: #fbbf24;
    --rose: #fb7185;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --font: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, p {
    margin: 0;
}

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.12;
    font-weight: 650;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

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

::selection {
    background: rgba(167, 139, 250, 0.35);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */
.app-body {
    min-height: 100vh;
    position: relative;
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 78% -10%, rgba(124, 58, 237, 0.16), transparent 62%),
        radial-gradient(800px 500px at 8% 20%, rgba(34, 211, 238, 0.06), transparent 60%),
        var(--bg);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-a {
    width: 480px;
    height: 480px;
    background: rgba(124, 58, 237, 0.22);
    top: 6%;
    right: -120px;
    animation: drift 22s ease-in-out infinite alternate;
}

.orb-b {
    width: 380px;
    height: 380px;
    background: rgba(34, 211, 238, 0.12);
    bottom: 8%;
    left: -120px;
    animation: drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-40px, 60px, 0) scale(1.12); }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.app-main {
    position: relative;
    padding-bottom: 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.gradient-text {
    background: linear-gradient(100deg, #fff 4%, #d8c7ff 28%, #f9a8d4 58%, #67e8f9 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.head-dot {
    color: var(--pink);
}

.muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

.text-link {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #fff;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 0 36px;
}

.page-head h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 10px 0 12px;
}

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

.head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    background: var(--btn-bg);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.09);
}

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

.btn-primary {
    border: none;
    background: linear-gradient(100deg, #c4b5fd, #f9a8d4 55%, #a5f3fc);
    color: #150f24;
    box-shadow: 0 10px 34px rgba(167, 139, 250, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(100deg, #d6caff, #fbc3e2 55%, #c1f8ff);
    box-shadow: 0 14px 40px rgba(244, 114, 182, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.035);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 26px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

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

.btn-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

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

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 999px;
    height: 38px;
    padding: 0 12px;
    color: var(--muted);
}

.icon-btn:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.gem-gem {
    color: #c4b5fd;
    font-size: 0.9em;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.7);
}

.gem-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.08);
    font-weight: 600;
    font-size: 13px;
}

.gem-pill:hover {
    background: rgba(167, 139, 250, 0.14);
}

.balance-panel {
    min-width: 220px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.balance-panel > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.balance-panel strong {
    display: block;
    font-size: 30px;
    margin: 2px 0 4px;
}

/* --------------------------------------------------------------------------
   Top navigation
   -------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-nav.scrolled {
    background: rgba(6, 6, 10, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--line);
}

.nav-inner {
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: block;
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

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

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    width: auto;
    font-size: 12px;
    font-weight: 600;
}

[data-dropdown] {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(17, 17, 25, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.16s ease;
    z-index: 80;
}

[data-dropdown].open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a,
.dropdown-link {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border-radius: 9px;
    text-align: left;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: 0;
}

.dropdown-menu a:hover,
.dropdown-link:hover,
.dropdown-menu a.current {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-link.danger:hover {
    background: rgba(251, 113, 133, 0.12);
    color: #fecdd3;
}

.user-dropdown {
    min-width: 230px;
}

.dropdown-head {
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.dropdown-head strong {
    display: block;
    font-size: 13px;
}

.dropdown-head span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: linear-gradient(140deg, #2d1b53, #111);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}

.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Flash & toast
   -------------------------------------------------------------------------- */
.flash {
    width: min(1240px, calc(100% - 48px));
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-size: 13.5px;
    backdrop-filter: blur(12px);
}

.flash-success {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.07);
}

.flash-error {
    border-color: rgba(251, 113, 133, 0.28);
    background: rgba(251, 113, 133, 0.07);
}

.flash-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(17, 17, 25, 0.97);
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: toast-in 0.25s ease both;
    pointer-events: auto;
}

.toast.error {
    border-color: rgba(251, 113, 133, 0.35);
}

.toast.success {
    border-color: rgba(52, 211, 153, 0.3);
}

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

/* --------------------------------------------------------------------------
   Hero / landing
   -------------------------------------------------------------------------- */
.hero {
    padding: 58px 0 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 54px;
    min-height: 590px;
}

.hero-copy h1 {
    font-size: clamp(42px, 5.2vw, 72px);
    letter-spacing: -0.05em;
    margin: 20px 0 22px;
    line-height: 1.02;
}

.hero-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 18px;
    flex-wrap: wrap;
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-2);
    font-size: 12.5px;
}

.trust-check {
    color: var(--green);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-stage {
    position: relative;
    height: 570px;
    perspective: 1200px;
}

.stage-glow {
    position: absolute;
    inset: 8% 4%;
    background: radial-gradient(circle at 55% 42%, rgba(167, 139, 250, 0.35), transparent 60%);
    filter: blur(40px);
}

.stage-main {
    position: absolute;
    top: 34px;
    right: 8px;
    width: 74%;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    transform: rotate(2deg);
    animation: float-main 8s ease-in-out infinite;
    background: #12121a;
}

.stage-main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.stage-main figcaption {
    position: absolute;
    inset: auto 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(8, 8, 12, 0.68);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stage-meta {
    font-size: 10.5px;
    color: var(--muted);
}

.stage-float {
    position: absolute;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #111;
}

.stage-float img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.stage-float-a {
    width: 38%;
    left: -4%;
    bottom: 52px;
    transform: rotate(-7deg);
    animation: float-left 7s ease-in-out infinite;
}

.stage-float-b {
    width: 30%;
    right: -4%;
    top: 0;
    transform: rotate(6deg);
    animation: float-right 9s ease-in-out infinite;
}

.float-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.stage-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 15, 22, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stage-chip strong {
    display: block;
    font-size: 11.5px;
}

.stage-chip small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.stage-chip-a {
    left: 2%;
    top: 48px;
}

.stage-chip-b {
    right: 6%;
    bottom: 18px;
}

.chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(167, 139, 250, 0.15);
    color: #d8c7ff;
    font-size: 13px;
}

.tool-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-violet { background: var(--violet); box-shadow: 0 0 14px var(--violet); }

@keyframes float-main {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-12px); }
}

@keyframes float-left {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(10px); }
}

@keyframes float-right {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-10px); }
}

.stats-strip {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.stat {
    background: rgba(11, 11, 18, 0.9);
    padding: 22px 24px;
}

.stat strong {
    display: block;
    font-size: 27px;
    letter-spacing: -0.04em;
}

.stat span {
    font-size: 12px;
    color: var(--muted);
}

.stat-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

/* Sections */
.section {
    padding: 100px 0 0;
}

section[id],
#tools,
#effects,
#pricing {
    scroll-margin-top: 84px;
}

.section-head {
    max-width: 660px;
    margin-bottom: 38px;
}

.section-head h2 {
    font-size: clamp(32px, 4.4vw, 52px);
    margin: 12px 0 16px;
    letter-spacing: -0.045em;
}

.section-head p {
    color: var(--muted);
    font-size: 15.5px;
}

.section-head-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-head-row > div {
    max-width: 640px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 268px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tool-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -100px;
    border-radius: 50%;
    background: var(--accent, var(--violet));
    opacity: 0.13;
    filter: blur(50px);
    transition: opacity 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
}

.tool-card:hover::before {
    opacity: 0.24;
}

.accent-violet { --accent: #a78bfa; }
.accent-cyan { --accent: #22d3ee; }
.accent-pink { --accent: #f472b6; }
.accent-amber { --accent: #fbbf24; }
.accent-emerald { --accent: #34d399; }
.accent-rose { --accent: #fb7185; }

.tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    margin-bottom: 22px;
}

.tool-icon svg {
    width: 22px;
    height: 22px;
}

.tool-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--muted-2);
    transition: color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover .tool-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.tool-card h3 {
    font-size: 22px;
    margin-bottom: 3px;
}

.tool-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.tool-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 11px 0 20px;
}

.tool-cost {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
}

/* Effects */
.section-effects {
    position: relative;
}

.effect-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.effect-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111;
    isolation: isolate;
}

.effect-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.effect-card:hover img {
    transform: scale(1.07);
}

.effect-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 55%);
}

.effect-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    font-size: 11px;
    opacity: 0;
    transition: all 0.2s ease;
}

.effect-card:hover .effect-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.effect-name {
    position: absolute;
    left: 12px;
    bottom: 11px;
    font-size: 12.5px;
    font-weight: 600;
}

.effect-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

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

.step-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.step-num {
    position: absolute;
    right: 24px;
    top: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted-2);
}

.step-icon {
    width: 42px;
    height: 42px;
    color: #d8c7ff;
    margin-bottom: 28px;
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

.step-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
}

.step-card p {
    color: var(--muted);
    font-size: 13.5px;
}

/* Split */
.split-section {
    padding-top: 110px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.split-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.split-media > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.split-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    font-size: 11.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px var(--pink);
}

.split-progress {
    margin-left: auto;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.split-progress span {
    display: block;
    width: 64%;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--pink));
    animation: progress-slide 2.4s ease-in-out infinite alternate;
}

@keyframes progress-slide {
    from { width: 45%; }
    to { width: 86%; }
}

.split-copy h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 12px 0 18px;
}

.split-copy > p {
    color: var(--muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 26px 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
    font-size: 13.5px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 700;
}

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

.price-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    min-height: 318px;
    overflow: hidden;
}

.price-card.featured {
    border-color: rgba(167, 139, 250, 0.45);
    background: linear-gradient(165deg, rgba(124, 58, 237, 0.18), rgba(244, 114, 182, 0.06) 60%, rgba(255, 255, 255, 0.03));
    box-shadow: 0 25px 70px rgba(124, 58, 237, 0.18);
}

.price-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c4b5fd, #f9a8d4);
    color: #1a102b;
}

.price-name {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 6px;
}

.price-amount span {
    font-size: 44px;
    letter-spacing: -0.05em;
    font-weight: 650;
}

.price-amount small {
    color: var(--muted-2);
    font-size: 11px;
}

.price-gems {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
}

.price-gems em {
    font-style: normal;
    font-size: 10px;
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 2px;
}

.price-card > p {
    color: var(--muted);
    font-size: 12.5px;
    margin: 14px 0 22px;
    min-height: 40px;
}

.price-card form,
.price-card > .btn {
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    color: var(--muted-2);
    font-size: 12px;
    margin-top: 22px;
}

/* Final CTA */
.final-cta-section {
    padding-top: 110px;
}

.final-cta {
    position: relative;
    text-align: center;
    padding: 80px 24px;
    border-radius: 28px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    background: linear-gradient(150deg, rgba(124, 58, 237, 0.2), rgba(244, 114, 182, 0.08) 55%, rgba(34, 211, 238, 0.06));
    overflow: hidden;
}

.final-cta h2 {
    font-size: clamp(34px, 5vw, 62px);
    max-width: 760px;
    margin: 18px auto;
    letter-spacing: -0.05em;
}

.final-cta p {
    color: var(--muted);
    margin-bottom: 28px;
}

.final-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.2);
    filter: blur(100px);
    left: 50%;
    top: -220px;
    transform: translateX(-50%);
}

/* Footer */
.site-footer {
    margin-top: 100px;
    border-top: 1px solid var(--line);
    padding: 54px 0 26px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-grid > div:first-child {
    max-width: 390px;
}

.footer-grid p {
    color: var(--muted-2);
    font-size: 12.5px;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 70px;
}

.footer-links > div {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-links strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    margin-top: 44px;
    padding-top: 20px;
    color: var(--muted-2);
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dashboard-head {
    align-items: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 52px;
}

.summary-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.summary-label {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    margin-bottom: 8px;
}

.summary-card strong {
    display: block;
    font-size: 30px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.summary-card strong small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.summary-date {
    font-size: 22px !important;
    padding-top: 6px;
}

.summary-foot {
    display: block;
    color: var(--muted-2);
    font-size: 11px;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-gems {
    border-color: rgba(167, 139, 250, 0.3);
    background: linear-gradient(150deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.025));
}

.summary-gems strong {
    font-size: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-gems a {
    display: inline-block;
    margin-top: 10px;
    font-size: 11.5px;
    color: #d8c7ff;
}

.summary-orb {
    position: absolute;
    width: 140px;
    height: 140px;
    right: -40px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.25);
    filter: blur(35px);
}

.dashboard-section {
    margin-bottom: 42px;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-row h2 {
    font-size: 20px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-2px);
}

.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    flex-shrink: 0;
}

.quick-icon svg {
    width: 18px;
    height: 18px;
}

.quick-card strong {
    display: block;
    font-size: 13px;
}

.quick-card small {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
}

.quick-arrow {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 13px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.task-grid-history {
    grid-template-columns: repeat(4, 1fr);
}

.task-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.task-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.task-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #0e0e16;
    overflow: hidden;
}

.task-media img,
.task-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.task-card:hover .task-media img,
.task-card:hover .task-media video {
    transform: scale(1.04);
}

.task-media-empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(167, 139, 250, 0.15), transparent 55%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 12px);
}

.task-placeholder-icon {
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.25);
}

.task-failed-mark {
    position: absolute;
    font-size: 24px;
    color: var(--rose);
}

.task-loader {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--violet);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9px;
    padding-left: 2px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.task-body {
    padding: 12px;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--muted);
}

.task-status-text {
    margin-left: auto;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
}

.status-dot.status-success { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.status-dot.status-processing { background: var(--amber); }
.status-dot.status-pending { background: var(--cyan); }
.status-dot.status-failed { background: var(--rose); }

.task-prompt {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    margin: 7px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 33px;
}

.task-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted-2);
}

.task-cost {
    color: #c4b5fd;
}

.activity-list {
    display: grid;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.activity-icon.in { background: rgba(52, 211, 153, 0.1); color: var(--green); }
.activity-icon.out { background: rgba(167, 139, 250, 0.1); color: var(--violet); }

.activity-row strong {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
}

.activity-row small {
    color: var(--muted-2);
    font-size: 10px;
}

.activity-amount {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
}

.activity-amount.in { color: var(--green); }
.activity-amount.out { color: var(--muted); }

.prompt-card {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: linear-gradient(150deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.02));
}

.prompt-card p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 8px 0 12px;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 54px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
}

.empty-large {
    padding: 90px 24px;
}

.empty-icon {
    width: 42px;
    height: 42px;
    color: var(--violet);
    margin: 0 auto 14px;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state h2,
.empty-state h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Tools index
   -------------------------------------------------------------------------- */
.tool-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tool-showcase-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tool-showcase-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.tsc-art {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
        #0c0c14;
}

.tsc-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.16;
    filter: blur(50px);
}

.tsc-icon {
    position: relative;
    width: 64px;
    height: 64px;
    color: var(--accent);
    filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent));
}

.tsc-icon svg {
    width: 64px;
    height: 64px;
}

.tsc-index {
    position: absolute;
    left: 16px;
    top: 12px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted-2);
}

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

.tsc-body h2 {
    font-size: 21px;
    margin: 3px 0 8px;
}

.tsc-body p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.tsc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.tsc-open {
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 600;
}

.index-note {
    margin-top: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.index-note h2 {
    font-size: 20px;
    margin-top: 6px;
}

.mini-steps {
    display: flex;
    gap: 20px;
}

.mini-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted);
}

.mini-steps b {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--violet);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 5px;
    padding: 2px 5px;
}

/* --------------------------------------------------------------------------
   Workspace
   -------------------------------------------------------------------------- */
.workspace-page {
    padding-top: 26px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted-2);
}

.breadcrumb a:hover {
    color: #fff;
}

.workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 0 26px;
}

.workspace-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.workspace-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    flex-shrink: 0;
}

.workspace-icon svg {
    width: 24px;
    height: 24px;
}

.workspace-title h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 3px 0 6px;
}

.workspace-title p {
    color: var(--muted);
    font-size: 13.5px;
    max-width: 620px;
}

.workspace-balance {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.workspace-balance a {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    border-left: 1px solid var(--line);
    padding-left: 9px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 16px;
    align-items: start;
}

.composer-card,
.preview-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 13, 20, 0.78);
    backdrop-filter: blur(16px);
}

.composer-card {
    padding: 24px;
}

.preview-card {
    position: sticky;
    top: 88px;
    overflow: hidden;
}

.form-field {
    margin-bottom: 20px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.field-label em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 500;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.field-hint {
    display: block;
    margin-top: 7px;
    font-size: 10.5px;
    color: var(--muted-2);
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    padding: 12px 13px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

textarea::placeholder,
input::placeholder {
    color: var(--muted-2);
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.08);
}

input[type="file"] {
    padding: 9px;
    font-size: 11px;
}

input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 7px;
    padding: 6px 10px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    font-size: 11px;
}

.upload-zone {
    display: block;
    position: relative;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(167, 139, 250, 0.06);
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.upload-empty strong {
    display: block;
    font-size: 12.5px;
    margin-bottom: 3px;
}

.upload-empty small {
    display: block;
    color: var(--muted-2);
    font-size: 10.5px;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-preview img,
.upload-preview video {
    max-height: 200px;
    border-radius: 9px;
    object-fit: contain;
}

.upload-file {
    font-size: 10.5px;
    color: var(--muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-change {
    font-size: 10px;
    color: #d8c7ff;
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 3px 9px;
    border-radius: 999px;
}

.choice-grid {
    display: grid;
    gap: 7px;
}

.style-grid {
    grid-template-columns: repeat(4, 1fr);
}

.choice-chip input,
.ratio-chip input,
.template-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    display: block;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    color: var(--muted);
    transition: all 0.16s ease;
    white-space: nowrap;
}

.choice-chip input:checked + span {
    border-color: rgba(167, 139, 250, 0.6);
    background: rgba(167, 139, 250, 0.12);
    color: #fff;
}

.ratio-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.ratio-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 10.5px;
    color: var(--muted);
    transition: all 0.16s ease;
}

.ratio-chip input:checked + span {
    border-color: rgba(167, 139, 250, 0.6);
    background: rgba(167, 139, 250, 0.12);
    color: #fff;
}

.ratio-shape {
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 2px;
    width: 10px;
    height: 10px;
}

.ratio-4-5 { width: 8px; height: 10px; }
.ratio-3-4 { width: 7px; height: 10px; }
.ratio-16-9 { width: 13px; height: 7px; }
.ratio-9-16 { width: 7px; height: 12px; }

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 3px;
}

.template-card {
    position: relative;
    cursor: pointer;
}

.template-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.template-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-card input:checked + .template-media {
    border-color: var(--violet);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.25);
}

.template-check {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--violet);
    color: #140d24;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.16s ease;
}

.template-card input:checked + .template-media .template-check {
    opacity: 1;
    transform: scale(1);
}

.template-badge {
    position: absolute;
    left: 5px;
    top: 5px;
    font-size: 7.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 5px;
    border-radius: 4px;
}

.template-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
    font-size: 7px;
    padding-left: 1px;
}

.template-name {
    display: block;
    font-size: 9.5px;
    color: var(--muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    margin: -8px 0 16px;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.18);
    font-size: 11px;
    color: #a5f3fc;
}

.composer-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cost-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.form-status {
    margin-top: 12px;
    font-size: 12px;
    color: var(--rose);
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.preview-title {
    font-size: 12px;
    font-weight: 600;
}

.preview-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-2);
    border: 1px solid var(--line);
    padding: 3px 7px;
    border-radius: 999px;
}

.preview-stage {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 40%, rgba(167, 139, 250, 0.06), transparent 55%),
        rgba(0, 0, 0, 0.12);
}

.preview-empty {
    text-align: center;
    position: relative;
    max-width: 280px;
}

.preview-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.12);
    filter: blur(55px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.preview-empty-icon {
    position: relative;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.22);
    margin: 0 auto 16px;
}

.preview-empty-icon svg {
    width: 44px;
    height: 44px;
}

.preview-empty h3 {
    position: relative;
    font-size: 16px;
    margin-bottom: 6px;
}

.preview-empty p {
    position: relative;
    color: var(--muted-2);
    font-size: 11.5px;
    line-height: 1.55;
}

.preview-loading {
    text-align: center;
    max-width: 320px;
}

.render-ring {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    position: relative;
}

.render-ring::before,
.render-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.render-ring span {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--violet);
    border-right-color: var(--pink);
    animation: spin 1s linear infinite;
}

.preview-loading h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.preview-loading p {
    color: var(--muted);
    font-size: 11.5px;
    margin-bottom: 16px;
}

.render-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 8px;
}

.render-progress span {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--pink));
    transition: width 0.6s ease;
}

.preview-loading small {
    color: var(--muted-2);
    font-size: 10px;
    font-family: var(--mono);
}

.preview-result {
    width: 100%;
    display: grid;
    place-items: center;
}

.preview-result img,
.preview-result video {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
}

.preview-error {
    text-align: center;
    max-width: 320px;
}

.preview-error-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.3);
    color: var(--rose);
    margin: 0 auto 12px;
    font-weight: 700;
}

.preview-error h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.preview-error p {
    color: var(--muted);
    font-size: 11.5px;
    margin-bottom: 14px;
}

.preview-actions {
    display: flex;
    gap: 7px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.preview-actions .btn:last-child {
    margin-left: auto;
}

.preview-meta {
    display: flex;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: var(--muted-2);
}

.preview-meta span:last-child {
    margin-left: auto;
}

.workspace-bottom {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 16px;
    margin-top: 16px;
}

.tips-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.tips-card .check-list {
    margin: 14px 0 0;
    gap: 8px;
}

.recent-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.recent-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
}

.recent-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0d0d14;
}

.recent-thumb img,
.recent-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    text-align: center;
    font-size: 8px;
    text-transform: uppercase;
    color: var(--muted-2);
}

.recent-placeholder.status-pending { color: var(--cyan); }
.recent-placeholder.status-processing { color: var(--amber); }
.recent-placeholder.status-failed { color: var(--rose); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(3, 3, 6, 0.92);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 40px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-body img,
.lightbox-body video {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   History
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--muted);
    background: var(--surface);
    transition: all 0.16s ease;
}

.filter-chip:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.filter-chip.active {
    color: #160f26;
    background: linear-gradient(90deg, #c4b5fd, #f9a8d4);
    border-color: transparent;
}

.filter-select select {
    width: auto;
    min-width: 140px;
    padding: 8px 30px 8px 12px;
    font-size: 11.5px;
    border-radius: 999px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.pager-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 13px;
}

.pager-btn:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.pager-btn.disabled {
    opacity: 0.35;
}

.pager-info {
    font-size: 11px;
    color: var(--muted-2);
    font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   Gems
   -------------------------------------------------------------------------- */
.gem-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(124, 58, 237, 0.2), rgba(244, 114, 182, 0.07) 55%, rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.gem-hero-main {
    position: relative;
    z-index: 2;
}

.gem-hero-main > strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(46px, 7vw, 72px);
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 6px 0 12px;
}

.gem-hero-main p {
    color: var(--muted);
    font-size: 12.5px;
}

.gem-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.streak-pill {
    font-size: 10.5px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
}

.gem-hero-art {
    position: relative;
    width: 220px;
    height: 180px;
    flex-shrink: 0;
}

.gem-big {
    position: absolute;
    right: 30px;
    top: 10px;
    font-size: 130px;
    color: rgba(196, 181, 253, 0.25);
    text-shadow: 0 0 70px rgba(167, 139, 250, 0.7);
    animation: gem-float 6s ease-in-out infinite;
}

.gem-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.25);
    filter: blur(50px);
    right: 0;
}

@keyframes gem-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.section-block {
    margin-top: 46px;
}

.pricing-grid.compact .price-card {
    min-height: 280px;
}

.orders-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.order-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
}

.order-mini strong {
    font-size: 12.5px;
}

.order-mini > span:not(.order-status) {
    font-size: 11px;
    color: var(--muted);
}

.order-mini small {
    font-size: 9.5px;
    color: var(--muted-2);
}

.order-status {
    align-self: flex-start;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.order-status.status-paid { color: var(--green); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); }
.order-status.status-pending { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.order-status.status-cancelled { color: var(--muted-2); }
.order-status.status-refunded { color: var(--cyan); }

.table-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-2);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.tx-type {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tx-type.in { color: var(--green); }
.tx-type.out { color: var(--violet); }
.tx-desc {
    display: block;
    color: var(--muted-2);
    font-size: 10px;
    margin-top: 2px;
}

.amount-in { color: var(--green); font-weight: 600; }
.amount-out { color: var(--muted); font-weight: 600; }

/* Order page */
.order-page {
    max-width: 720px;
    padding-top: 40px;
}

.back-link {
    display: inline-block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}

.order-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(13, 13, 20, 0.85);
    overflow: hidden;
}

.order-status-hero {
    text-align: center;
    padding: 44px 30px 34px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.16), transparent 60%);
}

.order-status-hero.status-paid {
    background: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.14), transparent 60%);
}

.order-big-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #d8c7ff;
}

.status-paid .order-big-icon { color: var(--green); border-color: rgba(52, 211, 153, 0.35); }
.status-pending .order-big-icon { color: #d8c7ff; }

.order-status-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.order-status-hero p {
    color: var(--muted);
    font-size: 12.5px;
    max-width: 500px;
    margin-inline: auto;
}

.order-details {
    padding: 10px 26px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}

.order-row:last-child {
    border-bottom: 0;
}

.order-row > span {
    color: var(--muted);
}

.order-row strong {
    font-weight: 500;
    text-align: right;
}

.order-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */
.profile-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 18px;
    align-items: start;
}

.profile-main {
    display: grid;
    gap: 16px;
}

.panel {
    padding: 26px;
}

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-head h2 {
    font-size: 18px;
}

.panel-head span {
    font-size: 10.5px;
    color: var(--muted-2);
}

.avatar-editor {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.avatar-editor .field {
    flex: 1;
}

.avatar-large,
.avatar-xl {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b2466, #14141d);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e9d5ff;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-large {
    width: 72px;
    height: 72px;
    font-size: 22px;
}

.avatar-xl {
    width: 84px;
    height: 84px;
    font-size: 26px;
    margin: 0 auto 12px;
}

.avatar-large img,
.avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-error {
    font-style: normal;
    font-size: 10.5px;
    color: #fda4af;
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-summary {
    position: sticky;
    top: 88px;
    text-align: center;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.profile-summary h2 {
    font-size: 18px;
}

.role-pill {
    display: inline-block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--violet);
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
    margin: 6px 0 20px;
}

.profile-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    text-align: left;
}

.profile-summary-row span {
    color: var(--muted);
}

.profile-summary-row strong {
    font-weight: 500;
}

.profile-summary .btn {
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(800px 600px at 20% 10%, rgba(124, 58, 237, 0.24), transparent 65%),
        radial-gradient(600px 500px at 85% 85%, rgba(34, 211, 238, 0.08), transparent 60%),
        #08080d;
    border-right: 1px solid var(--line);
}

.auth-visual-copy {
    position: relative;
    z-index: 2;
    margin-top: 72px;
    max-width: 500px;
}

.auth-visual-copy h1 {
    font-size: clamp(36px, 4.6vw, 58px);
    letter-spacing: -0.05em;
    margin: 14px 0 16px;
}

.auth-visual-copy p {
    color: var(--muted);
    font-size: 15px;
}

.auth-art {
    position: relative;
    flex: 1;
    min-height: 300px;
    margin-top: 40px;
}

.auth-art-card {
    position: absolute;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(150deg, #241341, #0d0d15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.auth-art-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(244, 114, 182, 0.45), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(34, 211, 238, 0.35), transparent 40%),
        repeating-linear-gradient(120deg, transparent 0 12px, rgba(255, 255, 255, 0.05) 12px 13px);
}

.card-1 {
    width: 58%;
    aspect-ratio: 4 / 5;
    left: 6%;
    top: 4%;
    transform: rotate(-5deg);
}

.card-2 {
    width: 46%;
    aspect-ratio: 1 / 1;
    right: 2%;
    top: 12%;
    transform: rotate(6deg);
}

.card-3 {
    width: 40%;
    aspect-ratio: 3 / 4;
    left: 32%;
    bottom: 2%;
    transform: rotate(2deg);
}

.auth-art-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.22);
    filter: blur(70px);
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
}

.auth-art-noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.5px, transparent 0.5px);
    background-size: 6px 6px;
    mask-image: linear-gradient(to top, transparent, black);
}

.auth-visual-foot {
    position: relative;
    z-index: 2;
    font-size: 10.5px;
    color: var(--muted-2);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    padding: 34px 46px;
    background: #07070b;
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-inline {
    display: flex;
    gap: 7px;
    font-size: 11px;
    color: var(--muted-2);
}

.lang-inline a.active {
    color: #fff;
}

.auth-back {
    font-size: 11px;
    color: var(--muted);
}

.auth-form-wrap {
    width: min(420px, 100%);
    margin: auto;
    padding: 40px 0;
}

.auth-head h2 {
    font-size: 30px;
    margin-bottom: 6px;
}

.auth-head p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 26px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11.5px;
    color: var(--muted);
    cursor: pointer;
}

.check-row input {
    margin-top: 2px;
    accent-color: var(--violet);
}

.demo-note {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 9px;
    background: rgba(167, 139, 250, 0.06);
    font-size: 10.5px;
    color: var(--muted);
}

.demo-note strong {
    color: var(--violet);
    white-space: nowrap;
}

.auth-switch {
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: #d8c7ff;
    font-weight: 600;
}

.signup-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    padding: 10px;
    border-radius: 9px;
    background: rgba(52, 211, 153, 0.07);
    border: 1px solid rgba(52, 211, 153, 0.18);
    font-size: 11px;
    color: #a7f3d0;
}

.auth-foot {
    font-size: 9px;
    color: var(--muted-2);
    text-align: center;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Mobile tabbar & responsive
   -------------------------------------------------------------------------- */
.mobile-tabbar {
    display: none;
}

@media (max-width: 1180px) {
    .hero-grid { gap: 30px; }
    .hero-stage { height: 500px; }
    .stage-main { width: 78%; }
    .effect-grid { grid-template-columns: repeat(3, 1fr); }
    .task-grid-history { grid-template-columns: repeat(3, 1fr); }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-showcase { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .orders-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .hero { padding-top: 30px; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
    .hero-copy { max-width: 700px; }
    .hero-stage { height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
    .stats-strip { grid-template-columns: repeat(3, 1fr); }
    .stat-note { grid-column: 1 / -1; }
    .split-grid { grid-template-columns: 1fr; gap: 34px; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid.compact { grid-template-columns: repeat(3, 1fr); }
    .workspace-grid { grid-template-columns: 1fr; }
    .preview-card { position: static; }
    .workspace-bottom { grid-template-columns: 1fr; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-summary { position: static; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; }
    .section { padding-top: 72px; }
    .footer-grid { flex-direction: column; gap: 30px; }
    .footer-links { gap: 40px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .nav-inner { height: 62px; width: calc(100% - 28px); }
    .nav-links { display: none; }
    .brand-text { font-size: 15px; }
    .brand-mark { width: 30px; height: 30px; }
    .gem-pill { height: 34px; padding: 0 11px; }
    .nav-actions { gap: 7px; }
    .nav-actions > .btn { display: none; }
    .app-main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
    .page-head { flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px 0 24px; }
    .page-head h1 { font-size: 36px; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .summary-gems { grid-column: 1 / -1; }
    .summary-card:nth-child(4) { grid-column: 1 / -1; }
    .task-grid { grid-template-columns: repeat(2, 1fr); }
    .task-grid-history { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-showcase { grid-template-columns: 1fr; }
    .tool-card { min-height: 230px; }
    .effect-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid.compact { grid-template-columns: 1fr; }
    .orders-strip { grid-template-columns: 1fr 1fr; }
    .index-note { flex-direction: column; align-items: flex-start; }
    .mini-steps { flex-wrap: wrap; gap: 12px; }
    .hero-copy h1 { font-size: clamp(34px, 10vw, 48px); }
    .hero-stage { height: 430px; }
    .stage-main { width: 80%; right: 0; }
    .stage-float-a { width: 42%; bottom: 28px; }
    .stage-float-b { width: 32%; }
    .stage-chip { padding: 8px 10px; }
    .stage-chip-a { top: 22px; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .stat { padding: 18px; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .final-cta { padding: 56px 20px; }
    .footer-links { gap: 50px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .workspace-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .workspace-grid { gap: 12px; }
    .composer-card { padding: 18px; }
    .preview-stage { min-height: 330px; }
    .style-grid { grid-template-columns: repeat(2, 1fr); }
    .template-grid { grid-template-columns: repeat(3, 1fr); }
    .composer-submit { flex-direction: column; align-items: stretch; }
    .composer-submit .btn { width: 100%; }
    .recent-strip { grid-template-columns: repeat(4, 1fr); }
    .gem-hero { padding: 24px; }
    .gem-hero-art { display: none; }
    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) { display: none; }
    .profile-grid { gap: 12px; }
    .panel { padding: 20px; }
    .form-two { grid-template-columns: 1fr; }
    .auth-panel { padding: 24px 22px; }
    .auth-form-wrap { padding: 26px 0; }
    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        min-height: 64px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        align-items: flex-start;
        justify-content: space-around;
        border-top: 1px solid var(--line-strong);
        border-radius: 18px 18px 0 0;
        background: rgba(10, 10, 16, 0.94);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45);
    }
    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
        min-width: 0;
        padding-top: 3px;
        font-size: 9px;
        line-height: 1.15;
        color: var(--muted-2);
        flex: 1;
    }
    .mobile-tabbar a.active { color: #fff; }
    .mobile-tabbar a.active svg { filter: drop-shadow(0 0 8px rgba(196, 181, 253, .45)); }
    .mobile-tabbar a svg { width: 20px; height: 20px; flex-shrink: 0; }
    .mobile-tabbar .tab-create {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 16px;
        background: linear-gradient(140deg, #c4b5fd, #f9a8d4);
        color: #170f27;
        display: grid;
        place-items: center;
        padding-top: 0;
        margin-top: -20px;
        box-shadow: 0 10px 24px rgba(244, 114, 182, 0.4);
    }
    .mobile-tabbar .tab-create span { font-size: 25px; font-weight: 300; line-height: 1; }
    .toast-stack { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
    .toast { min-width: 0; max-width: none; }
    .lightbox { padding: 16px; }
}

@media (max-width: 480px) {
    .hero-copy h1 { font-size: 38px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-stage { height: 380px; }
    .stage-chip-b { display: none; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .stat-note { grid-column: 1 / -1; }
    .effect-grid { grid-template-columns: 1fr 1fr; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
    .recent-strip { grid-template-columns: repeat(3, 1fr); }
    .orders-strip { grid-template-columns: 1fr; }
    .footer-links { gap: 40px; }
    .auth-head h2 { font-size: 26px; }
    .gem-hero-main > strong { font-size: 52px; }
    .preview-actions { flex-wrap: wrap; }
    .preview-actions .btn:last-child { margin-left: 0; width: 100%; }
    .stage-float-a { left: 0; }
    .stage-chip-a { left: 0; }
}
