/* App pages: sign-in, onboarding, phone upload, studio, help. Builds on site.css tokens. */

.app {
    width: min(1040px, 100% - 32px);
    margin: 0 auto;
    padding: 44px 0 96px;
}

.app-narrow { width: min(720px, 100% - 32px); }

.app-head {
    margin-bottom: 30px;
    text-align: center;
}

.app-head h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.02em;
}

.app-head p {
    max-width: 60ch;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 14px;
    border: 1px solid rgba(156, 211, 168, .35);
    border-radius: 999px;
    color: var(--ok);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashes {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 26px;
}

.dashes span {
    width: 26px;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
}

.dashes span.on { background: var(--key); }

.card {
    margin-bottom: 18px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(34, 41, 51, .72);
}

.card h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
}

.card > p.sub,
.card-head p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
}

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

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--key);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.link-btn:hover { text-decoration: underline; }

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.actions .btn { min-width: 220px; }

.hint {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
}

.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }

/* Form fields (same look as the home page modals) */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.field input, .field textarea, .field select {
    width: 100%; height: 48px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--backdrop-deep); color: var(--text);
}
.field textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--key); box-shadow: 0 0 0 3px rgba(242, 226, 194, .18);
}
.form-error { min-height: 22px; margin: 4px 0 8px; color: var(--err); font-size: 14.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choice tiles (attire, format, eye color, packages) */
.choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--backdrop-deep);
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.choice:hover { border-color: var(--muted); }

.choice[aria-pressed="true"] {
    border-color: var(--key);
    background: rgba(242, 226, 194, .07);
    box-shadow: 0 0 0 1px var(--key) inset;
}

.choice strong { font-size: 17px; }
.choice span { color: var(--muted); font-size: 14px; }

.choice .badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--key);
    color: var(--strip);
    font-size: 12px;
    white-space: nowrap;
}

.frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 96px;
}

.frame img {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
    object-position: 50% 20%;
    background: var(--surface);
}

.frame .land { width: 110px; height: 88px; }
.frame .port { width: 72px; height: 90px; }

.swatch {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--key);
    color: #1A1F27;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-ok { background: rgba(156, 211, 168, .16); color: var(--ok); }
.badge-err { background: rgba(242, 166, 155, .16); color: var(--err); }

/* Purchase */
.purchase {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 22px;
    align-items: start;
}

.packages { display: grid; gap: 12px; }
.packages .choice { flex-direction: row; justify-content: space-between; text-align: left; padding: 18px 20px; }
.packages .choice div { display: flex; flex-direction: column; gap: 2px; }
.packages .price { font-family: var(--serif); font-size: 28px; }

.summary h2 { margin-bottom: 14px; }
.summary ul { margin: 0 0 18px; padding: 0; list-style: none; }
.summary li { display: flex; gap: 10px; padding: 5px 0; color: var(--body); font-size: 15px; }
.summary li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.summary .total { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; }
.summary .total strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }

.trust { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { padding: 3px 0; }
.summary .trust li::before { content: none; }

/* Start + instructions */
.tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tip { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(34, 41, 51, .72); }
.tip strong { display: block; margin-bottom: 6px; font-size: 17px; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }
.tip .icon { display: inline-flex; margin-bottom: 12px; color: var(--key); }

.dodont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(34, 41, 51, .72);
}

.dodont > div { padding: 26px 28px; }
.dodont > div + div { border-left: 1px solid var(--line); }
.dodont h2 { margin: 0 0 14px; font-size: 20px; }
.dodont .dont h2 { color: var(--err); }
.dodont .do h2 { color: var(--ok); }
.dodont ul { margin: 0; padding: 0; list-style: none; }
.dodont li { padding: 6px 0 6px 26px; position: relative; color: var(--body); font-size: 15.5px; }
.dodont .dont li::before { content: "✕"; position: absolute; left: 0; color: var(--err); }
.dodont .do li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--body);
    font-size: 15.5px;
    cursor: pointer;
}

.check + .check { border-top: 1px solid rgba(49, 58, 70, .6); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--key); }

.consent { margin-top: 18px; }

/* Upload */
.uploader {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(34, 41, 51, .72);
}

.uploader > div { padding: 26px 28px; }
.uploader .phone { border-right: 1px solid var(--line); background: rgba(20, 25, 32, .35); border-radius: 18px 0 0 18px; }
.uploader .phone h2 { margin: 12px 0 6px; font-size: 18px; }
.uploader .phone p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

.qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
}

.qr img { width: 100%; max-width: 220px; }

.copy-link {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.copy-link input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--backdrop-deep);
    color: var(--muted);
    font-size: 13px;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 20px;
    border: 1.5px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.dropzone:hover, .dropzone.over { border-color: var(--key); background: rgba(242, 226, 194, .05); }
.dropzone strong { color: var(--text); font-size: 16px; }
.dropzone .icon { color: var(--key); }

.body-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.body-slot p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.meter { display: flex; gap: 6px; margin: 10px 0 18px; }
.meter span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.meter span.on { background: var(--ok); }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.row-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.row-head span { color: var(--muted); font-size: 13.5px; }

/* Photo grids */
.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--backdrop-deep);
    cursor: pointer;
}

.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.selected { border-color: var(--ok); }
.photo.rejected img { opacity: .4; filter: grayscale(1); }
.photo.busy img { opacity: .5; }

.photo .score {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(14, 17, 21, .75);
    font-size: 12px;
    font-weight: 700;
}

.photo .tick {
    position: absolute;
    top: 6px;
    left: 6px;
    display: none;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ok);
    color: #12321C;
    font-size: 13px;
    font-weight: 800;
}

.photo.selected .tick { display: inline-flex; }

.photo .note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 8px 6px;
    background: linear-gradient(transparent, rgba(14, 17, 21, .9));
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo.rejected .note { color: var(--err); }

.photo .remove {
    position: absolute;
    right: 6px;
    bottom: 26px;
    display: none;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 17, 21, .8);
    color: var(--text);
    cursor: pointer;
}

.photo:hover .remove { display: block; }

.spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner::after,
.loading::before {
    content: "";
    width: 26px;
    height: 26px;
    border: 3px solid rgba(242, 226, 194, .25);
    border-top-color: var(--key);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 0;
    color: var(--muted);
}

/* Descriptions */
.desc-card .toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--backdrop-deep); }
.desc-card .toggle button {
    height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted); font-weight: 600; cursor: pointer;
}
.desc-card .toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.desc-card p.text { margin: 12px 0 0; color: var(--body); font-size: 16px; }
.desc-card.removed p.text { opacity: .4; text-decoration: line-through; }

/* Style pickers */
.counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
}

.counter i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.counter i.on { background: var(--ok); }

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.tabs button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.tabs button span { margin-left: 4px; opacity: .7; }

.styles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 12px;
}

.style {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--backdrop-deep);
    color: var(--text);
    cursor: pointer;
}

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

.style span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 12px 10px;
    background: linear-gradient(transparent, rgba(14, 17, 21, .88));
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.style[aria-pressed="true"] { border-color: var(--ok); }

.style[aria-pressed="true"]::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ok);
    color: #12321C;
    font-weight: 800;
}

.sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(28, 34, 43, .94);
    backdrop-filter: blur(10px);
}

.sticky-bar p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Review */
.review-person { display: flex; align-items: center; gap: 16px; }
.review-person img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.review-person strong { display: block; font-size: 18px; }
.review-person span { color: var(--muted); font-size: 14.5px; }
.mini-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.mini-styles .style { cursor: default; }

/* Progress */
.progress-wrap { max-width: 620px; margin: 60px auto; }
.progress-wrap h1 { margin: 22px 0 10px; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.progress-wrap p { color: var(--muted); }

.bar {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--line);
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--ok);
    transition: width .6s ease;
}

.bar.indeterminate i { width: 30%; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-scrim { position: absolute; inset: 0; background: rgba(8, 10, 14, .72); backdrop-filter: blur(4px); }
.modal-card {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 32px 30px 28px; border: 1px solid var(--line); border-radius: 22px;
    background: #1F252E; box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.modal-card.wide { width: min(1080px, 100%); padding: 0; }
.modal-card h3 { margin: 0 0 10px; padding-right: 30px; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; }
.modal-card p { color: var(--muted); }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px;
    border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer;
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.pay-card { width: min(560px, 100%); padding: 18px; background: #f6f7f9; }
.pay-card .modal-close { color: #4b5563; }
.pay-card .modal-close:hover { background: #e5e7eb; }
#checkout { min-height: 420px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.split div { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; }
.split .good { background: rgba(156, 211, 168, .1); border: 1px solid rgba(156, 211, 168, .35); color: var(--ok); }
.split .bad { background: rgba(242, 166, 155, .08); border: 1px solid rgba(242, 166, 155, .3); color: var(--err); }
.split strong { display: block; margin-bottom: 4px; }

.credit-box { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(242, 226, 194, .3); border-radius: 14px; background: rgba(242, 226, 194, .06); }
.credit-box strong { color: var(--text); }

/* Studio */
.studio-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.studio-bar h1 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.studio-bar .tools { display: flex; flex-wrap: wrap; gap: 8px; }

.credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(242, 226, 194, .35);
    border-radius: 999px;
    color: var(--key);
    font-size: 14.5px;
    font-weight: 700;
}

.banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(34, 41, 51, .72);
}

.banner.working { border-color: rgba(242, 226, 194, .35); }
.banner .loading { padding: 0; }
.banner .loading::before { width: 22px; height: 22px; }
.banner strong { display: block; }
.banner p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.banner > div { flex: 1; }

.chooser { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.chooser aside { position: sticky; top: 90px; }
.keeper-thumbs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; margin: 12px 0 16px; }
.keeper-thumbs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--backdrop); }

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

.shot {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--backdrop-deep);
    cursor: pointer;
}

.shot.land { aspect-ratio: 5 / 4; }
.shot.port { aspect-ratio: 4 / 5; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.picked { border-color: var(--ok); }
.shot.dud img { opacity: .55; }

.shot .heart, .shot .pick-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 17, 21, .7);
    color: var(--text);
    cursor: pointer;
}

.shot .heart.on { color: #F2A69B; }
.shot .pick-mark { display: none; background: var(--ok); color: #12321C; font-weight: 800; }
.shot.picked .pick-mark { display: flex; }

.shot .tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(14, 17, 21, .75);
    font-size: 12px;
    font-weight: 600;
}

.shot.add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px dashed var(--line);
    background: transparent;
    color: var(--muted);
    text-align: center;
}

.shot.add strong { color: var(--text); font-size: 17px; }
.shot.add:hover { border-color: var(--key); }

/* Editor */
.editor { display: grid; grid-template-columns: 1fr 360px; min-height: 560px; }
.editor .stage { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-right: 1px solid var(--line); }
.editor .stage .view { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 360px; border-radius: 14px; background: var(--backdrop-deep); overflow: hidden; }
.editor .stage .view img { max-height: 62vh; object-fit: contain; }
.editor .stage .view .label { position: absolute; top: 10px; left: 10px; }
.editor .versions { display: flex; gap: 8px; overflow-x: auto; }
.editor .versions button { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--backdrop-deep); cursor: pointer; }
.editor .versions button[aria-pressed="true"] { border-color: var(--key); }
.editor .versions img { width: 100%; height: 100%; object-fit: cover; }
.editor .side { display: flex; flex-direction: column; gap: 14px; padding: 56px 24px 24px; }
.editor .side h4 { margin: 0; font-size: 18px; }
.editor .side p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
.chips button:hover { border-color: var(--key); }
.editor .side .field { margin: 0; }
.editor .side .spacer { flex: 1; }

/* Create photo */
.create { display: grid; grid-template-columns: 1fr 300px; }
.create .pick { padding: 26px; max-height: 80vh; overflow-y: auto; border-right: 1px solid var(--line); }
.create .pick h4 { margin: 18px 0 12px; font-size: 17px; }
.create .pick h4:first-of-type { margin-top: 0; }
.create .pick .styles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.create .combo { display: flex; flex-direction: column; gap: 14px; padding: 56px 22px 22px; }
.combo-item { display: flex; align-items: center; gap: 12px; }
.combo-item .thumb { flex: none; width: 46px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--backdrop-deep); border: 1px solid var(--line); }
.combo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.combo-item img[hidden] { display: none; }
.combo-item small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.stepper div { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #2A323E;
    color: var(--text);
    font-size: 15px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(242, 166, 155, .5); }

/* Sign-in */
.signin { width: min(440px, 100% - 32px); margin: 70px auto 100px; }
.signin .card { padding: 32px 30px; }
.signin h1 { margin: 0 0 8px; font-family: var(--serif); font-size: 38px; font-weight: 400; }
.signin p { margin: 0 0 22px; color: var(--muted); }
.btn-google { width: 100%; background: #fff; color: #1f2937; }
.btn-google:hover { background: #f3f4f6; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { letter-spacing: .5em; text-align: center; font-size: 22px !important; }

/* Phone upload */
.phone-upload { width: min(560px, 100% - 28px); margin: 28px auto 60px; }
.phone-upload h1 { margin: 0 0 8px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.phone-upload p { color: var(--muted); }
.phone-upload .btn { width: 100%; height: 56px; font-size: 17px; }

/* Help */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* Blog list */
.posts { display: grid; gap: 18px; margin-top: 40px; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(34, 41, 51, .72); color: var(--text); text-decoration: none; }
.post-card:hover { border-color: var(--muted); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--surface); }
.post-card h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-card time { color: var(--muted); font-size: 13.5px; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
    .purchase, .uploader, .chooser, .editor, .create, .dodont { grid-template-columns: 1fr; }
    .uploader .phone { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; }
    .dodont > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .editor .stage, .create .pick { border-right: 0; border-bottom: 1px solid var(--line); }
    .chooser aside { position: static; }
    .tips { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .actions { flex-direction: column-reverse; }
    .actions .btn { width: 100%; }
}

@media (max-width: 560px) {
    .card { padding: 22px 18px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .styles { grid-template-columns: repeat(2, 1fr); }
}
