/* Orijinal marka fontu: public/fonts/ENGRGOTN.TTF dosyasını ekleyince @font-face bloğunu geri açın. */

:root {
    --bsign-bg: #27272A;
    --bsign-accent: #363391;
    --bsign-text: #f4f4f5;
    --bsign-muted: #a1a1aa;
    --bsign-card: #323238;
    --bsign-border: #3f3f46;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bsign-bg);
    color: var(--bsign-text);
    min-height: 100vh;
}

a {
    color: #c4b5fd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.site-header {
    --site-header-height: 3.35rem;
    background: #1f1f23;
    border-bottom: 1px solid var(--bsign-border);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 0.55rem 4vw;
    max-width: 1320px;
    margin: 0 auto;
}

.logo {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    line-height: 1.2;
}

.logo:hover {
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}

.nav-cluster {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.22rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.nav-cluster__sep {
    display: block;
    width: 1px;
    height: 1.35rem;
    margin: 0 0.05rem;
    flex: none;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14);
}

.nav-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.08rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-primary::-webkit-scrollbar {
    display: none;
}

.nav-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex: none;
    flex-shrink: 0;
    padding: 0;
    padding-left: 0.15rem;
    margin-left: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.nav-actions__sep {
    display: block;
    width: 1px;
    height: 1.35rem;
    margin: 0 0.1rem;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.nav-actions .locale-switcher {
    border: none;
    background: transparent;
    padding: 0.05rem;
    gap: 0.1rem;
}

.nav-link {
    color: rgba(242, 242, 240, 0.78);
    text-decoration: none;
    font-size: 0.78125rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.25;
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.nav-link.is-active {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-actions .nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 0.75rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cluster {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        width: 100%;
        border-radius: 12px;
        padding: 0.45rem 0.55rem;
        gap: 0.5rem;
    }

    .nav-cluster__sep {
        display: none;
    }

    .nav-primary {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .nav-primary .nav-link {
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-wrap {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-link {
        padding: 0.34rem 0.45rem;
        font-size: 0.75rem;
    }

    .theme-toggle--nav .theme-toggle__label {
        display: none;
    }

    .theme-toggle--nav {
        padding: 0.35rem 0.45rem;
    }
}

@media (min-width: 769px) {
    .nav-wrap {
        padding-left: 3vw;
        padding-right: 3vw;
    }
}

.card {
    background: var(--bsign-card);
    border: 1px solid var(--bsign-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--bsign-accent);
    color: #fff;
}

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

.btn-secondary {
    background: #52525b;
    color: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--bsign-muted);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    background: #18181b;
    border: 1px solid var(--bsign-border);
    color: var(--bsign-text);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-family: inherit;
}

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

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #451a1a;
    border: 1px solid #991b1b;
}

.alert-success {
    background: #14532d;
    border: 1px solid #166534;
}

.progress-wrap {
    margin: 1rem 0;
    display: none;
}

.progress-wrap.active {
    display: block;
}

.progress-bar {
    height: 10px;
    background: #18181b;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, var(--bsign-accent));
    transition: width 0.35s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.result-design-group {
    margin-bottom: 2rem;
    min-width: 0;
}

.result-card,
.result-card--view {
    min-width: 0;
}

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

@media (min-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .results-grid--views {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.studio-results-lead {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: rgba(242, 242, 240, 0.62);
}

.result-design-group:last-child {
    margin-bottom: 0;
}

.result-design-title {
    margin: 0 0 0.85rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.result-view-label {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.55);
}

.result-placeholder {
    aspect-ratio: 2 / 3;
    background: #18181b;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #71717a;
    font-size: 0.875rem;
}

.result-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
    background: #18181b;
    /* Üretilen kareler 2:3 portre; eski kare görseller kırpılmadan (contain) gösterilir. */
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

.result-image-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 10px;
    text-align: left;
}

.result-image-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.result-image-trigger img {
    width: 100%;
    pointer-events: none;
}

.image-lightbox {
    margin: auto;
    padding: 0;
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    color: #f2f2f0;
}

.image-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.image-lightbox__panel {
    box-sizing: border-box;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 1.5rem;
    gap: 0.75rem;
}

.image-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border: none;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #f2f2f0;
    background: rgba(255, 255, 255, 0.12);
}

.image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.image-lightbox__nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    border: none;
    border-radius: 8px;
    width: 2.75rem;
    height: 3.25rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #f2f2f0;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease;
}

.image-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.image-lightbox__nav:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 2px;
}

.image-lightbox__nav--prev {
    left: max(0.5rem, env(safe-area-inset-left));
}

.image-lightbox__nav--next {
    right: max(0.5rem, env(safe-area-inset-right));
}

.image-lightbox__nav[hidden] {
    display: none;
}

.image-lightbox__img {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: min(86vh, 86dvh);
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.image-lightbox__caption {
    margin: 0;
    max-width: min(96vw, 720px);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.75);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.result-edit-form {
    display: inline;
    margin: 0;
}

.studio-edit-banner {
    margin-bottom: 1rem;
}

.studio-edit-banner__title {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.studio-edit-banner__lead {
    margin: 0 0 0.75rem;
    color: var(--bsign-muted);
    font-size: 0.9rem;
}

.studio-edit-reference {
    max-width: 220px;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bsign-border);
}

.studio-edit-reference img {
    display: block;
    width: 100%;
    height: auto;
}

.studio-edit-exit-form {
    margin: 0;
}

.pattern-shell {
    max-width: 1180px;
}

.pattern-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

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

    .pattern-actions-panel {
        position: static;
        order: -1;
    }
}

.pattern-actions-panel h2,
.pattern-gallery-panel h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.pattern-actions-panel {
    position: sticky;
    top: 1rem;
}

.pattern-actions-panel.is-job-running {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.pattern-actions-panel.is-job-running h2::after {
    content: '';
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.45em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    animation: pattern-panel-spin 0.65s linear infinite;
    vertical-align: -0.05em;
}

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

.pattern-actions-panel.is-job-running .pattern-selection-summary,
.pattern-actions-panel.is-job-running .pattern-actions-note,
.pattern-actions-panel.is-job-running .pattern-submit-btn {
    display: none;
}

.pattern-actions-panel.is-job-running .pattern-download-ready {
    display: none !important;
}

.pattern-actions-panel.is-job-running .pattern-progress {
    display: block !important;
}

.pattern-progress {
    margin-bottom: 0.75rem;
}

.pattern-progress .progress-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pattern-progress .progress-bar > span {
    position: relative;
    width: 0;
    transition: width 1.05s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 45%, var(--bsign-accent, #a3e635) 100%);
    background-size: 200% 100%;
    animation: pattern-progress-fill-glow 2.4s ease-in-out infinite;
}

.pattern-progress .progress-bar > span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 65%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: pattern-progress-shine 2.2s ease-in-out infinite;
    pointer-events: none;
}

.pattern-progress .progress-bar > span.is-complete {
    animation: none;
    transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pattern-progress-shine {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

@keyframes pattern-progress-fill-glow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pattern-progress:not(.active) {
    display: none;
}

.pattern-stage-label {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(242, 242, 240, 0.75);
}

.pattern-download-ready {
    margin-bottom: 0.85rem;
}

.pattern-download-ready .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.pattern-selection-summary {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.pattern-selection-summary__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.5);
    margin-bottom: 0.35rem;
}

.pattern-selection-summary__value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    word-break: break-word;
}

.pattern-actions-note {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(242, 242, 240, 0.55);
}

.pattern-submit-btn {
    width: 100%;
    margin: 0;
}

.pattern-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pattern-gallery-header {
    margin-bottom: 0.75rem;
}

.pattern-gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pattern-design-count {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.6);
}

.pattern-search-field {
    flex: 1 1 200px;
    max-width: 320px;
    margin: 0;
}

.pattern-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
}

.pattern-search-input::placeholder {
    color: rgba(242, 242, 240, 0.4);
}

.pattern-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.pattern-design-gallery {
    max-height: min(70vh, 720px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    overflow-anchor: none;
}

.pattern-design-card.is-hidden-by-search {
    display: none !important;
}

.pattern-design-card:not(.is-selected) .proposal-design-card-check {
    display: none;
}

.pattern-design-card.is-selected .proposal-design-card-check {
    display: block;
    background: #fff;
    color: #111;
}

.pattern-submit-btn:disabled,
.pattern-submit-btn[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.15);
}

.pattern-gallery-empty {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.55);
    text-align: center;
}

.pattern-is-hidden {
    display: none !important;
}

.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;
}

.result-card--view .result-actions {
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.result-card--view .result-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.45rem 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.result-card--view .result-edit-form {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.result-card--view .result-edit-form .btn {
    width: 100%;
}

.result-actions .btn {
    max-width: 100%;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.thumb-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bsign-border);
}

.thumb-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

body:has(.bsign-dark-shell) .thumb-grid a {
    border-color: rgba(255, 255, 255, 0.14);
    transition: border-color 160ms ease, transform 160ms ease;
}

body:has(.bsign-dark-shell) .thumb-grid a:hover {
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.thumb-placeholder {
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(242, 242, 240, 0.45);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
}

.history-panel,
.favorites-panel {
    margin-top: 0.25rem;
}

body:has(.bsign-dark-shell) .result-card img,
body:has(.bsign-dark-shell) .result-image-trigger {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.history-sort-form {
    margin-bottom: 1.15rem;
}

.history-sort-form label {
    display: block;
    margin-bottom: 0.35rem;
}

.history-empty {
    grid-column: 1 / -1;
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    color: rgba(242, 242, 240, 0.55);
}

.history-pagination {
    margin-top: 1.25rem;
}

body:has(.bsign-dark-shell) .history-pagination nav {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
}

body:has(.bsign-dark-shell) .history-pagination a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

body:has(.bsign-dark-shell) .history-pagination a:hover {
    color: #fff;
    text-decoration: underline;
}

body:has(.bsign-dark-shell) .history-pagination span {
    color: rgba(242, 242, 240, 0.52);
}

html:has(.home-paper-hero),
html:has(.auth-shell),
html:has(.bsign-dark-shell) {
    background: #08080a;
    overflow-x: clip;
}

body:has(.bsign-dark-shell) {
    background: #08080a;
    min-height: 100dvh;
    overflow-x: clip;
}

body:has(.bsign-dark-shell) .site-header {
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body:has(.bsign-dark-shell) main.container {
    max-width: min(1100px, 92vw);
    padding-bottom: 2.5rem;
    min-width: 0;
    overflow-x: clip;
}

.bsign-dark-shell {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.bsign-dark-shell-inner {
    position: relative;
    z-index: 1;
    font-family: "Inter", system-ui, sans-serif;
    max-width: 100%;
    min-width: 0;
}

.bsign-page-title {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
    margin: 0 0 0.75rem;
}

body:has(.bsign-dark-shell) .card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

body:has(.bsign-dark-shell) .card h2 {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

body:has(.bsign-dark-shell) label,
body:has(.bsign-dark-shell) legend {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

body:has(.bsign-dark-shell) input[type="text"],
body:has(.bsign-dark-shell) input[type="email"],
body:has(.bsign-dark-shell) input[type="password"],
body:has(.bsign-dark-shell) input[type="tel"],
body:has(.bsign-dark-shell) input[type="number"],
body:has(.bsign-dark-shell) input[type="file"],
body:has(.bsign-dark-shell) select,
body:has(.bsign-dark-shell) textarea {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    padding: 0.55rem 0.65rem;
    box-sizing: border-box;
}

body:has(.bsign-dark-shell) input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

body:has(.bsign-dark-shell) input[type="number"]::-webkit-outer-spin-button,
body:has(.bsign-dark-shell) input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body:has(.bsign-dark-shell) input::placeholder {
    color: rgba(242, 242, 240, 0.38);
}

body:has(.bsign-dark-shell) input:focus,
body:has(.bsign-dark-shell) select:focus,
body:has(.bsign-dark-shell) textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

body:has(.bsign-dark-shell) select option {
    color: #18181b;
    background: #fff;
}

html[data-theme="dark"] body:has(.bsign-dark-shell) select option {
    color: #fff;
    background: #18181b;
}

body:has(.bsign-dark-shell) .quota-badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(242, 242, 240, 0.72);
    font-family: "Inter", system-ui, sans-serif;
}

body:has(.bsign-dark-shell) .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
}

body:has(.bsign-dark-shell) .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

body:has(.bsign-dark-shell) .alert-error {
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

body:has(.bsign-dark-shell) .alert-success {
    background: rgba(20, 83, 45, 0.35);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.bsign-dark-submit {
    margin-top: 1rem;
}

.auth-submit:disabled,
.bsign-dark-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

body:has(.auth-shell) {
    background: #08080a;
    min-height: 100dvh;
}

body:has(.auth-shell) .site-header {
    display: none;
}

body:has(.auth-shell) main.container {
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-shell {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 100%;
    background: #08080a;
}

.auth-bg-wordmark {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-wordmark h1 {
    display: none;
}

.auth-bg-wordmark .brand-logo-img--bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    width: min(88vw, 52rem);
    max-width: 100%;
    height: auto;
    opacity: 0.14;
    mix-blend-mode: screen;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.auth-bg-wordmark .brand-logo-img--nav-light {
    display: none;
}

html[data-theme="light"] .auth-bg-wordmark .brand-logo-img--nav-dark {
    display: none;
}

html[data-theme="light"] .auth-bg-wordmark .brand-logo-img--nav-light {
    display: block;
}

.brand-logo-img {
    display: block;
    height: auto;
    max-width: 100%;
}

.brand-logo-img--nav-light {
    display: none;
}

html[data-theme="light"] .brand-logo-img--nav-dark {
    display: none;
}

html[data-theme="light"] .brand-logo-img--nav-light {
    display: block;
}

.logo .brand-logo-img {
    width: auto;
    height: 1.65rem;
}

.logo.admin-brand .brand-logo-img {
    height: 1.45rem;
}

.error-shell-logo .brand-logo-img {
    height: 1.75rem;
    margin-bottom: 1.25rem;
}

.auth-shell .auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.auth-shell .auth-card h2 {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.auth-shell .auth-card label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(242, 242, 240, 0.72);
}

.auth-form .auth-field {
    margin-top: 0.75rem;
}

.auth-form .auth-form-grid {
    margin-top: 0;
}

.auth-form .auth-form-grid .auth-field {
    margin-top: 0;
}

.auth-shell .auth-card input[type="text"],
.auth-shell .auth-card input[type="email"],
.auth-shell .auth-card input[type="password"],
.auth-shell .auth-card input[type="tel"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-shell .auth-card input::placeholder {
    color: rgba(242, 242, 240, 0.38);
}

.auth-shell .auth-card input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.auth-remember {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.75rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(242, 242, 240, 0.62);
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #f2f2f0;
}

.auth-submit {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.82rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #101012;
    background: linear-gradient(180deg, #f6f6f4 0%, #ececea 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 10px 28px rgba(0, 0, 0, 0.28);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.auth-submit:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f0 100%);
    border-color: rgba(255, 255, 255, 0.58);
    transform: translateY(-1px);
}

.auth-footer-note {
    margin-top: 1.15rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(242, 242, 240, 0.52);
    text-align: center;
}

.auth-footer-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
}

.auth-footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

body:has(.home-paper-hero) {
    display: flex;
    flex-direction: column;
    background: #08080a;
    min-height: 100dvh;
    overflow-x: hidden;
}

body:has(.home-paper-hero) .site-header {
    display: none;
}

.home-paper-topbar {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 25;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    pointer-events: auto;
}

.home-paper-topbar .locale-switcher,
.home-paper-topbar .theme-toggle--home {
    position: static;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

.home-paper-topbar .locale-switcher {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.home-paper-hero.is-iframe-loading .home-paper-iframe {
    opacity: 0.88;
}

.home-paper-hero .home-paper-iframe {
    opacity: 1;
    transition: opacity 0.12s ease-out;
}

.home-paper-hero {
    position: relative;
    flex: 1;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    overflow: hidden;
    background: #08080a;
}

.home-paper-root,
.home-paper-root .shader-frame,
.home-paper-root .threeui-background,
.home-paper-root .three-d-paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    contain: layout paint;
}

.shader-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #08080a;
}

.home-paper-iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #08080a;
}

.home-paper-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 64px;
    display: flex;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

.home-paper-cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.65rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 12px 40px rgba(0, 0, 0, 0.35);
    transition:
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.home-paper-cta:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 16px 48px rgba(0, 0, 0, 0.42);
    transform: translateY(-1px);
}

.home-paper-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.125rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.home-paper-footer a,
.home-paper-footer button {
    pointer-events: auto;
    color: rgba(242, 242, 240, 0.72);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.home-paper-footer a:hover,
.home-paper-footer button:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.home-paper-footer-sep {
    color: rgba(242, 242, 240, 0.28);
    user-select: none;
}

.home-paper-footer-logout {
    display: inline;
    margin: 0;
}

body:has(.home-paper-hero) main.container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.quota-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(242, 242, 240, 0.78);
    white-space: nowrap;
}

.site-header .quota-badge {
    font-variant-numeric: tabular-nums;
}

.nav-credits-widget {
    position: relative;
    margin-left: 0;
}

.site-header .nav-credits-remaining {
    margin: 0;
    cursor: pointer;
    font: inherit;
    font-family: "Inter", system-ui, sans-serif;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header .nav-credits-remaining:hover,
.nav-credits-widget.is-open .nav-credits-remaining {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
}

.nav-credits-popover {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 60;
    min-width: 15.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(28, 28, 32, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    font-family: "Inter", system-ui, sans-serif;
}

.nav-credits-popover__list {
    margin: 0;
    padding: 0;
}

.nav-credits-popover__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.55rem;
}

.nav-credits-popover__row:last-of-type {
    margin-bottom: 0;
}

.nav-credits-popover__row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(242, 242, 240, 0.72);
}

.nav-credits-popover__row dd {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.96);
}

.nav-credits-popover__row--meta dt,
.nav-credits-popover__row--meta dd {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(242, 242, 240, 0.5);
}

.nav-credits-popover__row--meta dd {
    font-size: 0.8125rem;
}

.nav-credits-popover__link {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    text-align: center;
}

.nav-credits-popover__link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-credits-popover {
        right: 0;
        left: auto;
    }
}

.page-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.page-title-row .bsign-page-title {
    margin-bottom: 0;
}

.page-quota-badge {
    margin-left: auto;
}

.credits-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.credits-page-head__main {
    flex: 1 1 16rem;
    min-width: 0;
}

.credits-page-head__main .bsign-page-title {
    margin-bottom: 0.5rem;
}

.credits-balance-panel--aside {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: min(100%, 14rem);
}

.site-company-badge {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(31, 31, 35, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.site-company-badge:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(40, 40, 45, 0.96);
    transform: translateY(-1px);
}

.site-company-badge:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.site-company-badge.is-active {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-company-badge-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}

.site-company-badge-name {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(242, 242, 240, 0.92);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    .site-company-badge {
        right: 0.65rem;
        bottom: 0.65rem;
        padding: 0.45rem 0.65rem;
    }

    .site-company-badge-logo {
        width: 32px;
        height: 32px;
    }

    .site-company-badge-name {
        font-size: 0.75rem;
    }
}

.auth-subsection-title {
    margin: 1.35rem 0 0.65rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.profile-field-hint,
.auth-shell .profile-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(242, 242, 240, 0.52);
}

.profile-page {
    max-width: 640px;
    margin: 0 auto;
}

.profile-card {
    padding: 1.35rem 1.25rem 1.5rem;
}

.profile-company-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-company-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-company-logo--placeholder {
    background: rgba(255, 255, 255, 0.08);
}

.profile-company-label {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(242, 242, 240, 0.48);
}

.profile-company-name {
    margin: 0.2rem 0 0;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

.profile-section-title {
    margin: 1.25rem 0 0.75rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.profile-section-title:first-of-type {
    margin-top: 0;
}

body:has(.bsign-dark-shell) .profile-form input[type="file"] {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.85);
}

.collapsible summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.studio-collapsible {
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
}

.studio-collapsible summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(242, 242, 240, 0.72);
    margin-bottom: 0;
    transition: color 160ms ease;
}

.studio-collapsible summary::before {
    content: "+";
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    transition: background 160ms ease, border-color 160ms ease;
}

.studio-collapsible[open] summary {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.65rem;
}

.studio-collapsible[open] summary::before {
    content: "−";
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.studio-collapsible summary:hover {
    color: rgba(255, 255, 255, 0.9);
}

.studio-collapsible textarea {
    margin-top: 0;
    min-height: 5.5rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.studio-collapsible textarea::placeholder {
    color: rgba(242, 242, 240, 0.38);
}

/* —— Studio wizard —— */
.studio-wizard {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.wizard-progress-dot {
    width: 2.25rem;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 200ms ease;
}

.wizard-progress-dot.is-done,
.wizard-progress-dot.is-current {
    background: rgba(255, 255, 255, 0.72);
}

.wizard-step-label {
    text-align: center;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
}

.wizard-card {
    padding: 1.5rem 1.35rem 1.35rem;
    animation: wizard-card-in 220ms ease-out both;
}

@keyframes wizard-card-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-card.is-busy {
    opacity: 0.88;
    pointer-events: none;
}

.wizard-title {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
    margin: 0 0 0.35rem;
}

.wizard-lead {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.wizard-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

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

.wizard-tile-grid--dense {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.wizard-tile {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wizard-tile input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.wizard-tile-body {
    position: relative;
    z-index: 1;
    display: block;
    padding: 1rem 1rem;
    pointer-events: none;
}

.wizard-tile-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.wizard-tile-body--visual {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wizard-tile-body--stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 0.9rem 0.65rem;
}

.wizard-tile-body--stack .wizard-tile-title {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.wizard-tile-body--stack .wizard-tile-sub {
    margin-top: 0.15rem;
}

.wizard-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 12px;
    font-size: 1.55rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wizard-tile-grid--dense .wizard-tile-icon {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.35rem;
    border-radius: 10px;
}

.wizard-tile:has(input:checked) .wizard-tile-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.wizard-tile-icon--denim {
    filter: hue-rotate(195deg) saturate(1.35) brightness(1.05);
}

.wizard-tile-icon--tailored,
.wizard-tile-icon--pleated {
    filter: saturate(0.35) brightness(1.15) contrast(1.05);
}

.wizard-tile-icon--linen {
    filter: sepia(0.45) saturate(0.85) brightness(1.08);
}

.wizard-tile-icon--cord {
    filter: sepia(0.55) saturate(1.1) hue-rotate(-8deg);
}

.wizard-tile-icon--cargo {
    filter: hue-rotate(85deg) saturate(0.9) brightness(0.95);
}

.wizard-tile-icon--chino {
    filter: sepia(0.35) saturate(0.75) brightness(1.02);
}

.wizard-tile-icon--jogger,
.wizard-tile-icon--sweat {
    filter: saturate(0.5) brightness(1.08);
}

.wizard-tile-icon--wide {
    transform: scaleX(1.08);
}

.wizard-tile-body--visual:not(.wizard-tile-body--stack) {
    padding: 0.85rem 1rem;
}

.wizard-tile-body--visual:not(.wizard-tile-body--stack) .wizard-tile-title {
    flex: 1;
    min-width: 0;
}

.wizard-tile-title {
    display: block;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
}

.studio-wizard .wizard-tile,
.studio-wizard .wizard-tile .wizard-tile-title,
.studio-wizard .wizard-tile .wizard-tile-sub {
    color: #fff;
}

.wizard-chip--emoji {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wizard-chip-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.wizard-tile-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.88);
}

.wizard-tile:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.wizard-tile.is-selected,
.wizard-tile:has(input:checked) {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
}

.wizard-actions--back-only {
    justify-content: flex-start;
}

.wizard-actions--end {
    justify-content: flex-end;
}

.wizard-form.is-submitting {
    opacity: 0.72;
    pointer-events: none;
}

.wizard-notice {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 232, 210, 0.95);
    background: rgba(180, 72, 48, 0.18);
    border: 1px solid rgba(255, 160, 120, 0.28);
}

.wizard-notice[hidden] {
    display: none;
}

.wizard-card--warn {
    animation: wizard-card-warn 420ms ease;
}

@keyframes wizard-card-warn {
    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-3px);
    }

    40%,
    80% {
        transform: translateX(3px);
    }
}

.wizard-selection-pulse {
    animation: wizard-selection-pulse 520ms ease;
}

@keyframes wizard-selection-pulse {
    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 0 0 2px rgba(255, 160, 120, 0.35);
        border-radius: 14px;
    }
}

.wizard-back {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.wizard-back:hover {
    color: #fff;
    text-decoration: none;
}

.wizard-next {
    margin-top: 1.35rem;
    width: 100%;
}

.wizard-actions .wizard-next {
    margin-top: 0;
    width: auto;
    min-width: 9rem;
}

.wizard-next:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-next--reveal:not([hidden]) {
    animation: wizard-next-in 200ms ease-out both;
}

@keyframes wizard-next-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-chip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.wizard-chip:hover,
.wizard-chip.is-selected {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.wizard-color-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.65rem, 1fr));
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.wizard-swatch {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    background: transparent;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.wizard-swatch-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--swatch-color);
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.wizard-swatch-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(0, 0, 0, 0.18) 100%
    );
    pointer-events: none;
}

.wizard-swatch-check {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.55rem;
    height: 0.95rem;
    border: solid rgba(255, 255, 255, 0.95);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0.4);
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
}

.wizard-swatch:hover {
    transform: translateY(-2px);
}

.wizard-swatch:hover .wizard-swatch-fill {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.wizard-swatch.is-selected {
    transform: translateY(-1px);
}

.wizard-swatch.is-selected .wizard-swatch-fill {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 0 0 4px rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.wizard-swatch.is-selected .wizard-swatch-check {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.wizard-color-manual-label {
    display: block;
    margin-top: 1.15rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.wizard-color-manual-input {
    margin-top: 0.45rem;
}

.studio-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.studio-summary-title {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

.studio-summary-hint {
    margin: 0 0 1rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.52);
    line-height: 1.45;
}

.studio-restart-form {
    margin: 0;
}

.studio-restart-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: rgba(242, 242, 240, 0.72);
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.studio-restart-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.studio-selection-grid {
    margin-bottom: 0.5rem;
}

.studio-detail-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.studio-detail-col--full {
    grid-column: 1 / -1;
}

.studio-ref-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.52);
}

@media (max-width: 768px) {
    .wizard-tile-grid--2 {
        grid-template-columns: 1fr;
    }

    .studio-detail-row {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wizard-actions .wizard-next {
        width: 100%;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.pricing-card {
    border: 1px solid var(--bsign-border);
    border-radius: 12px;
    padding: 1rem;
    background: var(--bsign-card);
}

.pricing-card.featured {
    border-color: #818cf8;
}

.toggle-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-row button {
    flex: 1;
}

.toggle-row button.active {
    background: var(--bsign-accent);
    color: #fff;
}

.subscribe-lead {
    margin: 0 0 1rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(242, 242, 240, 0.58);
}

.subscribe-panel {
    margin-top: 0.25rem;
}

body:has(.bsign-dark-shell) .subscribe-toggle-row .billing-toggle {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(242, 242, 240, 0.72);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body:has(.bsign-dark-shell) .subscribe-toggle-row .billing-toggle.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

body:has(.bsign-dark-shell) .pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.15rem;
}

body:has(.bsign-dark-shell) .pricing-card.featured {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body:has(.bsign-dark-shell) .pricing-card h3 {
    margin: 0 0 0.5rem;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.94);
}

body:has(.bsign-dark-shell) .pricing-card .plan-price {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

body:has(.bsign-dark-shell) .pricing-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.62);
    line-height: 1.55;
}

.subscribe-contact {
    margin: 1.5rem 0 0;
    text-align: center;
}

.subscribe-contact-btn {
    display: inline-flex;
    width: auto;
    min-width: min(100%, 320px);
    justify-content: center;
    text-decoration: none;
}

.heart.active {
    color: #f472b6;
}

.credits-balance-panel {
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
}

.credits-balance-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: rgba(242, 242, 240, 0.72);
}

.credits-balance-line strong {
    font-size: 1.75rem;
    color: #fff;
}

.credits-balance-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.5);
}

.credits-section-lead {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(242, 242, 240, 0.58);
}

.credits-tabs {
    margin-top: 0.5rem;
}

.credits-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
    padding: 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.credits-tabs__tab {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(242, 242, 240, 0.68);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.credits-tabs__tab:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
}

.credits-tabs__tab.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.credits-tabs__tab:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.85);
    outline-offset: 2px;
}

.credits-tabs__panel {
    display: none;
}

.credits-tabs__panel.is-active {
    display: block;
}

.credits-tabs__panel > .card,
.credits-tabs__panel > .alert,
.credits-tabs__panel > .credits-sandbox-badge {
    margin-bottom: 1rem;
}

.credits-tabs__panel > *:last-child {
    margin-bottom: 0;
}

.credits-limits-panel {
    margin-bottom: 1rem;
    padding: 1.35rem 1.4rem 1.25rem;
    overflow: hidden;
}

.credits-limits-head {
    margin-bottom: 1.25rem;
}

.credits-limits-head__title {
    margin: 0 0 0.35rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.94);
}

.credits-limits-head__lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(242, 242, 240, 0.55);
}

.credits-limits-summary {
    display: grid;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 55%),
        rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
    .credits-limits-summary {
        grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(0, 12rem);
        align-items: center;
    }
}

.credits-limits-hero__label {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.52);
}

.credits-limits-hero__value {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.credits-limits-hero__number {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}

.credits-limits-hero__unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(242, 242, 240, 0.55);
}

.credits-limits-meter__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.credits-limits-meter__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.85), rgba(129, 140, 248, 0.95));
    transition: width 0.35s ease;
}

.credits-limits-meter__caption {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.58);
}

.credits-limits-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0;
}

@media (min-width: 768px) {
    .credits-limits-kpis {
        grid-template-columns: 1fr;
    }
}

.credits-limits-kpi {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.credits-limits-kpi dt {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.48);
}

.credits-limits-kpi dd {
    margin: 0;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.credits-limits-rules {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-limits-rules__title {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.45);
}

.credits-limits-rules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.credits-limits-rules__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.credits-limits-rules__row:last-child {
    border-bottom: none;
}

.credits-limits-rules__label {
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.62);
}

.credits-limits-rules__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
}

.credits-limits-rules__value--badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.credits-empty {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.52);
}

.credits-usage-panel {
    margin-bottom: 1rem;
}

.credits-usage-item {
    align-items: flex-start;
}

.credits-usage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.65rem;
    flex-shrink: 0;
}

.credits-usage-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}

.credits-history-status--spent {
    color: rgba(251, 191, 36, 0.95);
}

.credits-purchase-panel {
    margin-top: 1rem;
}

.credits-sandbox-badge {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 214, 120, 0.9);
}

.credits-packages-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.credits-buy-btn {
    margin-top: 1rem;
    width: 100%;
}

.credits-history {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.credits-history-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.62);
}

.credits-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.credits-history-item__details {
    flex: 1 1 auto;
    min-width: 0;
}

.credits-history-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.credits-history-status__icon {
    display: block;
    flex-shrink: 0;
}

.credits-history-status--paid {
    color: #4ade80;
}

.credits-history-status--failed {
    color: #f87171;
}

.credits-history-status--pending {
    color: #fbbf24;
}

.iyzico-checkout-host {
    min-height: 420px;
}

.credits-result-card {
    max-width: 420px;
}

.iyzico-pay-shell {
    max-width: 960px;
}

.iyzico-pay-layout {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 860px) {
    .iyzico-pay-layout {
        grid-template-columns: 1fr;
    }
}

.iyzico-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.iyzico-step {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(242, 242, 240, 0.45);
}

.iyzico-step.is-active {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.iyzico-step.is-done {
    color: rgba(160, 220, 160, 0.9);
    border-color: rgba(160, 220, 160, 0.35);
}

.iyzico-panel {
    display: none;
}

.iyzico-panel.is-visible {
    display: block;
}

.iyzico-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.iyzico-panel-lead {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.55);
}

.iyzico-panel label {
    display: block;
    margin: 0.65rem 0 0.3rem;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.62);
}

.iyzico-panel input {
    width: 100%;
    box-sizing: border-box;
}

.iyzico-pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.65rem;
}

.iyzico-threeds-card {
    padding: 0.25rem 0;
}

.iyzico-threeds-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.iyzico-threeds-bank {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.iyzico-threeds-brand {
    font-size: 0.75rem;
    color: rgba(242, 242, 240, 0.5);
}

.iyzico-threeds-amount {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #fff;
}

.iyzico-threeds-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(242, 242, 240, 0.62);
    margin: 0 0 1rem;
}

.iyzico-threeds-masked {
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.55);
    margin-bottom: 1rem;
}

.iyzico-back-btn {
    margin-top: 0.65rem;
}

.iyzico-pay-cancel {
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.iyzico-test-cards h2 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.iyzico-test-cards ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.iyzico-test-card-btn {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(242, 242, 240, 0.85);
    cursor: pointer;
    font-family: inherit;
}

.iyzico-test-card-btn strong {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 0.2rem;
}

.iyzico-test-card-btn span {
    display: block;
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    opacity: 0.85;
}

.iyzico-test-card-btn em {
    display: block;
    font-size: 0.6875rem;
    font-style: normal;
    margin-top: 0.25rem;
    color: rgba(242, 242, 240, 0.5);
}

.iyzico-test-card-btn.is-success {
    border-color: rgba(134, 239, 172, 0.45);
    background: rgba(134, 239, 172, 0.1);
}

.iyzico-test-card-btn.is-success strong {
    color: #86efac;
}

.iyzico-test-card-btn.is-decline {
    border-color: rgba(252, 165, 165, 0.45);
    background: rgba(252, 165, 165, 0.08);
}

.iyzico-test-card-btn.is-decline strong {
    color: #fca5a5;
}

/* —— Ödeme sonuç sayfası (iyzico) —— */
.payment-result-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    color: rgba(242, 242, 240, 0.92);
    background: #0e0e10;
}

.payment-result-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(134, 239, 172, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(120, 120, 255, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 0% 80%, rgba(255, 255, 255, 0.04), transparent 45%);
}

.payment-result-page--failure .payment-result-ambient {
    background:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(252, 165, 165, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 120, 120, 0.06), transparent 50%);
}

.payment-result-shell {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.payment-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.payment-result-logo .brand-logo-img {
    height: 1.75rem;
    width: auto;
}

.payment-result-logo {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.payment-result-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.45);
}

.payment-result-card {
    background: linear-gradient(165deg, rgba(38, 38, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.payment-result-card.is-success {
    border-color: rgba(134, 239, 172, 0.22);
}

.payment-result-card.is-failure {
    border-color: rgba(252, 165, 165, 0.22);
}

.payment-result-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.payment-result-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.payment-result-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.payment-result-icon--ok {
    color: #052e16;
    background: linear-gradient(145deg, #86efac 0%, #4ade80 55%, #22c55e 100%);
    box-shadow:
        0 0 0 6px rgba(134, 239, 172, 0.12),
        0 16px 40px rgba(34, 197, 94, 0.25);
}

.payment-result-icon--fail {
    color: #450a0a;
    background: linear-gradient(145deg, #fca5a5 0%, #f87171 55%, #ef4444 100%);
    box-shadow:
        0 0 0 6px rgba(252, 165, 165, 0.12),
        0 16px 40px rgba(239, 68, 68, 0.2);
}

.payment-result-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.45);
}

.payment-result-title {
    margin: 0 0 0.65rem;
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
}

.payment-result-card.is-success .payment-result-title {
    color: #ecfdf5;
}

.payment-result-lead {
    margin: 0 0 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(242, 242, 240, 0.62);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.payment-result-credit-box {
    margin: 0 0 1.35rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(134, 239, 172, 0.2);
    text-align: center;
}

.payment-result-card.is-failure .payment-result-credit-box {
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-result-credit-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.payment-result-credit-plus {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #86efac;
}

.payment-result-credit-label {
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.72);
}

.payment-result-credit-meta {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.48);
}

.payment-result-credit-balance {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.55);
}

.payment-result-credit-balance strong {
    color: #fff;
    font-weight: 600;
}

.payment-result-receipt {
    margin: 0 0 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.payment-result-receipt-title {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.45);
}

.payment-result-receipt-grid {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-result-receipt-row {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.payment-result-receipt-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment-result-receipt-row dt {
    margin: 0;
    color: rgba(242, 242, 240, 0.48);
    font-weight: 500;
}

.payment-result-receipt-row dd {
    margin: 0;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.payment-result-receipt-row--wide dd {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.payment-result-status-chip {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(134, 239, 172, 0.15);
    color: #86efac;
}

.payment-result-card.is-failure .payment-result-status-chip {
    background: rgba(252, 165, 165, 0.15);
    color: #fca5a5;
}

.payment-result-retry {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    text-align: left;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.payment-result-retry p {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(242, 242, 240, 0.78);
}

.payment-result-retry .auth-submit {
    margin-top: 0;
}

.payment-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.payment-result-primary.auth-submit {
    margin-top: 0;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.payment-result-secondary {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(242, 242, 240, 0.72);
    text-decoration: none;
    border-radius: 10px;
    transition: color 160ms ease, background 160ms ease;
}

.payment-result-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.payment-result-footnote {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(242, 242, 240, 0.35);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .payment-result-card {
        padding: 1.5rem 1.15rem 1.35rem;
    }

    .payment-result-receipt-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .payment-result-receipt-row dd {
        text-align: left;
    }
}

.iyzico-3ds-frame-wrap {
    margin: 0.75rem 0 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #fff;
    min-height: 420px;
}

.iyzico-3ds-frame {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
    background: #fff;
}

.iyzico-wait-note {
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.55);
    margin: 0 0 0.75rem;
}

.proposal-shell {
    max-width: 1180px;
}

.proposal-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

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

.proposal-settings h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.proposal-settings label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.65);
}

.form-label-with-optional {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.form-optional-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.proposal-settings input,
.proposal-settings select,
.proposal-settings textarea {
    width: 100%;
    box-sizing: border-box;
}

.proposal-selection-summary {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: rgba(242, 242, 240, 0.62);
}

.proposal-selection-summary strong {
    font-size: 1.25rem;
    color: #fff;
}

.proposal-form-errors {
    margin: 0.75rem 0;
}

.proposal-gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.proposal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}

.proposal-thumb {
    cursor: pointer;
    display: block;
}

.proposal-thumb input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.proposal-thumb-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.proposal-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proposal-thumb-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: transparent;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.proposal-thumb.is-selected .proposal-thumb-frame {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.proposal-thumb.is-selected .proposal-thumb-check {
    background: #fff;
    color: #111;
}

.proposal-thumb-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
}

.proposal-thumb-meta {
    display: block;
    font-size: 0.6875rem;
    color: rgba(242, 242, 240, 0.48);
    line-height: 1.35;
    margin-top: 0.15rem;
}

.proposal-design-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.proposal-design-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.proposal-design-card input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.proposal-design-card-inner {
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 0.7rem 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.proposal-design-card.is-selected .proposal-design-card-inner {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.proposal-design-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.proposal-design-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
}

.proposal-design-card-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: transparent;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.proposal-design-card.is-selected .proposal-design-card-check {
    background: #fff;
    color: #111;
}

.proposal-design-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.proposal-design-view {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.proposal-design-view img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: rgba(0, 0, 0, 0.25);
}

.proposal-design-view .thumb-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(242, 242, 240, 0.45);
    text-align: center;
    padding: 0.25rem;
}

.proposal-design-view-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(242, 242, 240, 0.55);
    text-align: center;
    line-height: 1.2;
}

.proposal-design-card-meta {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: rgba(242, 242, 240, 0.48);
    line-height: 1.35;
}

.home-paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.home-paper-cta--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: rgba(255, 255, 255, 0.92);
}

.home-paper-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.2);
}

.locale-switcher__btn {
    appearance: none;
    border: none;
    background: transparent;
    line-height: 0;
    padding: 0.3rem 0.4rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
    opacity: 0.72;
}

.locale-switcher__btn:hover {
    opacity: 1;
}

.locale-switcher__btn.is-active {
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.locale-switcher__flag {
    display: block;
    width: 1.5rem;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.locale-switcher__btn.is-active .locale-switcher__flag {
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.35);
}

[data-theme="light"] .locale-switcher {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .locale-switcher__btn {
    opacity: 0.65;
}

[data-theme="light"] .locale-switcher__btn.is-active {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .locale-switcher__btn.is-active .locale-switcher__flag {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.bsign-file-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    margin-top: 0.35rem;
}

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

.bsign-file-input__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bsign-file-input__trigger:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.bsign-file-input__name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: min(100%, 280px);
    min-width: 0;
}

.bsign-file-input__name.has-file {
    cursor: pointer;
    border-radius: 6px;
    padding: 0.2rem 0.35rem;
    margin: -0.2rem -0.35rem;
    transition: background 0.15s ease;
}

.bsign-file-input__name.has-file:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bsign-file-input__name.has-file:hover .bsign-file-input__filename {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.bsign-file-input__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bsign-file-input__type-icon--pdf {
    flex-shrink: 0;
    width: 1.35rem;
    height: auto;
    display: block;
}

.bsign-file-input__type-icon[hidden] {
    display: none !important;
}

[data-theme="light"] .bsign-file-input__trigger {
    color: #111;
    background: #f4f4f5;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .bsign-file-input__trigger:hover {
    background: #eaeaec;
}

[data-theme="light"] .bsign-file-input__name {
    color: rgba(0, 0, 0, 0.55);
}

.error-shell {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    text-align: center;
}

.error-shell-logo {
    margin-bottom: 1.5rem;
}

.error-card {
    max-width: 32rem;
    width: 100%;
}

.error-card h1 {
    margin-bottom: 0.75rem;
}

.generation-cancel-form {
    margin-top: 0.75rem;
}

.generation-cancel-btn {
    width: 100%;
    max-width: 22rem;
}

.studio-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}

.studio-results-head h2 {
    margin: 0;
}

.history-thumb-wrap {
    position: relative;
}

.history-cancel-form {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
}

.history-cancel-btn {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
}

.history-active-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.92);
    color: #fff;
}

.studio-results-page-head {
    align-items: flex-start;
}

.studio-results-page-head .studio-back-link {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.studio-results-meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    opacity: 0.72;
}

.studio-results-footer-nav {
    margin-top: 1.25rem;
    text-align: center;
}

.studio-back-link-inline {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.moodboard-shell .moodboard-categories {
    min-width: 0;
}

/* MoodBoard job panel: always show progress bar (pattern-progress defaults to hidden without .active). */
.moodboard-shell #moodboard-progress .pattern-progress {
    display: block;
}

.moodboard-shell #moodboard-progress .pattern-progress-message {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(242, 242, 240, 0.62);
}

/* Match studio wizard typography for collection tiles (dense grid + glass tiles). */
.moodboard-shell .moodboard-studio-palette .wizard-title,
.moodboard-shell .moodboard-studio-palette .wizard-lead {
    color: rgba(255, 255, 255, 0.96);
}

.moodboard-shell .moodboard-studio-palette .wizard-tile,
.moodboard-shell .moodboard-studio-palette .wizard-tile .wizard-tile-title,
.moodboard-shell .moodboard-studio-palette .wizard-tile .wizard-tile-sub {
    color: #fff;
}

.moodboard-studio-form-card .studio-summary-hint {
    margin-bottom: 1rem;
}

.moodboard-studio-summary-head {
    margin-bottom: 0.35rem;
}

.moodboard-shell .studio-selection-grid .moodboard-designs-input {
    width: 100%;
    min-height: 2.5rem;
}

.moodboard-pdf-aside {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.15rem 1.2rem 1.25rem;
}

.moodboard-pdf-aside .moodboard-info-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.moodboard-pdf-aside .moodboard-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.moodboard-pdf-aside .moodboard-info-block {
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.moodboard-pdf-aside .moodboard-info-block label,
.moodboard-pdf-aside .moodboard-info-block__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.moodboard-pdf-aside .form-label-with-optional {
    margin-bottom: 0.5rem;
}

.moodboard-pdf-aside .moodboard-info-block input[type="text"] {
    margin-top: 0;
}

.moodboard-pdf-aside .moodboard-info-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.moodboard-pdf-aside .moodboard-info-hint {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(242, 242, 240, 0.48);
    flex: 1 1 auto;
    text-align: right;
}

@media (max-width: 900px) {
    .moodboard-pdf-aside .moodboard-info-block__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .moodboard-pdf-aside .moodboard-info-hint {
        text-align: left;
    }
}

.moodboard-pdf-upload {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.18);
}

.moodboard-pdf-upload .bsign-file-input {
    margin: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.65rem;
}

.moodboard-pdf-upload .bsign-file-input__trigger {
    align-self: flex-start;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 0.48rem 1.05rem;
    font-size: 0.8125rem;
}

.moodboard-pdf-upload .bsign-file-input__name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: none;
    min-height: 3rem;
    padding: 0.55rem 0.7rem;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.5);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.moodboard-pdf-upload .bsign-file-input__name:not(.has-file) {
    justify-content: center;
}

.moodboard-pdf-upload .bsign-file-input__name.has-file {
    color: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
}

.moodboard-pdf-upload .bsign-file-input__name.has-file:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.moodboard-pdf-upload .bsign-file-input__type-icon--pdf {
    width: 2rem;
    height: 2.4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.moodboard-pdf-upload .bsign-file-input__filename {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.4;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.moodboard-pdf-upload .bsign-file-input__name:not(.has-file) .bsign-file-input__filename {
    font-weight: 400;
    color: rgba(242, 242, 240, 0.48);
}

.moodboard-pdf-aside .moodboard-info-actions {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.moodboard-pdf-aside .moodboard-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.moodboard-pdf-aside .proposal-selection-summary {
    display: none;
}

.moodboard-category-group {
    margin-bottom: 1.25rem;
}

.moodboard-category-heading {
    margin: 0 0 0.5rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.moodboard-category-select-label {
    display: block;
    margin: 0 0 0.4rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.moodboard-studio-palette .moodboard-category-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.moodboard-studio-palette .moodboard-category-select:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.moodboard-studio-palette .moodboard-category-select:focus {
    outline: none;
    border-color: rgba(163, 230, 53, 0.55);
    box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.12);
}

.moodboard-pieces {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.moodboard-studio-palette .moodboard-extra-fields {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.moodboard-studio-palette .moodboard-extra-fields > label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.8125rem;
    color: rgba(242, 242, 240, 0.65);
}

.moodboard-studio-palette .moodboard-extra-fields > label:first-of-type {
    margin-top: 0.35rem;
}

.moodboard-studio-palette .moodboard-extra-fields input[type="text"],
.moodboard-studio-palette .moodboard-extra-fields textarea {
    width: 100%;
    box-sizing: border-box;
}

.moodboard-studio-palette .moodboard-extra-fields .moodboard-gender-fieldset {
    margin-bottom: 0.25rem;
}

.moodboard-pieces-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.moodboard-piece-row {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.moodboard-piece-row-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem 0.85rem;
    align-items: end;
}

.moodboard-piece-row-fields--single {
    width: 100%;
}

.moodboard-piece-field {
    min-width: 0;
}

.moodboard-piece-label {
    display: block;
    margin: 0 0 0.35rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, 0.55);
}

.moodboard-apparel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.35rem 0.75rem;
}

.moodboard-apparel-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.moodboard-gender-fieldset {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

.moodboard-gender-fieldset legend {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.moodboard-gender-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.5rem;
    width: 100%;
}

.moodboard-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem 0.85rem;
    min-width: 5.5rem;
    font-size: 0.88rem;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.moodboard-radio:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.moodboard-radio:has(input:checked) {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

.moodboard-radio input {
    margin: 0;
    flex-shrink: 0;
}

.moodboard-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.moodboard-recent-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.moodboard-revise-panel textarea {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* MoodBoard: full-screen wait state after “create PDF” (pattern-style progress bar) */
.moodboard-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.moodboard-submit-overlay[hidden] {
    display: none !important;
}

.moodboard-submit-overlay__panel {
    width: min(420px, 100%);
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(22, 24, 32, 0.94);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.moodboard-submit-overlay__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
}

.moodboard-submit-overlay__progress {
    display: block !important;
    margin-bottom: 0;
}

.moodboard-form.is-submitting {
    opacity: 0.92;
    pointer-events: none;
}
