/* ============================================================
   UNC Design System — Premium UI
   Inspiré Notion / Linear / Stripe Dashboard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --unc-blue: #2C5CA8;
    --unc-blue-hover: #234A88;
    --unc-blue-soft: rgba(44, 92, 168, 0.08);
    --unc-navy: #0F1F3D;
    --unc-navy-soft: #152A4E;
    --unc-white: #FFFFFF;
    --unc-bg: #F7F9FC;
    --unc-bg-elevated: #FFFFFF;
    --unc-border: #E8EDF4;
    --unc-border-strong: #D1DAE6;
    --unc-text: #0F1F3D;
    --unc-text-secondary: #5A6B7F;
    --unc-text-muted: #8B9AB0;
    --unc-accent: #D4A843;
    --unc-success: #0D9488;
    --unc-success-bg: #ECFDF5;
    --unc-danger: #DC2626;
    --unc-danger-bg: #FEF2F2;
    --unc-warning: #D97706;
    --unc-warning-bg: #FFFBEB;
    --unc-info: #0284C7;
    --unc-info-bg: #EFF6FF;

    --shadow-xs: 0 1px 2px rgba(15, 31, 61, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.06), 0 1px 2px rgba(15, 31, 61, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 31, 61, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 31, 61, 0.12);
    --shadow-focus: 0 0 0 3px rgba(44, 92, 168, 0.2);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --sidebar-width: 272px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
body {
    font-family: var(--font);
    background: var(--unc-bg);
    color: var(--unc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- App shell ---- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-shell.sidebar-collapsed {
    --sidebar-width: var(--sidebar-collapsed);
}

/* ---- Premium Sidebar ---- */
.sidebar-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--unc-bg-elevated);
    border-right: 1px solid var(--unc-border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: width var(--transition-slow);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--unc-border);
    min-height: var(--header-height);
}

.sidebar-brand-logo {
    width: auto;
    max-width: 48px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-text {
    flex: 1;
    min-width: 0;
    transition: opacity var(--transition);
}

.sidebar-brand-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--unc-navy);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--unc-text-muted);
    margin-top: 2px;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-sm);
    background: var(--unc-bg);
    color: var(--unc-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.sidebar-toggle:hover {
    background: var(--unc-blue-soft);
    color: var(--unc-blue);
    border-color: var(--unc-blue);
}

.sidebar-toggle svg { width: 16px; height: 16px; }

.sidebar-nav-premium {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--unc-text-muted);
    padding: 0.75rem 0.75rem 0.35rem;
}

.nav-item-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--unc-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-item-premium svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.75;
}

.nav-item-premium:hover {
    background: var(--unc-blue-soft);
    color: var(--unc-blue);
}

.nav-item-premium:hover svg { opacity: 1; }

.nav-item-premium.active {
    background: var(--unc-blue);
    color: var(--unc-white);
    box-shadow: var(--shadow-sm);
}

.nav-item-premium.active svg { opacity: 1; }

.nav-item-premium.nav-item-danger { color: var(--unc-red, #c0392b); }
.nav-item-premium.nav-item-danger:hover { background: rgba(192, 57, 43, 0.08); }
.nav-item-premium.nav-item-danger.active { background: var(--unc-red, #c0392b); color: #fff; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--unc-border);
    background: var(--unc-bg);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--unc-blue), var(--unc-navy-soft));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info { min-width: 0; transition: opacity var(--transition); }

.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--unc-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--unc-text-muted);
}

.app-shell.sidebar-collapsed .sidebar-brand-text,
.app-shell.sidebar-collapsed .nav-item-premium span,
.app-shell.sidebar-collapsed .sidebar-nav-label,
.app-shell.sidebar-collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.app-shell.sidebar-collapsed .nav-item-premium {
    justify-content: center;
    padding: 0.65rem;
}

/* ---- Premium Header ---- */
.header-premium {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--unc-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow: visible;
}

.header-premium .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    overflow: visible;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--unc-text-muted);
    pointer-events: none;
}

.header-search-icon svg { width: 18px; height: 18px; }

.header-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--unc-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font);
    background: var(--unc-bg);
    color: var(--unc-text);
    transition: all var(--transition);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--unc-blue);
    background: var(--unc-white);
    box-shadow: var(--shadow-focus);
}

.header-search-input::placeholder { color: var(--unc-text-muted); }

.header-date {
    font-size: 0.8rem;
    color: var(--unc-text-secondary);
    padding: 0 0.75rem;
    border-right: 1px solid var(--unc-border);
    white-space: nowrap;
}

.header-date strong {
    display: block;
    font-size: 0.875rem;
    color: var(--unc-navy);
    font-weight: 600;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-sm);
    background: var(--unc-white);
    color: var(--unc-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.header-icon-btn:hover {
    background: var(--unc-blue-soft);
    color: var(--unc-blue);
    border-color: transparent;
}

.header-icon-btn svg { width: 20px; height: 20px; }

.header-notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--unc-danger);
    border-radius: 50%;
    border: 2px solid white;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--unc-border);
    background: var(--unc-white);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header-profile svg {
    pointer-events: none;
}

.header-profile:hover {
    border-color: var(--unc-blue);
    box-shadow: var(--shadow-sm);
}

.header-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--unc-blue), var(--unc-navy-soft));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-profile-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--unc-navy);
}

.header-profile-wrap {
    position: relative;
    overflow: visible;
    z-index: 120;
}

.header-profile-chevron {
    display: flex;
    color: var(--unc-text-muted, #64748b);
    flex-shrink: 0;
}

.header-profile-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 210px;
    background: var(--unc-white);
    border: 1px solid var(--unc-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.header-profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-profile-wrap.is-open .header-profile {
    border-color: var(--unc-blue);
    box-shadow: var(--shadow-sm);
}

.header-profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
}

.header-profile-menu a:hover {
    background: var(--unc-bg-subtle, #f1f5f9);
}

.header-profile-logout {
    color: var(--unc-danger) !important;
}

.header-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-profile-avatar {
    overflow: hidden;
}

.header-mobile-menu {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--unc-navy);
}

.header-app-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--unc-navy);
    white-space: nowrap;
    margin-right: 0.5rem;
}

.header-app-logo {
    object-fit: contain;
}

/* ---- Main area ---- */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    transition: margin-left var(--transition-slow);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    flex: 1;
    padding: 1.75rem 2rem 2.5rem;
    max-width: 1440px;
}

/* ---- KPI Cards Premium ---- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.kpi-card {
    background: var(--unc-white);
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--unc-blue), #4A7BC8);
    opacity: 0;
    transition: opacity var(--transition);
}

.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-card:hover::before { opacity: 1; }

.kpi-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.kpi-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--unc-blue-soft);
    color: var(--unc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-card-icon svg { width: 20px; height: 20px; }

.kpi-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--unc-text-muted);
}

.kpi-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--unc-navy);
    line-height: 1;
    letter-spacing: -0.02em;
}

.kpi-card-trend {
    font-size: 0.75rem;
    color: var(--unc-success);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ---- Premium buttons ---- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--unc-blue);
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover:not(:disabled) {
    background: var(--unc-blue-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

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

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

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-outline {
    border-color: var(--unc-border-strong);
    color: var(--unc-text);
}

.btn-outline:hover {
    background: var(--unc-blue-soft);
    border-color: var(--unc-blue);
    color: var(--unc-blue);
}

.btn-danger {
    background: #DC2626;
    color: #fff;
    border: 1px solid #DC2626;
}

.btn-danger:hover:not(:disabled) {
    background: #B91C1C;
    border-color: #B91C1C;
}

.prospect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

/* ---- Forms premium ---- */
.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--unc-border);
    padding: 0.7rem 0.95rem;
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.form-control:focus {
    border-color: var(--unc-blue);
    box-shadow: var(--shadow-focus);
}

.form-control-xl, .form-control.form-control-xl {
    padding: 0.85rem 1.1rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.form-group label, .form-block-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--unc-text-secondary);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

/* ---- Cards ---- */
.card, .form-card {
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    background: var(--unc-white);
}

.page-header h1 {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--unc-navy);
}

/* ---- Tables premium ---- */
.table-responsive {
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.table th {
    background: var(--unc-bg);
    color: var(--unc-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--unc-border);
    padding: 0.85rem 1.15rem;
}

.table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--unc-border);
    color: var(--unc-text);
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: var(--unc-blue-soft);
}

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

/* ---- Badges premium ---- */
.badge {
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-present { background: var(--unc-success-bg); color: #047857; }
.badge-terminee { background: #F1F5F9; color: var(--unc-text-secondary); }
.badge-info { background: var(--unc-info-bg); color: #0369A1; }
.badge-warning { background: var(--unc-warning-bg); color: #B45309; }
.badge-primary { background: var(--unc-blue-soft); color: var(--unc-blue); }
.badge-success { background: var(--unc-success-bg); color: #047857; }
.badge-muted { background: #F1F5F9; color: var(--unc-text-muted); }

/* ---- Toast system ---- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-premium {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    background: var(--unc-navy);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: toastIn 0.3s ease;
    border-left: 3px solid var(--unc-blue);
}

.toast-premium.success { border-left-color: var(--unc-success); }
.toast-premium.error { border-left-color: var(--unc-danger); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Auth Premium ---- */
body.auth-page {
    display: block;
    min-height: 100vh;
    background: var(--unc-bg);
}

.auth-premium {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-premium-visual {
    position: relative;
    background: linear-gradient(145deg, var(--unc-navy) 0%, var(--unc-navy-soft) 40%, var(--unc-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.auth-premium-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.auth-premium-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 420px;
}

.auth-visual-logo {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    border-radius: 8px;
}

.auth-visual-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.auth-visual-motto {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--unc-accent);
}

.auth-visual-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.75;
}

.auth-premium-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--unc-bg);
}

.auth-form-panel {
    width: 100%;
    max-width: 400px;
}

.auth-form-panel h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--unc-navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-form-panel .auth-subtitle {
    color: var(--unc-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-form-panel .btn-primary {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.auth-form-panel .alert {
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-vendor-credit {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--unc-border);
    text-align: center;
    line-height: 1.25;
    color: var(--unc-text-muted);
}

.auth-vendor-credit .auth-vendor-label {
    display: block;
    font-size: 0.6875rem; /* ~11px */
    font-weight: 400;
    color: var(--unc-text-muted);
}

.auth-vendor-credit .auth-vendor-name {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem; /* ~12px */
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--unc-text-muted);
}

.auth-vendor-credit .auth-vendor-copy {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.625rem; /* ~10px */
    font-weight: 400;
    opacity: 0.85;
    color: var(--unc-text-muted);
}

@media (max-width: 480px) {
    .auth-vendor-credit {
        margin-top: 0.5rem;
        padding-top: 0.4rem;
    }

    .auth-vendor-credit .auth-vendor-label {
        font-size: 0.625rem; /* ~10px */
    }

    .auth-vendor-credit .auth-vendor-name {
        font-size: 0.6875rem; /* ~11px */
    }

    .auth-vendor-credit .auth-vendor-copy {
        font-size: 0.5625rem; /* ~9px */
        margin-top: 0.15rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Hide old topbar when using new shell */
body.has-premium-shell .topbar { display: none; }
body.has-premium-shell .app-layout { display: none; }

/* Agent dashboard enhancements */
.agent-stat-card, .admin-kpi-card, .admin-stat-card {
    border: 1px solid var(--unc-border);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}

.agent-stat-card:hover, .admin-kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.visit-mode-tab {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.level-btn, .program-btn, .quick-access-btn {
    border-radius: var(--radius) !important;
    transition: all var(--transition) !important;
}

.program-info-panel {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--unc-border) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-premium { grid-template-columns: 1fr; }
    .auth-premium-visual { display: none; }
    .header-date { display: none; }
}

@media (max-width: 768px) {
    .sidebar-premium {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    .app-shell.sidebar-open .sidebar-premium {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .app-main { margin-left: 0 !important; }

    .header-mobile-menu { display: flex; }

    .header-search { max-width: none; }

    .app-content { padding: 1.25rem 1rem; }

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

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .header-profile-name { display: none; }
}
