/* =============================================
   VERA S2P 2P — Platform Stylesheet
   ============================================= */

/* --- Root Variables (inherits Vera S2P brand) --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);

    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-width: 260px;
    --sidebar-text: rgba(255, 255, 255, .75);
    --sidebar-active: rgba(255, 255, 255, .10);
    --sidebar-accent: #2563eb;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--background);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
}

/* --- Platform Top Bar (Landing) --- */
.p2p-topbar {
    background: var(--secondary);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.p2p-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.p2p-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.p2p-logo img {
    height: 36px;
}

.p2p-logo-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.p2p-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.p2p-nav-links a {
    color: rgba(255, 255, 255, .75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.p2p-nav-links a:hover {
    color: white;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Landing Hero --- */
.p2p-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 60%, var(--primary) 100%);
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
}

.p2p-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.p2p-hero h1 span {
    color: #60a5fa;
}

.p2p-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .8);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.p2p-hero-pills {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.p2p-pill {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Role Cards */
.p2p-role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.p2p-role-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: left;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.p2p-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.p2p-role-card.buyer:hover {
    border-color: var(--primary);
}

.p2p-role-card.supplier:hover {
    border-color: var(--success);
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.role-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.role-icon.green {
    background: #ecfdf5;
    color: var(--success);
}

.role-icon svg {
    width: 28px;
    height: 28px;
}

.p2p-role-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.p2p-role-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.p2p-role-card ul {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
}

.p2p-role-card li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
}

.p2p-role-card.supplier li::before {
    color: var(--success);
}

/* --- Auth Pages (Login & Register) --- */
.auth-page {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.auth-topbar {
    background: var(--secondary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-topbar a {
    color: rgba(255, 255, 255, .65);
    font-size: 0.9rem;
}

.auth-topbar a:hover {
    color: white;
}

.auth-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
}

.auth-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-card-header .auth-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-badge.green {
    background: #ecfdf5;
    color: var(--success);
}

.auth-card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Wizard Steps --- */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wizard-step.active .step-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .2);
}

.wizard-step.done .step-circle {
    background: var(--success);
    color: white;
}

.wizard-step.active.green .step-circle {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

.step-label {
    font-size: 0.725rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

.wizard-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step.active.green .step-label {
    color: var(--success);
}

.wizard-step.done .step-label {
    color: var(--success);
}

/* Form Panels */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-control.success {
    border-color: var(--success);
}

.form-control.error {
    border-color: var(--danger);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.form-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 0.3rem;
    display: none;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--background);
}

.file-upload-area:hover,
.file-upload-area.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

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

.file-icon {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.file-upload-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-upload-label strong {
    color: var(--primary);
}

.file-status {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
}

/* Checkbox */
.check-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.check-group input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.check-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.check-group a {
    color: var(--primary);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* --- Success Screen --- */
.success-screen {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

.success-screen h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.success-screen p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 1.75rem;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header img {
    height: 32px;
}

.sidebar-badge {
    background: var(--sidebar-accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-section-label {
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.5rem 1.25rem 0.4rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--sidebar-text);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s;
    position: relative;
}

.sidebar-link:hover {
    color: white;
    background: var(--sidebar-active);
}

.sidebar-link.active {
    color: white;
    background: var(--sidebar-active);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sidebar-accent);
    border-radius: 0 2px 2px 0;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-link .soon {
    margin-left: auto;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .4);
    font-size: 0.63rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
}

.sidebar-user {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

.user-info .name {
    font-size: 0.82rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .role-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, .45);
}

.sidebar-logout {
    margin-left: auto;
    color: rgba(255, 255, 255, .35);
    cursor: pointer;
}

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

/* Dashboard Main */
.dashboard-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.db-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.db-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.db-topbar-actions .notif-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
}

.dashboard-content {
    padding: 2rem;
    flex: 1;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--border);
}

.stat-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.stat-card-sub {
    font-size: 0.78rem;
    color: var(--text-light);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.stat-card-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card-icon.green {
    background: #ecfdf5;
    color: var(--success);
}

.stat-card-icon.orange {
    background: #fffbeb;
    color: var(--warning);
}

.stat-card-icon.red {
    background: #fef2f2;
    color: var(--danger);
}

.stat-card-icon svg {
    width: 22px;
    height: 22px;
}

/* Budget Bar */
.budget-bar-wrap {
    margin-top: 0.4rem;
    background: var(--border);
    border-radius: 50px;
    height: 6px;
    overflow: hidden;
}

.budget-bar {
    height: 100%;
    border-radius: 50px;
    background: var(--primary);
    transition: width 1s ease;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Cards / Panels */
.db-panel {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.db-panel-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.db-panel-body {
    padding: 1.25rem 1.5rem;
}

/* Table */
.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.db-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.db-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.db-table tr:last-child td {
    border-bottom: none;
}

.db-table tr:hover td {
    background: var(--background);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.pending {
    background: #fffbeb;
    color: #92400e;
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.approved {
    background: #ecfdf5;
    color: #065f46;
}

.status-badge.approved::before {
    background: var(--success);
}

.status-badge.rejected {
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.rejected::before {
    background: var(--danger);
}

.status-badge.sent {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-badge.sent::before {
    background: var(--primary);
}

.status-badge.review {
    background: #f0fdf4;
    color: #166534;
}

.status-badge.review::before {
    background: #22c55e;
}

/* Profile completion indicator */
.profile-completion {
    padding: 1rem 0;
}

.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.completion-bar-wrap {
    background: var(--border);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.completion-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 50px;
}

.profile-completion-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.completion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.ci-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.ci-status.done {
    color: var(--success);
}

.ci-status.pending {
    color: var(--warning);
}

.ci-status.missing {
    color: var(--danger);
}

/* --- Quick Actions --- */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-main);
    transition: all 0.2s;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.quick-action-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 900px) {
    .p2p-role-cards {
        grid-template-columns: 1fr;
    }

    .p2p-hero h1 {
        font-size: 2.25rem;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

/* ── Vera S2P: tipografía de marca (Plus Jakarta Sans para títulos y cifras, Poppins para interfaz) ── */
h1, h2, h3, h4, .db-page-title, .auth-card-header h2, .p2p-logo, .stat-value, .kpi strong, .total { font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif; letter-spacing: -0.01em; }
.stat-value, .kpi strong, .num, .total { font-variant-numeric: tabular-nums; }
.btn { font-weight: 500; }
blockquote, q, cite { font-style: normal; }
