@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Unbounded:wght@400;600;700&display=swap");

:root {
    --bg: #0f1116;
    --bg-soft: #161a22;
    --card: rgba(24, 28, 39, 0.85);
    --glass: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.12);
    --text: #f7f5f2;
    --muted: #b4b6c2;
    --accent: #ffb347;
    --accent-2: #63d4c4;
    --accent-3: #7a6cff;
    --shadow: 0 20px 60px rgba(8, 12, 20, 0.45);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 10% 20%, rgba(122, 108, 255, 0.35), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(99, 212, 196, 0.25), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 6vw;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(15, 17, 22, 0.9), rgba(15, 17, 22, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header_actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.lang-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.14);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Unbounded", sans-serif;
    letter-spacing: 0.02em;
}

.brand_mark {
    font-size: 22px;
    color: var(--accent);
}

.brand_name {
    font-weight: 700;
    font-size: 18px;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-size: 15px;
    color: var(--muted);
}

.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

.site-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.main {
    flex: 1;
    padding: 40px 6vw 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.simple-hero {
    max-width: 720px;
}

.simple-hero h1 {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.simple-hero p {
    color: var(--muted);
    font-size: 16px;
}

.requirements {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    display: grid;
    gap: 6px;
}

.requirements li::before {
    content: "• ";
    color: var(--accent);
}

.tryon-simple {
    display: grid;
    gap: 24px;
    align-items: start;
}

.tryon-form {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
}

.tryon-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 240px);
    justify-content: start;
}

.dropzone {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(15, 17, 22, 0.6);
    color: var(--muted);
    cursor: pointer;
    overflow: hidden;
    width: 240px;
    height: 421px;
    align-content: center;
}

.dropzone,
.tryon-result {
    cursor: pointer;
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--accent-2);
    background: rgba(99, 212, 196, 0.08);
}

.dz-content strong {
    color: var(--text);
}

.dz-content em {
    font-size: 12px;
}

.dz-preview {
    height: 300px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.dz-loading {
    font-size: 12px;
    color: var(--accent-2);
}

.tryon-result {
    width: 240px;
    height: 421px;
    padding: 12px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.tryon-result img {
    max-width: 100%;
    border-radius: 12px;
}

.result-placeholder {
    color: var(--muted);
    font-size: 14px;
}

.result-loading {
    color: var(--accent-2);
    font-size: 14px;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 12, 0.7);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: #0f1116;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 90vw;
    max-height: 90vh;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 12px;
}

.tryon-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.auth_note {
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--stroke);
}

.auth_note span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.auth_panel {
    padding: 24px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(99, 212, 196, 0.12);
    border-color: rgba(99, 212, 196, 0.4);
    color: #b9fff3;
}

.flash-error {
    background: rgba(255, 122, 89, 0.15);
    border-color: rgba(255, 122, 89, 0.4);
    color: #ffd7cc;
}

.flash-warning {
    background: rgba(255, 179, 71, 0.15);
    border-color: rgba(255, 179, 71, 0.45);
    color: #ffe4c2;
}

.flash_link {
    margin-top: 8px;
}

.flash_link a {
    color: var(--accent-2);
    text-decoration: underline;
    font-weight: 600;
}

.auth_state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    margin-bottom: 18px;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tab {
    background: transparent;
    border: 1px solid var(--stroke);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.tab.active {
    background: var(--accent-3);
    color: var(--text);
    border-color: transparent;
}

.form {
    display: grid;
    gap: 14px;
}

.hidden {
    display: none;
}

.form.muted {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

input {
    background: rgba(15, 17, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.input-error {
    border-color: rgba(255, 122, 89, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 122, 89, 0.2);
}

.field-error {
    font-size: 12px;
    color: #ffb4a5;
}

.form_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.link-button {
    background: none;
    border: none;
    color: var(--accent-2);
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy {
    font-size: 12px;
    color: var(--muted);
}

.divider {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: rgba(0, 0, 0, 0.6);
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7a59);
    color: #1a0f08;
    box-shadow: 0 10px 30px rgba(255, 122, 89, 0.35);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-mini {
    padding: 8px 12px;
    font-size: 12px;
}

.w-100 {
    width: 100%;
}

.site-footer {
    padding: 32px 6vw 48px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer_links {
    display: flex;
    gap: 16px;
}

.profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.profile_card,
.profile_panel {
    padding: 24px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.profile_card h1 {
    margin-top: 0;
    font-family: "Unbounded", sans-serif;
}

.profile_row {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
}

.profile_row strong {
    color: var(--text);
}

.profile_actions {
    margin-top: 20px;
}

.profile_panel h2 {
    margin-top: 0;
    font-family: "Unbounded", sans-serif;
}

.profile_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.profile_tile {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    color: var(--muted);
}

.profile_tile strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

.tryon-workbench {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--stroke);
}

.tryon-uploader-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tryon-upload-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    width: 280px;
    height: 460px;
    justify-self: center;
    cursor: pointer;
}

.tryon-upload-card.dragover {
    border-color: var(--accent-2);
    background: rgba(99, 212, 196, 0.08);
}

.tryon-upload-card input[type="file"] {
    display: none;
}

.tryon-upload-title {
    font-weight: 700;
}

.tryon-upload-hint,
.tryon-inline-status {
    font-size: 12px;
    color: var(--muted);
}

.tryon-preview {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 10px;
}

.tryon-card-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--accent-2);
    animation: spin 0.9s linear infinite;
    z-index: 5;
    pointer-events: none;
}

.tryon-control-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tryon-control {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.tryon-control select {
    background: rgba(15, 17, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
}

.tryon-result-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tryon-task-status {
    color: var(--muted);
    font-size: 14px;
}

.tryon-result-preview {
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
}

.tryon-history ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

/* Try-on layout (from tryon.html) */
.tryon-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.tryon-section .upload-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tryon-section .upload-card {
    width: 280px;
    height: 460px;
    justify-self: center;
    background: #faf8f4;
    color: #1a1a18;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 24px rgba(26, 26, 24, 0.08);
}

.tryon-section .upload-card.has-image {
    border-color: #c8a96e;
}

.tryon-section .upload-card.drag-over {
    border-color: #c8a96e;
    border-style: dashed;
}

.tryon-section .card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #e0d9ce;
    min-height: 66px;
}

.tryon-section .card-num {
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    color: #c8a96e;
    line-height: 1;
}

.tryon-section .card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tryon-section .card-hint {
    font-size: 11px;
    color: #6b6760;
    margin-top: 2px;
}

.tryon-section .upload-zone {
    position: relative;
    flex: 1;
    min-height: 394px;
    background: #f5f0e8;
    overflow: hidden;
    cursor: pointer;
}

.tryon-section .upload-card.disabled {
    opacity: 0.55;
}

.tryon-section .upload-zone.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.tryon-section .upload-zone input[type="file"] {
    display: none;
}

.tryon-section .upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    z-index: 3;
}

.tryon-email-block {
    margin-top: 4px;
}

.tryon-email-input {
    width: 100%;
    margin-top: 8px;
}

.tryon-section .upload-icon {
    width: 48px;
    height: 48px;
    border: 1.5px solid #e0d9ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6760;
    font-size: 22px;
}

.tryon-section .upload-placeholder p {
    margin: 0;
    font-size: 12px;
    color: #6b6760;
}

.tryon-section .upload-placeholder small {
    font-size: 10px;
    text-transform: uppercase;
    color: #aaa39a;
    letter-spacing: 0.06em;
}

.tryon-section .preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    z-index: 1;
}

.tryon-section .preview-img.visible {
    display: block;
}

.tryon-section .preloader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(245, 240, 232, 0.8);
    z-index: 6;
}

.tryon-section .preloader.active {
    display: flex;
}

.tryon-section .spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #d9d1c6;
    border-top-color: #c8a96e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.tryon-section .settings-card,
.tryon-section .result-card {
    width: 100%;
    background: #faf8f4;
    color: #1a1a18;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(26, 26, 24, 0.08);
}

.tryon-section .settings-header,
.tryon-section .result-header {
    padding: 14px 18px 12px;
    border-bottom: 1px solid #e0d9ce;
}

.tryon-section .settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tryon-section .settings-num,
.tryon-section .result-num {
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    color: #c8a96e;
    line-height: 1;
}

.tryon-section .settings-title,
.tryon-section .result-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tryon-section .settings-body {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.tryon-section .zone-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tryon-section .zone-tab {
    padding: 10px 12px;
    border: 1px solid #e0d9ce;
    background: #f5f0e8;
    border-radius: 4px;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1a18;
    cursor: pointer;
}

.tryon-section .zone-tab.active {
    border-color: #c8a96e;
    box-shadow: 0 0 0 2px #c8a96e;
    background: #faf8f4;
}

.tryon-section .garment-label {
    margin-bottom: 8px;
    font-size: 11px;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tryon-section .garment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tryon-section .provider-row {
    display: flex;
    gap: 8px;
}

.tryon-section .provider-chip {
    border: 1px solid #e0d9ce;
    background: #f5f0e8;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    color: #1a1a18;
    cursor: pointer;
}

.tryon-section .provider-chip.active {
    background: #1a1a18;
    color: #faf8f4;
    border-color: #1a1a18;
}

.tryon-section .garment-chip {
    border: 1px solid #e0d9ce;
    background: #f5f0e8;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    color: #1a1a18;
    cursor: pointer;
}

.tryon-section .garment-chip.active {
    background: #1a1a18;
    color: #faf8f4;
    border-color: #1a1a18;
}

.tryon-section .generate-wrap {
    width: 100%;
}

.tryon-section .btn-generate {
    width: 100%;
    border: none;
    border-radius: 4px;
    padding: 16px;
    background: #1a1a18;
    color: #faf8f4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    cursor: pointer;
}

.tryon-section .btn-generate:disabled {
    background: #d7d0c5;
    color: #6b6760;
    cursor: not-allowed;
}

.tryon-section .result-card {
    display: none;
}

.tryon-section .result-card.visible {
    display: block;
}

.tryon-section .result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tryon-section .result-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tryon-section .result-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tryon-section .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b867f;
}

.tryon-section .status-dot.pulse {
    background: #c8a96e;
    animation: pulse 1.2s ease-in-out infinite;
}

.tryon-section .status-dot.success {
    background: #4a7c59;
}

.tryon-section .status-dot.error {
    background: #c0533a;
}

.tryon-section .result-body {
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f0e8;
}

.tryon-section .result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6b6760;
}

.tryon-section .progress-bar-wrap {
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: #e0d9ce;
    overflow: hidden;
}

.tryon-section .progress-bar {
    width: 0%;
    height: 100%;
    background: #c8a96e;
    transition: width 0.4s ease;
}

.tryon-section .result-image {
    width: 100%;
    display: none;
}

.tryon-section .result-image.visible {
    display: block;
}

.tryon-section .result-footer {
    display: none;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #e0d9ce;
    padding: 14px 18px;
}

.tryon-section .result-footer.visible {
    display: flex;
}

.tryon-section .btn-download {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 8px 18px;
    background: #c8a96e;
    color: #faf8f4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tryon-section .tryon-history {
    color: #dbd7d1;
}

.tryon-section .tryon-history h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #f7f5f2;
}

.tryon-section .tryon-history ul {
    margin: 0;
    padding-left: 18px;
}

.footer_legal_links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer_legal_links a {
    color: #6b6760;
    text-decoration: none;
    font-size: 12px;
}

.footer_legal_links a:hover {
    text-decoration: underline;
}

.legal-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 22px;
    background: #f7f3ec;
    border: 1px solid #d9d2c7;
    border-radius: 12px;
    color: #1f1d1a;
}

.legal-page h1 {
    margin: 0 0 12px;
    font-size: 24px;
}

.legal-page h2,
.legal-page h3 {
    margin: 18px 0 10px;
}

.legal-page p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.legal-page ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.legal-updated {
    margin: 0 0 14px;
    color: #6b6760;
    font-size: 13px;
}

.legal-page ol {
    margin: 0;
    padding-left: 20px;
}

.legal-page li {
    margin: 8px 0;
    line-height: 1.45;
}

.service-description,
.service-delivery {
    width: 100%;
    max-width: 760px;
    margin-top: 18px;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #d9d2c7;
    border-radius: 10px;
    background: #fffdfa;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    pointer-events: auto;
}

.cookie-banner__text {
    color: #1f1d1a;
    font-size: 13px;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d2c7;
    border-radius: 8px;
    padding: 8px 12px;
    background: #f7f3ec;
    color: #1f1d1a;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}

.cookie-btn--primary {
    background: #1a1a18;
    color: #faf8f4;
    border-color: #1a1a18;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes scan {
    0% { top: -10%; }
    50% { top: 50%; }
    100% { top: 110%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .tryon-simple {
        grid-template-columns: 1fr;
    }
    .tryon-uploader-grid,
    .tryon-control-row {
        grid-template-columns: 1fr;
    }
    .tryon-upload-card {
        width: 100%;
        max-width: 280px;
    }
    .auth-section {
        grid-template-columns: 1fr;
    }
    .profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tryon-row {
        grid-template-columns: 1fr;
    }
    .dropzone,
    .tryon-result {
        width: 100%;
        height: auto;
        min-height: 360px;
    }

    .tryon-section .upload-row {
        grid-template-columns: 1fr;
    }

    .tryon-section .upload-card {
        width: 100%;
        max-width: 280px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav {
        flex-wrap: wrap;
    }
    .site-footer {
        flex-direction: column;
    }
}


.logs {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logs-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.logs-table {
    display: grid;
    gap: 10px;
}

.logs-row {
    display: grid;
    grid-template-columns: 80px 120px 90px 110px 110px 110px 160px;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    font-size: 13px;
}

/* Full light tryon layout */
html, body {
    background: #f5f0e8;
    color: #1a1a18;
}

.page {
    background: #f5f0e8;
}

.site-header.site-header-minimal {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
    padding: 0 20px;
    background: rgba(250, 248, 244, 0.96);
    border-bottom: 1px solid #e0d9ce;
    backdrop-filter: blur(8px);
    display: block;
    transition: box-shadow 0.2s ease;
}

.site-header.site-header-minimal.is-scrolled {
    box-shadow: 0 2px 16px rgba(26, 26, 24, 0.07);
}

.brand-link {
    text-decoration: none;
}

.header-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-header-minimal .brand_name {
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #1a1a18;
}

.header-service-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    color: #6b6760;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand_dot {
    color: #c8a96e;
}

.site-header-minimal .header_actions {
    gap: 10px;
}

.main {
    padding: 34px 20px 56px;
    gap: 24px;
    align-items: center;
}

.studio-intro {
    width: 100%;
    max-width: 760px;
    display: grid;
    gap: 18px;
}

.studio-logo-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.studio-logo {
    font-family: "Unbounded", sans-serif;
    font-size: 26px;
    letter-spacing: 0.08em;
}

.studio-logo span {
    color: #c8a96e;
}

.studio-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b6760;
}

.studio-auth-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid #d4ccc1;
    border-radius: 4px;
    background: transparent;
    color: #1a1a18;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
}

.btn-auth:hover {
    border-color: #c8a96e;
    color: #a8893e;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #d4ccc1;
    border-radius: 20px;
    background: #faf8f4;
    font-size: 12px;
    color: #1a1a18;
    cursor: pointer;
    position: relative;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a1a18;
    color: #faf8f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #faf8f4;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    box-shadow: 0 2px 24px rgba(26, 26, 24, 0.08);
    overflow: hidden;
    display: none;
    z-index: 90;
}

.user-menu.open {
    display: block;
}

.user-menu-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid #eee7dc;
    background: transparent;
    color: #1a1a18;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
    display: block;
}

.user-menu-item:first-child {
    border-top: none;
}

.user-menu form {
    margin: 0;
}

.user-menu-item:hover {
    background: #f5f0e8;
}

.user-menu-item.danger {
    color: #c0533a;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: #faf8f4;
    border: 1px solid #e0d9ce;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(26, 26, 24, 0.18);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 22px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-logo {
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.modal-logo span {
    color: #c8a96e;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #6b6760;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: #f1ece3;
    color: #1a1a18;
}

.modal-tabs {
    display: flex;
    gap: 16px;
    padding: 16px 24px 0;
    border-bottom: 1px solid #e0d9ce;
}

.modal-tab {
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    padding: 0 0 10px;
    font-size: 13px;
    color: #6b6760;
    cursor: pointer;
}

.modal-tab.active {
    color: #1a1a18;
    border-bottom-color: #c8a96e;
}

.modal-body {
    padding: 18px 24px 24px;
}

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6760;
}

.form-input {
    width: 100%;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    background: #f5f0e8;
    padding: 10px 12px;
    color: #1a1a18;
    font-size: 13px;
}

.form-input:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
    background: #faf8f4;
}

.form-input.has-error {
    border-color: #c0533a;
}

.modal .field-error {
    display: none;
}

.modal .field-error.visible {
    display: block;
    margin-top: 4px;
    color: #c0533a;
    font-size: 11px;
}

.forgot-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #6b6760;
    font-size: 11px;
    text-decoration: none;
}

.forgot-link:hover {
    color: #a8893e;
}

.btn-submit {
    width: 100%;
    border: none;
    border-radius: 4px;
    background: #1a1a18;
    color: #faf8f4;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    cursor: pointer;
}

.btn-social {
    width: 100%;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    background: #f5f0e8;
    color: #1a1a18;
    padding: 10px 12px;
    font-size: 12px;
    cursor: pointer;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #6b6760;
    font-size: 11px;
    text-transform: uppercase;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0d9ce;
}

.modal-footer-note {
    margin-top: 12px;
    font-size: 11px;
    color: #6b6760;
    text-align: center;
}

.modal-footer-note a {
    color: #a8893e;
    text-decoration: none;
}

.modal-footer-note a:hover {
    text-decoration: underline;
}

.studio-steps {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6760;
}

.studio-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #e0d9ce;
    background: #faf8f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.studio-step-item.active .studio-step-num {
    background: #c8a96e;
    color: #fff;
    border-color: #c8a96e;
}

.studio-step-line {
    width: 42px;
    height: 1px;
    background: #e0d9ce;
    margin: 0 6px;
}

.tryon-section .tryon-history {
    color: #6b6760;
}

.tryon-section .tryon-history h3 {
    color: #1a1a18;
}

.studio-auth {
    width: 100%;
    max-width: 760px;
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.studio-auth h2 {
    margin: 0;
    font-size: 24px;
    font-family: "Unbounded", sans-serif;
}

.studio-auth p {
    margin: 0;
    color: #6b6760;
}

.studio-auth-panel {
    padding: 18px;
    background: #faf8f4;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    box-shadow: 0 2px 24px rgba(26, 26, 24, 0.08);
}

.studio-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.studio-tab {
    border: 1px solid #e0d9ce;
    background: #f5f0e8;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    color: #1a1a18;
}

.studio-tab.active {
    border-color: #1a1a18;
    background: #1a1a18;
    color: #faf8f4;
}

.form label {
    color: #6b6760;
}

.form input {
    background: #fff;
    border: 1px solid #e0d9ce;
    color: #1a1a18;
}

.btn-primary {
    background: #1a1a18;
    color: #faf8f4;
    box-shadow: none;
}

.btn-ghost {
    color: #1a1a18;
    border-color: #d2cabf;
}

.site-footer.site-footer-minimal {
    border-top: 1px solid #e0d9ce;
    background: #faf8f4;
    padding: 28px 20px 32px;
}

.footer-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-brand {
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    letter-spacing: 0.07em;
    color: #1a1a18;
    text-decoration: none;
}

.footer-tagline {
    margin: 0;
    font-size: 12px;
    color: #6b6760;
    letter-spacing: 0.01em;
}

.footer-nav {
    display: flex;
    gap: 4px 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.footer-nav a {
    font-size: 12px;
    color: #6b6760;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: #1a1a18;
}

.footer-copy {
    font-size: 12px;
    color: #a8a09a;
    white-space: nowrap;
}

.footer-legal-meta {
    margin: 0;
    font-size: 12px;
    color: #6b6760;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .site-header.site-header-minimal {
        padding: 0 20px;
    }
    .header-inner {
        min-height: 56px;
        gap: 12px;
    }
    .header-service-title {
        font-size: 12px;
        white-space: normal;
    }
    .studio-logo-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .studio-steps {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .studio-step-line {
        display: none;
    }
    .site-footer.site-footer-minimal {
        padding: 24px 20px 28px;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-nav {
        justify-content: flex-start;
    }
}

.logs-head {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.logs-empty {
    color: var(--muted);
    padding: 12px;
    font-size: 14px;
}

.logs-status {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.logs-status-ready {
    color: var(--accent-2);
}

.logs-status-error {
    color: #ff9e8a;
}

.logs-status-pending,
.logs-status-uploaded {
    color: var(--accent);
}

.logs-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .logs-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}
