/* =====================================================================
   CutView - sistema de design
   Dois temas: claro minimalista e escuro dourado.
   Tudo aqui e token: trocar o data-theme no <html> troca a interface toda.
   ===================================================================== */

/* --- TEMA CLARO (padrao) ------------------------------------------- */
:root {
    --bg:             #FBFBFA;
    --surface:        #FFFFFF;
    --surface-2:      #F4F4F2;
    --surface-hover:  #EFEEEB;
    --border:         #E6E4E0;
    --border-strong:  #D4D1CB;

    --text:           #1A1917;
    --text-muted:     #6B6862;
    --text-subtle:    #8D8981;

    /* Ambar escurecido: sobre branco atinge contraste AA (5.2:1).
       O dourado puro so aparece no tema escuro, onde ele funciona. */
    --accent:         #9A6B08;
    --accent-hover:   #7E5706;
    --accent-soft:    #FDF6E7;

    /* No claro o botao principal e tinta, nao dourado: e o que mantem
       a tela minimalista em vez de decorada. */
    --primary:        #1A1917;
    --primary-hover:  #33312D;
    --primary-text:   #FFFFFF;

    --ring:           rgba(154, 107, 8, .30);
    --danger:         #B42318;
    --danger-soft:    #FEF3F2;
    --success:        #067647;
    --success-soft:   #ECFDF3;

    --shadow-sm: 0 1px 2px rgba(26, 25, 23, .05);
    --shadow-md: 0 4px 16px -4px rgba(26, 25, 23, .10), 0 2px 4px rgba(26, 25, 23, .04);
    --shadow-lg: 0 24px 48px -12px rgba(26, 25, 23, .16);

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;

    color-scheme: light;
}

/* --- TEMA ESCURO ---------------------------------------------------- */
[data-theme="dark"] {
    --bg:             #0E0E10;
    --surface:        #16161A;
    --surface-2:      #1E1E23;
    --surface-hover:  #26262D;
    --border:         #2A2A31;
    --border-strong:  #3B3B45;

    --text:           #F2F0EC;
    --text-muted:     #A5A199;
    --text-subtle:    #807C74;

    --accent:         #E3B341;
    --accent-hover:   #EFC45F;
    --accent-soft:    rgba(227, 179, 65, .12);

    --primary:        #E3B341;
    --primary-hover:  #EFC45F;
    --primary-text:   #1A1611;

    --ring:           rgba(227, 179, 65, .38);
    --danger:         #F97066;
    --danger-soft:    rgba(249, 112, 102, .12);
    --success:        #4ADE80;
    --success-soft:   rgba(74, 222, 128, .12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 56px -12px rgba(0, 0, 0, .70);

    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- marca ---------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--accent); flex: none; }
.brand__name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.025em;
}
.brand__name b { font-weight: 720; }

/* --- alternador de tema --------------------------------------------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --- superficies ---------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- formulario ----------------------------------------------------- */
.field { margin-bottom: 18px; }

.label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 560;
    color: var(--text);
}

.input {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px; /* 16px ou menos causa zoom automatico no iOS; 15px com -webkit-text-size-adjust resolve */
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder { color: var(--text-subtle); }
.input:hover { border-color: var(--text-subtle); }
.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px var(--ring);
}
.input[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
}

.field__hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* --- botoes --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 570;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .18s, border-color .18s, transform .06s, opacity .18s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--primary); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-text); }

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn--inline { width: auto; }

/* --- avisos --------------------------------------------------------- */
.alert {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
.alert svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.alert--error   { background: var(--danger-soft);  border-color: var(--danger);  color: var(--danger); }
.alert--success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.alert--warning { background: var(--accent-soft);  border-color: var(--accent);  color: var(--accent); }

/* --- telas de autenticacao ------------------------------------------ */
.auth {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 20px;
}

.auth__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4px 0 28px;
}

.auth__body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

.auth__card {
    width: 100%;
    max-width: 408px;
    padding: 32px 28px;
}

.auth__title { font-size: 25px; margin-bottom: 8px; }

.auth__subtitle {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 14.5px;
}

.auth__foot {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-subtle);
}

/* Brilho dourado atras do cartao - so no tema escuro, onde ele tem efeito */
.auth__glow { display: none; }
[data-theme="dark"] .auth__glow {
    display: block;
    position: fixed;
    top: -10%;
    left: 50%;
    width: min(680px, 120vw);
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(227, 179, 65, .13), transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.auth > * { position: relative; z-index: 1; }

@media (min-width: 600px) {
    .auth { padding: 28px; }
    .auth__card { padding: 40px 36px; }
}

/* =====================================================================
   AREA LOGADA
   ===================================================================== */

.app { display: flex; flex-direction: column; min-height: 100dvh; }

.app__top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.app__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.app__actions { display: flex; align-items: center; gap: 10px; }

.app__user {
    display: none;
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.35;
}
.app__user b { display: block; color: var(--text); font-weight: 580; }
@media (min-width: 640px) { .app__user { display: block; } }

/* Navegacao: rola na horizontal no celular em vez de sumir num menu */
.app__nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.app__nav::-webkit-scrollbar { display: none; }

.nav-link {
    flex: none;
    padding: 9px 14px 11px;
    font-size: 14.5px;
    font-weight: 520;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.app__main { flex: 1; padding: 26px 0 64px; }

/* --- cabecalho de pagina --------------------------------------------- */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.page-head h1 { font-size: 23px; }
.page-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* --- secoes ----------------------------------------------------------- */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.section__head h2 { font-size: 15.5px; font-weight: 620; }
.section__head p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }

.section__body { padding: 18px; }
.section__body > :last-child { margin-bottom: 0; }

/* --- tabela ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    padding: 11px 18px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 620;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-subtle);
    background: var(--surface-2);
    white-space: nowrap;
}
.table td { padding: 13px 18px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__main { font-weight: 570; color: var(--text); }
.table__sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }

/*
   No celular a tabela vira lista de cartoes. Tabela com rolagem lateral
   esconde justamente a ultima coluna - que e onde ficam as acoes.
*/
@media (max-width: 767px) {
    .table--stack thead { display: none; }

    .table--stack,
    .table--stack tbody,
    .table--stack tr,
    .table--stack td { display: block; width: 100%; }

    .table--stack tr { padding: 14px 16px; border-top: 1px solid var(--border); }
    .table--stack tbody tr:first-child { border-top: 0; }
    .table--stack td { padding: 3px 0; border: 0; }
    .table--stack td:empty { display: none; }
    .table--stack .num { text-align: left; }
    .table--stack .btn-row { justify-content: flex-start !important; margin-top: 10px; }

    /* Rotulo da coluna vira prefixo da celula */
    .table--stack td[data-label]::before {
        content: attr(data-label) ": ";
        color: var(--text-subtle);
        font-size: 12.5px;
    }
    .table--stack td[data-label="__none__"]::before { content: ""; }
}

/* --- selo de status --------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 560;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active    { background: var(--success-soft); color: var(--success); }
.badge--trial     { background: var(--accent-soft);  color: var(--accent); }
.badge--suspended,
.badge--canceled,
.badge--past_due  { background: var(--danger-soft);  color: var(--danger); }
.badge--muted     { background: var(--surface-2);    color: var(--text-muted); }

/* --- formularios em grade --------------------------------------------- */
.grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.select {
    width: 100%;
    padding: 12px 38px 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--ring); }

/* --- botoes extras ---------------------------------------------------- */
.btn--sm { width: auto; padding: 8px 13px; font-size: 13.5px; border-radius: var(--radius-sm); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- cartoes de numero ------------------------------------------------ */
.stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    margin-bottom: 20px;
}

.stat {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.stat__label { margin-bottom: 7px; font-size: 12.5px; color: var(--text-muted); }
.stat__value { font-size: 25px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.stat__value small { font-size: 14px; font-weight: 500; color: var(--text-subtle); }
.stat__hint { margin-top: 5px; font-size: 12.5px; color: var(--text-subtle); }

/* barra de consumo do plano */
.meter {
    height: 5px;
    margin-top: 10px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.meter__fill { height: 100%; background: var(--accent); border-radius: 999px; }

/* --- lista do que vem a seguir ---------------------------------------- */
.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    font-size: 14px;
    border-top: 1px solid var(--border);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps b { display: block; color: var(--text); font-weight: 580; margin-bottom: 2px; }
.steps span { color: var(--text-muted); }
.steps i {
    flex: none;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 620;
    color: var(--text-subtle);
    background: var(--surface-2);
    border-radius: 50%;
}

/* --- estado vazio ----------------------------------------------------- */
.empty { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.empty h3 { font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.empty p { margin: 0 0 18px; font-size: 14px; }

/* --- campo para copiar (senha gerada, link do cliente) ---------------- */
.copybox {
    padding: 4px 14px;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.copyrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}
.copyrow + .copyrow { border-top: 1px solid var(--border); }

.copyrow__label {
    flex: none;
    width: 58px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.copyrow code {
    flex: 1 1 180px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    letter-spacing: .01em;
    color: var(--text);
    word-break: break-all;
    user-select: all; /* um clique seleciona o valor inteiro, sem sobra */
}

.select--compact { width: auto; max-width: 170px; padding: 8px 32px 8px 11px; font-size: 13.5px; }

/* --- filtro por categoria --------------------------------------------- */
.chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
    padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: none;
    padding: 7px 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 520;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-text);
}

/* --- grade de cortes (catalogo e escolha do cliente) ------------------- */
.cuts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.cut {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .18s, transform .1s;
}
.cut__media {
    aspect-ratio: 16 / 9;
    background: var(--surface-2) center/cover no-repeat;
    display: grid;
    place-items: center;
    color: var(--text-subtle);
    font-size: 12.5px;
    width: 100%;
}
/* display:block porque dentro do <label> de escolha estes elementos sao
   <span>, e span inline deixaria o nome e a descricao vazando do cartao. */
.cut__body { display: block; padding: 11px 13px 13px; }
.cut__name { display: block; font-size: 14.5px; font-weight: 580; line-height: 1.3; }
.cut__meta {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-muted);
}
.cut__media { display: block; }
.cut__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 13px 13px; }
.cut--off { opacity: .55; }

/* cartao selecionavel (o cliente escolhendo o corte) */
.cut--pick { cursor: pointer; display: block; }
.cut--pick input { position: absolute; opacity: 0; pointer-events: none; }
.cut--pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ring); }
.cut--pick:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.cut__check {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    color: transparent;
    font-size: 13px;
    font-weight: 700;
}
.cut--pick:has(input:checked) .cut__check {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-text);
}

/* --- envio de foto pelo cliente --------------------------------------- */
.shots { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }

.shot { position: relative; }
.shot input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.shot__drop {
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 14px;
    text-align: center;
    background: var(--surface-2) center/cover no-repeat;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 13px;
    transition: border-color .18s;
}
.shot__drop.is-filled { border-style: solid; border-color: var(--accent); color: transparent; }
.shot__drop b { display: block; color: var(--text); font-size: 14.5px; font-weight: 580; margin-bottom: 3px; }
.shot__drop.is-filled b, .shot__drop.is-filled span { visibility: hidden; }
.shot input:focus-visible + .shot__drop { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- resultado da simulacao ------------------------------------------- */
.results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.result-card img { display: block; width: 100%; height: auto; }
.result-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}
.result-card__name { font-size: 14.5px; font-weight: 580; }

/* --- barra de progresso da geracao ------------------------------------ */
.progress { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.progress__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }

.spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 16px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: girar 1s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* --- pagina do cliente ------------------------------------------------ */
.client { display: flex; flex-direction: column; min-height: 100dvh; }
.client__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.client__shop { font-size: 14.5px; font-weight: 600; }
.client__body { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 26px 16px 44px; }
.client__title { font-size: 22px; margin-bottom: 8px; }
.client__lead { margin: 0 0 22px; color: var(--text-muted); font-size: 14.5px; }
.client__foot { padding: 18px 16px 28px; text-align: center; font-size: 12px; color: var(--text-subtle); }

.termo {
    max-height: 290px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    line-height: 1.65;
    white-space: pre-line;
    color: var(--text-muted);
}

.aceite { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; font-size: 14px; cursor: pointer; }
.aceite input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }

/* --- busca e paginacao ------------------------------------------------ */
.searchbar { display: flex; gap: 8px; }
.searchbar .input { flex: 1; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-muted);
}

/* --- lista de dados --------------------------------------------------- */
.datalist { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14px; }
.datalist dt { color: var(--text-muted); }
.datalist dd { margin: 0; }

.hint-block {
    padding: 12px 14px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--text);
}

/* Quem prefere menos animacao nao recebe nenhuma */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
