.creator-page {
    --creator-bg: #0c0b0d;
    --creator-surface: #171519;
    --creator-surface-raised: #211e23;
    --creator-text: #ffffff;
    --creator-muted: #c7c2ca;
    --creator-line: #3f3942;
    --creator-accent: #ffd34e;
    --creator-accent-strong: #ffbd2e;
    min-height: 100vh;
    margin: 0;
    color: var(--creator-text);
    background: var(--creator-bg);
    font-family: "DM Sans", system-ui, sans-serif;
    overflow-x: clip;
}
.creator-member-login{display:grid;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.16);text-align:left}.creator-member-login label{font-size:.78rem;font-weight:750}.creator-member-login>div{display:grid;grid-template-columns:1fr auto;gap:7px}.creator-member-login input,.creator-member-login button{min-height:42px;border:1px solid rgba(255,255,255,.2);border-radius:10px;font:inherit}.creator-member-login input{min-width:0;padding:9px 11px;color:#171411;background:#fff}.creator-member-login button{padding:8px 12px;color:#fff;background:rgba(255,255,255,.12);font-weight:800;cursor:pointer}.creator-member-login small{min-height:18px;color:rgba(255,255,255,.72);line-height:1.4}@media(max-width:520px){.creator-member-login>div{grid-template-columns:1fr}}

.creator-page *,
.creator-page *::before,
.creator-page *::after { box-sizing: border-box; }
.creator-page button,
.creator-page input,
.creator-page textarea,
.creator-page select { font: inherit; }
.creator-page button,
.creator-page a { -webkit-tap-highlight-color: transparent; }
.creator-page button:focus-visible,
.creator-page a:focus-visible,
.creator-page input:focus-visible,
.creator-page textarea:focus-visible { outline: 3px solid var(--creator-accent); outline-offset: 3px; }

.creator-page .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 10px max(18px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--creator-line);
    background: rgba(12, 11, 13, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.creator-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.creator-page .mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #17120a;
    background: var(--creator-accent);
    font-size: 1rem;
    font-weight: 900;
}

.creator-page .topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.creator-page .save-status { color: var(--creator-muted); font-size: 1rem; font-weight: 700; }
.creator-page .back,
.creator-page .reset-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid var(--creator-line);
    border-radius: 12px;
    color: #fff;
    background: var(--creator-surface);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.creator-page .back:hover,
.creator-page .reset-button:hover { border-color: #817887; background: var(--creator-surface-raised); }

.creator-page .hero { max-width: 1180px; margin: 0 auto; padding: 36px 18px 14px; }
.creator-page .hero h1 {
    max-width: 840px;
    margin: 0;
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
}
.creator-page .hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--creator-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    line-height: 1.6;
}

.creator-page .app {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 18px 44px;
    display: grid;
    grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}
.creator-page .preview-wrap,
.creator-page .panel {
    border-radius: 22px;
    background: var(--creator-surface);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.creator-page .preview-wrap {
    position: sticky;
    top: 82px;
    min-height: 690px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px;
}
.creator-page .preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 12px; }
.creator-page .preview-head div { display: grid; gap: 2px; }
.creator-page .preview-head strong { color: #fff; font-size: 1rem; }
.creator-page .preview-head span,
.creator-page .canvas-status { color: var(--creator-muted); font-size: 0.75rem; font-weight: 700; }
.creator-page .canvas-status { display: inline-flex; align-items: center; gap: 7px; }
.creator-page .canvas-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #79d69a; }
.creator-page .preview-wrap.is-rendering .canvas-status::before { background: var(--creator-accent); }
.creator-page .canvas-stage { min-height: 0; display: grid; place-items: center; padding: 12px; border-radius: 14px; background: #09080a; }
.creator-page canvas {
    width: auto;
    max-width: 100%;
    max-height: 620px;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #1a181c;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.creator-page .panel { min-width: 0; overflow: clip; }
.creator-page .panel-head { padding: 20px 22px 15px; }
.creator-page .panel-head strong { display: block; color: #fff; font-family: "Outfit", sans-serif; font-size: 1.5rem; line-height: 1.2; }
.creator-page .panel-head span { display: block; margin-top: 5px; color: var(--creator-muted); font-size: 1rem; font-weight: 600; line-height: 1.45; }

.creator-page .step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--creator-line);
}
.creator-page .step-nav button {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 0;
    border-radius: 10px;
    color: var(--creator-muted);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}
.creator-page .step-nav button span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #5b535f; border-radius: 50%; color: #fff; font-size: 0.75rem; }
.creator-page .step-nav button:hover { color: #fff; background: #242127; }
.creator-page .step-nav button.active { color: #17120a; background: var(--creator-accent); }
.creator-page .step-nav button.active span { border-color: #17120a; color: #17120a; }

.creator-page .steps { min-height: 410px; padding: 22px; }
.creator-page .step[hidden] { display: none; }
.creator-page .step { animation: creatorStepIn 160ms ease-out; }
@keyframes creatorStepIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.creator-page .step h2 { margin: 0 0 18px; color: #fff; font-family: "Outfit", sans-serif; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; }
.creator-page .field { display: grid; gap: 8px; margin-bottom: 18px; }
.creator-page label:not(.switch) { color: #f3eff5; font-size: 1rem; font-weight: 800; }
.creator-page textarea,
.creator-page input[type="text"],
.creator-page input[type="file"],
.creator-page select {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid #544c59;
    border-radius: 12px;
    color: #fff;
    background: #0f0e11;
    outline: 0;
}
.creator-page textarea { min-height: 142px; resize: vertical; font-size: 1rem; line-height: 1.5; }
.creator-page textarea:focus,
.creator-page input[type="text"]:focus,
.creator-page input[type="file"]:focus { border-color: var(--creator-accent); }
.creator-page input[type="range"] { width: 100%; min-height: 28px; accent-color: var(--creator-accent-strong); }
.creator-page .hint { color: var(--creator-muted); font-size: 0.75rem; font-weight: 600; line-height: 1.45; }
.creator-page .hint.error { color: #ff9a9a; }

.creator-page .chips,
.creator-page .swatches { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; scrollbar-color: #5d5662 transparent; }
.creator-page .chip,
.creator-page .swatch,
.creator-page .format {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #544c59;
    border-radius: 12px;
    color: #fff;
    background: #252129;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}
.creator-page .chip:hover,
.creator-page .swatch:hover,
.creator-page .format:hover { border-color: #8c8291; background-color: #302b33; }
.creator-page .chip.active,
.creator-page .swatch.active,
.creator-page .format.active { border-color: var(--creator-accent); color: #17120a; background: var(--creator-accent); }
.creator-page .swatch.bg { width: 82px; height: 66px; padding: 0; border-radius: 13px; background-image: var(--bg-preview); background-size: cover; background-position: center; }
.creator-page .photo-card {
    position: relative;
    flex: 0 0 132px;
    height: 94px;
    padding: 0;
    overflow: clip;
    border: 2px solid #544c59;
    border-radius: 13px;
    color: #151217;
    background-image: var(--photo);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.creator-page .photo-card::after {
    content: attr(data-label);
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 6px 7px;
    border-radius: 8px;
    color: #171217;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}
.creator-page .photo-card.active { border-color: var(--creator-accent); box-shadow: 0 0 0 2px #171519; }
.creator-page .swatch.color { width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--color); }

.creator-page .toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px; border: 1px solid #4a444f; border-radius: 13px; background: #211e23; }
.creator-page .toggle-row strong { display: block; color: #fff; font-size: 1rem; }
.creator-page .toggle-row div > span { display: block; margin-top: 3px; color: var(--creator-muted); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.creator-page .switch { position: relative; width: 52px; height: 30px; }
.creator-page .switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.creator-page .slider { position: absolute; inset: 0; border-radius: 15px; background: #57515b; cursor: pointer; }
.creator-page .slider::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 160ms ease-out; }
.creator-page .switch input:focus-visible + .slider { outline: 3px solid var(--creator-accent); outline-offset: 3px; }
.creator-page .switch input:checked + .slider { background: #d49a00; }
.creator-page .switch input:checked + .slider::after { transform: translateX(22px); }

.creator-page .upload-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.creator-page .upload-status button { flex: 0 0 auto; padding: 5px 0; border: 0; color: #fff; background: transparent; font-size: 0.75rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.creator-page .step-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--creator-line); }
.creator-page .step-controls > span { color: var(--creator-muted); font-size: 0.75rem; font-weight: 700; }
.creator-page .step-button { justify-self: end; min-height: 44px; padding: 10px 18px; border: 1px solid var(--creator-accent); border-radius: 12px; color: #17120a; background: var(--creator-accent); font-weight: 850; cursor: pointer; }
.creator-page .step-button.secondary { justify-self: start; border-color: #5d5561; color: #fff; background: transparent; }
.creator-page .step-button:disabled { opacity: 0.42; cursor: not-allowed; }

.creator-page .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 14px 22px 20px; background: #111013; }
.creator-page .btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid #5a525e; border-radius: 12px; color: #fff; background: #252229; font-size: 1rem; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.creator-page .btn.primary { border-color: #fff; color: #151217; background: #fff; }
.creator-page .btn.accent { border-color: var(--creator-accent); color: #17120a; background: var(--creator-accent); }
.creator-page .btn:disabled { opacity: 0.62; cursor: progress; }

.creator-page .toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; color: #171217; background: #fff; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3); font-size: 1rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.creator-page .toast.show { opacity: 1; transform: translate(-50%, 0); }

.creator-page .paywall { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(5, 5, 7, 0.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.creator-page .paywall.open { display: flex; }
.creator-page .paywall-card { position: relative; width: min(440px, 100%); padding: 26px; border-radius: 20px; color: #fff; background: #241b25; box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42); }
.creator-page .paywall-card .badge { display: inline-block; margin-bottom: 12px; color: var(--creator-accent); font-size: 0.75rem; font-weight: 800; }
.creator-page .paywall-card h2 { margin: 0 36px 9px 0; color: #fff; font-family: "Outfit", sans-serif; font-size: 2rem; line-height: 1.12; }
.creator-page .paywall-card p,
.creator-page .paywall-card li { color: #e3dce5; font-weight: 600; line-height: 1.5; }
.creator-page .paywall-card ul { display: grid; gap: 6px; margin: 15px 0; padding-left: 19px; }
.creator-page .pay-price { margin: 14px 0; font-family: "Outfit", sans-serif; font-size: 1.5rem; font-weight: 850; }
.creator-page .pay-price small { display: block; margin-top: 3px; color: #d4cad6; font-family: "DM Sans", sans-serif; font-size: 0.75rem; }
.creator-page .pay-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.creator-page .pay-cta,
.creator-page .pay-secondary { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 14px; border: 1px solid #6a606d; border-radius: 12px; color: #fff; background: transparent; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.creator-page .pay-cta { border-color: var(--creator-accent); color: #17120a; background: var(--creator-accent); }
.creator-page .pay-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid #716674; border-radius: 10px; color: #fff; background: #312a33; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
    .creator-page .topbar { min-height: 58px; padding: 8px 10px; }
    .creator-page .mark { width: 32px; height: 32px; }
    .creator-page .brand > span:last-child,
    .creator-page .save-status { display: none; }
    .creator-page .back,
    .creator-page .reset-button { min-height: 38px; padding: 8px 10px; font-size: 0.75rem; }
    .creator-page .hero { display: none; }
    .creator-page .app { height: calc(100svh - 58px); padding: 7px; grid-template-columns: 1fr; grid-template-rows: minmax(210px, 37%) minmax(0, 63%); gap: 7px; }
    .creator-page .preview-wrap { position: static; min-height: 0; padding: 8px; border-radius: 16px; }
    .creator-page .preview-head { padding: 0 2px 7px; }
    .creator-page .canvas-stage { padding: 6px; border-radius: 10px; overflow: clip; }
    .creator-page canvas { max-width: 100%; max-height: calc(37svh - 55px); border-radius: 8px; }
    .creator-page .panel { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; border-radius: 16px; }
    .creator-page .panel-head { padding: 10px 12px 7px; }
    .creator-page .panel-head strong { font-size: 1.5rem; }
    .creator-page .panel-head span { display: none; }
    .creator-page .step-nav { gap: 3px; padding: 0 7px 7px; }
    .creator-page .step-nav button { min-height: 36px; padding: 4px; font-size: 0; }
    .creator-page .step-nav button span { width: 26px; height: 26px; font-size: 0.75rem; }
    .creator-page .steps { min-height: 0; padding: 12px; overflow-y: auto; overscroll-behavior: contain; }
    .creator-page .step h2 { margin-bottom: 11px; font-size: 1.5rem; }
    .creator-page .field { gap: 6px; margin-bottom: 12px; }
    .creator-page textarea { min-height: 88px; max-height: 112px; padding: 10px 12px; font-size: 1rem; }
    .creator-page textarea,
    .creator-page input[type="text"],
    .creator-page input[type="file"] { min-height: 44px; }
    .creator-page .chip,
    .creator-page .swatch,
    .creator-page .format { min-height: 42px; padding: 8px 11px; font-size: 0.75rem; }
    .creator-page .swatch.bg { width: 68px; height: 54px; }
    .creator-page .photo-card { flex-basis: 106px; height: 76px; }
    .creator-page .photo-card::after { left: 5px; right: 5px; bottom: 5px; padding: 5px; }
    .creator-page .toggle-row { padding: 11px; }
    .creator-page .step-controls { padding: 8px 12px; }
    .creator-page .step-button { min-height: 40px; padding: 8px 12px; font-size: 0.75rem; }
    .creator-page .actions { gap: 6px; padding: 7px 9px 9px; }
    .creator-page .btn { min-height: 42px; padding: 7px; font-size: 0.75rem; }
    .creator-page .paywall-card { max-height: calc(100svh - 28px); overflow-y: auto; padding: 22px; border-radius: 16px; }
}

@media (max-width: 430px) {
    .creator-page .back { max-width: 122px; line-height: 1.1; text-align: center; }
    .creator-page .reset-button { font-size: 0; }
    .creator-page .reset-button::after { content: "Limpar"; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .creator-page *,
    .creator-page *::before,
    .creator-page *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
