/* ─────────────────────────────────────────────────────────────────────
   Provou Levou — Gestão
   Design system espelhado de https://provoulevou.com.br
   HelveticaNow + Inter · purple (#7c3aed) · radius 20 · pill
   ───────────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'HelveticaNow';
    src: url('helveticanowdisplay-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Surface palette — LIGHT MODE */
    --bg: #f5f4f0;
    --bg-alt: #ffffff;
    --bg-elevated: #ffffff;
    --bg-light: #f5f4f0;
    --bg-light-alt: #eeecea;

    /* Text */
    --text: #0a0a0a;
    --text-sub: #555;
    --text-muted: #888;
    --text-dark: #0a0a0a;

    /* Borders */
    --border: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 0, 0, 0.14);
    --border-light: rgba(0, 0, 0, 0.06);

    /* Accent */
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-soft: rgba(124, 58, 237, 0.08);
    --purple-glow: rgba(124, 58, 237, 0.25);

    /* Semantic */
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;

    /* Shape */
    --radius: 20px;
    --radius-sm: 10px;
    --pill: 9999px;

    /* Type */
    --font: 'HelveticaNow', 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container: 1200px;
    --sidebar-width: 240px;
    --transition: all .35s cubic-bezier(.22, 1, .36, 1);

    /* Legacy token bridge — keeps existing JS / inline styles working */
    --bg-main: var(--bg);
    --bg-darker: #050505;
    --sidebar-bg: var(--bg-alt);
    --card-bg: var(--bg-elevated);
    --card-border: var(--border);
    --text-main: var(--text);
    --text-muted: var(--text-sub);
    --text-dim: var(--text-muted);
    --primary: var(--purple);
    --primary-dark: #6d28d9;
    --primary-glow: var(--purple-glow);
    --secondary: #9333ea;
    --accent: var(--purple-light);
    --success: var(--green);
    --warning: var(--yellow);
    --danger: var(--red);
    --header-height: 64px;
    --border-radius: var(--radius-sm);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    height: 100vh;
    display: flex;
    position: relative;
}

/* Ambient purple aurora — fixed background glow (subtler on light) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 1100px 600px at 80% -10%, rgba(124, 58, 237, 0.08), transparent 60%),
        radial-gradient(ellipse 900px 500px at -10% 90%, rgba(167, 139, 250, 0.05), transparent 55%);
}

/* Subtle grain layer */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.018;
    mix-blend-mode: multiply;
}

aside, main { position: relative; z-index: 2; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.4); border-radius: var(--pill); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

::selection {
    background: var(--purple);
    color: #fff;
}

a, button, input, select, textarea {
    transition: var(--transition);
    font-family: var(--font);
}

/* ─── Surfaces ───────────────────────────────────────────── */

.glass {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.glass-premium {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* ─── Sidebar ────────────────────────────────────────────── */

aside {
    width: var(--sidebar-width);
    background: var(--bg-light-alt);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    height: 100vh;
    position: fixed;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
    padding: 0 6px;
}

.logo-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.nav-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(167, 139, 250, 0.06) 100%);
    color: var(--text);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 4px 18px rgba(124, 58, 237, 0.12);
}

.nav-item.active i {
    color: var(--purple-light);
}

.user-profile {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    padding: 0 4px;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    font-weight: 500;
}

.logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(239, 68, 68, 0.04);
}

/* ─── Main Content ───────────────────────────────────────── */

main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 40px 48px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--bg);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    position: relative;
}

.page-title {
    font-family: var(--font);
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #0a0a0a 0%, #404040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.page-title::before {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: var(--pill);
    box-shadow: 0 0 12px var(--purple-glow);
}

/* ─── KPI Cards ──────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 20px 22px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, transparent 55%),
        var(--bg-elevated);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Diagonal sheen on hover */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(167, 139, 250, 0.08) 50%, transparent 70%);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
    z-index: -1;
}

/* Glow blob in corner */
.stat-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.10), transparent 70%);
    opacity: 0.6;
    transition: all .6s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.30);
    box-shadow:
        0 12px 32px rgba(124, 58, 237, 0.10),
        0 0 0 1px rgba(124, 58, 237, 0.12);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.07) 0%, transparent 55%),
        var(--bg-elevated);
}

.stat-card:hover::before {
    opacity: 1;
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.stat-card:hover::after { opacity: 1; }

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 500;
    background: linear-gradient(180deg, #0a0a0a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.stat-sub {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.stat-trend {
    font-size: 11px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-trend i { font-size: 10px; }

.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* ─── Section Container / Tables ─────────────────────────── */

.section-container {
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.02) 0%, transparent 30%),
        var(--bg-elevated);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    opacity: 0.4;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.table-title {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
}

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

.client-table th {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.client-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.client-table tr:last-child td { border-bottom: none; }
.client-table tbody tr { transition: background 200ms ease; }
.client-table tbody tr:hover { background: rgba(124, 58, 237, 0.04); }
.client-table tbody tr:hover td { background: transparent; }

/* ─── Status Badges ──────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--pill);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.4;
}

.status-active {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.18);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.18);
}

.status-pending {
    background: rgba(245, 158, 11, 0.08);
    color: var(--yellow);
    border-color: rgba(245, 158, 11, 0.18);
}

.status-permuta {
    background: rgba(59, 130, 246, 0.08);
    color: var(--blue);
    border-color: rgba(59, 130, 246, 0.18);
}

/* ─── Forms ──────────────────────────────────────────────── */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-control {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    font-family: var(--font);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-soft);
    background: #fff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23555' viewBox='0 0 24 24' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ─── Buttons ────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 4px 16px var(--purple-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b4cf0 0%, var(--purple) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 40px var(--purple-glow),
        0 0 0 1px rgba(167, 139, 250, 0.2);
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:active { transform: translateY(0); }

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--purple-light);
    border-color: var(--purple);
    background: var(--purple-soft);
}

/* ─── Views ──────────────────────────────────────────────── */

.view {
    display: none;
    animation: fadeUp .6s cubic-bezier(.22, 1, .36, 1);
}

.view.active {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Staggered card entrance */
.view.active .stats-grid > * {
    opacity: 0;
    animation: cardIn .6s cubic-bezier(.22, 1, .36, 1) forwards;
}

.view.active .stats-grid > *:nth-child(1) { animation-delay: .05s; }
.view.active .stats-grid > *:nth-child(2) { animation-delay: .10s; }
.view.active .stats-grid > *:nth-child(3) { animation-delay: .15s; }
.view.active .stats-grid > *:nth-child(4) { animation-delay: .20s; }
.view.active .stats-grid > *:nth-child(5) { animation-delay: .25s; }
.view.active .stats-grid > *:nth-child(6) { animation-delay: .30s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ─── Filters ────────────────────────────────────────────── */

.filter-group {
    display: inline-flex;
    background: var(--bg-light-alt);
    padding: 4px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    gap: 2px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 7px 16px;
    border-radius: var(--pill);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: -0.01em;
}

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

.filter-btn.active {
    background: var(--purple);
    color: #fff;
}

/* ─── Modal ──────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s, visibility .35s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 680px;
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: var(--font);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--text);
}

.close-modal {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    color: var(--red);
    border-color: var(--red);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.detail-item span,
.detail-item a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.modal-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ─── Package Cards ──────────────────────────────────────── */

.package-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.package-card::before {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
}

.package-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--pill);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    width: fit-content;
}

.package-price {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.package-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.package-feature {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.package-feature i {
    color: var(--purple-light);
    font-size: 10px;
}

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

/* ─── Login ──────────────────────────────────────────────── */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(ellipse 800px 400px at 50% 30%, rgba(124, 58, 237, 0.10), transparent),
        radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.05), transparent),
        var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 44px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10);
    animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1);
}

.login-logo {
    width: 160px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.login-title {
    font-family: var(--font);
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--text);
    text-align: center;
    width: 100%;
    letter-spacing: -0.03em;
}

#login-form { width: 100%; }

/* ─── Provinha view ──────────────────────────────────────── */

.provinha-section { width: 100%; }

.provinha-card {
    padding: 48px 40px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.provinha-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 35%, var(--purple-soft), transparent 55%);
    pointer-events: none;
}

.provinha-header { text-align: center; position: relative; }

.provinha-title {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.025em;
}

.provinha-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
}

.provinha-avatar {
    width: 160px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: provinha-idle 3s ease-in-out infinite;
}

@keyframes provinha-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.provinha-stage-name {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--purple-light);
    text-align: center;
    letter-spacing: -0.02em;
}

.provinha-bars {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.provinha-bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.provinha-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.provinha-bar-label i {
    margin-right: 6px;
    color: var(--purple-light);
}

.provinha-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-light-alt);
    border-radius: var(--pill);
    overflow: hidden;
    border: 1px solid var(--border);
}

.provinha-bar-fill {
    height: 100%;
    border-radius: var(--pill);
    transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.provinha-bar-growth {
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    box-shadow: 0 0 12px var(--purple-glow);
}

.provinha-bar-revenue {
    background: linear-gradient(90deg, var(--green), #34d399);
}

.provinha-indicators {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    justify-content: center;
}

.provinha-indicator {
    text-align: center;
    padding: 16px 18px;
    background: var(--bg-light-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex: 1;
}

.provinha-indicator-value {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.025em;
}

.provinha-indicator-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

@keyframes provinha-levelup {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 20px var(--purple)); }
    100% { filter: brightness(1); }
}

.provinha-avatar.level-up {
    animation: provinha-levelup 1s ease-in-out, provinha-idle 3s ease-in-out infinite;
}

/* ─── Utility ────────────────────────────────────────────── */

.mb-8 { margin-bottom: 32px; }

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
    :root { --sidebar-width: 72px; }
    .nav-item span,
    .user-info,
    .user-role { display: none; }
    .logo { padding: 0; justify-content: center; }
    .logo-img { max-width: 36px; object-position: left; }
    .nav-item { justify-content: center; padding: 11px; }
    .user-profile { padding: 16px 0; align-items: center; }
    .logout-btn span { display: none; }
    main { padding: 32px 28px; }
}

@media (max-width: 768px) {
    .form-grid,
    .detail-grid { grid-template-columns: 1fr !important; }
    .provinha-indicators { flex-direction: column; gap: 10px; }
    .provinha-avatar { width: 120px; height: 150px; }
    main { padding: 24px 20px; }
}
