@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #05060b;
    --bg-alt: #0c0d15;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-alt: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-soft: rgba(99, 102, 241, 0.12);
    --accent: #f97316;
    --text: rgba(255, 255, 255, 0.92);
    --text-soft: rgba(255, 255, 255, 0.64);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
    --radius: 16px;
    font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
}

body {
    line-height: 1.6;
}

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

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.site-banner {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.32), rgba(14, 165, 233, 0.24));
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 10px 0;
    text-align: center;
}

.site-banner__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.site-banner__content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(5, 6, 11, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
}

.brand-mark__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    gap: 24px;
    font-size: 0.94rem;
    align-items: center;
}

.primary-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    color: var(--text-soft);
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-nav__link:hover {
    color: var(--text);
    opacity: 1;
}

.primary-nav__link--highlight {
    padding: 0 10px;
    font-weight: inherit;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.94rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible,
[data-nav-dropdown][data-open="true"] .nav-dropdown__trigger {
    color: var(--text);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.nav-dropdown__chevron {
    width: 10px;
    height: 10px;
    position: relative;
    display: inline-flex;
}

.nav-dropdown__chevron::before {
    content: '';
    position: absolute;
    inset: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    transition: transform 0.2s ease;
}

[data-nav-dropdown][data-open="true"] .nav-dropdown__chevron::before {
    transform: rotate(-135deg) translateY(1px);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    display: none;
    min-width: 220px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(8, 12, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(18px);
    z-index: 120;
}

[data-nav-dropdown][data-open="true"] .nav-dropdown__menu {
    display: grid;
    gap: 10px;
}

.nav-dropdown__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    color: var(--text);
    background: rgba(99, 102, 241, 0.22);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-user {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    color: var(--text);
}

.language-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
}

.language-switch span {
    color: var(--text-soft);
}

.language-switch select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: var(--text);
    border: none;
    font-size: 0.86rem;
    padding: 0 18px 0 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switch select:focus {
    outline: none;
    box-shadow: none;
}

.language-switch select option {
    background: rgba(8, 12, 24, 0.95);
    color: #f7f8ff;
}

.language-switch::after {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.45);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.link {
    color: var(--text-soft);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link:hover {
    color: var(--text);
}

.flash-container {
    padding: 12px 0;
    background: rgba(99, 102, 241, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.flash-message {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-message:last-child {
    margin-bottom: 0;
}

.flash-success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.flash-error {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fecaca;
}

.hero {
    padding: 96px 0 64px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-value-prop {
    margin: 16px 0 0;
    font-size: clamp(1.3rem, 1vw + 1rem, 1.9rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
    max-width: 600px;
    line-height: 1.3;
}

.hero-privacy-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    max-width: 560px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 3vw + 1rem, 3.8rem);
    margin: 20px 0 0;
    line-height: 1.1;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin: 32px 0 16px;
}

.hero-footnote {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 24px;
}

.hero-media {
    position: relative;
}

.prompt-tool {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    width: 100%;
}

.prompt-tool::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(249, 115, 22, 0.14);
    pointer-events: none;
    opacity: 0.8;
    z-index: -1;
}

.prompt-tool__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.prompt-tool__header-aside {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.prompt-tool__switcher {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.prompt-tool__switcher-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(255, 238, 223, 0.78);
    font-size: 0.8rem;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.prompt-tool__switcher-link:hover,
.prompt-tool__switcher-link:focus-visible {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.2);
    color: #fff7ed;
    transform: translateY(-1px);
}

.prompt-tool__switcher-link:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.5);
    outline-offset: 2px;
}

.prompt-tool__header h3 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
}

.prompt-tool__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.prompt-tool__status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
}

.prompt-tool__status-indicator[data-state="uploading"],
.prompt-tool__status-indicator[data-state="processing"] {
    background: rgba(99, 102, 241, 0.85);
}

.prompt-tool__status-indicator[data-state="completed"] {
    background: rgba(16, 185, 129, 0.85);
}

.prompt-tool__status-indicator[data-state="failed"] {
    background: rgba(239, 68, 68, 0.85);
}

.prompt-tool__subtitle {
    margin: 6px 0 0;
    color: rgba(255, 238, 223, 0.72);
    font-size: 0.95rem;
}

.prompt-tool__field {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prompt-tool__field label {
    font-weight: 600;
    color: rgba(255, 238, 223, 0.78);
}

.prompt-tool__field textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 7, 5, 0.75);
    color: #fdf4ec;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-tool__field textarea::placeholder {
    color: rgba(255, 238, 223, 0.45);
}

.prompt-tool__field textarea:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.prompt-tool__negative {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0px;
}

.prompt-tool__negative-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.prompt-switch--inline .prompt-switch__label {
    display: none;
}

.prompt-tool__negative[hidden] {
    display: none;
}

.prompt-tool__negative label {
    font-weight: 600;
    color: rgba(255, 238, 223, 0.7);
}

.prompt-tool__negative-body[hidden] {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.prompt-tool__negative textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 7, 5, 0.65);
    color: #f7f8fc;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-tool__negative textarea::placeholder {
    color: rgba(255, 238, 223, 0.45);
}

.prompt-tool__negative textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.prompt-tool__toggles {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.prompt-tool__menu {
    position: relative;
}

.prompt-tool__menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 238, 223, 0.76);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.prompt-tool__menu-trigger::after {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    opacity: 0.8;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
}

.prompt-tool__menu[data-open="true"] .prompt-tool__menu-trigger {
    background: rgba(249, 115, 22, 0.24);
    border-color: rgba(249, 115, 22, 0.5);
    color: #fff7ed;
}

.prompt-tool__menu[data-open="true"] .prompt-tool__menu-trigger::after {
    transform: rotate(180deg);
}

.prompt-tool__menu-trigger[data-has-icon="false"] {
    gap: 6px;
}

.prompt-tool__menu-trigger[data-has-icon="false"] .prompt-tool__menu-icon {
    display: none;
}

.prompt-tool__menu-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.prompt-tool__menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 3, 0.68);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 900;
}

.prompt-tool__menu[data-open="true"] .prompt-tool__menu-overlay {
    display: flex;
}

.prompt-tool__menu-dialog {
    width: min(520px, 92%);
    max-height: 80vh;
    padding: 28px;
    border-radius: 22px;
    background: rgba(26, 18, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 64px rgba(8, 5, 3, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 910;
}

.prompt-tool__menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.prompt-tool__menu-header h4 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: 0.04em;
    color: rgba(255, 238, 223, 0.9);
}

.prompt-tool__menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #ffe6d5;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.prompt-tool__menu-close:hover {
    background: rgba(249, 115, 22, 0.22);
    border-color: rgba(249, 115, 22, 0.4);
}

.prompt-tool__menu-options {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding-right: 4px;
}

.prompt-tool__menu-dialog[data-columns="2"] .prompt-tool__menu-options {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.prompt-menu-option {
    display: grid;
    grid-template-columns: 22px 32px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff6ea;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.prompt-menu-option:hover,
.prompt-menu-option:focus-visible {
    background: rgba(249, 115, 22, 0.24);
    border-color: rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.prompt-menu-option__indicator {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #1a120c;
}

.prompt-menu-option.is-selected {
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(249, 115, 22, 0.32);
    color: #1a120c;
}

.prompt-menu-option.is-selected .prompt-menu-option__indicator {
    background: #f97316;
    border-color: #f97316;
    color: #1a120c;
}

.prompt-menu-option.is-selected .prompt-menu-option__indicator::after {
    content: "✓";
    font-weight: 700;
}

.prompt-menu-option[data-has-icon="false"] {
    grid-template-columns: 22px 1fr;
}

.prompt-menu-option[data-has-icon="false"] .prompt-menu-option__icon {
    display: none;
}

.prompt-menu-option__icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 1.1rem;
}

.prompt-menu-option__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-tool__footer {
    position: relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.prompt-tool__footer > .work-records,
.prompt-tool__footer > .prompt-tool__queue {
    flex: 1 1 100%;
}

.prompt-tool__switches {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.prompt-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 238, 223, 0.78);
    cursor: pointer;
}

.prompt-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.prompt-switch__track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease;
}

.prompt-switch__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f5efe8;
    transition: transform 0.2s ease;
}

.prompt-switch input:checked + .prompt-switch__track {
    background: rgba(249, 115, 22, 0.6);
}

.prompt-switch input:checked + .prompt-switch__track::after {
    transform: translateX(20px);
}

.prompt-tool__switch-note {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 238, 223, 0.6);
}

.prompt-tool__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.prompt-tool__results {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(15, 17, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-tool__results[hidden] {
    display: none;
}

.prompt-tool__results-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f7f8fc;
}

.prompt-tool__results-empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(245, 247, 251, 0.7);
}

.prompt-tool__results-empty[hidden] {
    display: none;
}

.prompt-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.prompt-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 14px;
    padding: 12px;
    background: rgba(8, 9, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.prompt-result__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.prompt-result__media img,
.prompt-result__media video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.prompt-result__media video {
    background: #0f121c;
}

.prompt-result__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.9rem;
    color: rgba(245, 247, 251, 0.75);
    text-align: center;
}

.prompt-result__caption {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 247, 251, 0.9);
    word-break: break-all;
}

.prompt-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-result__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8ede3;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.prompt-result__link:hover {
    background: rgba(249, 115, 22, 0.22);
    color: #fffaf1;
}

.prompt-result__link:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.6);
    outline-offset: 3px;
}

.prompt-result__link--secondary {
    background: rgba(255, 255, 255, 0.1);
}

.prompt-result__link--secondary:hover {
    background: rgba(88, 210, 255, 0.28);
}

.prompt-tool__queue {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(15, 17, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-tool__queue[hidden] {
    display: none;
}

.prompt-tool__queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prompt-tool__queue-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f7f8fc;
}

.prompt-tool__queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: #dcd7ff;
    font-size: 0.78rem;
    font-weight: 600;
}

.prompt-tool__queue-count[hidden] {
    display: none;
}

.prompt-tool__queue-empty {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(245, 247, 251, 0.7);
}

.prompt-tool__queue-empty[hidden] {
    display: none;
}

.prompt-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.prompt-queue-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: rgba(8, 9, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    min-height: 220px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.prompt-queue-card[data-state="processing"] {
    border-color: rgba(56, 189, 248, 0.35);
}

.prompt-queue-card[data-state="success"] {
    border-color: rgba(16, 185, 129, 0.35);
}

.prompt-queue-card[data-state="failed"] {
    border-color: rgba(239, 68, 68, 0.35);
}

.prompt-queue-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 10px;
}

.prompt-queue-card__prompt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(248, 237, 227, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-queue-card__status {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fbe9da;
    background: rgba(249, 115, 22, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.prompt-queue-card[data-state="processing"] .prompt-queue-card__status {
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
}

.prompt-queue-card[data-state="success"] .prompt-queue-card__status {
    background: rgba(16, 185, 129, 0.18);
    color: #d1fae5;
}

.prompt-queue-card[data-state="failed"] .prompt-queue-card__status {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.prompt-queue-card__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px 16px;
}

.prompt-queue-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(12, 16, 24, 0.7);
    color: rgba(255, 238, 223, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    text-align: center;
    padding: 12px;
}

.prompt-queue-card__image {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.prompt-queue-card--has-image .prompt-queue-card__placeholder {
    display: none;
}

.prompt-queue-card--has-image .prompt-queue-card__image {
    display: block;
}

@media (max-width: 640px) {
    .prompt-results-grid {
        grid-template-columns: 1fr;
    }

    .prompt-queue-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.prompt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #f8ede3;
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.prompt-button[data-variant="ghost"]:hover {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.4);
}

.prompt-button[data-variant="primary"] {
    background: var(--accent);
    border-color: transparent;
    color: #1b120c;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.prompt-button[data-variant="primary"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.45);
}

.prompt-button:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.6);
    outline-offset: 2px;
}

.mockup-canvas {
    display: grid;
    grid-template-rows: 1fr auto;
}

.mockup-chat {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.message {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.message.bot {
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.message.user {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 255, 0.9);
}

.mockup-preview {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.preview-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(244, 114, 182, 0.18);
    color: #fbcfe8;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

section {
    padding: 96px 0;
}

.metrics-heading {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-soft);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.metric {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-heading {
    display: grid;
    gap: 12px;
    text-align: center;
    margin-bottom: 48px;
}

.section-heading p {
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 18px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.feature-icon::after {
    content: attr(data-icon);
}

.feature-benefit {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.workspace {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.workspace-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.workspace-list {
    padding-left: 20px;
    color: var(--text-soft);
    display: grid;
    gap: 10px;
}

.workspace-card {
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 18px;
}

.workspace-card ol {
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.use-case-card {
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 14px;
}

.use-case-segment {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.92);
}

.pricing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.pricing-heading__intro {
    display: grid;
    gap: 12px;
    text-align: left;
}

.pricing-heading__intro p {
    margin: 0;
}

.pricing-heading__controls {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.billing-toggle__label {
    color: var(--text-soft);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

body[data-billing="monthly"] .billing-toggle__label--monthly,
body[data-billing="yearly"] .billing-toggle__label--yearly {
    color: var(--text);
    font-weight: 600;
}

.billing-slider {
    --slider-width: 168px;
    --slider-padding: 4px;
    position: relative;
    width: var(--slider-width);
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    touch-action: none;
}

.billing-slider:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
}

.billing-slider__track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    pointer-events: none;
}

.billing-slider__track::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--slider-width) / 2);
    height: 100%;
    border-radius: inherit;
    background: rgba(250, 204, 21, 0.9);
    transition: transform 0.25s ease;
    pointer-events: none;
}

body[data-billing="yearly"] .billing-slider__track::before {
    transform: translateX(100%);
}

.billing-slider__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.billing-slider__thumb {
    --thumb-size: 28px;
    position: absolute;
    top: 50%;
    left: var(--slider-padding);
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transform: translate(0, -50%);
    transition: transform 0.25s ease, background 0.25s ease;
}

body[data-billing="yearly"] .billing-slider__thumb {
    transform: translate(calc(var(--slider-width) - var(--thumb-size) - (var(--slider-padding) * 2)), -50%);
}

.billing-savings {
    font-weight: 600;
    color: rgba(250, 204, 21, 0.9);
    transition: opacity 0.2s ease;
}

body[data-billing="monthly"] .billing-savings {
    opacity: 0.45;
}

@media (max-width: 980px) {
    .pricing-heading {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .pricing-heading {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .pricing-heading__intro {
        text-align: center;
    }

    .pricing-heading__controls {
        width: 100%;
        justify-content: center;
    }

    .billing-toggle {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: 12px;
        row-gap: 12px;
        padding: 14px 18px;
        width: 100%;
        max-width: 360px;
    }

    .billing-toggle__label--monthly {
        justify-self: end;
    }

    .billing-toggle__label--yearly {
        justify-self: start;
    }

    .billing-slider {
        justify-self: center;
    }

    .billing-savings {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.plan-card {
    border-radius: 26px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 8px;
    position: relative;
}

.plan-highlight {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.24);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
}

.plan-badge {
    position: absolute;
    top: -18px;
    right: 24px;
    background: rgba(250, 204, 21, 0.95);
    color: #1f2937;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-card h3 {
    margin: 0;
    line-height: 1.2;
}

.plan-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.2;
}

.plan-price {
    display: grid;
    gap: 4px;
    color: var(--text-soft);
    margin: 0;
}

.plan-price--static span {
    display: inline-flex;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
}

.plan-price-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan-price-value--monthly .plan-price-amount,
.plan-price-value--yearly .plan-price-amount {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
}

.plan-price-period {
    font-size: 0.9rem;
    color: var(--text-soft);
}

body[data-billing="monthly"] .plan-price-value--yearly {
    display: none;
}

body[data-billing="yearly"] .plan-price-value--monthly {
    display: none;
}

.plan-card ul {
    padding-left: 20px;
    display: grid;
    gap: 6px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.3;
}

.stories {
    background: rgba(99, 102, 241, 0.16);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.story-card {
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 18px;
}

.story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

blockquote {
    margin: 0;
    display: grid;
    gap: 14px;
    color: var(--text-soft);
}

blockquote strong {
    color: var(--text);
}

blockquote span {
    font-size: 0.86rem;
}

.faq-list {
    display: grid;
    gap: 16px;
}

details {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] {
    background: rgba(255, 255, 255, 0.08);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 48px;
    border-radius: 32px;
    background: rgba(99, 102, 241, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.25);
}

.cta-actions {
    display: flex;
    gap: 12px;
}

.auth-page {
    padding: 120px 0;
    background: rgba(99, 102, 241, 0.05);
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(480px, 100%);
    padding: 48px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    display: grid;
    gap: 20px;
}

.account-card {
    width: min(820px, 100%);
    gap: 28px;
}

.account-header h1 {
    margin: 0 0 8px;
}

.account-info {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.account-label {
    font-size: 0.84rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-value {
    font-size: 1.05rem;
    color: var(--text);
    word-break: break-all;
}

.account-actions {
    display: grid;
    gap: 14px;
}

.account-back {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.auth-subtitle {
    margin: 0;
    color: var(--text-soft);
}

.auth-social {
    margin-top: 20px;
}

.button-google {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    font-weight: 600;
    gap: 10px;
}

.button-google__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.button-google svg {
    display: block;
}

.button-google:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    position: relative;
    padding: 0 12px;
    background: rgba(8, 11, 24, 0.8);
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 12px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-field input[type="email"],
.form-field input[type="password"] {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 6, 11, 0.7);
    color: var(--text);
    font-size: 1rem;
}

.form-field input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-field.has-error input {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.form-error {
    font-size: 0.82rem;
    color: #fecaca;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.button-full {
    width: 100%;
}

.auth-alt {
    margin: 12px 0 0;
    color: var(--text-soft);
    text-align: center;
}

.auth-alt a {
    color: var(--text);
    font-weight: 600;
}

.nav-account {
    color: var(--text);
    font-weight: 500;
}

.language-switch--mobile {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: rgba(8, 12, 24, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.language-switch--mobile span {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.language-switch--mobile select {
    width: 100%;
}

.language-switch--mobile::after {
    content: none;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(5, 6, 11, 0.65);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 200;
}

.mobile-menu__panel {
    position: relative;
    width: min(320px, 90%);
    background: rgba(7, 10, 20, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mobile-menu__section strong {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.mobile-menu__link {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu__link:last-child {
    border-bottom: none;
}

.mobile-menu__group {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.mobile-menu__group-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.mobile-menu__link--sub {
    padding-left: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: none;
    font-size: 0.9rem;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.mobile-menu__link--sub:hover,
.mobile-menu__link--sub:focus-visible {
    color: var(--text);
}

.mobile-menu__auth {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.mobile-menu__user {
    margin-bottom: 12px;
}

.mobile-menu__user-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.mobile-menu__user-email {
    font-size: 0.92rem;
    color: var(--text);
    word-break: break-all;
}

.mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(8, 12, 24, 0.9);
    cursor: pointer;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--text);
    transform-origin: center;
}

.mobile-menu__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 12, 24, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 8px 12px max(env(safe-area-inset-bottom), 8px);
    z-index: 150;
}

.mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 0.83rem;
    color: var(--text-soft);
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    min-height: 72px;
}

.mobile-nav__item:hover,
.mobile-nav__item:focus {
    color: var(--text);
    background: rgba(99, 102, 241, 0.16);
}

.mobile-nav__item[aria-expanded="true"] {
    color: var(--text);
    background: rgba(99, 102, 241, 0.16);
}

.mobile-nav__icon {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.mobile-nav__label {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
}

.mobile-nav__icon--menu {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 6h18v2H3zM3 11h18v2H3zM3 16h18v2H3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 6h18v2H3zM3 11h18v2H3zM3 16h18v2H3z'/%3E%3C/svg%3E");
}

.mobile-nav__icon--home {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 4 3 11h2v9h6v-6h2v6h6v-9h2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 4 3 11h2v9h6v-6h2v6h6v-9h2z'/%3E%3C/svg%3E");
}

.mobile-nav__icon--pricing {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 4h8l6 6-8 8-6-6z'/%3E%3Ccircle fill='%23fff' cx='9.5' cy='8.5' r='1.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 4h8l6 6-8 8-6-6z'/%3E%3Ccircle fill='%23fff' cx='9.5' cy='8.5' r='1.6'/%3E%3C/svg%3E");
}

.mobile-nav__icon--prompt {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 4h16v10H7l-3 3z'/%3E%3Cpath fill='%23fff' d='M9 7h6v2H9zm0 4h4v2H9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 4h16v10H7l-3 3z'/%3E%3Cpath fill='%23fff' d='M9 7h6v2H9zm0 4h4v2H9z'/%3E%3C/svg%3E");
}

.mobile-nav__icon--account {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2.5c-4.4 0-8 2.2-8 4.9V22h16v-2.6c0-2.7-3.6-4.9-8-4.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2.5c-4.4 0-8 2.2-8 4.9V22h16v-2.6c0-2.7-3.6-4.9-8-4.9z'/%3E%3C/svg%3E");
}

.mobile-nav__icon--toolbox {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 3a2 2 0 0 0-2 2v1H5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-2V5a2 2 0 0 0-2-2zm0 2h6v1H9zm11 6H4v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1zm-8 2.5a1.5 1.5 0 1 1-3 0H7v-1h2a1.5 1.5 0 0 1 3 0h2v1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 3a2 2 0 0 0-2 2v1H5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-2V5a2 2 0 0 0-2-2zm0 2h6v1H9zm11 6H4v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1zm-8 2.5a1.5 1.5 0 1 1-3 0H7v-1h2a1.5 1.5 0 0 1 3 0h2v1z'/%3E%3C/svg%3E");
}

body.mobile-menu-open {
    overflow: hidden;
}

body.prompt-tool--menu-open {
    overflow: hidden;
}

body.mobile-toolbox-open {
    overflow: hidden;
}

.mobile-toolbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 max(env(safe-area-inset-bottom), 16px);
    background: rgba(5, 6, 11, 0.68);
    z-index: 170;
}

.mobile-toolbox.is-open {
    display: flex;
}

.mobile-toolbox__panel {
    width: min(420px, 94%);
    border-radius: 22px 22px 0 0;
    background: rgba(7, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -20px 50px rgba(8, 12, 24, 0.5);
    padding: 24px 24px 32px;
    transform: translateY(24px);
    transition: transform 0.25s ease;
}

.mobile-toolbox.is-open .mobile-toolbox__panel {
    transform: translateY(0);
}

.mobile-toolbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-toolbox__title {
    font-size: 1rem;
    font-weight: 600;
}

.mobile-toolbox__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 28, 0.92);
    cursor: pointer;
    position: relative;
}

.mobile-toolbox__close::before,
.mobile-toolbox__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--text);
    transform-origin: center;
}

.mobile-toolbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-toolbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-toolbox__links {
    display: grid;
    gap: 12px;
}

.mobile-toolbox__link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 500;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-toolbox__link:hover,
.mobile-toolbox__link:focus-visible {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.4);
}

.reverse-section,
.upscale-section {
    padding: 80px 0;
    background: rgba(99, 102, 241, 0.12);
}

.reverse-section--page,
.upscale-section--page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.reverse-section__container,
.upscale-section__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: start;
    width: 100%;
}

.reverse-section--page .reverse-section__container,
.upscale-section--page .upscale-section__container {
    display: block;
}

.reverse-section__intro h2,
.upscale-section__intro h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.reverse-section__intro p,
.upscale-section__intro p {
    margin: 0;
    color: var(--text-soft);
    max-width: 540px;
}

.tool-directory {
    padding: 80px 0;
    background: rgba(99, 102, 241, 0.08);
}

.tool-directory .section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.tool-directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tool-directory__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(12, 15, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tool-directory__card h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.tool-directory__card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
}

.tool-directory__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.18);
    color: #fff7ed;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tool-directory__link:hover,
.tool-directory__link:focus-visible {
    background: rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.6);
    transform: translateY(-1px);
}

.tool-directory__link:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.35);
    outline-offset: 2px;
}

.tool-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: min(1100px, 92%);
    margin: 0 auto;
}

.tool-page__body {
    display: flex;
    width: 100%;
}

.tool-page__body > * {
    flex: 1 1 auto;
    width: 100%;
}

.image-compare-block {
    margin-bottom: 32px;
}

.image-compare {
    --image-compare-split: 50;
    --image-compare-split-percent: calc(var(--image-compare-split) * 1%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-compare__stage {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.image-compare__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-compare__overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--image-compare-split-percent)) 0 0);
    pointer-events: none;
}

.image-compare__overlay .image-compare__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.image-compare__divider {
    position: absolute;
    inset: 0;
    left: var(--image-compare-split-percent);
    transform: translateX(-50%);
    pointer-events: none;
}

.image-compare__divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.6);
    mix-blend-mode: screen;
}

.image-compare__handle {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(5, 6, 11, 0.7);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(5, 6, 11, 0.45);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: background 0.2s ease, transform 0.2s ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.image-compare__handle::before,
.image-compare__handle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.image-compare__handle::before {
    border-right: 12px solid currentColor;
    margin-right: 6px;
}

.image-compare__handle::after {
    border-left: 12px solid currentColor;
    margin-left: 6px;
}

.image-compare[data-dragging="true"] .image-compare__handle {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.96);
}

.image-compare__thumbnails {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.image-compare__nav {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.image-compare__nav:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.image-compare__nav svg {
    width: 18px;
    height: 18px;
    display: block;
}

.image-compare__thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 4px;
    scrollbar-width: none;
}

.image-compare__thumbs::-webkit-scrollbar {
    display: none;
}

.image-compare__thumb {
    width: 86px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.image-compare__thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.image-compare__thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.image-compare__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-compare__thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .image-compare-block {
        margin-bottom: 24px;
    }

    .image-compare {
        gap: 12px;
    }

    .image-compare__thumb {
        width: 72px;
        height: 52px;
        border-radius: 12px;
    }

    .image-compare__handle {
        width: 44px;
        height: 44px;
    }
}

.prompt-tool--reverse,
.prompt-tool--upscale {
    padding: 28px;
}

.reverse-upload,
.upscale-upload {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    background: rgba(10, 12, 20, 0.6);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reverse-upload.is-dragging,
.upscale-upload.is-dragging {
    border-color: rgba(99, 102, 241, 0.7);
    background: rgba(99, 102, 241, 0.08);
}

.reverse-upload__preview,
.upscale-upload__preview {
    position: relative;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 12, 20, 0.35);
    overflow: hidden;
}

.reverse-upload__preview[data-has-image="true"],
.upscale-upload__preview[data-has-image="true"] {
    border-style: solid;
    background: rgba(5, 7, 16, 0.55);
}

.reverse-upload__preview[data-has-image="true"] .reverse-upload__placeholder,
.upscale-upload__preview[data-has-image="true"] .upscale-upload__placeholder {
    opacity: 0;
    visibility: hidden;
}

.reverse-upload__placeholder,
.upscale-upload__placeholder {
    color: var(--text-soft);
    text-align: center;
    padding: 16px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.reverse-upload__controls,
.upscale-upload__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reverse-upload__button,
.upscale-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reverse-upload__button:hover,
.upscale-upload__button:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.08);
}

.reverse-upload__clear,
.upscale-upload__clear {
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.reverse-upload__clear[hidden],
.upscale-upload__clear[hidden] {
    display: none;
}

.reverse-upload__hint,
.upscale-upload__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.reverse-upload__preview img,
.upscale-upload__preview img {
    width: auto;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.reverse-upload__image[hidden],
.upscale-upload__image[hidden] {
    display: none;
}

.reverse-upload__preview::after,
.upscale-upload__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(5, 7, 16, 0.32);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.reverse-upload__preview[data-has-image="true"]::after,
.upscale-upload__preview[data-has-image="true"]::after {
    opacity: 0;
}

.upscale-upload__preview {
    background: transparent;
}

.upscale-upload__preview::after {
    background: transparent;
}

.upscale-upload__preview[data-has-image="true"] {
    background: transparent;
}

.upscale-upload__preview[data-has-image="true"]::after {
    background: transparent;
}

.footer {
    padding: 64px 0 48px;
    background: rgba(0, 0, 0, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.footer-grid h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .prompt-tool {
        max-width: 100%;
    }

    .primary-nav {
        display: none;
    }

    .hero {
        padding-top: 72px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-cta {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    main {
        padding-bottom: 96px;
    }

    .top-nav {
        background: rgba(5, 6, 11, 0.92);
        backdrop-filter: blur(12px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .prompt-tool {
        padding: 24px;
    }

    .prompt-tool__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .prompt-tool__header-aside {
        width: 100%;
        justify-content: flex-start;
    }

    .prompt-tool__switcher {
        justify-content: flex-start;
    }

    .tool-directory {
        padding: 56px 0;
    }

    .tool-directory .section-heading {
        text-align: left;
    }

    .tool-directory__grid {
        margin-top: 24px;
    }

    .prompt-tool__toggles {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .prompt-tool__menu {
        flex: 0 1 auto;
    }

    .prompt-tool__menu-trigger {
        width: auto;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    .prompt-tool__menu-overlay {
        padding: 16px;
    }

    .prompt-tool__menu-dialog {
        width: 100%;
        max-height: 85vh;
        padding: 24px;
    }

    .prompt-tool__menu-options {
        max-height: 60vh;
    }

    .prompt-tool__menu-dialog[data-columns="2"] .prompt-tool__menu-options {
        grid-template-columns: 1fr;
    }

    .prompt-tool__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .prompt-tool__actions {
        width: 100%;
    }

    .prompt-tool__actions .prompt-button {
        flex: 1;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-cta {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    main {
        padding-bottom: 96px;
    }

    .top-nav {
        background: rgba(5, 6, 11, 0.92);
        backdrop-filter: blur(12px);
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 36px;
    }
}
.work-records {
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(15, 17, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 800px;
  overflow: scroll;
}

.work-records__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.work-records__heading {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f7f8fc;
}

.work-records__empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(245, 247, 251, 0.72);
}
.work-records__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.work-record {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(8, 9, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    height: 100%;
}

.work-record__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.work-record__header-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.work-record__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(99, 102, 241, 0.16);
    color: #c7c9ff;
}

.work-record__accelerate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.work-record__accelerate::before {
    content: '⚡';
    margin-right: 6px;
    font-size: 0.85em;
}

.work-record__media--status .work-record__accelerate {
    margin-top: 4px;
}

.work-record__accelerate:hover,
.work-record__accelerate:focus-visible {
    color: #facc15;
    background: rgba(251, 191, 36, 0.28);
}

.work-record[data-state="processing"] .work-record__status {
    background: rgba(59, 130, 246, 0.16);
    color: #9ac8ff;
}

.work-record[data-state="failed"] .work-record__status {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.work-record[data-state="no_media"] .work-record__status,
.work-record[data-state="queued"] .work-record__status {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.85);
}

.work-record__time {
    margin: 0;
    display: block;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.65);
}

.work-record__remove {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.work-record__remove i {
    font-size: 1rem;
    pointer-events: none;
}

.work-record__remove:hover,
.work-record__remove:focus-visible {
    color: #ffffff;
}

.work-record__remove:focus-visible {
    outline: none;
}

.work-record__remove {
    appearance: none;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.75rem;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.work-record__remove:hover,
.work-record__remove:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.work-record__remove:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.6);
    outline-offset: 2px;
}

.work-record__remove:active {
    transform: translateY(0);
}

.work-record__media {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(15, 17, 25, 0.55);
    padding: 12px;
    display: block;
    min-height: 160px;
}

.work-record__media--has-media {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

.work-record__media--status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-height: 200px;
    text-align: center;
}

.work-record__media--text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: rgba(15, 17, 25, 0.65);
    min-height: auto;
}

.work-record__text-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.work-record__text-block:hover,
.work-record__text-block:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.work-record__text-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.work-record__text-content {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.work-record__text-chips {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
    max-height: 64px;
}

.work-record__text-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

.work-record__media-grid {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.work-record__media-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-record__media-grid:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.85);
    outline-offset: 2px;
}

.work-record__media-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}
.work-record__spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.18);
    border-top-color: rgba(99, 102, 241, 0.85);
    animation: work-record-spin 1s linear infinite;
    flex-shrink: 0;
}

.work-record__message {
    margin: 12px 0 0;
    font-size: 0.86rem;
    text-align: center;
    color: rgba(226, 232, 240, 0.8);
}

.work-record__media--status .work-record__message {
    margin: 0;
}

.work-record__media--status .work-record__message {
    margin: 0;
}

@keyframes work-record-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.work-record-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: rgba(6, 9, 16, 0.78);
    backdrop-filter: blur(10px);
}

.work-record-modal[hidden] {
    display: none;
}

body.work-record-modal-open {
    overflow: hidden;
}

.work-record-modal__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 320px);
    gap: 24px;
    width: 100%;
    max-width: 980px;
    max-height: min(90vh, 800px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 20px;
    background: rgba(12, 15, 24, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    color: #f8fafc;
}

.work-record-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
}

.work-record-modal__close:hover,
.work-record-modal__close:focus-visible {
    background: rgba(59, 130, 246, 0.35);
    color: #fff;
}

.work-record-modal__content {
    display: contents;
}

.work-record-modal__image {
    background: rgba(15, 18, 28, 0.85);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.work-record-modal__image img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
}

.work-record-modal__image-meta {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
    overflow-wrap: anywhere;
}

.work-record-modal__details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.work-record-modal__heading {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.work-record-modal__section-title {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.work-record-modal__prompt {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.work-record-modal__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.work-record-modal__meta-item {
    display: grid;
    grid-template-columns: 90px auto;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.9);
}

.work-record-modal__meta-item dt {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.work-record-modal__meta-item dd {
    margin: 0;
    word-break: break-word;
}

.work-record-modal__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-record-modal__open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.18);
    color: #cfe1ff;
    text-decoration: none;
    font-size: 0.88rem;
}

.work-record-modal__open:hover,
.work-record-modal__open:focus-visible {
    background: rgba(59, 130, 246, 0.32);
    color: #fff;
}

.work-record-modal__close-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: transparent;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.88rem;
    cursor: pointer;
}

.work-record-modal__close-btn:hover,
.work-record-modal__close-btn:focus-visible {
    background: rgba(148, 163, 184, 0.22);
}

.work-record-modal__dialog:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.8);
    outline-offset: 4px;
}

.turnstile-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
}

.turnstile-modal[hidden] {
    display: none !important;
}

.turnstile-modal.is-visible {
    display: block;
}

.turnstile-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 15, 0.82);
}

.turnstile-modal__dialog {
    position: relative;
    max-width: 420px;
    margin: 10vh auto 0;
    background: rgba(12, 15, 24, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(5, 7, 16, 0.55);
}

.turnstile-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.turnstile-modal__header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.turnstile-modal__close {
    appearance: none;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.turnstile-modal__close:hover,
.turnstile-modal__close:focus-visible {
    color: rgba(255, 115, 22, 0.85);
}

.turnstile-modal__description,
.turnstile-modal__hint {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.82);
}

.turnstile-modal__widget {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turnstile-modal__error {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #fca5a5;
}

.turnstile-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.turnstile-modal__cancel {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.turnstile-modal__cancel:hover,
.turnstile-modal__cancel:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.turnstile-open {
    overflow: hidden;
}

.legal {
    padding: 80px 0 120px;
}

.legal__container {
    width: min(820px, 92%);
    margin: 0 auto;
}

.legal__header {
    text-align: center;
    margin-bottom: 48px;
}

.legal__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0;
    letter-spacing: 0.02em;
}

.legal__updated {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.legal__content {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius);
    padding: 40px 48px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 28px;
}

.legal__content h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.legal__content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.legal__content ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--text-soft);
}

.legal__content li {
    margin: 0;
}

.legal__content a {
    color: #cfe1ff;
    text-decoration: none;
}

.legal__content a:hover,
.legal__content a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.legal__content strong {
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.payment-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.payment-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 11, 0.92);
}

.payment-modal__dialog {
    position: relative;
    width: min(520px, calc(100% - 32px));
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: calc(var(--radius) + 4px);
    padding: 36px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
    display: grid;
    gap: 26px;
    transform: translateY(16px);
    transition: transform 0.2s ease;
}

.payment-modal.is-open .payment-modal__dialog {
    transform: translateY(0);
}

.payment-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.payment-modal__header h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
}

.payment-modal__header p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.payment-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    color: rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-modal__close:hover,
.payment-modal__close:focus-visible {
    background: rgba(148, 163, 184, 0.18);
    color: #fff;
}

.payment-modal__plan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: rgba(216, 222, 233, 0.95);
    font-size: 0.92rem;
    line-height: 1;
}

.payment-modal__plan-label {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(129, 140, 248, 0.95);
}

.payment-modal__plan-name {
    font-weight: 600;
}

.payment-options {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.payment-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--surface-alt);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.payment-option:hover,
.payment-option:focus-visible {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.16);
    transform: translateY(-1px);
}

.payment-option[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
}

.payment-option.is-processing {
    cursor: wait;
    opacity: 0.85;
    pointer-events: none;
}

.payment-option.is-processing .payment-option__note {
    color: rgba(226, 232, 240, 0.9);
}

.payment-option[aria-disabled="true"]:hover,
.payment-option[aria-disabled="true"]:focus-visible {
    background: var(--surface-alt);
    border-color: rgba(148, 163, 184, 0.2);
}

.payment-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.18);
    color: #d0d5ff;
    font-size: 1.25rem;
}

.payment-option__icon img {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.payment-option__content {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.payment-option__title {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.payment-option__note {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}

@media (max-width: 1024px) {
    .work-record-modal__dialog {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
    }

    .work-record-modal__image {
        max-height: 55vh;
    }
}

@media (max-width: 640px) {
    .work-record-modal {
        padding: 28px 16px;
    }

    .work-record-modal__dialog {
        padding: 22px;
    }

    .work-record-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .work-records {
        padding: 16px;
    }

    .work-record {
        padding: 14px;
    }

    .work-record__media {
        padding: 10px;
    }

    .work-records__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-record__media-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .legal {
        padding: 60px 0 80px;
    }

    .legal__content {
        padding: 28px 24px;
        gap: 22px;
    }

    .legal__title {
        font-size: 2.1rem;
    }

    .legal__updated {
        font-size: 0.92rem;
    }

    .payment-modal__dialog {
        padding: 28px 24px;
        gap: 22px;
    }

    .payment-option {
        padding: 14px 16px;
    }

    .payment-option__icon {
        width: 40px;
        height: 40px;
    }

    .reverse-section__container,
    .upscale-section__container {
        grid-template-columns: 1fr;
    }

    .reverse-section__intro h2,
    .upscale-section__intro h2 {
        font-size: 1.5rem;
    }

    .prompt-tool--reverse,
    .prompt-tool--upscale {
        padding: 20px;
    }

    .reverse-upload__controls,
    .upscale-upload__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .reverse-upload__button,
    .upscale-upload__button {
        width: 100%;
        justify-content: center;
    }

    .reverse-upload__clear,
    .upscale-upload__clear {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-modal__header h2 {
        font-size: 1.4rem;
    }

    .payment-modal__plan {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .payment-option {
        padding: 12px 14px;
        gap: 12px;
    }

.payment-option__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
}
.upscale-limit-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.upscale-limit-modal[hidden] {
    display: none !important;
}

.upscale-limit-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 16, 0.72);
    backdrop-filter: blur(14px);
}

.upscale-limit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 92%);
    border-radius: 26px;
    padding: 32px;
    background: linear-gradient(145deg, rgba(20, 24, 38, 0.96), rgba(12, 15, 27, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 90px rgba(5, 9, 20, 0.55);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
}

.upscale-limit-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.upscale-limit-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(90deg);
}

.upscale-limit-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.upscale-limit-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(129, 140, 248, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.upscale-limit-modal__icon::before {
    content: "\2B06";
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.94);
}

.upscale-limit-modal__subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.upscale-limit-modal__benefits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upscale-limit-modal__benefits h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.upscale-limit-modal__benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.upscale-limit-modal__benefits li {
    display: flex;
    align-items: flex-start;
}

.upscale-limit-modal__benefits li::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    margin-right: 10px;
    margin-top: 2px;
}

.upscale-limit-modal__footer {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.upscale-limit-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.upscale-limit-modal__button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.upscale-limit-modal__button--primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(129, 140, 248, 0.9));
    border-color: transparent;
    color: rgba(5, 6, 11, 0.92);
}

.upscale-limit-modal__button--primary:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(129, 140, 248, 1));
}

@media (max-width: 520px) {
    .upscale-limit-modal__dialog {
        padding: 28px 22px 26px;
    }

    .upscale-limit-modal__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .upscale-limit-modal__icon {
        width: 48px;
        height: 48px;
    }

    .upscale-limit-modal__footer {
        grid-template-columns: 1fr;
    }
}
.quality-upsell-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 15, 0.65);
    z-index: 1100;
}

.quality-upsell-modal[hidden] {
    display: none !important;
}

.quality-upsell-modal__overlay {
    position: absolute;
    inset: 0;
}

.quality-upsell-modal__dialog {
    position: relative;
    background: #1a1210;
    color: #f7f2ea;
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quality-upsell-modal__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.quality-upsell-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f2a65a, #f58529);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-upsell-modal__icon::before {
    content: "\1F451";
    font-size: 1.6rem;
}

.quality-upsell-modal__subtitle {
    margin: 4px 0 0;
    color: rgba(247, 242, 234, 0.8);
}

.quality-upsell-modal__description {
    margin: 0 0 16px;
    color: rgba(247, 242, 234, 0.85);
}

.quality-upsell-modal__benefits {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quality-upsell-modal__benefits h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #f8e1ba;
}

.quality-upsell-modal__benefits ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(247, 242, 234, 0.9);
}

.quality-upsell-modal__benefits li + li {
    margin-top: 6px;
}

.quality-upsell-modal__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.quality-upsell-modal__button {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #f7f2ea;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.quality-upsell-modal__button:hover {
    transform: translateY(-1px);
}

.quality-upsell-modal__button--primary {
    background: linear-gradient(135deg, #f2a65a, #f58529);
    border-color: transparent;
    color: #1a1210;
}

@media (max-width: 520px) {
    .quality-upsell-modal__dialog {
        padding: 24px;
    }

    .quality-upsell-modal__header {
        flex-direction: column;
        text-align: center;
    }

    .quality-upsell-modal__footer {
        flex-direction: column-reverse;
    }
}
.account-page {
    padding: 60px 0 80px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr;
    gap: 32px;
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 28px;
    border-radius: 26px;
    background: rgba(26, 27, 38, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(9, 12, 21, 0.45);
}

.account-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 1.8rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.account-profile__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.account-profile__email {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    word-break: break-all;
}

.account-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 18px 20px;
}

.account-metric {
    display: grid;
    gap: 6px;
}

.account-metric__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.52);
}

.account-metric__value {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.account-membership-hint {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-soft);
}

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

.account-shortcuts__item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.account-shortcuts__item:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.35);
}

.account-sidebar__actions {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.account-content {
    display: grid;
    gap: 26px;
}

.account-panel {
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(12, 15, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(8, 12, 24, 0.32);
    display: grid;
    gap: 20px;
}

.account-panel__header {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 980px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .account-sidebar {
        padding: 24px;
    }

    .account-metrics {
        grid-template-columns: 1fr;
    }

    .account-shortcuts {
        grid-template-columns: 1fr;
    }

    .account-panel__header,
    .account-panel__body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.account-panel__title {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.account-panel__subtitle {
    margin: 0;
    color: var(--text-soft);
}

.account-panel__body {
    padding: 0 30px 30px;
}

.account-records-section {
    padding: 0;
}
 
.account-records-section .work-records {
    margin: 0;
}

.account-section {
    padding: 24px;
    border-radius: 20px;
    background: rgba(26, 27, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 20px;
}

.account-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.account-section__header h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.account-section__header p {
    margin: 0;
    color: var(--text-soft);
}

.account-plan {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-plan__status {
    margin: 10px 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.account-plan__status--paid {
    color: #0fb37c;
}

.account-plan__status--free {
    color: #f97316;
}

.account-plan__note {
    margin: 0;
    color: var(--text-soft);
}

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

.account-help {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.account-records {
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 20px;
    background: rgba(16, 18, 30, 0.65);
}

.work-records--standalone .work-records__header h3 {
    font-size: 1rem;
}

.work-records--standalone .work-records__list {
    max-height: 360px;
    overflow-y: auto;
}

.account-section + .account-section {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .account-section {
        padding: 20px;
    }

    .account-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-records {
        padding: 16px;
    }
}
