@font-face {
    font-family: "Apercu Pro";
    src: url("../fonts/apercu-pro/ApercuPro-Regular.woff2") format("woff2"),
        url("../fonts/apercu-pro/ApercuPro-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Apercu Pro";
    src: url("../fonts/apercu-pro/ApercuPro-Medium.woff2") format("woff2"),
        url("../fonts/apercu-pro/ApercuPro-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Apercu Pro";
    src: url("../fonts/apercu-pro/ApercuPro-Bold.woff2") format("woff2"),
        url("../fonts/apercu-pro/ApercuPro-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f4f4f4;
    background-color: #0f111a;
}

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

body {
    margin: 0;
    background: radial-gradient(circle at 10% 20%, #1c1f32, #0f111a 60%);
    min-height: 100vh;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.site-header,
.site-footer {
    background: rgba(10, 12, 22, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.site-header .container,
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body:not(.landing) .site-header .container {
    width: min(1280px, 94%);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    font-size: 1.25rem;
}

body:not(.landing) .site-header .brand {
    margin-left: -0.45rem;
}

.brand-logo {
    height: 36px;
    display: block;
}

.nav-links a {
    color: #c3c3d2;
    text-decoration: none;
    margin-left: 0.8rem;
    font-size: 0.95rem;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 95, 109, 0.6), rgba(255, 195, 113, 0.6));
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px;
    text-decoration: none;
}

.nav-links .nav-icon {
    margin-left: 1.25rem;
}

.nav-icon:hover {
    color: #0f111a;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

.nav-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    background-size: cover;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f111a;
    font-weight: 700;
    font-size: 0.85rem;
}

.nav-coins {
    margin-left: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f4f4f4;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-coins.hidden {
    display: none;
}

.nav-right {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-login-btn {
    height: 40px;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    line-height: 1;
}

.nav-admin {
    margin-left: 0.8rem;
    color: #c3c3d2;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.nav-admin.hidden {
    display: none;
}

.nav-admin:hover {
    color: #fff;
}

.nav-links .nav-disabled {
    margin-left: 1rem;
    font-size: 0.95rem;
    color: #7c7f91;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

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

.nav-links a.active {
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #f9c35f;
}

.nav-links a,
.nav-links .nav-disabled,
.nav-links .nav-icon,
.nav-links .nav-coins {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin: 2.5rem auto 3rem;
    max-width: 900px;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.hero-note {
    margin: 0.5rem 0 0;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1.7rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn.primary {
    background: linear-gradient(120deg, #f6d36b, #f4be4d);
    border-color: #f6d36b;
    color: #0f111a;
    box-shadow: 0 12px 24px rgba(246, 211, 107, 0.34);
}

.btn.ghost {
    border-color: rgba(246, 211, 107, 0.55);
    color: #fff6db;
    background: rgba(246, 211, 107, 0.12);
}

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

.btn.primary:hover {
    box-shadow: 0 16px 28px rgba(246, 211, 107, 0.42);
}

.btn.ghost:hover {
    border-color: rgba(246, 211, 107, 0.8);
    background: rgba(246, 211, 107, 0.2);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 211, 107, 0.35);
}

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

.hero-cta {
    padding: 1.1rem 2.6rem;
    font-size: 1.05rem;
}

.features {
    display: none;
}

.container.fullwidth {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.value-section {
    margin: 3rem 0 4rem;
}

.value-header h2 {
    margin: 0.2rem 0 1rem;
}

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

.value-card {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.value-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.studio-stage {
    position: relative;
    margin-top: 0;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.chat-panel {
    display: flex;
    flex-direction: column;
    background: rgba(15, 17, 26, 0.95);
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 85vh;
    height: calc(100vh - 80px);
    z-index: 5;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-panel.floating {
    position: fixed;
    top: 5rem;
    left: 2rem;
    width: min(360px, 80vw);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-panel.closed {
    transform: translateX(-110%);
    opacity: 0.4;
}

.chat-toggle {
    position: absolute;
    top: 0.5rem;
    right: -4.5rem;
    transform: rotate(-90deg);
    transform-origin: top right;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px 999px 0 0;
    cursor: pointer;
    font-size: 0.85rem;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-header .chat-label {
    font-weight: 600;
    margin: 0;
}

.chat-header small {
    color: #a5a7bd;
}

.chat-auth {
    margin: 1rem 0;
}

.auth-status {
    font-size: 0.85rem;
    color: #d0d2e5;
    margin-top: 0.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.08);
    align-self: flex-end;
}

.chat-message.assistant {
    background: rgba(255, 255, 255, 0.15);
    align-self: flex-start;
}

.chat-message img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.chat-input textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
}

.chat-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.chat-attachment {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.25rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-attachment img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.chat-attachment span {
    color: #fff;
    font-size: 0.8rem;
}

.chat-attachment button {
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
}

.canvas-panel {
    background: rgba(15, 17, 26, 0.6);
    border-radius: 18px;
    padding: 1rem 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: calc(100vh - 140px);
    margin-left: 80px;
}

.hidden-input {
    display: none;
}

.canvas-wrapper {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 1rem;
    overflow: auto;
    min-height: calc(100vh - 220px);
    position: relative;
}

#banner-canvas {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: block;
    background: #fff;
    min-width: 1200px;
    min-height: 700px;
}

.canvas-hint {
    margin-top: 0.75rem;
    color: #cfd2e7;
    font-size: 0.9rem;
}

.canvas-toolbox {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem;
    background: rgba(13, 15, 26, 0.9);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.context-menu {
    position: fixed;
    min-width: 200px;
    background: rgba(20, 23, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    padding: 0.35rem;
    z-index: 20;
}

.context-menu.hidden {
    display: none;
}

.context-menu button {
    width: 100%;
    border: none;
    background: transparent;
    color: #f4f4f4;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.context-menu-label {
    margin: 0 0 0.3rem 0.35rem;
    color: #aeb1c8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.context-submenu {
    min-width: 180px;
}

.canvas-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(10, 12, 22, 0.4);
    backdrop-filter: blur(4px);
    z-index: 15;
    border-radius: 14px;
}

.canvas-spinner.hidden {
    display: none;
}

.spinner-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff5f6d;
    animation: spinner-rotate 1s linear infinite;
}

.canvas-spinner p {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

@keyframes spinner-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.dashboard table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 21, 34, 0.9);
}

.dashboard table,
.stats-section table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.dashboard th,
.dashboard td {
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    text-align: left;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.stat-label {
    margin: 0 0 0.5rem;
    color: #cfd2e7;
    font-size: 0.9rem;
}

.stat-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.promo-card {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    margin: 1rem 0;
}

.promo-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.promo-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.coins-offer-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.coins-offer-inputs input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.coins-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.coins-offer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.coins-offer-title {
    font-weight: 600;
}

.coins-offer-meta {
    color: #cfd2e7;
    font-size: 0.9rem;
}

.coins-offer-btn {
    align-self: flex-start;
}

.stats-section table {
    width: 100%;
    border-collapse: collapse;
}

.stats-section th,
.stats-section td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 0.4rem;
    text-align: left;
}

.stats-section h3 {
    margin-top: 1.5rem;
}

.admin-block {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 21, 34, 0.7);
    overflow: hidden;
}

.admin-block__summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f4f4f4;
    background: rgba(255, 255, 255, 0.03);
}

.admin-block__summary::-webkit-details-marker {
    display: none;
}

.admin-block__summary::after {
    content: "▾";
    font-size: 0.9rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.admin-block[open] .admin-block__summary::after {
    transform: rotate(180deg);
}

.admin-block[open] > .admin-block__summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-block__content {
    padding: 0 1rem 1rem;
}

.stat-hint {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #a5a7bd;
}

.stat-hint a {
    color: #cfd2e7;
    text-decoration: underline dotted;
}

.stat-hint a:hover {
    color: #ffffff;
}

.admin-note {
    margin: 0.5rem 0 1rem;
}

.admin-diagnose-output {
    margin: 0.6rem 0 0;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 24, 0.75);
    color: #d8daeb;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.86rem;
    line-height: 1.45;
    max-height: 420px;
    overflow: auto;
}

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

.table-actions {
    margin: 0.75rem 0;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.6rem;
    text-align: left;
}

.stats-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #f4f4f4;
}

.stats-table td {
    color: #d8daeb;
}

.chart-card {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 320px;
}

.chart-title {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.chart-card canvas {
    width: 100% !important;
    flex: 1;
    min-height: 260px;
    max-height: 360px;
}

.chart-bars-grouped {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 200px;
    padding-bottom: 0.5rem;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 14px;
}

.chart-col-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 12px;
    align-items: center;
    justify-content: flex-end;
}

.chart-bar-vertical {
    width: 12px;
    border-radius: 999px;
}

.chart-col-label {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #a5a7bd;
    white-space: nowrap;
}

.promo-admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.preset-admin-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.preset-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.preset-admin-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preset-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    align-items: end;
}

.preset-admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.preset-admin-field label {
    font-size: 0.85rem;
    color: #cfd2e7;
}

.preset-admin-field input,
.preset-admin-field textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.preset-admin-field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.preset-admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.preset-admin-actions {
    align-items: flex-start;
}

.preset-admin-subsection {
    margin-top: 1.2rem;
}

.preset-admin-subsection h4 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: #fff;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    .stat-card {
        padding: 0.85rem;
    }
    .chart-card {
        min-height: 260px;
        padding: 0.6rem;
    }
    .chart-card canvas {
        min-height: 220px;
        max-height: 300px;
    }
    .promo-admin-form,
    .excluded-form {
        grid-template-columns: 1fr;
    }
    .promo-form input,
    .excluded-form input {
        width: 100%;
    }
    .dashboard {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 1.25rem 1rem;
    }
    body:not(.landing) .site-header .container {
        width: 100%;
    }
    body:not(.landing) .site-header .brand {
        margin-left: 0;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .nav-links a,
    .nav-links .nav-disabled {
        height: auto;
    }
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-buttons .btn {
        width: 100%;
    }
    .adapt-hero,
    .generator-page .adapt-hero {
        grid-template-columns: 1fr;
    }
    .coins-hero {
        grid-template-columns: 1fr;
    }
    .variant-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .adapt-actions,
    .gen-result-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero .btn,
    .adapt-actions .btn,
    .adapt-upload-actions .btn,
    .gen-result-actions .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem 0.9rem;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .hero p {
        font-size: 0.95rem;
    }
    .adapt-header h1,
    .generator-page .adapt-header h1 {
        font-size: 1.35rem;
    }
    .adapt-hero,
    .generator-page .adapt-hero {
        gap: 0.9rem;
    }
    .coins-page {
        padding: 1rem 1rem 1.5rem;
    }
    .coins-panel-header {
        align-items: flex-start;
    }
    .adapt-image-frame,
    .adapt-meta {
        padding: 0.9rem;
    }
    .variant-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .nav-right {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-login-btn,
    .nav-icon,
    #nav-admin {
        width: 100%;
        justify-content: center;
    }
}

.promo-admin-form input[type="text"],
.promo-admin-form input[type="number"],
.promo-admin-form input[type="date"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-sizing: border-box;
}

.promo-admin-active {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #cfd2e7;
}

body.landing {
    background: #3a2317;
    color: #f4eadd;
    font-family: "Montserrat", sans-serif;
    --landing-accent: #f6d36b;
    --landing-dark: #2a1a12;
    --landing-footer: #0b0604;
}

body.landing .site-header,
body.landing .site-footer {
    display: none;
}

.landing-main {
    padding: 0;
}

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

.landing-header {
    position: relative;
    z-index: 3;
    padding-top: 69px;
}

.landing-header__row {
    width: min(1680px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 46px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    height: 36px;
    text-decoration: none;
}

.landing-brand__logo {
    display: block;
    height: 36px;
    width: auto;
}

.landing-nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    font-size: 16px;
    font-weight: 500;
}

.landing-nav a {
    text-decoration: none;
    color: #f1e2cf;
}

.landing-nav a:hover {
    color: #ffffff;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-login,
.landing-start {
    height: 46px;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(27, 15, 10, 0.22);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.landing-login {
    background: var(--landing-accent);
    color: #1b0f0a;
    min-width: 84px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.landing-start {
    background: #ffffff;
    color: #1b0f0a;
    min-width: 202px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.landing-login:hover,
.landing-start:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.landing-burger {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    cursor: pointer;
}

.landing-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #1b0f0a;
    border-radius: 999px;
}

.landing-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    width: min(1680px, 92%);
    margin: 16px auto 0;
    padding: 0 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-mobile-menu a {
    color: #f1e2cf;
    text-decoration: none;
    font-size: 1rem;
}

.landing-login--mobile,
.landing-start--mobile {
    width: 100%;
}

.landing-hero {
    position: relative;
    background: #3a2317;
    overflow: hidden;
    padding-bottom: 94px;
}

.landing-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 957px;
    background-size: 2115px 1236px;
    background-position: calc(50% - 16px) -279px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.landing-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58, 35, 23, 0.15) 0%, rgba(58, 35, 23, 0.8) 68%, #3a2317 100%);
}

.landing-hero__copy {
    max-width: 1282px;
    margin: 0 auto;
    text-align: center;
    padding-top: 230px;
    position: relative;
    z-index: 2;
}

.landing-hero__copy h1 {
    font-family: "Apercu Pro", "Montserrat", sans-serif;
    font-size: 38px;
    line-height: 38px;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 22px;
    color: #fffdf7;
}

.landing-subtitle {
    margin: 0 0 81px;
    font-size: 22px;
    line-height: 27px;
    font-weight: 500;
    color: #f1dcc4;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 572px;
    height: 86px;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--landing-accent);
    color: #1b0f0a;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 0.02em;
    border: 2px solid rgba(27, 15, 10, 0.25);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

.landing-btn__text {
    white-space: nowrap;
}

.landing-btn__logos {
    position: relative;
    width: 210px;
    height: 32px;
    flex: 0 0 auto;
    overflow: hidden;
}

.landing-btn__logos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    opacity: 0;
    animation: landingLogoCycle 8s infinite;
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

.landing-btn__logos img:nth-child(1) {
    animation-delay: 0s;
}

.landing-btn__logos img:nth-child(2) {
    animation-delay: 2s;
}

.landing-btn__logos img:nth-child(3) {
    animation-delay: 4s;
}

.landing-btn__logos img:nth-child(4) {
    animation-delay: 6s;
}

.landing-btn--wide {
    width: 572px;
}

.landing-kicker {
    text-align: center;
    font-family: "Apercu Pro", "Montserrat", sans-serif;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 100px auto 92px;
    color: #fffdf7;
    max-width: 1282px;
    position: relative;
    z-index: 2;
}

.landing-collage {
    position: relative;
    width: min(1852px, calc(100% - 68px));
    margin: 0 auto 135px;
    aspect-ratio: 1852 / 771;
}

.landing-collage.landing-collage--video {
    width: min(calc(1320px / 1.5), calc((100% - 68px) / 1.5));
    margin-bottom: 96px;
    aspect-ratio: 16 / 9;
}

.landing-collage__video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.35);
}

.landing-collage__item {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
    background: transparent;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0, 0, 0.58, 1),
        box-shadow 0.25s cubic-bezier(0, 0, 0.58, 1);
}

.landing-collage__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.3);
}

.landing-collage__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-collage .item-1 {
    width: 25.38%;
    height: 34.5%;
    left: 9.34%;
    top: 0;
}

.landing-collage .item-2 {
    width: 25.05%;
    height: 25.03%;
    left: 32.99%;
    top: 16.21%;
}

.landing-collage .item-3 {
    width: 15.23%;
    height: 38.39%;
    left: 60.69%;
    top: 0;
}

.landing-collage .item-4 {
    width: 24.19%;
    height: 32.94%;
    left: 74.46%;
    top: 16.21%;
}

.landing-collage .item-5 {
    width: 25.65%;
    height: 34.76%;
    left: 0;
    top: 41.25%;
}

.landing-collage .item-6 {
    width: 25.92%;
    height: 25.94%;
    left: 24.46%;
    top: 45.53%;
}

.landing-collage .item-7 {
    width: 14.47%;
    height: 51.75%;
    left: 51.51%;
    top: 45.01%;
}

.landing-collage .item-8 {
    width: 21.71%;
    height: 29.57%;
    left: 65.12%;
    top: 58.24%;
}


.landing-platforms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    width: min(1361px, 100%);
    min-height: 56px;
    row-gap: 16px;
    margin: 0 auto 94px;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    box-sizing: border-box;
    padding: 0 8px;
}

.landing-platforms img {
    display: block;
    height: clamp(36px, 3.2vw, 48px);
    width: auto;
}

.landing-advantages {
    padding: 0 0 135px;
    background: #3a2317;
}

.landing-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 402px);
    gap: 95px;
    max-width: 1396px;
    margin: 0 auto;
}

.landing-adv-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 26px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 597px;
    transition: transform 0.25s cubic-bezier(0, 0, 0.58, 1),
        box-shadow 0.25s cubic-bezier(0, 0, 0.58, 1);
}

.landing-adv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 38px rgba(0, 0, 0, 0.3);
}

.landing-adv-body {
    padding: 26px;
    color: #1b0f0a;
    min-height: 299px;
}

.landing-adv-body h3 {
    margin: 0 0 18px;
    font-family: "Apercu Pro", "Montserrat", sans-serif;
    font-size: 42px;
    line-height: 42px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.landing-adv-body p {
    margin: 0;
    color: #3b2a22;
    line-height: 1.25;
    font-size: 22px;
}

.landing-adv-media {
    height: 298px;
    background: #ffffff;
}

.landing-adv-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.landing-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 137px;
}

.landing-footer {
    background: var(--landing-footer);
    min-height: 375px;
    display: flex;
    align-items: center;
}

.landing-footer__row {
    width: min(1680px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.landing-footer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-footer__logo {
    display: block;
    height: 36px;
    width: auto;
}

.landing-footer__right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    flex-wrap: wrap;
}

.landing-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.landing-footer__links a {
    color: #cbb69e;
    text-decoration: none;
    font-size: 16px;
}

.landing-footer__social {
    display: flex;
    gap: 12px;
}

.landing-social {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--landing-accent);
    color: #1b0f0a;
    font-weight: 700;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px;
}

.landing-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingLogoCycle {
    0% {
        opacity: 0;
    }
    6.25% {
        opacity: 1;
    }
    18.75% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.landing-hero__copy,
.landing-kicker,
.landing-collage,
.landing-cta-row {
    animation: landingFadeUp 0.7s ease both;
}

.landing-kicker {
    animation-delay: 0.1s;
}

.landing-collage {
    animation-delay: 0.2s;
}

.landing-adv-card {
    animation: landingFadeUp 0.7s ease both;
}

.landing-adv-card:nth-child(2) {
    animation-delay: 0.1s;
}

.landing-adv-card:nth-child(3) {
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__copy,
    .landing-kicker,
    .landing-collage,
    .landing-cta-row,
    .landing-adv-card {
        animation: none;
    }

    .landing-btn__logos img {
        animation: none;
        opacity: 0;
    }

    .landing-btn__logos img:first-child {
        opacity: 1;
    }

    .landing-adv-card,
    .landing-collage__item {
        transition: none;
    }
}

@media (max-width: 1280px) {
    .landing-hero__bg {
        height: 700px;
        background-size: cover;
        background-position: center top;
    }

    .landing-hero__copy {
        padding-top: 180px;
        max-width: min(900px, 92%);
    }

    .landing-hero__copy h1 {
        font-size: clamp(20px, 3vw, 29px);
        line-height: 1.05;
    }

    .landing-subtitle {
        font-size: 20px;
        margin-bottom: 48px;
    }

    .landing-btn,
    .landing-btn--wide {
        width: min(520px, 100%);
        height: 72px;
        font-size: 20px;
    }

    .landing-btn {
        gap: 10px;
        padding: 0 18px;
    }

    .landing-btn__logos {
        width: 180px;
        height: 28px;
    }

    .landing-kicker {
        font-size: 20px;
        line-height: 27px;
        margin: 72px auto 64px;
    }

    .landing-platforms {
        justify-content: center;
        gap: 32px;
        height: auto;
    }

    .landing-adv-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 32px;
        max-width: min(1100px, 92%);
    }

    .landing-adv-card {
        min-height: unset;
    }

    .landing-adv-body h3 {
        font-size: 32px;
        line-height: 1.1;
    }

    .landing-adv-body p {
        font-size: 18px;
    }
}

@media (max-width: 960px) {
    .landing-nav,
    .landing-header__actions {
        display: none;
    }

    .landing-burger {
        display: inline-flex;
    }

    .landing-header {
        padding-top: 28px;
    }

    .landing-header__row {
        height: 40px;
    }

    .landing-mobile-menu.open {
        display: flex;
    }
}

@media (max-width: 820px) {
    .landing-collage {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        aspect-ratio: auto;
        margin-bottom: 48px;
    }

    .landing-collage.landing-collage--video {
        display: block;
        grid-template-columns: none;
        aspect-ratio: 16 / 9;
    }

    .landing-collage__item {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .landing-collage .item-1,
    .landing-collage .item-2,
    .landing-collage .item-3,
    .landing-collage .item-4,
    .landing-collage .item-5,
    .landing-collage .item-6,
    .landing-collage .item-7,
    .landing-collage .item-8 {
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
    }

    .landing-adv-media {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .landing-brand {
        height: 30px;
    }

    .landing-brand__logo {
        height: 30px;
    }

    .landing-header {
        padding-top: 24px;
    }

    .landing-hero__bg {
        height: 520px;
        background-size: 1100px auto;
        background-position: center -140px;
    }

    .landing-hero {
        padding-bottom: 72px;
    }

    .landing-hero__copy {
        padding-top: 118px;
        max-width: 360px;
    }

    .landing-hero__copy h1 {
        font-size: 16px;
        line-height: 1.12;
        letter-spacing: 0.02em;
    }

    .landing-subtitle {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 36px;
    }

    .landing-btn,
    .landing-btn--wide {
        width: min(360px, 100%);
        height: 68px;
        font-size: 18px;
    }

    .landing-btn {
        flex-direction: row;
        min-height: 68px;
        gap: 0;
        padding: 0 16px;
        text-align: center;
    }

    .landing-btn__logos {
        width: 160px;
        height: 22px;
    }

    .landing-btn__text {
        white-space: normal;
        line-height: 1.2;
    }

    .landing-kicker {
        margin: 48px auto 32px;
        font-size: 18px;
        line-height: 1.4;
    }

    .landing-collage {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .landing-collage.landing-collage--video {
        display: block;
        width: calc((100% - 32px) / 1.5);
        margin-bottom: 32px;
        aspect-ratio: 16 / 9;
    }

    .landing-collage__item {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
    }

    .landing-collage .item-1 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-2 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-3 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-4 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-5 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-6 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-7 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-8 {
        grid-column: auto;
        grid-row: auto;
    }

    .landing-collage .item-1,
    .landing-collage .item-2,
    .landing-collage .item-3,
    .landing-collage .item-4,
    .landing-collage .item-5,
    .landing-collage .item-6,
    .landing-collage .item-7,
    .landing-collage .item-8 {
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
    }

    .landing-collage .item-3,
    .landing-collage .item-7 {
        width: 50%;
        align-self: center;
    }

    .landing-collage__item img {
        height: auto;
        object-fit: contain;
    }

    .landing-platforms {
        gap: 20px;
        height: auto;
        margin-bottom: 48px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .landing-platforms img {
        height: 28px;
    }

    .landing-adv-grid {
        grid-auto-flow: column;
        grid-auto-columns: 300px;
        overflow-x: auto;
        gap: 16px;
        padding: 0 16px 8px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        max-width: none;
        margin: 0;
        scrollbar-width: none;
    }

    .landing-adv-grid::-webkit-scrollbar {
        display: none;
    }

    .landing-adv-card {
        scroll-snap-align: start;
        min-height: auto;
    }

    .landing-adv-body {
        min-height: auto;
    }

    .landing-adv-body h3 {
        font-size: 24px;
    }

    .landing-adv-body p {
        font-size: 16px;
    }

    .landing-adv-media {
        height: 190px;
    }

    .landing-advantages {
        padding-bottom: 96px;
    }

    .landing-cta-row {
        margin-top: 64px;
    }

    .landing-footer__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .landing-footer__brand {
        order: 3;
    }

    .landing-footer__logo {
        height: 30px;
    }

    .landing-footer__right {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        margin-left: 0;
    }

    .landing-footer__links {
        justify-content: center;
    }
}
.excluded-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.5rem 0;
}

.excluded-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.excluded-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: rgba(18, 21, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    width: min(420px, 90vw);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.modal-content.auth-modal {
    width: min(560px, 92vw);
}

.auth-modal .auth-code-block {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.auth-modal .auth-code-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    margin-top: 0.55rem;
}

.auth-modal #auth-code-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-modal #auth-code-input::placeholder {
    color: rgba(165, 167, 189, 0.8);
    letter-spacing: normal;
}

.auth-modal #auth-code-input:focus {
    outline: none;
    border-color: rgba(255, 95, 109, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.16);
}

.auth-modal #auth-code-submit {
    white-space: nowrap;
}

.auth-modal #auth-modal-status {
    min-height: 1.2em;
    margin-top: 0.55rem;
}

@media (max-width: 520px) {
    .auth-modal .auth-code-row {
        flex-direction: column;
    }

    .auth-modal #auth-code-submit {
        width: 100%;
    }
}

.status-ready {
    color: #4cd964;
}

.status-processing {
    color: #ffcc00;
}

.status-failed {
    color: #ff4d4f;
}

.error {
    color: #ff4d4f;
}

.hidden {
    display: none !important;
}

.muted {
    color: #a5a7bd;
}

.platform-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.platform-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gen-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.gen-mode-option {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 14, 24, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gen-mode-option.active {
    border-color: #ff5f6d;
    box-shadow: 0 10px 24px rgba(255, 95, 109, 0.16);
    background: rgba(20, 16, 24, 0.78);
}

.gen-mode-option .platform-button {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
}

.gen-mode-video-wrap {
    width: 100%;
    aspect-ratio: 1870 / 848;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

.gen-mode-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.platform-select {
    min-width: 220px;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    color-scheme: dark;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.platform-select option {
    background: #1b1f2f;
    color: #fff;
}

.platform-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.platform-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.platform-button.active {
    border-color: #ff5f6d;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 95, 109, 0.18);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    color: #a5a7bd;
    margin: 0 0 0.35rem;
}

.adaptation-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 2rem 2rem;
}

.page-support {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #a5a7bd;
}

.page-support a {
    color: #f6d36b;
    font-weight: 600;
    text-decoration: none;
}

.page-support a:hover {
    text-decoration: underline;
}

.coins-page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1rem 2rem 2rem;
}

.coins-hero {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.coins-balance-card {
    background: rgba(18, 21, 34, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.coins-balance {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.coins-panel {
    background: rgba(18, 21, 34, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
}

.coins-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.coin-card {
    background: rgba(15, 17, 26, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.coin-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 95, 109, 0.25), transparent 70%);
    pointer-events: none;
}

.coin-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.coin-card-meta {
    color: #cfd2e7;
    font-size: 0.9rem;
}

.coin-card-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.2rem 0 0;
}

.coin-card-btn {
    margin-top: 0.4rem;
    align-self: flex-start;
}

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

.coins-help-card {
    background: rgba(18, 21, 34, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.coins-help-card ol {
    margin: 0.6rem 0 0 1.2rem;
    color: #cfd2e7;
}

.coins-help-card h3 {
    margin-top: 0;
}

.adapt-header h1 {
    margin: 0 0 0.5rem;
}

.adapt-hero {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}

.adapt-image-frame {
    background: rgba(15, 17, 26, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
}

.adapt-image {
    max-width: 100%;
    max-height: 520px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.adapt-upload-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.adapt-image-placeholder {
    text-align: center;
    color: #cfd2e7;
}

.adapt-image-placeholder small {
    color: #a5a7bd;
}

.adapt-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(15, 17, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.pulse {
    animation: pulse-border 1.2s ease-in-out 2;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 95, 109, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 95, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 95, 109, 0);
    }
}

.adapt-meta {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.adapt-meta h3 {
    margin-top: 0;
}

.adapt-meta ul {
    list-style: none;
    padding-left: 0;
    color: #cfd2e7;
}

.gen-wizard {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1rem;
}

.gen-step {
    background: rgba(18, 21, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gen-step.active {
    border-color: rgba(246, 211, 107, 0.65);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.gen-step.done {
    border-color: rgba(95, 210, 159, 0.45);
}

.gen-step.collapsed .gen-step__body,
.gen-step.collapsed .gen-step__actions {
    display: none;
}

.gen-step__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.gen-step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.gen-step.active .gen-step__num {
    border-color: #f6d36b;
    color: #f6d36b;
}

.gen-step.done .gen-step__num {
    border-color: #5fd29f;
    background: rgba(95, 210, 159, 0.2);
    color: transparent;
    position: relative;
}

.gen-step.done .gen-step__num::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5fd29f;
    font-weight: 700;
}

.gen-step__title-wrap {
    min-width: 0;
}

.gen-step__title-wrap h3 {
    margin: 0;
    font-size: 1.03rem;
    color: #fff;
}

.gen-step__summary {
    margin: 0.15rem 0 0;
    color: #b8bbce;
    font-size: 0.86rem;
}

.gen-step__body {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gen-step__hint,
.gen-step__example {
    margin: 0;
    color: #cfd2e7;
    font-size: 0.92rem;
}

.gen-step__example {
    color: #a9acc1;
}

.gen-step__preview-box {
    width: 100%;
    min-height: 190px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(15, 17, 26, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
}

.gen-upload-dropzone {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gen-upload-dropzone:hover {
    border-color: rgba(246, 211, 107, 0.45);
    background: rgba(20, 23, 35, 0.85);
}

.gen-upload-dropzone.dragover {
    border-color: rgba(246, 211, 107, 0.85);
    background: rgba(246, 211, 107, 0.12);
    box-shadow: inset 0 0 0 1px rgba(246, 211, 107, 0.3);
}

.gen-logo-dropzone {
    min-height: 150px;
}

.gen-assets-dropzone {
    min-height: 130px;
}

.gen-step__placeholder {
    margin: 0;
    color: #aeb1c8;
    text-align: center;
}

.gen-step__actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.variant-card--empty {
    cursor: default;
    opacity: 0.85;
}

.variant-card--empty:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

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

.variant-card {
    background: rgba(18, 21, 34, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.variant-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.variant-card.selected {
    border-color: #ff5f6d;
    box-shadow: 0 10px 24px rgba(255, 95, 109, 0.15);
}

.variant-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.variant-title {
    margin: 0;
    font-weight: 600;
    color: #f4f4f4;
}

.variant-size {
    color: #c3c3d2;
    font-size: 0.9rem;
    white-space: nowrap;
}

.variant-preview {
    width: 100%;
    background: rgba(14, 17, 26, 0.9);
    border-radius: 12px;
    padding: 0.6rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.variant-preview-inner {
    width: 100%;
    height: 100%;
    min-height: 140px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.adapt-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.variant-note {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.generator-page .variant-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.generator-page .variant-card {
    padding: 0.7rem 0.8rem;
    gap: 0.4rem;
}

.generator-page .variant-top {
    align-items: center;
}

.generator-page .variant-title {
    font-size: 0.95rem;
}

.generator-page .variant-size {
    font-size: 0.82rem;
}

.generator-page code {
    display: inline-flex;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f4f4f4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 0.85em;
}

.gen-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.gen-label {
    margin: 0;
}

.gen-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.gen-style-preview {
    width: min(100%, 360px);
    max-height: 220px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 17, 26, 0.78);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.gen-logo-preview {
    width: min(100%, 260px);
    max-height: 140px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 17, 26, 0.78);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    padding: 0.35rem;
}

.gen-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    line-height: 1.45;
    font-family: inherit;
}

.gen-textarea::placeholder {
    color: rgba(165, 167, 189, 0.82);
}

.gen-textarea:focus {
    outline: none;
    border-color: rgba(255, 95, 109, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.16);
}

.gen-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

#gen-style-refs-thumbs {
    width: 100%;
    justify-content: center;
    margin-top: 0;
}

.gen-thumb-wrap {
    position: relative;
    width: 76px;
    height: 76px;
}

.gen-thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    background: rgba(15, 17, 26, 0.7);
}

.gen-thumb-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(18, 21, 34, 0.95);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gen-thumb-remove:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 95, 109, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.16);
}

.gen-result-actions {
    margin-top: 0.65rem;
}

.gen-result-ribbon-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.65rem 0.25rem 0.3rem;
}

.gen-result-ribbon {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 100%;
}

.gen-result-card {
    position: relative;
    width: 420px;
    min-width: 420px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 12, 20, 0.82);
    padding: 0.55rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gen-result-card:hover {
    border-color: rgba(246, 211, 107, 0.45);
    transform: translateY(-1px);
}

.gen-result-card.selected {
    border-color: #f6d36b;
    box-shadow: 0 0 0 1px rgba(246, 211, 107, 0.6),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.gen-result-card.selected::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #f6d36b;
}

.gen-result-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.gen-result-card-number {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.gen-result-card-relation {
    font-size: 0.75rem;
    color: #aeb1c8;
    white-space: nowrap;
}

.gen-result-card-img {
    width: 100%;
    height: 330px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gen-result-card-actions {
    margin-top: 0.55rem;
    display: flex;
    justify-content: center;
}

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

.gen-result-connector {
    min-width: 48px;
    align-self: center;
    text-align: center;
    color: #f6d36b;
    font-weight: 700;
    font-size: 0.92rem;
    padding-top: 1.6rem;
}

.gen-edit-panel {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 20, 0.75);
}

.gen-edit-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.gen-admin-prompt {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 20, 0.75);
}

.gen-admin-prompt pre {
    margin: 0.45rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #d7d9ea;
    font-size: 0.88rem;
    line-height: 1.4;
}

.feedback-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feedback-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feedback-buttons .btn.active {
    border-color: #ff5f6d;
    background: rgba(255, 95, 109, 0.18);
    color: #fff;
}

.adapt-result {
    margin-top: 1rem;
    background: rgba(18, 21, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem;
}

.adapt-result img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

.adapt-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(18, 21, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.spinner-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff5f6d;
    animation: spinner-rotate 1s linear infinite;
}

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

    .gen-step__header {
        flex-wrap: wrap;
    }
}

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

    .gen-step {
        padding: 0.8rem;
    }

    .gen-step__actions {
        flex-direction: column;
    }

    .gen-step__actions .btn {
        width: 100%;
    }

    .gen-result-card {
        width: 330px;
        min-width: 330px;
    }

    .gen-result-card-img {
        height: 270px;
    }

    .gen-result-connector {
        min-width: 34px;
        font-size: 0.82rem;
        padding-top: 1.25rem;
    }
}

.legal-page {
    max-width: min(960px, 92%);
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.legal-content {
    background: rgba(18, 21, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    color: #d8daeb;
    line-height: 1.6;
    font-size: 1rem;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: #fff;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}

.legal-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.legal-content h2 {
    font-size: 1.35rem;
}

.legal-content h3 {
    font-size: 1.15rem;
}

.legal-content p {
    margin: 0.75rem 0;
}

.legal-content strong {
    color: #fff;
}

.legal-content a {
    color: #ffb26d;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.4rem;
    margin: 0.75rem 0;
}

.legal-content li {
    margin: 0.35rem 0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.legal-content th,
.legal-content td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.legal-content th {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.legal-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 1.5rem 0 3rem;
    }

    .legal-content {
        padding: 1.25rem 1.4rem;
    }
}
