/* ─────────────────────────────────────────
   DESIGN SYSTEM — Roupa Solution
   ───────────────────────────────────────── */
:root {
    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a5f;

    --surface-0:   #ffffff;
    --surface-50:  #f8fafc;
    --surface-100: #f1f5f9;
    --surface-200: #e2e8f0;
    --surface-300: #cbd5e1;
    --surface-400: #94a3b8;
    --surface-600: #475569;
    --surface-700: #334155;
    --surface-800: #1e293b;
    --surface-900: #0f172a;

    --success: #10b981;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #06b6d4;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.08);

    --sidebar-w: 260px;
    --header-h:  64px;
    --transition: .18s cubic-bezier(.4,0,.2,1);
}

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

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--surface-800);
    background: var(--surface-50);
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

/* ─── SHELL ─── */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ─── SIDEBAR ─── */
.sidenav {
    width: var(--sidebar-w);
    background: var(--surface-900);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    overflow-y: auto;
    position: relative;
}

.sidenav::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06), transparent);
}

.sidenav-brand {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .5rem .75rem 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 1.25rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
    flex-shrink: 0;
}

.brand-name {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.brand-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    margin-top: .1rem;
}

.nav-section-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: rgba(255,255,255,.3);
    padding: 0 .75rem;
    margin-bottom: .5rem;
}

.sidenav-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
}

.sidenav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .875rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.sidenav-link:hover {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.07);
}

.sidenav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(29,78,216,.15));
    box-shadow: inset 0 0 0 1px rgba(59,130,246,.25);
}

.sidenav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--brand-500);
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 1rem;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
    transition: all var(--transition);
}

.sidenav-link.active .nav-icon {
    background: rgba(59,130,246,.3);
    color: #93c5fd;
}

/* hamburger e overlay — visíveis só no mobile via media query */
.hamburger-btn { display: none; }
.sidenav-close-btn { display: none; }
.mobile-overlay { display: none; }

/* ─── HEADER ─── */
.app-header {
    height: var(--header-h);
    background: var(--surface-0);
    border-bottom: 1px solid var(--surface-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.header-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--surface-400);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--surface-50);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-xl);
    padding: .35rem .75rem .35rem .5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
}

.user-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--surface-800);
}

.user-role {
    font-size: .72rem;
    color: var(--surface-400);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--surface-400);
    cursor: pointer;
    padding: .2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.btn-logout:hover { color: var(--danger); }

/* ─── CONTENT ─── */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 2rem;
}

/* ─── PAGE HEADER ─── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--surface-900);
    letter-spacing: -.02em;
}

.page-subtitle {
    font-size: .82rem;
    color: var(--surface-400);
    margin-top: .2rem;
}

/* ─── CARDS ─── */
.card-modern {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-100);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
}

.card-header-modern {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-0);
}

.card-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--surface-800);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-body-modern {
    padding: 1.5rem;
}

/* ─── STAT CARDS ─── */
.stat-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--surface-100);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.stat-card.blue::before   { background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.stat-card.green::before  { background: linear-gradient(90deg, var(--success), #059669); }
.stat-card.yellow::before { background: linear-gradient(90deg, var(--warning), #d97706); }
.stat-card.cyan::before   { background: linear-gradient(90deg, var(--info), #0891b2); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.stat-card.blue   .stat-icon { background: var(--brand-50);  color: var(--brand-600); }
.stat-card.green  .stat-icon { background: #ecfdf5; color: var(--success); }
.stat-card.yellow .stat-icon { background: #fffbeb; color: var(--warning); }
.stat-card.cyan   .stat-icon { background: #ecfeff; color: var(--info); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--surface-900);
    line-height: 1;
    letter-spacing: -.03em;
}

.stat-label {
    font-size: .8rem;
    color: var(--surface-400);
    margin-top: .3rem;
    font-weight: 500;
}

/* ─── BUTTONS ─── */
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    text-decoration: none;
}

.btn-primary-modern:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
    color: #fff;
}

.btn-primary-modern:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    background: none;
    color: var(--surface-600);
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-ghost:hover { background: var(--surface-100); border-color: var(--surface-300); }

.btn-danger-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    background: none;
    color: var(--danger);
    border: 1.5px solid rgba(239,68,68,.25);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-danger-ghost:hover { background: #fef2f2; }

/* ─── FORM ─── */
.form-modern .form-group { margin-bottom: 1.1rem; }

.form-modern label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--surface-700);
    margin-bottom: .35rem;
}

.form-modern .input-field {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: inherit;
    color: var(--surface-800);
    background: var(--surface-0);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-modern .input-field:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-modern .input-field::placeholder { color: var(--surface-300); }

.form-error-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    font-size: .85rem;
    margin-bottom: 1rem;
}

/* ─── TABLE ─── */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.table-modern thead th {
    padding: .75rem 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--surface-400);
    background: var(--surface-50);
    border-bottom: 1px solid var(--surface-200);
    white-space: nowrap;
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--surface-100);
    transition: background var(--transition);
}

.table-modern tbody tr:last-child { border-bottom: none; }
.table-modern tbody tr:hover { background: var(--surface-50); }

.table-modern td {
    padding: .875rem 1rem;
    color: var(--surface-700);
    vertical-align: middle;
}

.table-modern td.fw-medium { font-weight: 600; color: var(--surface-900); }

/* ─── BADGES ─── */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-modern.draft    { background: var(--surface-100); color: var(--surface-600); }
.badge-modern.info     { background: var(--brand-50);    color: var(--brand-700); }
.badge-modern.warning  { background: #fffbeb; color: #92400e; }
.badge-modern.success  { background: #ecfdf5; color: #065f46; }
.badge-modern.danger   { background: #fef2f2; color: #991b1b; }

/* ─── ACTION BUTTONS IN TABLE ─── */
.table-actions { display: flex; gap: .4rem; }

.btn-table {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid;
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    font-family: inherit;
}

.btn-table.primary { color: var(--brand-600); border-color: rgba(37,99,235,.25); }
.btn-table.primary:hover { background: var(--brand-50); border-color: var(--brand-500); }

.btn-table.secondary { color: var(--surface-600); border-color: var(--surface-200); }
.btn-table.secondary:hover { background: var(--surface-100); }

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--surface-400);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: .4; }
.empty-state p { font-size: .9rem; }

/* ─── LOADING ─── */
.loading-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

/* ─── VALIDATION ─── */
.campo-erro {
    display: block;
    font-size: .75rem;
    color: var(--danger);
    margin-top: .25rem;
}

.input-field.invalido {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* ─── MODAL DRAWER ─── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 100;
    backdrop-filter: blur(4px);
    animation: fadeIn .15s ease;
}

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 480px;
    max-width: 100vw;
    background: var(--surface-0);
    box-shadow: var(--shadow-xl);
    z-index: 101;
    display: flex;
    flex-direction: column;
    animation: slideIn .2s cubic-bezier(.4,0,.2,1);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--surface-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--surface-900);
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    color: var(--surface-400);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.drawer-close:hover { background: var(--surface-100); color: var(--surface-800); }

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--surface-100);
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ─── LOGIN ─── */
.login-page {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #0f4c81 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -100px; right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    bottom: -80px; left: -80px;
}

.brand-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.login-brand h1 {
    font-size: 2.2rem; font-weight: 700;
    margin-bottom: .5rem; letter-spacing: -.02em;
}

.login-brand p { color: rgba(255,255,255,.65); font-size: 1rem; margin-bottom: 3rem; }

.login-features { display: flex; flex-direction: column; gap: 1.2rem; }

.feature-item {
    display: flex; align-items: center; gap: .9rem;
    color: rgba(255,255,255,.8); font-size: .95rem;
}

.feature-item i { font-size: 1.2rem; color: #60a5fa; width: 24px; flex-shrink: 0; }

.login-right {
    width: 480px; flex-shrink: 0;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.login-card { width: 100%; max-width: 380px; }

.login-card-header { margin-bottom: 2rem; }

.login-card-header h2 {
    font-size: 1.75rem; font-weight: 700;
    color: #0f172a; margin-bottom: .4rem; letter-spacing: -.02em;
}

.login-card-header p { color: #64748b; font-size: .9rem; }

.login-error {
    display: flex; align-items: center; gap: .5rem;
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; border-radius: 8px;
    padding: .75rem 1rem; font-size: .875rem; margin-bottom: 1.25rem;
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
    display: block; font-size: .875rem; font-weight: 500;
    color: #374151; margin-bottom: .4rem;
}

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon {
    position: absolute; left: .875rem;
    color: #94a3b8; font-size: 1rem;
    pointer-events: none; z-index: 1;
}

.form-input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.75rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: .95rem; font-family: inherit;
    background: #fff; color: #0f172a;
    transition: border-color .15s, box-shadow .15s; outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-input::placeholder { color: #cbd5e1; }

.eye-btn {
    position: absolute; right: .75rem;
    background: none; border: none; color: #94a3b8;
    cursor: pointer; padding: .25rem; font-size: 1rem;
    display: flex; align-items: center; transition: color .15s;
}

.eye-btn:hover { color: #475569; }

.btn-login {
    width: 100%; padding: .85rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    margin-top: 1.75rem;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.btn-login:hover:not(:disabled) {
    opacity: .92; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.45);
}

.btn-login:disabled { opacity: .7; cursor: not-allowed; }

.login-mobile-header { display: none; }

.btn-instalar-pwa {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; margin-top: .75rem; padding: .6rem 1rem;
    border-radius: var(--radius-lg);
    border: 1.5px dashed rgba(99,102,241,.4);
    background: rgba(99,102,241,.06);
    color: #818cf8;
    font-size: .83rem; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-instalar-pwa:hover {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.7);
    color: #a5b4fc;
}

@media (max-width: 768px) {
    /* ── app shell ── */
    .app-content { padding: 1rem; }

    /* ── sidebar deslizante ── */
    .sidenav {
        position: fixed !important;
        left: -280px;
        top: 0;
        height: 100vh;
        height: 100svh;
        width: var(--sidebar-w);
        z-index: 600;
        transition: left .27s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
    }
    .sidenav.sidenav--aberto {
        left: 0;
        box-shadow: 6px 0 32px rgba(0,0,0,.4);
    }
    .sidenav-close-btn {
        display: flex;
        align-items: center; justify-content: center;
        width: 32px; height: 32px;
        background: rgba(255,255,255,.1);
        border: none; border-radius: 8px;
        color: rgba(255,255,255,.75);
        font-size: .95rem; cursor: pointer;
        margin-left: auto; flex-shrink: 0;
        transition: background .15s;
    }
    .sidenav-close-btn:hover { background: rgba(255,255,255,.18); }

    /* ── overlay escuro atrás do menu ── */
    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 599;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* ── hamburger no header ── */
    .hamburger-btn {
        display: flex;
        align-items: center; justify-content: center;
        background: none; border: none;
        color: var(--surface-700);
        font-size: 1.6rem; cursor: pointer;
        padding: .2rem .4rem; margin-right: .25rem;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
        transition: background .15s;
    }
    .hamburger-btn:hover { background: var(--surface-100); }

    /* ── login page — ocupa tela inteira ── */
    .login-page {
        flex-direction: column;
        align-items: stretch;
        min-height: 100svh;
        min-height: 100vh;
        background: #fff;
    }

    .login-left { display: none; }

    .login-right {
        flex: 1;
        width: 100%;
        background: #fff;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        max-height: none;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .login-right::before { display: none; }

    /* header gradiente ocupa topo */
    .login-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #0f4c81 100%);
        padding: 3rem 1.5rem 2.5rem;
        gap: .6rem;
        margin-bottom: 0;
        border-bottom: none;
        flex-shrink: 0;
    }

    .lmh-icon {
        width: 56px; height: 56px;
        background: rgba(255,255,255,.15);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 1.7rem;
        margin-bottom: .5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,.2);
    }

    .lmh-title {
        font-size: 1.4rem; font-weight: 700;
        color: #fff; letter-spacing: -.02em;
        line-height: 1.2;
    }

    .lmh-sub {
        font-size: .82rem; color: rgba(255,255,255,.65);
    }

    /* área do formulário */
    .login-card {
        max-width: 100%;
        flex: 1;
        padding: 2rem 1.5rem 2.5rem;
    }

    .login-card-header { margin-bottom: 1.5rem; }
    .login-card-header h2 { font-size: 1.35rem; }

    .btn-login { margin-top: 1.25rem; }

    /* ── header: esconde só o texto decorativo, mantém usuário ── */
    .app-header { padding: 0 .75rem 0 .25rem; }
    .header-search { display: none; }
    .user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ── page header: empilha título e botão sem cortar ── */
    .page-header {
        flex-wrap: wrap;
        gap: .75rem;
        margin-bottom: 1.25rem;
    }
    .page-title { font-size: 1.15rem; }
    .page-subtitle { font-size: .78rem; }

    /* ── stat cards: padding menor ── */
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }
    .stat-icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: .6rem; }

    /* ── tabelas: scroll horizontal sem esconder colunas ── */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-modern thead th,
    .table-modern td { padding: .6rem .65rem; font-size: .82rem; white-space: nowrap; }

    /* ── drawer: ocupa tela toda em vez de 480px fixo ── */
    .drawer { width: 100%; left: 0; border-radius: 0; }

    /* ── cards ── */
    .card-header-modern { padding: .875rem 1rem; }
    .card-body-modern { padding: 1rem; }
}

/* ─── BLAZOR INTERNALS ─── */
#blazor-error-ui {
    background: #fef2f2; border-top: 2px solid var(--danger);
    bottom: 0; position: fixed; width: 100%;
    padding: .75rem 1.5rem; font-size: .85rem; color: var(--danger);
    display: none; z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }

.blazor-error-boundary {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: var(--radius-md); padding: 1rem 1.5rem;
    color: var(--danger); margin: 1rem 0;
}

.loading-progress {
    position: relative; display: block;
    width: 8rem; height: 8rem;
    margin: 20vh auto 1rem;
}

.loading-progress circle {
    fill: none; stroke: var(--surface-200);
    stroke-width: 0.6rem; transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--brand-500);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute; text-align: center; font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

h1:focus { outline: none; }
a { color: var(--brand-600); }
code { color: #c02d76; }

/* ─── SECTION DIVIDER ─── */
.section-divider {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--surface-400);
    padding: .5rem 0 .35rem;
    border-bottom: 1px solid var(--surface-100);
    margin: 1rem 0 .6rem;
}

/* ─── GALLERY ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    border: 2px solid var(--surface-100);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.gallery-card.aprovado { border-color: #6ee7b7; }

.gallery-avatar {
    position: relative;
    aspect-ratio: 7 / 10;
    overflow: hidden;
    background: var(--surface-100);
}

.gallery-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.gallery-card:hover .gallery-avatar img { transform: scale(1.04); }

.gallery-garment {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #f0f4f8 60%, #e2e8f0);
    padding: .75rem .5rem .5rem;
    transition: transform .3s ease;
}
.gallery-garment svg { width: 72%; height: auto; }
.gallery-card:hover .gallery-garment { transform: scale(1.03); }

.gallery-badge-aprovado {
    position: absolute;
    top: .5rem; left: .5rem;
    background: #059669;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: .3rem;
    box-shadow: 0 2px 6px rgba(5,150,105,.4);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-info {
    padding: .75rem 1rem .9rem;
}

.gallery-modelo {
    font-size: .9rem;
    font-weight: 700;
    color: var(--surface-900);
    margin-bottom: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-cliente {
    font-size: .78rem;
    color: var(--surface-400);
    margin-bottom: .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-tags { display: flex; gap: .3rem; flex-wrap: wrap; }

/* ─── VIEWER MODAL ─── */
@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(.88); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

.viewer-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(1000px, 96vw);
    max-height: 92vh;
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 102;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn .22s cubic-bezier(.34,1.56,.64,1);
}

.viewer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.aviso-aprovado {
    background: #fef2f2;
    border-bottom: 2px solid #fca5a5;
    color: #991b1b;
    padding: .6rem 1.5rem;
    font-size: .78rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.viewer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ─── AVATAR STAGE ─── */
.avatar-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-width: 0;
    position: relative;
}

.avatar-hint {
    position: absolute;
    top: 1rem;
    font-size: .72rem;
    color: var(--surface-400);
    display: flex;
    align-items: center;
    gap: .3rem;
    pointer-events: none;
}

.avatar-360 {
    position: relative;
    width: 280px;
    height: 400px;
    cursor: grab;
    user-select: none;
    overflow: visible;
}

.avatar-360:active { cursor: grabbing; }

.av-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    will-change: opacity, transform;
}

.avatar-compass {
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1.5px solid var(--surface-200);
    background: var(--surface-0);
    box-shadow: var(--shadow-sm);
}

.compass-pt {
    position: absolute;
    top: 50%; left: 50%;
    font-size: .6rem;
    font-weight: 700;
    color: var(--surface-500, #64748b);
}

/* ─── FICHA SUMMARY PANEL ─── */
.ficha-summary {
    width: 310px;
    flex-shrink: 0;
    border-left: 1px solid var(--surface-100);
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.summary-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--surface-900);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .1rem;
}

.summary-version {
    margin-left: auto;
    font-size: .7rem;
    font-weight: 700;
    background: var(--brand-50);
    color: var(--brand-700);
    padding: .15rem .55rem;
    border-radius: 99px;
    letter-spacing: .03em;
}

.summary-section {
    border: 1px solid var(--surface-100);
    border-radius: var(--radius-sm);
    padding: .65rem .875rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background: var(--surface-50);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .8rem;
    gap: .4rem;
}

.summary-row span  { color: var(--surface-400); flex-shrink: 0; }
.summary-row strong { color: var(--surface-800); text-align: right; word-break: break-word; }

.summary-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--surface-400);
    margin-bottom: .2rem;
}

/* ─── RESPONSIVE VIEWER ─── */
@media (max-width: 720px) {
    .viewer-modal { max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; width: 100vw; }
    .viewer-body { flex-direction: column; }
    .ficha-summary { width: 100%; border-left: none; border-top: 1px solid var(--surface-100); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
}

/* ─── NAV BADGE ─── */
.nav-badge {
    margin-left: auto;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(245,158,11,.15);
    color: #d97706;
    padding: .1rem .45rem;
    border-radius: 99px;
    text-transform: uppercase;
}

/* ─── PARCEIROS ─── */
.parceiro-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.parceiro-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-100);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow var(--transition);
}

.parceiro-card:hover { box-shadow: var(--shadow-md); }

.parceiro-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.parceiro-info {
    flex: 1;
    min-width: 0;
}

.parceiro-nome {
    font-size: .95rem;
    font-weight: 700;
    color: var(--surface-900);
    margin-bottom: .3rem;
}

.parceiro-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--surface-400);
    margin-top: .35rem;
}

.parceiro-meta span { display: flex; align-items: center; gap: .25rem; }

.parceiro-obs {
    font-size: .78rem;
    color: var(--surface-500, #64748b);
    margin: .4rem 0 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parceiro-status { flex-shrink: 0; }

/* ─── MÓDULO PREVIEW CARDS ─── */
.modulo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.modulo-preview-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-100);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.modulo-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.modulo-preview-card.blue::before   { background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.modulo-preview-card.green::before  { background: linear-gradient(90deg, var(--success), #059669); }
.modulo-preview-card.yellow::before { background: linear-gradient(90deg, var(--warning), #d97706); }
.modulo-preview-card.cyan::before   { background: linear-gradient(90deg, var(--info), #0891b2); }
.modulo-preview-card.danger::before { background: linear-gradient(90deg, var(--danger), #dc2626); }

.mp-icon {
    font-size: 1.75rem;
    margin-bottom: .75rem;
    opacity: .5;
}

.modulo-preview-card.blue   .mp-icon { color: var(--brand-600); }
.modulo-preview-card.green  .mp-icon { color: var(--success); }
.modulo-preview-card.yellow .mp-icon { color: var(--warning); }
.modulo-preview-card.cyan   .mp-icon { color: var(--info); }
.modulo-preview-card.danger .mp-icon { color: var(--danger); }

.mp-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--surface-800);
    margin-bottom: .35rem;
}

.mp-desc {
    font-size: .8rem;
    color: var(--surface-400);
    line-height: 1.5;
}

/* ─── PEDIDO DETALHE ─── */
.detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}

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

/* Pipeline */
.pipeline-bar {
    display: flex;
    align-items: center;
    background: var(--surface-0);
    border: 1px solid var(--surface-100);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.pipeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    border: 2px solid var(--surface-200);
    color: var(--surface-300);
    background: var(--surface-0);
    transition: all .2s;
}

.pipeline-step.done .pipeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.pipeline-step.active .pipeline-dot {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,.2);
}

.pipeline-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--surface-300);
    white-space: nowrap;
}

.pipeline-step.done .pipeline-label  { color: var(--success); }
.pipeline-step.active .pipeline-label { color: var(--brand-600); }

.pipeline-line {
    flex: 1;
    height: 2px;
    background: var(--surface-200);
    margin: 0 .5rem;
    margin-bottom: 1.15rem;
    min-width: 20px;
    transition: background .2s;
}

.pipeline-line.done { background: var(--success); }

/* Info rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 1.25rem;
    border-bottom: 1px solid var(--surface-100);
    font-size: .875rem;
}

.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--surface-400); }
.info-row strong { color: var(--surface-800); text-align: right; }

/* Item preview */
.item-preview {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
    padding: .65rem .75rem;
    background: var(--surface-0);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-sm);
}

.item-preview img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--surface-200);
}

/* Ficha mini na lateral */
.ficha-mini {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    cursor: default;
}

.ficha-mini:hover { background: var(--surface-50); }

.ficha-mini img {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--surface-200);
}

/* Ordem de Produção */
.ordem-producao-card { overflow: visible; }

.op-header {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: .875rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-100);
    margin-bottom: 1rem;
}

.op-itens { display: flex; flex-direction: column; gap: 1rem; }

.op-item-grupo {
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.op-modelo {
    background: var(--surface-900);
    color: #fff;
    padding: .5rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.op-grade {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    background: var(--surface-50);
}

.op-size-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-0);
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm);
    padding: .4rem .75rem;
    min-width: 56px;
}

.op-size-tam {
    font-size: .72rem;
    font-weight: 700;
    color: var(--surface-500, #64748b);
    letter-spacing: .05em;
}

.op-size-qty {
    font-size: 1rem;
    font-weight: 800;
    color: var(--surface-900);
}

.op-obs {
    margin-top: .75rem;
    padding: .65rem .875rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: #92400e;
}

/* ─── OUTFITANYONE BUTTON ─── */
.btn-outfit {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(124,58,237,.35);
}

.btn-outfit:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124,58,237,.45);
}

.btn-outfit:disabled { opacity: .7; cursor: not-allowed; }

.btn-outfit.loading {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    animation: btnPulse 1.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(124,58,237,.35); }
    50% { box-shadow: 0 4px 20px rgba(124,58,237,.6); }
}

/* ─── BTN CROQUI ─── */
.btn-croqui {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem;
    background: rgba(16,185,129,.1);
    color: #34d399;
    border: 1px solid rgba(52,211,153,.3);
    border-radius: var(--radius-sm);
    font-size: .8rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-croqui:hover { background: rgba(16,185,129,.2); border-color: #34d399; }
.btn-croqui.ativo {
    background: rgba(52,211,153,.2);
    border-color: #34d399;
    color: #10b981;
}

/* ─── CROQUI PANEL ─── */
.croqui-panel {
    border-top: 1px solid var(--surface-200);
    background: var(--surface-50);
}
.croqui-header {
    padding: .7rem 1.25rem;
    font-size: .82rem; font-weight: 700;
    color: var(--surface-700);
    display: flex; align-items: center; gap: .5rem;
    background: var(--surface-100);
    border-bottom: 1px solid var(--surface-200);
}
.croqui-header i { color: #10b981; }
.croqui-body {
    display: flex; gap: 1.5rem; padding: 1.25rem;
    flex-wrap: wrap;
}
.croqui-img-wrap {
    position: relative;
    flex: 1; min-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--surface-200);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}
.croqui-img-wrap img {
    width: 100%; display: block;
    max-height: 400px; object-fit: contain;
}
.croqui-info {
    min-width: 200px; max-width: 240px;
    font-size: .82rem; color: var(--surface-700);
    display: flex; flex-direction: column; gap: .3rem;
}
.croqui-info p { margin: 0; line-height: 1.6; }
.croqui-info b { color: var(--surface-800); }

/* ─── TRYON LOADING OVERLAY ─── */
.tryon-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(248,250,252,.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
}

.tryon-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #ede9fe;
    border-top-color: #7c3aed;
    animation: spin .9s linear infinite;
}

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

.tryon-label {
    text-align: center;
    font-size: .82rem;
    color: var(--surface-700);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   STUDIO v2 — fluxo em 3 etapas
═══════════════════════════════════════════ */

/* breadcrumb / nav */
.studio-breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: rgba(255,255,255,.45);
}
.studio-breadcrumb .ativo { color: #a78bfa; font-weight: 600; }
.studio-nav-btn {
    display: flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); color: rgba(255,255,255,.6);
    font-size: .78rem; cursor: pointer; transition: background .15s;
}
.studio-nav-btn:hover { background: rgba(255,255,255,.1); }

/* ── ETAPA 1: avatar cards ── */
.studio-etapa-title {
    text-align: center; padding: 2rem 1rem .5rem;
}
.studio-etapa-title h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .35rem; color: #fff; }
.studio-etapa-title p  { font-size: .88rem; color: rgba(255,255,255,.4); margin: 0; }

.studio-avatares-grid {
    display: flex; gap: 1.5rem; justify-content: center;
    align-items: flex-start; flex-wrap: wrap;
    padding: 1.5rem 2rem 2rem; flex: 1;
}

.studio-av-card {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; gap: .6rem;
    transition: transform .15s;
}
.studio-av-card:hover { transform: translateY(-4px); }
.studio-av-foto {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,.1);
    background: #1a1a2e;
    width: 200px; height: 300px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    transition: border-color .15s, box-shadow .15s;
}
.studio-av-card:hover .studio-av-foto {
    border-color: #a78bfa;
    box-shadow: 0 16px 50px rgba(167,139,250,.3);
}
.studio-av-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-av-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding-bottom: 1rem; gap: .35rem;
    background: linear-gradient(to top, rgba(124,58,237,.8) 0%, transparent 50%);
    color: #fff; font-size: .85rem; font-weight: 700;
    opacity: 0; transition: opacity .18s;
}
.studio-av-card:hover .studio-av-overlay { opacity: 1; }
.studio-av-overlay i { font-size: 1.4rem; }
.studio-av-nome { font-size: .95rem; font-weight: 700; color: #fff; }
.studio-av-tipo { font-size: .72rem; color: rgba(255,255,255,.45); }

/* ── ETAPA 1: TV mode ── */
.studio-tv {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: .75rem 1rem 1rem;
    gap: .75rem;
    overflow: hidden;
}
.studio-tv-stage {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2.5px solid rgba(167,139,250,.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    transition: border-color .2s;
    flex-shrink: 0;
    width: 340px;
    height: 510px;
    background: #0d0d1a;
}
.studio-tv-stage:hover { border-color: #a78bfa; }
.studio-tv-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity .3s;
}
.studio-tv-img.fade { opacity: 0; }
.studio-tv-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(8,8,15,.95) 0%, rgba(8,8,15,.5) 60%, transparent 100%);
    pointer-events: none;
}
.studio-tv-nome {
    font-size: 1.6rem; font-weight: 800; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6); line-height: 1.1;
}
.studio-tv-tipo {
    font-size: .78rem; color: rgba(255,255,255,.55);
    margin-top: .2rem; font-weight: 400;
}
.studio-tv-cta {
    margin-top: .5rem; font-size: .8rem;
    color: #a78bfa; font-weight: 600;
    display: flex; align-items: center; gap: .35rem;
}
.studio-tv-pause {
    position: absolute; top: .7rem; right: .7rem;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.55); color: rgba(255,255,255,.8);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .85rem; backdrop-filter: blur(6px); transition: background .15s;
}
.studio-tv-pause:hover { background: rgba(167,139,250,.4); border-color: #a78bfa; }
.studio-tv-thumbs {
    display: flex; gap: .6rem; justify-content: center;
}
.studio-tv-thumb {
    cursor: pointer; display: flex; flex-direction: column;
    align-items: center; gap: .25rem; transition: transform .12s;
}
.studio-tv-thumb:hover { transform: translateY(-2px); }
.studio-tv-thumb img {
    width: 64px; height: 96px; object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,255,255,.1);
    transition: border-color .15s;
}
.studio-tv-thumb.ativo img,
.studio-tv-thumb:hover img {
    border-color: #a78bfa;
    box-shadow: 0 4px 16px rgba(167,139,250,.4);
}
.studio-tv-thumb span { font-size: .65rem; color: rgba(255,255,255,.4); font-weight: 600; }
.studio-tv-thumb.ativo span { color: #a78bfa; }
.studio-tv-dots { display: flex; gap: .4rem; justify-content: center; }
.studio-tv-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.2); cursor: pointer;
    transition: background .2s, transform .2s;
}
.studio-tv-dot.ativo { background: #a78bfa; transform: scale(1.4); }

/* ── ETAPA 2: guarda-roupa ── */
.studio-guardaroupa {
    display: flex; gap: 0; flex: 1; overflow: hidden;
}

.studio-av-lateral {
    width: 180px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 1.25rem .75rem; gap: .5rem;
    border-right: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}
.studio-av-lateral img {
    width: 140px; height: 210px; object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(167,139,250,.3);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.studio-av-lateral-nome { font-size: .88rem; font-weight: 700; color: #fff; }
.studio-av-lateral-tipo { font-size: .7rem; color: rgba(255,255,255,.4); }

.studio-roupas {
    flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(167,139,250,.2) transparent;
}
.studio-roupas-title {
    font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.5);
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem;
}

.studio-loading-msg, .studio-sem-roupas {
    display: flex; flex-direction: column; align-items: center;
    gap: 1rem; padding: 3rem; color: rgba(255,255,255,.35);
    font-size: .9rem;
}
.studio-sem-roupas i { font-size: 2.5rem; }

.studio-roupas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.studio-roupa-card {
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden; cursor: pointer;
    transition: border-color .15s, transform .12s, box-shadow .15s;
}
.studio-roupa-card:hover {
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167,139,250,.2);
}
.studio-roupa-img {
    position: relative;
    height: 180px; overflow: hidden;
    background: #1a1a2e;
}
.studio-roupa-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-roupa-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: .4rem; font-size: .85rem; font-weight: 700; color: #fff;
    background: rgba(124,58,237,.75);
    opacity: 0; transition: opacity .15s;
}
.studio-roupa-card:hover .studio-roupa-overlay { opacity: 1; }
.studio-roupa-info { padding: .6rem .65rem; }
.studio-roupa-nome { font-size: .8rem; font-weight: 700; color: #fff; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-roupa-tipo { font-size: .68rem; color: rgba(255,255,255,.4); margin-bottom: .3rem; }
.studio-roupa-cores { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.studio-roupa-cor-nome { font-size: .65rem; color: rgba(255,255,255,.4); }
.studio-cor-bolinha {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    flex-shrink: 0; display: inline-block;
}
.studio-cor-bolinha.lg { width: 18px; height: 18px; }

/* ── ETAPA 3: resultado ── */
.studio-resultado {
    flex: 1; display: flex; gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    justify-content: center;
}

.studio-resultado-foto {
    position: relative;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    background: #1a1a2e;
    width: 320px;
}
.studio-resultado-foto img {
    display: block; width: 100%;
    height: 480px; object-fit: cover;
    transition: filter .3s;
}
.studio-resultado-foto img.blur { filter: blur(8px) brightness(.6); }
.studio-gerando-overlay {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; background: rgba(8,8,15,.6);
}
.studio-gerando-txt {
    text-align: center; font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.6;
}
.studio-resultado-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 600;
    padding: 1rem .75rem .55rem; text-align: center;
}

.studio-resultado-info {
    display: flex; flex-direction: column; gap: .6rem;
    max-width: 320px; min-width: 260px;
}
.studio-res-titulo {
    font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .25rem;
}
.studio-res-linha {
    font-size: .83rem; color: rgba(255,255,255,.6); line-height: 1.5;
    display: flex; align-items: center; gap: .2rem; flex-wrap: wrap;
}
.studio-res-linha b { color: rgba(255,255,255,.85); margin-right: .2rem; }
.studio-resultado-btns {
    display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem;
}
.studio-btn-download {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1rem; border-radius: var(--radius-md);
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff; font-size: .85rem; font-weight: 700;
    text-decoration: none; box-shadow: 0 2px 10px rgba(22,163,74,.3);
    transition: box-shadow .15s;
}
.studio-btn-download:hover { box-shadow: 0 4px 18px rgba(22,163,74,.5); }
.studio-btn-pdf {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem 1rem; border-radius: var(--radius-md);
    border: 1px solid rgba(251,146,60,.4);
    background: rgba(251,146,60,.1); color: #fdba74;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.studio-btn-pdf:hover { background: rgba(251,146,60,.22); }
.studio-btn-regerar {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--radius-md);
    border: 1px solid rgba(167,139,250,.3);
    background: rgba(167,139,250,.08); color: #c4b5fd;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.studio-btn-regerar:hover:not(:disabled) { background: rgba(167,139,250,.18); }
.studio-btn-regerar:disabled { opacity: .5; cursor: not-allowed; }
.studio-btn-trocar {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04); color: rgba(255,255,255,.55);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.studio-btn-trocar:hover { background: rgba(255,255,255,.1); }
.studio-erro {
    font-size: .75rem; color: #fca5a5;
    background: rgba(239,68,68,.1); border-radius: var(--radius-sm); padding: .35rem .55rem;
}

/* ═══════════════════════════════════════════
   COR SWATCHES — drawer de fichas
═══════════════════════════════════════════ */
.cor-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem;
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-md);
    background: var(--surface-50);
    min-height: 52px;
    transition: border-color .15s;
}
.cor-swatches.invalido { border-color: var(--danger); }

.cor-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cor-swatch:hover { transform: scale(1.15); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.cor-swatch.selected {
    border-color: currentColor;
    box-shadow: 0 0 0 3px rgba(124,58,237,.35), 0 2px 6px rgba(0,0,0,.2);
    transform: scale(1.1);
}

.cor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .4rem;
}
.cor-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .5rem;
    background: var(--surface-100);
    border: 1px solid var(--surface-200);
    border-radius: 999px;
    font-size: .75rem;
    color: var(--surface-700);
}
.cor-tag button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 .1rem;
    color: var(--surface-400);
    line-height: 1;
    font-size: .9rem;
}
.cor-tag button:hover { color: var(--danger); }

/* ═══════════════════════════════════════════
   STUDIO — Provador Virtual
═══════════════════════════════════════════ */
.scene-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0f0f14;
    color: #fff;
    overflow: hidden;
}

/* ── Top bar ── */
.scene-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem 1rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    z-index: 10;
}
.scene-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .95rem;
    color: #a78bfa;
    white-space: nowrap;
    min-width: 0;
}
.scene-brand i { font-size: 1.2rem; }

.scene-products {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .25rem 0;
}
.scene-products::-webkit-scrollbar { display: none; }

.scene-prod-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .3rem .5rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.scene-prod-chip:hover { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.4); transform: translateY(-1px); }
.scene-prod-chip.ativo { background: rgba(167,139,250,.2); border-color: #a78bfa; }

.scene-prod-chip img {
    width: 42px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
}
.chip-nome { font-size: .7rem; font-weight: 600; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.chip-cor { display: flex; gap: 2px; }
.chip-cor span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }

.scene-sair {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,100,100,.3);
    background: rgba(239,68,68,.1);
    color: #fca5a5;
    cursor: pointer;
    font-size: .8rem;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.scene-sair:hover { background: rgba(239,68,68,.25); }

/* ── Stage ── */
.scene-stage {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.scene-instrucao {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: rgba(255,255,255,.25);
    pointer-events: none;
    z-index: 2;
}
.scene-instrucao i { font-size: 2.5rem; }
.scene-instrucao p { font-size: 1rem; text-align: center; line-height: 1.6; margin: 0; }

/* ── Mannequins grid ── */
.scene-mannequins {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .75rem;
    transition: opacity .3s;
}
.scene-mannequins.sem-produto { opacity: .15; pointer-events: none; }

.scene-maneq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: transform .15s;
}
.scene-maneq:hover .maneq-stage { border-color: rgba(167,139,250,.5); }
.scene-maneq.foco .maneq-stage {
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167,139,250,.3), 0 8px 32px rgba(167,139,250,.2);
}

.maneq-stage {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255,255,255,.1);
    overflow: hidden;
    background: rgba(255,255,255,.04);
    transition: border-color .15s, box-shadow .15s;
}

.maneq-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,15,20,.6);
    z-index: 3;
    border-radius: var(--radius-lg);
}
.maneq-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(167,139,250,.2);
    border-top-color: #a78bfa;
    animation: spin .8s linear infinite;
}

.maneq-img {
    display: block;
    width: 120px;
    height: 180px;
    object-fit: cover;
    transition: filter .3s;
}
.maneq-img.blur { filter: blur(4px); }

@media (min-width: 1200px) {
    .maneq-img { width: 150px; height: 224px; }
}

.maneq-badge-ok {
    position: absolute;
    bottom: .4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(167,139,250,.85);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.maneq-label { text-align: center; }
.maneq-nome { display: block; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); }
.maneq-tipo { display: block; font-size: .65rem; color: rgba(255,255,255,.4); }

/* ── Info panel (right side) ── */
.scene-info-panel {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    align-self: flex-start;
    margin-top: auto;
}
.sip-modelo { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.sip-detalhe { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: rgba(255,255,255,.5); }
.sip-cores { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sip-cor-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    cursor: help;
    flex-shrink: 0;
}

.btn-tryon-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 2px 10px rgba(124,58,237,.4);
}
.btn-tryon-scene:hover:not(:disabled) { box-shadow: 0 4px 18px rgba(124,58,237,.55); }
.btn-tryon-scene:disabled { opacity: .65; cursor: not-allowed; }
.btn-tryon-scene.loading { animation: btnPulse 1.5s ease-in-out infinite; }

.btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    animation: spin .8s linear infinite;
    flex-shrink: 0;
}

.sip-erro {
    font-size: .72rem;
    color: #fca5a5;
    background: rgba(239,68,68,.1);
    border-radius: var(--radius-sm);
    padding: .35rem .5rem;
}

/* ═══════════════════════════════════════════
   STUDIO — Game scene full redesign
═══════════════════════════════════════════ */
.studio-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #08080f;
    color: #fff;
    overflow: hidden;
}

/* Top bar */
.studio-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1rem;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.studio-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #a78bfa;
    white-space: nowrap;
}
.studio-brand i { font-size: 1.2rem; }
.studio-brand-sub {
    font-size: .65rem;
    font-weight: 400;
    color: rgba(255,255,255,.35);
    margin-left: .1rem;
}
.studio-topbar-center { flex: 1; text-align: center; }
.studio-status {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.studio-sair {
    display: flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: var(--radius-md);
    border: 1px solid rgba(255,100,100,.3);
    background: rgba(239,68,68,.08); color: #fca5a5;
    cursor: pointer; font-size: .78rem; flex-shrink: 0;
    transition: background .15s;
}
.studio-sair:hover { background: rgba(239,68,68,.22); }

/* Body */
.studio-body {
    flex: 1;
    display: grid;
    grid-template-columns: 220px 1fr 200px;
    overflow: hidden;
}

/* Panel titles */
.studio-panel-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    padding: .75rem .75rem .4rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Characters panel */
.studio-characters {
    border-right: 1px solid rgba(255,255,255,.07);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167,139,250,.2) transparent;
}
.studio-char-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    cursor: pointer;
    border-radius: 0;
    border-left: 2px solid transparent;
    transition: background .12s, border-color .12s;
}
.studio-char-card:hover { background: rgba(167,139,250,.08); }
.studio-char-card.ativo {
    background: rgba(167,139,250,.15);
    border-left-color: #a78bfa;
}
.studio-char-portrait {
    position: relative;
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,.06);
}
.studio-char-portrait img {
    width: 100%; height: 100%; object-fit: cover;
}
.studio-char-sel-badge {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #a78bfa;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; color: #fff;
}
.studio-char-info { flex: 1; min-width: 0; }
.studio-char-nome { font-size: .82rem; font-weight: 600; }
.studio-char-tipo { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.studio-char-arrow { font-size: .7rem; color: #a78bfa; flex-shrink: 0; }

/* Stage */
.studio-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.studio-empty {
    text-align: center;
    color: rgba(255,255,255,.2);
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.studio-empty i { font-size: 3rem; }
.studio-empty p { font-size: 1rem; font-weight: 600; margin: 0; }
.studio-empty span { font-size: .82rem; }

.studio-palco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.studio-palco-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    background: #1a1a2e;
}
.studio-palco-img {
    display: block;
    width: 280px;
    height: 420px;
    object-fit: cover;
    transition: filter .3s;
}
.studio-palco-img.blur { filter: blur(6px) brightness(.7); }
@media (min-height: 800px) {
    .studio-palco-img { width: 340px; height: 510px; }
}
.studio-palco-nome {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    text-align: center;
}
.studio-gerando {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem;
    background: rgba(8,8,15,.5);
    z-index: 3;
    font-size: .8rem; color: rgba(255,255,255,.7);
}
.studio-gerando-spinner {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(167,139,250,.2);
    border-top-color: #a78bfa;
    animation: spin .8s linear infinite;
}
.studio-outfit-badge {
    position: absolute;
    bottom: .6rem; left: 50%;
    transform: translateX(-50%);
    background: rgba(52,211,153,.85);
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
    white-space: nowrap; backdrop-filter: blur(4px);
}

.studio-acoes {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.studio-btn-gerar {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--radius-md); border: none;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 10px rgba(124,58,237,.4);
    transition: box-shadow .15s;
}
.studio-btn-gerar:hover:not(:disabled) { box-shadow: 0 4px 18px rgba(124,58,237,.6); }
.studio-btn-gerar:disabled { opacity: .65; cursor: not-allowed; }
.studio-btn-download {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--radius-md);
    border: 1px solid rgba(52,211,153,.3);
    background: rgba(52,211,153,.1); color: #6ee7b7;
    font-size: .82rem; font-weight: 600; text-decoration: none;
    transition: background .15s;
}
.studio-btn-download:hover { background: rgba(52,211,153,.2); }
.studio-btn-pdf {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--radius-md);
    border: 1px solid rgba(251,146,60,.3);
    background: rgba(251,146,60,.1); color: #fdba74;
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.studio-btn-pdf:hover { background: rgba(251,146,60,.2); }
.studio-hint {
    font-size: .8rem; color: rgba(255,255,255,.3);
    display: flex; align-items: center; gap: .4rem;
}
.studio-erro {
    font-size: .75rem; color: #fca5a5;
    background: rgba(239,68,68,.1); border-radius: var(--radius-sm);
    padding: .35rem .6rem;
}

/* Arsenal panel */
.studio-arsenal {
    border-left: 1px solid rgba(255,255,255,.07);
    overflow-y: auto;
    display: flex; flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(167,139,250,.2) transparent;
}
.studio-spinner-tiny {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(167,139,250,.2);
    border-top-color: #a78bfa;
    animation: spin .8s linear infinite;
    margin-left: .3rem;
}
.studio-arsenal-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .6rem; cursor: pointer;
    border-left: 2px solid transparent;
    transition: background .12s, border-color .12s;
}
.studio-arsenal-item:hover { background: rgba(52,211,153,.07); }
.studio-arsenal-item.ativo {
    background: rgba(52,211,153,.12);
    border-left-color: #34d399;
}
.studio-arsenal-item img {
    width: 40px; height: 50px; object-fit: cover;
    border-radius: 4px; flex-shrink: 0;
    background: rgba(255,255,255,.05);
}
.studio-arsenal-info { flex: 1; min-width: 0; }
.studio-arsenal-nome { font-size: .75rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-arsenal-tipo { font-size: .65rem; color: rgba(255,255,255,.4); }
.studio-arsenal-cores { display: flex; gap: 2px; margin-top: 2px; }
.studio-arsenal-cores span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.studio-arsenal-check { color: #34d399; flex-shrink: 0; font-size: .9rem; }

/* Print proposta */
.proposta-print { display: none; }
@media print {
    body > * { display: none !important; }
    .proposta-print {
        display: block !important;
        padding: 2cm; font-family: sans-serif;
        color: #111;
    }
    .proposta-header {
        display: flex; align-items: center; justify-content: space-between;
        border-bottom: 2px solid #7c3aed; padding-bottom: .75rem; margin-bottom: 1.5rem;
    }
    .proposta-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: #7c3aed; }
    .proposta-titulo { font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; }
    .proposta-data { font-size: .8rem; color: #666; }
    .proposta-body { display: flex; gap: 2rem; align-items: flex-start; }
    .proposta-avatar-img { width: 200px; border-radius: 8px; object-fit: cover; }
    .proposta-detalhes { flex: 1; }
    .proposta-detalhes h2 { margin: 0 0 1rem; font-size: 1.3rem; color: #7c3aed; }
    .proposta-row { margin-bottom: .4rem; font-size: .9rem; }
    .proposta-footer { margin-top: 2rem; padding-top: .75rem; border-top: 1px solid #ddd; font-size: .8rem; color: #888; text-align: center; }
}

/* ═══════════════════════════════════════════
   CRUD SHARED — confirm modal, toggle, badges
═══════════════════════════════════════════ */
.confirm-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-0);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    z-index: 1100;
    width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    text-align: center;
}
.confirm-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
    font-size: 1.4rem;
}
.confirm-icon.danger { background: #fee2e2; color: #dc2626; }
.confirm-icon.success { background: #dcfce7; color: #16a34a; }
.confirm-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--surface-900); }
.confirm-msg { font-size: .85rem; color: var(--surface-500); margin-bottom: 1.25rem; line-height: 1.5; }
.confirm-btns { display: flex; gap: .5rem; justify-content: center; }

.btn-danger-modern {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem 1.1rem; border-radius: var(--radius-md); border: none;
    background: #dc2626; color: #fff; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn-danger-modern:hover:not(:disabled) { background: #b91c1c; }
.btn-danger-modern:disabled { opacity: .65; cursor: not-allowed; }

.toggle-label {
    display: flex; align-items: center; gap: .4rem;
    font-size: .82rem; color: var(--surface-500);
    cursor: pointer;
}
.toggle-label input { cursor: pointer; }

.row-inativo { opacity: .55; }
.parceiro-card.inativo { opacity: .6; }

.btn-table.info { background: rgba(59,130,246,.1); color: #3b82f6; }
.btn-table.info:hover { background: rgba(59,130,246,.2); }
.btn-table.success { background: rgba(22,163,74,.1); color: #16a34a; }
.btn-table.success:hover { background: rgba(22,163,74,.2); }
.btn-table.danger { background: rgba(220,38,38,.1); color: #dc2626; }
.btn-table.danger:hover { background: rgba(220,38,38,.2); }

/* Gallery delete button */
.gallery-del-btn {
    position: absolute;
    top: .4rem; right: .4rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(220,38,38,.8);
    color: #fff;
    font-size: .72rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .15s, background .15s;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.gallery-card:hover .gallery-del-btn { opacity: 1; }
.gallery-del-btn:hover { background: #b91c1c; }

/* Gallery edit button */
.gallery-edit-btn {
    position: absolute;
    top: .4rem; left: .4rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(29,78,216,.8);
    color: #fff;
    font-size: .72rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .15s, background .15s;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.gallery-card:hover .gallery-edit-btn { opacity: 1; }
.gallery-edit-btn:hover { background: #1d4ed8; }
.gallery-card { cursor: pointer; }

/* Gallery export (layout doc) button */
.gallery-export-btn {
    position: absolute;
    top: .4rem; left: 2rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(249,115,22,.85);
    color: #fff;
    font-size: .7rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .15s, background .15s;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.gallery-card:hover .gallery-export-btn { opacity: 1; }
.gallery-export-btn:hover { background: #ea580c; }

/* ══ DOCUMENTO DE LAYOUT ══ */
.ldoc-controls {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1200;
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    padding: .75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.ldoc-wa-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #25D366; border: none; cursor: pointer;
    color: #fff; font-size: 1rem;
    transition: background .15s, transform .1s;
}
.ldoc-wa-btn:hover { background: #1ebe5d; transform: scale(1.08); }

.ldoc-preview-wrap {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    z-index: 1150;
    overflow-y: auto;
    background: #374151;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.ldoc-page-preview {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    width: 210mm;
    max-width: 100%;
    padding: 8mm;
    transform-origin: top center;
}
.ldoc-print-area { display: none; }

/* Tabela base do documento */
.ldoc-tbl {
    width: 100%; border-collapse: collapse;
    border: 2px solid #1E3A5F;
    font-family: Arial, sans-serif;
}
.ldoc-tbl td { border: 1px solid #aaa; }
.ldoc-logo-cell {
    width: 90px; padding: .4rem;
    background: #fff;
    border-right: 2px solid #1E3A5F !important;
    text-align: center; vertical-align: middle;
}
.ldoc-title-cell {
    background: #fff;
    text-align: center;
    font-size: 1.3rem; font-weight: 900;
    letter-spacing: .15em;
    color: #1E3A5F;
    padding: .3rem;
    border-bottom: 1px solid #1E3A5F !important;
}
.ldoc-label-sm {
    background: #1E3A5F; color: #fff;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em;
    padding: .25rem .5rem;
    width: 80px;
    border-right: 2px solid #1E3A5F !important;
}
.ldoc-value-bold {
    padding: .3rem .6rem;
    font-weight: 700; font-size: .95rem;
}
.ldoc-label {
    background: #e8ecf0;
    color: #1E3A5F;
    font-size: .68rem; font-weight: 900;
    letter-spacing: .12em;
    padding: .35rem .6rem;
    width: 80px;
    vertical-align: middle;
    border-right: 2px solid #1E3A5F !important;
}
.ldoc-value {
    padding: .35rem .6rem;
    font-size: .82rem;
    vertical-align: middle;
}

/* Área dos manequins */
.ldoc-mannequin-area {
    position: relative;
    background: #f3f4f6;
    border: 2px solid #1E3A5F;
    margin-top: 2px;
    height: 360px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ldoc-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}
.ldoc-mannequins {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1;
    position: relative;
    height: 100%;
    padding: .5rem;
}
.ldoc-img-wrap {
    display: flex; flex-direction: column; align-items: center;
    gap: .25rem; height: 100%; flex: 1;
}
.ldoc-img-label {
    font-size: .6rem; font-weight: 700; letter-spacing: .1em;
    color: #1E3A5F; text-transform: uppercase;
}
.ldoc-produto-img {
    flex: 1; max-height: calc(100% - 20px);
    width: auto; object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
}
.ldoc-img-wrap svg {
    flex: 1; max-height: calc(100% - 22px);
    width: auto; max-width: 100%; overflow: visible;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.22));
}

/* Studio nav badge */
.nav-badge.studio {
    background: rgba(167,139,250,.15);
    color: #a78bfa;
    border: 1px solid rgba(167,139,250,.3);
}

/* Parceiro actions column */
.parceiro-acoes {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .25rem;
}

/* ═══════════════════════════════════════════
   VITRINE v2 — SVG Personagem + Rotação 3D
═══════════════════════════════════════════ */

/* ── Grid listagem ── */
.vit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.vit-card {
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--surface-200);
    overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
    border-color: var(--brand-500);
}
.vit-card-img {
    position: relative; height: 260px;
    background: var(--surface-100); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.vit-card-svg-wrap {
    width: 160px; height: 240px;
    pointer-events: none;
}
.vit-card-overlay {
    position: absolute; inset: 0;
    background: rgba(59,130,246,.78);
    color: #fff; font-size: .9rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    opacity: 0; transition: opacity .2s;
}
.vit-card:hover .vit-card-overlay { opacity: 1; }
.vit-badge-card {
    position: absolute; top: .5rem; left: .5rem;
    background: rgba(16,185,129,.9); color: #fff;
    font-size: .65rem; font-weight: 700;
    padding: .18rem .5rem; border-radius: 999px;
    display: flex; align-items: center; gap: .2rem;
}
.vit-card-body { padding: .8rem 1rem .9rem; }
.vit-card-tipo {
    font-size: .65rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--brand-500); margin-bottom: .2rem;
}
.vit-card-nome {
    font-size: .95rem; font-weight: 700; color: var(--surface-800);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vit-card-cliente { font-size: .75rem; color: var(--surface-400); margin-top: .1rem; }
.vit-card-swatches { display: flex; gap: .3rem; margin-top: .5rem; flex-wrap: wrap; }
.vit-mini-swatch {
    width: 15px; height: 15px; border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 1px 3px rgba(0,0,0,.15); display: inline-block;
}

/* ── Skeleton ── */
.vit-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.vit-skeleton-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-0); border: 1px solid var(--surface-200); }
.vit-sk-img { height: 260px; background: linear-gradient(90deg,var(--surface-100) 25%,var(--surface-200) 50%,var(--surface-100) 75%); background-size: 200% 100%; animation: vit-shimmer 1.4s infinite; }
.vit-sk-line { height: 12px; margin: .75rem 1rem .35rem; border-radius: 6px; background: linear-gradient(90deg,var(--surface-100) 25%,var(--surface-200) 50%,var(--surface-100) 75%); background-size: 200% 100%; animation: vit-shimmer 1.4s infinite; }
.vit-sk-line.short { width: 55%; }
.vit-sk-cores { height: 14px; margin: .4rem 1rem .85rem; width: 60px; border-radius: 999px; background: linear-gradient(90deg,var(--surface-100) 25%,var(--surface-200) 50%,var(--surface-100) 75%); background-size: 200% 100%; animation: vit-shimmer 1.4s infinite; }
@keyframes vit-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Breadcrumb ── */
.vit-breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; margin-bottom: 1.25rem;
    flex-wrap: wrap; color: var(--surface-600);
}
.vit-breadcrumb span:first-child { color: var(--brand-500); cursor: pointer; }
.vit-breadcrumb span:first-child:hover { text-decoration: underline; }
.vit-breadcrumb i { color: var(--surface-400); font-size: .7rem; }

/* ── Layout detalhe ── */
.vit-detail-page { padding-bottom: 2rem; }
.vit-detail-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem; align-items: flex-start;
}

/* ── Coluna personagem ── */
.vit-galeria-col {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    position: sticky; top: 1rem;
}
.vit-view-tabs {
    display: flex; gap: .3rem; background: var(--surface-100);
    padding: .25rem; border-radius: var(--radius-md);
    border: 1px solid var(--surface-200);
}
.vit-view-tab {
    padding: .3rem .7rem; border-radius: var(--radius-sm);
    font-size: .75rem; font-weight: 600; cursor: pointer;
    border: none; background: transparent; color: var(--surface-500);
    transition: background .15s, color .15s;
}
.vit-view-tab.ativo { background: var(--surface-0); color: var(--surface-800); box-shadow: var(--shadow-sm); }
.vit-view-tab:hover:not(.ativo) { color: var(--surface-700); }

/* Container do personagem SVG */
.vit-char-container {
    position: relative;
    width: 100%; max-width: 340px;
    background: radial-gradient(ellipse at 50% 35%, #f0f4ff 0%, #e8ecf8 60%, #dde2f0 100%);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--surface-200);
    box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
    overflow: hidden;
    aspect-ratio: 2/3;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: .5rem;
}

/* ── Personagem SVG card (rotação 3D) ── */
.char-wrapper,
.char-wrap {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    gap: .4rem;
}

.char-card {
    width: 100%; flex: 1;
    min-height: 0;
    position: relative;
    transform-style: preserve-3d;
    transition: none;
}

/* Animação spinning = rotateY contínuo */
.char-card.spinning {
    animation: char-spin360 3.6s linear infinite;
}

@keyframes char-spin360 {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Faces frente e costas */
.char-face {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.char-face.front { /* frente: visível por padrão */ }
.char-face.back  { transform: rotateY(180deg); }

.char-face svg { width: 100%; height: 100%; }

.char-label {
    font-size: .72rem; color: var(--surface-500);
    display: flex; align-items: center; gap: .3rem;
    margin-bottom: .25rem; height: 18px;
}
.spin-icon { animation: spin360label .8s linear infinite; display: inline-block; }
@keyframes spin360label { to { transform: rotate(360deg); } }

/* Botão 360 */
.vit-btn-360 {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .65rem 1.4rem; border-radius: var(--radius-md);
    background: var(--surface-900); color: #fff;
    font-size: .88rem; font-weight: 700; cursor: pointer;
    border: none; width: 100%; max-width: 340px;
    transition: background .15s, transform .1s;
}
.vit-btn-360:hover { background: var(--surface-800); }
.vit-btn-360.ativo {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}
.vit-btn-360 i { font-size: 1rem; }

/* ── Coluna info ── */
.vit-info-col { padding-top: .25rem; }
.vit-info-tag {
    font-size: .68rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand-500); margin-bottom: .3rem;
}
.vit-info-nome {
    font-size: 1.7rem; font-weight: 800; color: var(--surface-900);
    line-height: 1.2; margin: 0 0 .45rem;
}
.vit-info-sub {
    font-size: .82rem; color: var(--surface-500);
    display: flex; align-items: center; gap: .3rem; flex-wrap: wrap;
}
.vit-aprovado-badge {
    margin-top: .75rem;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .85rem; border-radius: 999px;
    background: rgba(16,185,129,.12); color: #059669;
    font-size: .8rem; font-weight: 700;
    border: 1px solid rgba(16,185,129,.3);
}
.vit-sep { border: none; border-top: 1px solid var(--surface-200); margin: 1rem 0; }

/* Grupos de cor */
.vit-cor-grupo { margin-bottom: .75rem; }
.vit-cor-label {
    font-size: .82rem; font-weight: 600; color: var(--surface-700);
    margin-bottom: .5rem;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.vit-cor-selected {
    padding: .18rem .65rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.vit-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.vit-swatch {
    width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    outline: 2.5px solid transparent; outline-offset: 2px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    transition: transform .12s, outline-color .15s;
    font-size: .8rem;
}
.vit-swatch:hover { transform: scale(1.15); }
.vit-swatch.ativo { outline-color: var(--brand-500); transform: scale(1.12); }

/* Specs técnicos */
.vit-specs { display: flex; flex-direction: column; }
.vit-spec {
    display: flex; justify-content: space-between;
    font-size: .82rem; padding: .3rem 0;
    border-bottom: 1px solid var(--surface-100);
    color: var(--surface-500); gap: .5rem;
}
.vit-spec strong { color: var(--surface-800); text-align: right; }
.vit-spec.obs { flex-direction: column; }
.vit-spec.obs span:last-child { text-align: left; font-size: .78rem; line-height: 1.5; color: var(--surface-700); }

.vit-acoes { display: flex; flex-direction: column; gap: .6rem; }
.vit-btn-pdf {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1rem; border-radius: var(--radius-md);
    border: 1.5px solid rgba(251,146,60,.5);
    background: rgba(251,146,60,.08); color: #d97706;
    font-size: .88rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.vit-btn-pdf:hover { background: rgba(251,146,60,.15); }

/* Responsivo */
@media (max-width: 900px) {
    .vit-detail-layout { grid-template-columns: 1fr; }
    .vit-galeria-col { position: static; }
}
@media (max-width: 480px) {
    .vit-char-container { max-width: 100%; }
    .vit-btn-360 { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   VITRINE v3 — Split Layout (Provador)
   ══════════════════════════════════════════════════════════ */
.vit2-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    min-height: calc(100vh - 82px);
    align-items: start;
}

/* ── Painel esquerdo (lista de fichas) ── */
.vit2-left {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 96px);
}

.vit2-left-header {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.vit2-left-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .6rem;
}

.vit2-left-title i { color: var(--accent, #6366F1); margin-right: .3rem; }

.vit2-filtros { display: flex; flex-direction: column; gap: .45rem; }
.vit2-busca, .vit2-sel { width: 100% !important; font-size: .8rem; padding: .35rem .6rem; }

.vit2-lista { flex: 1; overflow-y: auto; padding: .5rem; }

.vit2-item {
    padding: .6rem .7rem;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, border-color .15s;
    margin-bottom: .3rem;
}

.vit2-item:hover { background: rgba(99,102,241,.06); }
.vit2-item.ativo { background: rgba(99,102,241,.1); border-color: var(--accent, #6366F1); }

.vit2-item-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; }

.vit2-tipo-badge {
    font-size: .65rem; font-weight: 700; padding: .12rem .4rem;
    border-radius: 4px;
    background: rgba(99,102,241,.12);
    color: var(--accent, #6366F1);
    text-transform: uppercase; letter-spacing: .05em;
}

.vit2-tipo-badge.lg { font-size: .72rem; padding: .18rem .55rem; }

.vit2-badge-ok { color: #22C55E; font-size: .85rem; }

.vit2-item-nome { font-size: .84rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.vit2-item-cli { font-size: .73rem; color: var(--text-secondary); margin-bottom: .3rem; }

.vit2-item-cores { display: flex; gap: 3px; flex-wrap: wrap; }
.vit2-mini-dot {
    width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15); display: inline-block;
}

/* Skeleton list */
.vit2-item-sk {
    padding: .6rem .7rem; border-radius: 8px; margin-bottom: .3rem;
    background: linear-gradient(90deg, var(--surface-100,#f3f4f6) 25%, var(--surface-200,#e5e7eb) 50%, var(--surface-100,#f3f4f6) 75%);
    background-size: 200% 100%;
    animation: vit-shimmer 1.4s infinite;
}

.vit2-sk-line { height: 9px; border-radius: 4px; background: rgba(0,0,0,.1); margin-bottom: .38rem; }
.vit2-sk-line.short { width: 60%; }

.vit2-lista-empty {
    padding: 2rem 1rem; text-align: center; color: var(--text-secondary);
}
.vit2-lista-empty i { font-size: 1.8rem; opacity: .4; display: block; margin-bottom: .5rem; }
.vit2-lista-empty p { font-size: .85rem; margin-bottom: .5rem; }
.vit2-lista-empty a { font-size: .8rem; color: var(--accent,#6366F1); }

/* ── Painel direito (provador) ── */
.vit2-provador {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.vit2-empty {
    flex: 1; min-height: 400px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .75rem; color: var(--text-secondary); text-align: center;
    font-size: .9rem; line-height: 1.5;
}
.vit2-empty i { font-size: 3rem; opacity: .2; }

.vit2-prov-inner { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; }

.vit2-prov-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: .6rem; flex-wrap: wrap;
}
.vit2-prov-nome { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.vit2-prov-cli { font-size: .8rem; color: var(--text-secondary); }

/* Stage */
.vit2-stage {
    display: flex; flex-direction: row; align-items: flex-start; gap: 1rem;
    background: linear-gradient(160deg,#f8f9ff 0%,#eef2ff 100%);
    border-radius: 12px; padding: .85rem 1rem;
    border: 1px solid rgba(99,102,241,.12);
    min-height: 460px;
}
.vit2-stage-main { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Botões de ângulo */
.vit2-angles { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.vit2-angle-btn {
    padding: .22rem .48rem; border-radius: 6px;
    border: 1.5px solid var(--border-color); background: white;
    color: var(--text-secondary); cursor: pointer;
    font-size: .7rem; font-weight: 600;
    transition: all .15s; display: flex; align-items: center; gap: .2rem;
}
.vit2-angle-btn:hover { border-color: var(--accent,#6366F1); color: var(--accent,#6366F1); }
.vit2-angle-btn.ativo { background: var(--accent,#6366F1); color: white; border-color: var(--accent,#6366F1); }

/* Efeito perspectiva 45° */
.char-card.angle-45 { transform: perspective(700px) rotateY(-28deg) scaleX(0.88); }

/* Ficha técnica lateral */
.vit2-ficha-lat {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: .7rem;
    padding-top: .25rem;
}
.vit2-ficha-lat-title {
    font-size: .78rem; font-weight: 700; color: var(--accent,#6366F1);
    text-transform: uppercase; letter-spacing: .07em;
    display: flex; align-items: center; gap: .35rem;
}
.vit2-spec-label {
    font-size: .68rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem;
}

/* Tamanhos na ficha */
.vit2-tam-row { display: flex; flex-wrap: wrap; gap: 4px; }
.vit2-tam-chip {
    padding: .2rem .42rem; border-radius: 6px;
    border: 1.5px solid var(--border-color);
    font-size: .72rem; font-weight: 700;
    background: white; color: var(--text-secondary);
    transition: all .15s;
}
.vit2-tam-chip:hover { border-color: var(--accent,#6366F1); color: var(--accent,#6366F1); }
.vit2-tam-chip.ativo { background: var(--accent,#6366F1); color: white; border-color: var(--accent,#6366F1); }

/* Cuidados de lavagem */
.vit2-cuidados { display: flex; gap: .55rem; flex-wrap: wrap; }
.vit2-cuidado { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vit2-cuidado span { font-size: .6rem; color: var(--text-secondary); text-align: center; max-width: 46px; line-height: 1.2; }
.vit2-care-icon {
    width: 32px; height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 5px; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: var(--text-primary);
}
.vit2-care-circle { border-radius: 50%; }
.vit2-care-no .vit2-care-icon { border-color: #EF4444; color: #EF4444; }

.vit2-stage-top {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: .75rem; flex-wrap: wrap; justify-content: center;
}

.vit2-gen-toggle {
    display: flex; background: rgba(0,0,0,.07);
    border-radius: 20px; padding: 3px; gap: 2px;
}
.vit2-gen-toggle button {
    width: 30px; height: 30px; border-radius: 18px; border: none;
    cursor: pointer; background: transparent; color: var(--text-secondary);
    font-size: .9rem; transition: background .15s, color .15s;
    display: flex; align-items: center; justify-content: center;
}
.vit2-gen-toggle button.ativo {
    background: white; color: var(--accent, #6366F1);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.vit2-sizes { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.vit2-size-btn {
    padding: .22rem .45rem; border-radius: 6px;
    border: 1.5px solid var(--border-color); font-size: .72rem; font-weight: 700;
    cursor: pointer; background: white; color: var(--text-secondary);
    transition: all .15s; min-width: 28px; text-align: center; line-height: 1.4;
}
.vit2-size-btn.ativo {
    background: var(--accent, #6366F1); color: white;
    border-color: var(--accent, #6366F1);
}

.vit2-btn-360 {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--border-color); background: white;
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; transition: all .15s; flex-shrink: 0;
}
.vit2-btn-360.ativo {
    background: var(--accent,#6366F1); color: white;
    border-color: var(--accent,#6366F1);
    animation: spin360label .8s linear infinite;
}

.vit2-char-wrap {
    /* viewBox 240x520 → aspect ratio 6:13 */
    width: 168px;
    height: 364px;
    margin: 0 auto;
    flex-shrink: 0;
}

.vit2-stage-label {
    font-size: .72rem; color: var(--text-secondary); margin-top: .45rem;
    font-weight: 600; letter-spacing: .04em;
}

/* Cores */
.vit2-cores-panel {
    display: flex; flex-wrap: wrap; gap: .65rem 1.1rem;
    background: var(--surface,#f9fafb);
    border-radius: 10px; padding: .7rem .9rem;
    border: 1px solid var(--border-color);
}

.vit2-cor-grupo { min-width: 120px; flex: 1; }

.vit2-cor-label {
    font-size: .72rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: .38rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}

.vit2-cor-chip {
    font-size: .68rem; padding: .08rem .45rem; border-radius: 9px;
    font-weight: 600; border: 1px solid rgba(0,0,0,.1); line-height: 1.6;
}

.vit2-swatches { display: flex; flex-wrap: wrap; gap: 4px; }

.vit2-swatch {
    width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .72rem; transition: transform .12s, border-color .12s;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.vit2-swatch:hover { transform: scale(1.18); }
.vit2-swatch.ativo { border-color: #fff; outline: 2px solid var(--accent,#6366F1); outline-offset: 1px; }

/* Ficha técnica */
.vit2-ficha {
    background: var(--surface,#f9fafb);
    border-radius: 10px; padding: .7rem .9rem;
    border: 1px solid var(--border-color);
}

.vit2-ficha-title {
    font-size: .76rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem;
}

.vit2-ficha-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .75rem;
}

.vit2-spec { display: flex; flex-direction: column; gap: .08rem; }
.vit2-spec.full { grid-column: 1 / -1; }
.vit2-spec span:first-child {
    font-size: .67rem; color: var(--text-secondary); text-transform: uppercase;
    font-weight: 600; letter-spacing: .04em;
}
.vit2-spec strong { font-size: .82rem; color: var(--text-primary); }
.vit2-spec .full span:last-child { font-size: .82rem; color: var(--text-secondary); }

/* Ações */
.vit2-acoes { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.vit2-btn-aprovar { flex: 1; min-width: 150px; }

.vit2-btn-print {
    padding: .5rem .85rem; border-radius: 8px;
    border: 1.5px solid var(--border-color); background: white;
    color: var(--text-secondary); cursor: pointer; font-size: .82rem;
    font-weight: 600; transition: background .15s, color .15s;
    display: flex; align-items: center; gap: .4rem;
}
.vit2-btn-print:hover { background: var(--surface-100,#f3f4f6); color: var(--text-primary); }

.vit2-aprovado-ok {
    display: flex; align-items: center; gap: .5rem;
    color: #16A34A; font-weight: 700; font-size: .88rem;
    background: rgba(22,163,74,.1); border-radius: 8px;
    padding: .45rem .9rem; border: 1px solid rgba(22,163,74,.25);
    flex: 1;
}

/* Responsivo */
@media (max-width: 960px) {
    .vit2-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 700px) {
    .vit2-layout { grid-template-columns: 1fr; }
    .vit2-left { position: static; max-height: 280px; }
}

/* ── Busca com ícone ── */
.vit2-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vit2-search-icon {
    position: absolute;
    left: .65rem;
    font-size: .8rem;
    color: var(--surface-400);
    pointer-events: none;
    z-index: 1;
}

.vit2-search-input {
    width: 100%;
    padding: .45rem .7rem .45rem 2rem;
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-family: inherit;
    color: var(--surface-800);
    background: var(--surface-0);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.vit2-search-input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.vit2-search-input::placeholder { color: var(--surface-300); }

/* ── Custom Select ── */
.vit2-custom-select {
    position: relative;
    display: flex;
    align-items: center;
}

.vit2-sel-icon {
    position: absolute;
    left: .65rem;
    font-size: .78rem;
    color: var(--surface-400);
    pointer-events: none;
    z-index: 1;
}

.vit2-sel-arrow {
    position: absolute;
    right: .65rem;
    font-size: .68rem;
    color: var(--surface-400);
    pointer-events: none;
    z-index: 1;
    transition: transform .15s;
}

.vit2-custom-select select {
    width: 100%;
    padding: .45rem .7rem .45rem 2rem;
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-family: inherit;
    color: var(--surface-800);
    background: var(--surface-0);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    padding-right: 2rem;
}

.vit2-custom-select select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.vit2-custom-select select:focus + .vit2-sel-arrow {
    color: var(--brand-500);
    transform: rotate(180deg);
}

.vit2-custom-select select option {
    color: var(--surface-800);
    background: var(--surface-0);
    font-size: .82rem;
}

/* ═══════════════════════════════════════════════════════
   VITRINE v3 — layout premium
═══════════════════════════════════════════════════════ */

/* Shell */
.vit3-shell {
    display: flex; flex-direction: column;
    height: calc(100vh - 56px); /* desconta navbar */
    overflow: hidden;
    background: var(--surface-50, #f8fafc);
}

/* Topbar filtros */
.vit3-topbar {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .65rem 1.25rem;
    background: var(--surface-0, #fff);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.vit3-topbar-brand {
    font-weight: 800; font-size: .95rem;
    color: var(--accent, #6366F1);
    display: flex; align-items: center; gap: .4rem;
    white-space: nowrap;
}
.vit3-topbar-filters { display: flex; gap: .6rem; flex-wrap: wrap; flex: 1; }
.vit3-filter-wrap {
    display: flex; align-items: center; gap: .4rem;
    background: var(--surface-50, #f8fafc);
    border: 1px solid var(--border-color);
    border-radius: 8px; padding: .32rem .7rem;
    min-width: 200px;
}
.vit3-filter-wrap i { color: var(--text-secondary); font-size: .85rem; flex-shrink: 0; }
.vit3-filter-wrap select,
.vit3-filter-wrap input {
    border: none; background: transparent; outline: none;
    font-size: .82rem; color: var(--text-primary); flex: 1; min-width: 0;
}
.vit3-busca { min-width: 180px; }

/* Empty state sem empresa */
.vit3-empty-state {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    text-align: center; padding: 2rem;
}
.vit3-empty-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--accent, #6366F1);
}
.vit3-empty-state h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.vit3-empty-state p { font-size: .9rem; color: var(--text-secondary); max-width: 360px; margin: 0; line-height: 1.6; }
.vit3-loading-dots { display: flex; gap: 6px; }
.vit3-loading-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent, #6366F1); opacity: .4;
    animation: vit3pulse 1.2s ease-in-out infinite;
}
.vit3-loading-dots span:nth-child(2) { animation-delay: .2s; }
.vit3-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes vit3pulse { 0%,80%,100%{opacity:.2;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* Body: lista + ficha */
.vit3-body { display: flex; flex: 1; overflow: hidden; }

/* Lista lateral */
.vit3-lista {
    width: 210px; flex-shrink: 0;
    overflow-y: auto; padding: .75rem .6rem;
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: .4rem;
    background: var(--surface-0, #fff);
}
.vit3-card {
    border: 1.5px solid var(--border-color);
    border-radius: 10px; padding: .6rem .75rem;
    cursor: pointer; transition: all .15s;
    background: var(--surface-0, #fff);
}
.vit3-card:hover { border-color: var(--accent, #6366F1); background: rgba(99,102,241,.03); }
.vit3-card.ativo { border-color: var(--accent, #6366F1); background: rgba(99,102,241,.07); }
.vit3-card.aprovado .vit3-card-nome { color: #16A34A; }
.vit3-card-top { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.vit3-badge {
    font-size: .62rem; font-weight: 700; padding: .1rem .42rem;
    border-radius: 10px; background: rgba(99,102,241,.12);
    color: var(--accent, #6366F1); text-transform: uppercase; letter-spacing: .04em;
}
.vit3-badge-ok { color: #22C55E; font-size: .8rem; }
.vit3-card-nome { font-size: .82rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.vit3-card-cores { display: flex; gap: 3px; margin-top: .3rem; flex-wrap: wrap; }
.vit3-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.vit3-card-sk {
    border-radius: 10px; padding: .6rem .75rem;
    border: 1.5px solid var(--border-color);
    background: var(--surface-50, #f8fafc);
}
.vit3-sk-line { height: 8px; border-radius: 4px; background: rgba(0,0,0,.08); margin-bottom: .3rem; animation: vit3pulse 1.4s ease infinite; }
.vit3-sk-line.short { width: 60%; }
.vit3-lista-vazia { text-align: center; padding: 2rem .5rem; color: var(--text-secondary); font-size: .82rem; }
.vit3-lista-vazia i { display: block; font-size: 1.8rem; opacity: .3; margin-bottom: .5rem; }

/* Área da ficha */
.vit3-ficha-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.vit3-ficha-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .6rem;
    color: var(--text-secondary); font-size: .88rem;
}
.vit3-ficha-empty i { font-size: 2rem; opacity: .2; }

/* Header premium da ficha */
.vit3-fh {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    flex-shrink: 0;
}
.vit3-fh-tipo {
    font-size: .65rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .3rem;
}
.vit3-fh-modelo {
    font-size: 1.55rem; font-weight: 800; color: #fff; margin: 0 0 .35rem;
    line-height: 1.1; letter-spacing: -.02em;
}
.vit3-fh-cliente { font-size: .8rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .35rem; }
.vit3-fh-right { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.vit3-aprovado-badge {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(34,197,94,.2); color: #4ade80;
    border: 1px solid rgba(74,222,128,.3);
    border-radius: 20px; padding: .4rem .9rem;
    font-size: .78rem; font-weight: 700;
}
.vit3-btn-aprovar {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px; padding: .4rem .9rem;
    font-size: .78rem; font-weight: 700; cursor: pointer;
    transition: all .15s; backdrop-filter: blur(4px);
}
.vit3-btn-aprovar:hover { background: rgba(255,255,255,.25); }
.vit3-btn-print {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer; transition: all .15s;
}
.vit3-btn-print:hover { background: rgba(255,255,255,.25); }

/* Corpo: manequim + specs */
.vit3-fc { display: flex; flex: 1; overflow: hidden; }

/* Coluna manequim */
.vit3-manequim {
    width: 220px; flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(180deg, #f0f4ff 0%, #e8edff 100%);
    display: flex; flex-direction: column; align-items: center;
    gap: .6rem; padding: 1rem .75rem; overflow-y: auto;
}
.vit3-man-controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.vit3-tam-label { font-size: .78rem; color: var(--text-secondary); }
.vit3-tam-label strong { color: var(--accent, #6366F1); }
.vit3-char-wrap { width: 160px; height: 346px; flex-shrink: 0; }

.vit3-angles { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.vit3-ang {
    padding: .2rem .42rem; border-radius: 6px;
    border: 1.5px solid var(--border-color); background: white;
    color: var(--text-secondary); cursor: pointer;
    font-size: .68rem; font-weight: 700; transition: all .15s;
    display: flex; align-items: center; gap: .2rem;
}
.vit3-ang:hover { border-color: var(--accent,#6366F1); color: var(--accent,#6366F1); }
.vit3-ang.on { background: var(--accent,#6366F1); color: white; border-color: var(--accent,#6366F1); }

.vit3-cor-section { width: 100%; }
.vit3-cor-label { font-size: .68rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.vit3-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.vit3-swatch {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; transition: transform .12s;
    outline: 2px solid transparent; outline-offset: 1px;
}
.vit3-swatch:hover { transform: scale(1.18); }
.vit3-swatch.on { outline-color: var(--accent,#6366F1); border-color: white; }

/* Coluna specs */
.vit3-specs {
    flex: 1; overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.vit3-spec-block {
    background: var(--surface-0, #fff);
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 1rem 1.15rem;
}
.vit3-spec-title {
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent, #6366F1);
    display: flex; align-items: center; gap: .4rem;
    margin-bottom: .75rem; padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-color);
}
.vit3-spec-value { font-size: .92rem; font-weight: 600; color: var(--text-primary); }
.vit3-spec-value.big { font-size: 1.05rem; }
.vit3-spec-desc { font-size: .82rem; color: var(--text-secondary); margin-top: .35rem; line-height: 1.5; }

/* Tamanhos grid */
.vit3-tam-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.vit3-tam {
    min-width: 52px; padding: .55rem .5rem;
    border: 2px solid var(--border-color); border-radius: 8px;
    background: var(--surface-50, #f8fafc); cursor: pointer;
    text-align: center; transition: all .15s;
}
.vit3-tam:hover { border-color: var(--accent,#6366F1); }
.vit3-tam.on { background: var(--accent,#6366F1); border-color: var(--accent,#6366F1); }
.vit3-tam.on .vit3-tam-code { color: #fff; }
.vit3-tam-code { display: block; font-size: .82rem; font-weight: 800; color: var(--text-primary); }

/* Cuidados */
.vit3-cuidados { display: flex; gap: .85rem; flex-wrap: wrap; }
.vit3-cuidado { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vit3-cuidado span { font-size: .63rem; color: var(--text-secondary); text-align: center; max-width: 54px; line-height: 1.3; }
.vit3-care {
    width: 40px; height: 40px;
    border: 2.5px solid var(--border-color);
    border-radius: 6px; background: var(--surface-50, #f8fafc);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800; color: var(--text-primary);
}
.vit3-care-circle { border-radius: 50%; }
.vit3-care-no .vit3-care { border-color: #EF4444; color: #EF4444; background: #FEF2F2; }

/* Logomarca grid */
.vit3-logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.vit3-logo-item { display: flex; flex-direction: column; gap: .1rem; }
.vit3-logo-item span { font-size: .68rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.vit3-logo-item strong { font-size: .88rem; color: var(--text-primary); }

/* Cores lista */
.vit3-cores-lista { display: flex; flex-wrap: wrap; gap: .5rem; }
.vit3-cor-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-primary); }
.vit3-cor-ball { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.1); flex-shrink: 0; }

/* Responsivo */
@media (max-width: 768px) {
    .vit3-lista { width: 160px; }
    .vit3-manequim { width: 180px; }
    .vit3-fc { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .vit3-fc { flex-direction: column; }
    .vit3-manequim { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); flex-direction: row; flex-wrap: wrap; height: auto; }
    .vit3-char-wrap { width: 140px; height: 302px; }
}

/* ═══════════════════════════════════════════════════════════
   VITRINE 4  (vt-)  —  custom selects + 3D cards + ficha
   ═══════════════════════════════════════════════════════════ */

/* Backdrop — fecha dropdowns ao clicar fora */
.vt-backdrop { position: fixed; inset: 0; z-index: 100; }

/* Shell principal — tela branca, sem padding lateral */
.vt-shell {
    margin: -1.75rem -2rem;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ══ TOPBAR ══ */
.vt-topbar {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 2rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.07);
    flex-wrap: wrap;
    flex-shrink: 0;
}
.vt-topbar-brand {
    font-size: .9rem; font-weight: 700; color: var(--surface-500);
    white-space: nowrap; letter-spacing: .04em; text-transform: uppercase;
}
.vt-voltar-btn {
    display: flex; align-items: center; gap: .4rem;
    background: var(--surface-100); border: 1px solid var(--surface-200);
    border-radius: var(--radius-sm); padding: .42rem .9rem;
    font-size: .82rem; font-weight: 600; color: var(--surface-700);
    cursor: pointer; white-space: nowrap;
    transition: all var(--transition);
}
.vt-voltar-btn:hover { background: var(--surface-200); color: var(--surface-900); }

/* Export buttons */
.vt-export-btn {
    display: flex; align-items: center; gap: .35rem;
    background: var(--surface-100); border: 1px solid var(--surface-200);
    border-radius: var(--radius-sm); padding: .35rem .75rem;
    font-size: .78rem; font-weight: 600; color: var(--surface-600);
    cursor: pointer; transition: all var(--transition);
}
.vt-export-btn:hover { background: var(--surface-200); color: var(--surface-900); }
.vt-export-btn.pdf { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.2); color: #b91c1c; }
.vt-export-btn.pdf:hover { background: rgba(220,38,38,.15); }

/* Export print sheet */
.export-print-sheet { display: none; }
@media print {
    .export-print-sheet { display: block !important; position: fixed; left:0; top:0; width:100%; padding:1.5cm; background:#fff; z-index:9999; }
    .export-print-sheet ~ * { display: none !important; }
}

/* ══ CUSTOM SELECT ══ */
.vt-cs { position: relative; z-index: 120; min-width: 220px; max-width: 340px; flex: 1; }
.vt-cs-btn {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    background: var(--surface-0); border: 1.5px solid var(--surface-300);
    border-radius: var(--radius-sm); padding: .5rem .8rem;
    font-size: .85rem; font-weight: 500; color: var(--surface-800);
    cursor: pointer; text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.vt-cs-btn:hover { border-color: var(--brand-400); }
.vt-cs.open .vt-cs-btn { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.vt-cs-btn > i:first-child { color: var(--surface-500); }
.vt-cs-placeholder { color: var(--surface-400); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-cs-arrow { margin-left: auto; font-size: .75rem; color: var(--surface-500); transition: transform .2s ease; flex-shrink: 0; }
.vt-cs.open .vt-cs-arrow { transform: rotate(180deg); }

.vt-cs-panel {
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 100%; width: max-content; max-width: 360px;
    background: var(--surface-0); border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.07);
    z-index: 130; overflow: hidden;
    animation: cs-drop .18s ease;
}
@keyframes cs-drop { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.vt-cs-search {
    display: flex; align-items: center; gap: .4rem;
    padding: .6rem .75rem; border-bottom: 1px solid var(--surface-100);
    font-size: .82rem; color: var(--surface-500);
}
.vt-cs-search input { border: none; outline: none; background: transparent; font-size: .84rem; color: var(--surface-800); flex: 1; }
.vt-cs-search input::placeholder { color: var(--surface-400); }

.vt-cs-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; padding: .3rem; gap: .1rem; }
.vt-cs-item {
    display: flex; align-items: center; gap: .55rem;
    background: transparent; border: none; border-radius: 6px;
    padding: .48rem .6rem; cursor: pointer; text-align: left;
    font-size: .84rem; color: var(--surface-700); width: 100%;
    transition: background var(--transition), color var(--transition);
}
.vt-cs-item:hover { background: var(--surface-100); color: var(--surface-900); }
.vt-cs-item.on    { background: var(--brand-50); color: var(--brand-700); }
.vt-cs-av {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface-200); color: var(--surface-700);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.vt-cs-item.on .vt-cs-av { background: var(--brand-100); color: var(--brand-700); }
.vt-cs-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid rgba(0,0,0,.1); }
.vt-cs-item-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; gap: .05rem; }
.vt-cs-item-txt small { font-size: .7rem; color: var(--surface-500); }
.vt-cs-item.on .vt-cs-item-txt small { color: var(--brand-500); }
.vt-cs-chk { color: var(--brand-600); font-size: .78rem; flex-shrink: 0; }
.vt-cs-empty { font-size: .8rem; color: var(--surface-400); padding: .7rem .65rem; }

/* ══ EMPTY STATE ══ */
.vt-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 4rem 2rem; color: var(--surface-400); text-align: center; }
.vt-empty-state i  { font-size: 3rem; }
.vt-empty-state h3 { font-size: 1.15rem; font-weight: 700; color: var(--surface-600); }
.vt-empty-state p  { font-size: .88rem; max-width: 320px; line-height: 1.5; }

/* ═══ GRID DE CARDS 3D ═══ */
.vt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    align-content: start;
}

/* Skeleton cards */
.vt-sk-card {
    height: 300px;
    border-radius: var(--radius-md);
    background: var(--surface-100);
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes skeleton-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── Card 3D ── */
.vt3d-card {
    perspective: 900px;
    cursor: pointer;
}

.vt3d-inner {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--surface-0);
    border: 1.5px solid var(--surface-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    transform-style: preserve-3d;
    transform: translateY(0) scale(1);
    transition: transform .32s cubic-bezier(.34,1.56,.64,1),
                box-shadow .32s ease,
                border-color .2s ease;
    will-change: transform;
}
.vt3d-card:hover .vt3d-inner {
    transform: translateY(-12px) scale(1.025) rotateX(4deg);
    box-shadow: 0 24px 60px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.1);
    border-color: var(--brand-400, #60a5fa);
}
.vt3d-inner.aprov { border-color: var(--success); }
.vt3d-card:hover .vt3d-inner.aprov { border-color: var(--success); }

.vt3d-stripe {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.vt3d-avatar {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--surface-50) 0%, var(--surface-100) 100%);
    padding: .5rem;
    overflow: hidden;
}

.vt3d-body {
    padding: .85rem 1rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.vt3d-tipo {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.vt3d-nome {
    font-size: .95rem;
    font-weight: 700;
    color: var(--surface-900);
    line-height: 1.25;
}
.vt3d-cli {
    font-size: .73rem;
    color: var(--surface-500);
    display: flex;
    align-items: center;
    gap: .25rem;
}
.vt3d-cores { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .2rem; }
.vt-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); flex-shrink: 0; }
.vt3d-tec { font-size: .7rem; color: var(--surface-400); display: flex; align-items: center; gap: .25rem; margin-top: .1rem; }

.vt3d-aprov-badge {
    position: absolute; top: 10px; right: 10px;
    background: #ecfdf5; color: var(--success);
    border: 1px solid #a7f3d0; border-radius: 99px;
    font-size: .67rem; font-weight: 700;
    padding: .18rem .55rem;
    display: flex; align-items: center; gap: .25rem;
}

.vt3d-tip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--brand-600);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    padding: .45rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .22s, transform .22s;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.vt3d-card:hover .vt3d-tip {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════
   FICHA TÉCNICA DETALHADA  (vt-detail)
   ════════════════════════════════════════ */
.vt-detail {
    margin: 1.25rem 2rem;
    background: var(--surface-0);
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: hidden;
}

.vt-detail-hd {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1rem 1.25rem; background: var(--surface-50);
    border-bottom: 1px solid var(--surface-200); gap: 1rem; flex-wrap: wrap;
}
.vt-detail-hd-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.vt-detail-tipo   { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.vt-detail-modelo { font-size: 1.3rem; font-weight: 800; color: var(--surface-900); line-height: 1.2; }
.vt-detail-cli    { font-size: .78rem; color: var(--surface-500); display: flex; align-items: center; gap: .3rem; }
.vt-detail-hd-acoes { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }

.vt-aprov-tag {
    display: flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600; color: var(--success);
    background: #ecfdf5; border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm); padding: .35rem .75rem;
}
.vt-btn-aprov {
    display: flex; align-items: center; gap: .35rem;
    background: var(--brand-600); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: .4rem .9rem; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background var(--transition);
}
.vt-btn-aprov:hover { background: var(--brand-700); }
.vt-btn-print {
    background: var(--surface-100); border: 1px solid var(--surface-200);
    border-radius: var(--radius-sm); padding: .4rem .7rem;
    cursor: pointer; color: var(--surface-600); font-size: .88rem;
    transition: background var(--transition);
}
.vt-btn-print:hover { background: var(--surface-200); }

.vt-detail-body { display: flex; }

/* Coluna manequim */
.vt-man-col {
    width: 260px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: .85rem .75rem; border-right: 1px solid var(--surface-200);
    background: var(--surface-0); gap: .65rem;
}
.vt-man-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.vt-tam-lbl { font-size: .78rem; color: var(--surface-600); font-weight: 600; }
.vt-tam-lbl b { color: var(--brand-600); }

.vt-svg-wrap { width: 180px; height: 280px; flex-shrink: 0; }

.vt-angles { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.vt-ang {
    background: var(--surface-100); border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm); padding: .25rem .55rem;
    font-size: .75rem; font-weight: 600; color: var(--surface-600);
    cursor: pointer; transition: all var(--transition);
}
.vt-ang:hover { border-color: var(--brand-500); color: var(--brand-600); }
.vt-ang.on    { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { display: inline-block; animation: spin 1s linear infinite; }

.vt-cores { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.vt-cor-blk { display: flex; flex-direction: column; gap: .3rem; }
.vt-cor-lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--surface-500); }
.vt-swatches { display: flex; flex-wrap: wrap; gap: .35rem; }
.vt-sw {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .65rem; transition: transform var(--transition), box-shadow var(--transition);
}
.vt-sw:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--brand-500); }
.vt-sw.on    { box-shadow: 0 0 0 2.5px var(--brand-600); }

/* Toggle M/F */
.vit2-gen-toggle {
    display: flex; gap: .25rem;
    background: var(--surface-100); border-radius: var(--radius-sm); padding: .2rem;
}
.vit2-gen-toggle button {
    border: none; background: transparent; border-radius: 6px;
    padding: .22rem .45rem; cursor: pointer; font-size: .82rem;
    color: var(--surface-500); transition: all var(--transition);
}
.vit2-gen-toggle button.ativo { background: var(--brand-600); color: #fff; }

/* Coluna specs */
.vt-spec-col {
    flex: 1; min-width: 0;
    padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: .85rem;
}

/* Bloco genérico */
.vt-blk {
    background: var(--surface-0);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-md);
    padding: .9rem 1rem;
}
.vt-blk-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--surface-500);
    display: flex; align-items: center; gap: .4rem;
    margin-bottom: .7rem;
}

/* Tamanhos */
.vt-tam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .4rem; }
.vt-tam {
    display: flex; flex-direction: column; align-items: center;
    padding: .5rem .3rem; border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm); background: var(--surface-50);
    cursor: pointer; transition: all var(--transition); gap: .1rem;
}
.vt-tam:hover { border-color: var(--brand-500); }
.vt-tam.on    { border-color: var(--brand-600); background: var(--brand-50); box-shadow: var(--shadow-sm); }
.vt-tam-code  { font-size: .92rem; font-weight: 800; color: var(--surface-800); }
.vt-tam.on .vt-tam-code { color: var(--brand-700); }
.vt-tam-sub   { font-size: .6rem; color: var(--surface-500); text-align: center; line-height: 1.2; }
.vt-tam-med   { font-size: .58rem; color: var(--brand-600); font-weight: 700; text-align: center; line-height: 1.1; margin-top: .05rem; }
.vt-tam.on .vt-tam-med { color: var(--brand-800); }
.vt-medida-atual { margin-top: .5rem; padding: .4rem .65rem; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius-sm); font-size: .82rem; color: var(--brand-700); display: flex; align-items: center; gap: .4rem; }
.vt-medida-atual strong { color: var(--brand-900); }

/* Material */
.vt-material-card {
    background: var(--surface-50); border: 1px solid var(--surface-100);
    border-radius: var(--radius-sm); padding: .75rem .9rem;
    display: flex; flex-direction: column; gap: .45rem;
}
.vt-material-nome { font-size: .95rem; font-weight: 700; color: var(--surface-800); }
.vt-material-desc { font-size: .82rem; color: var(--surface-600); line-height: 1.5; }
.vt-material-props { display: flex; flex-wrap: wrap; gap: .4rem; }
.vt-material-tag {
    display: flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 600;
    background: var(--brand-50); color: var(--brand-700);
    border: 1px solid var(--brand-100); border-radius: 99px; padding: .2rem .6rem;
}

/* Cuidados */
.vt-cuidados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .5rem; }
.vt-cui {
    display: flex; align-items: center; gap: .6rem;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm); padding: .55rem .75rem;
}
.vt-cui.no { background: #fff1f2; border-color: #fecdd3; }
.vt-cui-ico { font-size: .9rem; font-weight: 700; min-width: 26px; text-align: center; color: var(--success); }
.vt-cui.no .vt-cui-ico { color: var(--danger); }
.vt-cui-info { display: flex; flex-direction: column; gap: .05rem; }
.vt-cui-info strong { font-size: .78rem; font-weight: 700; color: var(--surface-800); }
.vt-cui-info span   { font-size: .72rem; color: var(--surface-600); }

/* Logomarca */
.vt-logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.vt-logo-item { display: flex; flex-direction: column; gap: .1rem; }
.vt-logo-item span   { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--surface-500); }
.vt-logo-item strong { font-size: .86rem; color: var(--surface-800); }

/* Cores disponíveis */
.vt-cores-lista { display: flex; flex-wrap: wrap; gap: .4rem; }
.vt-cor-tag {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--surface-700);
    border: 1.5px solid var(--surface-200);
    border-radius: 99px; padding: .2rem .6rem;
    background: var(--surface-0);
}
.vt-cor-ball { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); flex-shrink: 0; }

/* Observações */
.vt-obs {
    font-size: .84rem; color: var(--surface-700); line-height: 1.6;
    background: var(--surface-50); border-left: 3px solid var(--brand-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .6rem .85rem;
}

/* ── PRINT ── */
@media print {
    .app-shell > .sidenav, .app-header, .vt-shell { display: none !important; }
    .proposta-print { display: block !important; }
    /* Orçamento print */
    .orcamento-sheet, .orcamento-sheet * { visibility: visible; }
    .orcamento-sheet { position: fixed; left: 0; top: 0; width: 100%; background: #fff; }
    /* Documento de layout */
    @page { size: A4 portrait; margin: 8mm; }
    .no-print, .ldoc-controls, .ldoc-preview-wrap, .drawer-overlay { display: none !important; }
    .page-header, .gallery-grid, .card-modern, .loading-center, .confirm-modal, .drawer { display: none !important; }
    .ldoc-print-area {
        display: block !important;
        position: fixed !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: auto !important;
        background: white !important; z-index: 99999 !important;
        padding: 0 !important;
    }
    .ldoc-page {
        width: 100%; padding: 0;
        page-break-after: always;
        break-after: page;
    }
    .ldoc-page:last-child { page-break-after: avoid; break-after: avoid; }
    .ldoc-mannequin-area { height: 65mm !important; }
    .ldoc-img-wrap svg { max-height: 60mm !important; width: auto !important; }
}
.proposta-print { display: none; font-family: 'Inter', sans-serif; }
.proposta-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid #1e3a5f; padding-bottom: .75rem; margin-bottom: 1.25rem;
}
.proposta-logo  { font-size: 1.1rem; font-weight: 800; color: #1e3a5f; }
.proposta-titulo{ font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #334155; }
.proposta-data  { font-size: .8rem; color: #64748b; }
.proposta-body  { display: flex; gap: 1.5rem; }
.proposta-detalhes h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: .6rem; }
.proposta-detalhes p  { font-size: .82rem; margin-bottom: .3rem; }
.proposta-footer { margin-top: 1.5rem; font-size: .72rem; color: #94a3b8; text-align: center; border-top: 1px solid #e2e8f0; padding-top: .75rem; }

/* ── Opções da peça (checkboxes no form de layout) ── */
.opts-checks { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .5rem; }
.opt-chk {
    display: flex; align-items: center; gap: .45rem;
    cursor: pointer; font-size: .84rem; color: var(--surface-700);
    background: var(--surface-50); border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-sm); padding: .35rem .75rem;
    transition: border-color var(--transition), background var(--transition);
    user-select: none;
}
.opt-chk:hover { border-color: var(--brand-500); }
.opt-chk input[type=checkbox] { accent-color: var(--brand-600); width: 15px; height: 15px; cursor: pointer; }

/* ── Responsivo ── */
@media (max-width: 960px) {
    .vt-man-col { width: 220px; }
}
@media (max-width: 700px) {
    .vt-topbar { flex-wrap: wrap; gap: .65rem; }
    .vt-cs { min-width: 0; flex: 1 1 200px; }
    .vt-detail-body { flex-direction: column; }
    .vt-man-col { width: 100%; border-right: none; border-bottom: 1px solid var(--surface-200); }
    .vt-cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); padding: 1rem; }
    .vt-detail { margin: 1rem; }
    .vt-topbar { padding: .75rem 1rem; }
}

