/* ===== PARTNER PANEL CSS — LIGHT MODE FORCED ===== */
:root, html, body { color-scheme: light only; }

:root {
    --plum:       #6B4C7A;
    --plum-dark:  #4e3659;
    --plum-light: #8b6a9c;
    --plum-faint: #f3eef7;
    --rose:       #E8B4B8;
    --rose-dark:  #d4939a;
    --sage:       #A2C4B9;
    --sidebar-w:  240px;
    --topbar-h:   60px;
    --radius:     10px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: 'Inter', sans-serif;
    background: #f5f6fa !important;
    color: #1a1535 !important;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ===== LOGIN ===== */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1535 0%, #4e3659 50%, #0f0820 100%) !important;
}
.login-screen { width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
    background: #ffffff !important;
    border-radius: 18px; padding: 44px 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.32);
}
.login-logo { display: flex; align-items: baseline; gap: 4px; font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; }
.logo-zaya { color: #d4939a; font-weight: 800; }
.logo-os { color: #6B4C7A; }
.logo-tag {
    font-size: 0.65rem; font-weight: 700; color: #6B4C7A;
    background: rgba(107,76,122,0.1); padding: 2px 8px; border-radius: 999px;
    margin-left: 6px; border: 1px solid rgba(107,76,122,0.2); letter-spacing: 0.5px; text-transform: uppercase;
}
.login-card h1 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; color: #1a1535; }
.login-sub { font-size: 0.85rem; color: #5a5478; margin-bottom: 28px; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #3d3560; }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px; border: 1.5px solid #e0dcea; border-radius: 10px;
    font-size: 0.9rem; color: #1a1535; background: #ffffff !important;
    outline: none; transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%; appearance: none; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #6B4C7A; box-shadow: 0 0 0 3px rgba(107,76,122,0.12);
}
.form-group input:disabled { background: #f5f5f5 !important; color: #9390a8; cursor: not-allowed; }

.input-pw-wrapper { position: relative; display: flex; }
.input-pw-wrapper input { flex: 1; padding-right: 44px; }
.pw-toggle {
    position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
    background: none; border: none; color: #9390a8; font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color var(--transition);
}
.pw-toggle:hover { color: #6B4C7A; }

.field-error { font-size: 0.75rem; color: #dc2626; min-height: 14px; }
.form-error { font-size: 0.85rem; color: #dc2626; min-height: 18px; margin-bottom: 8px; }
.form-success-msg {
    font-size: 0.85rem; color: #15803d; margin-bottom: 12px; padding: 10px 14px;
    background: #dcfce7; border-radius: 8px; border: 1px solid #bbf7d0;
}

.btn-login {
    width: 100%; background: linear-gradient(135deg, #6B4C7A, #4e3659);
    color: #ffffff; border: none; border-radius: 10px;
    padding: 13px; font-size: 0.95rem; font-weight: 600; cursor: pointer; margin-top: 4px;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: 0 4px 14px rgba(107,76,122,0.35);
}
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-forgot {
    width: 100%; background: none; border: none; color: #6B4C7A;
    font-size: 0.83rem; cursor: pointer; margin-top: 12px; text-align: center;
    text-decoration: underline; text-underline-offset: 2px;
}
.btn-forgot:hover { color: #4e3659; }

/* ===== APP LAYOUT ===== */
.app { display: flex; height: 100vh; overflow: hidden; background: #f5f6fa !important; }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w); background: #1e1a2e !important;
    display: flex; flex-direction: column; flex-shrink: 0;
    height: 100vh; overflow-y: auto;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transition: transform var(--transition);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
    display: flex; align-items: baseline; gap: 4px; padding: 22px 20px 18px;
    font-size: 1.2rem; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 8px;
}
.sidebar-logo .logo-zaya { color: #E8B4B8; }
.sidebar-logo .logo-os { color: #ffffff; }
.sidebar-logo .logo-tag {
    font-size: 0.6rem; font-weight: 700; color: #A2C4B9;
    background: rgba(162,196,185,0.12); padding: 2px 7px; border-radius: 999px;
    margin-left: 6px; border: 1px solid rgba(162,196,185,0.2); text-transform: uppercase;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; padding: 8px 10px; gap: 3px; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; font-size: 0.88rem; font-weight: 500;
    color: rgba(255,255,255,0.55); transition: all var(--transition);
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active {
    background: linear-gradient(135deg, rgba(107,76,122,0.8), rgba(78,54,89,0.9));
    color: #ffffff; font-weight: 600;
    box-shadow: 0 2px 12px rgba(107,76,122,0.4);
}
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-lang {
    display: flex; align-items: center; gap: 6px; padding: 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.login-lang-switcher {
    display: flex; gap: 6px; margin-bottom: 18px;
}

.partner-lang-btn {
    background: transparent;
    border: 1px solid rgba(107,76,122,0.35);
    color: #9e88b2;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 999px; cursor: pointer;
    transition: all var(--transition); font-family: inherit; line-height: 1;
}
.partner-lang-btn:hover { border-color: #d4939a; color: #d4939a; }
.lang-btn--active {
    background: #d4939a; border-color: #d4939a; color: #ffffff;
}

/* sidebar dark version */
.sidebar .partner-lang-btn {
    border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5);
}
.sidebar .partner-lang-btn:hover { border-color: #E8B4B8; color: #E8B4B8; }
.sidebar .lang-btn--active { background: #E8B4B8; border-color: #E8B4B8; color: #1e1a2e; }

.sidebar-logout {
    display: flex; align-items: center; gap: 10px; padding: 14px 22px;
    font-size: 0.85rem; color: rgba(255,255,255,0.4); background: none; border: none;
    border-top: 1px solid rgba(255,255,255,0.07); transition: color var(--transition);
    cursor: pointer; text-align: left;
}
.sidebar-logout:hover { color: #E8B4B8; }

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid rgba(255,255,255,0.06); }
[dir="rtl"] .main-content { margin-left: 0; margin-right: var(--sidebar-w); }
[dir="rtl"] .top-bar { direction: rtl; }
[dir="rtl"] .sidebar-nav { direction: rtl; }
[dir="rtl"] .nav-item { direction: rtl; }
[dir="rtl"] .sidebar-logo { direction: rtl; }
[dir="rtl"] .logo-tag { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .view-header { direction: rtl; }
[dir="rtl"] .stats-grid { direction: rtl; }
[dir="rtl"] .section-card { direction: rtl; }
[dir="rtl"] .card-header { direction: rtl; }
[dir="rtl"] .form-group { direction: rtl; text-align: right; }
[dir="rtl"] .form-row { direction: rtl; }
[dir="rtl"] .modal { direction: rtl; }
[dir="rtl"] .modal-header { direction: rtl; }
[dir="rtl"] .modal-actions { direction: rtl; flex-direction: row-reverse; }
[dir="rtl"] .kanban-board { direction: rtl; }
[dir="rtl"] .kanban-col-header { direction: rtl; }
[dir="rtl"] .sidebar-logout { direction: rtl; text-align: right; }
[dir="rtl"] .sidebar-lang { direction: rtl; }
[dir="rtl"] .login-card { direction: rtl; text-align: right; }
[dir="rtl"] .login-lang-switcher { direction: rtl; justify-content: flex-end; }
[dir="rtl"] .profile-grid { direction: rtl; }
[dir="rtl"] .login-logo { direction: ltr; }

.main-content {
    flex: 1; margin-left: var(--sidebar-w);
    display: flex; flex-direction: column;
    height: 100vh; overflow: hidden;
    background: #f5f6fa !important;
}
.top-bar {
    height: var(--topbar-h); background: #ffffff !important;
    border-bottom: 1px solid #e8eaf0;
    display: flex; align-items: center; padding: 0 26px; gap: 16px; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #5a5478; }
.top-bar-title { font-size: 1.05rem; font-weight: 700; color: #1a1535; flex: 1; }
.top-bar-user {
    font-size: 0.82rem; color: #5a5478;
    background: #f0eef8; padding: 6px 14px; border-radius: 999px;
    border: 1px solid #e0dcea; font-weight: 500;
}

/* VIEWS */
.view { display: none; flex: 1; overflow-y: auto; padding: 26px; flex-direction: column; gap: 20px; }
.view.active { display: flex; }
.view-header { margin-bottom: 4px; }
.view-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; color: #1a1535; }
.view-header p { font-size: 0.88rem; color: #5a5478; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
    background: #ffffff !important;
    border-radius: 12px; padding: 22px 18px;
    border: 1px solid #eaedf5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6B4C7A, #8b6a9c);
    border-radius: 3px 3px 0 0;
}
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.09); }

.stat-card--highlight { background: linear-gradient(135deg, #6B4C7A, #4e3659) !important; border-color: #6B4C7A; }
.stat-card--highlight .stat-value, .stat-card--highlight .stat-label { color: #ffffff; }
.stat-card--highlight::before { display: none; }

.stat-icon {
    font-size: 1.5rem; margin-bottom: 12px;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: #f3eef7; border-radius: 11px;
}
.stat-card:nth-child(2) .stat-icon { background: #dcfce7; }
.stat-card:nth-child(3) .stat-icon { background: #dbeafe; }
.stat-card:nth-child(4) .stat-icon { background: #fef3c7; }
.stat-card--highlight .stat-icon { background: rgba(255,255,255,0.15); }

.stat-value { font-size: 1.9rem; font-weight: 800; color: #1a1535; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.74rem; color: #5a5478; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* CARDS */
.section-card {
    background: #ffffff !important;
    border-radius: 12px; border: 1px solid #eaedf5; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #f0f0f8;
    gap: 12px; flex-wrap: wrap; background: #fafbff !important;
}
.card-header h3 { font-size: 0.95rem; font-weight: 700; color: #1a1535; }

.search-bar input {
    padding: 8px 14px; border: 1.5px solid #e0dcea; border-radius: 9px;
    font-size: 0.85rem; outline: none; min-width: 200px;
    background: #ffffff !important; color: #1a1535;
    transition: border-color var(--transition);
}
.search-bar input:focus { border-color: #6B4C7A; }
.filter-select {
    padding: 8px 12px; border: 1.5px solid #e0dcea; border-radius: 9px;
    font-size: 0.85rem; outline: none; cursor: pointer;
    background: #ffffff !important; color: #1a1535;
    transition: border-color var(--transition);
}
.filter-select:focus { border-color: #6B4C7A; }

/* KANBAN */
.kanban-board { display: flex; gap: 12px; padding: 16px; overflow-x: auto; min-height: 400px; }
.kanban-col {
    flex: 1; min-width: 200px; max-width: 260px;
    background: #f7f8fc !important;
    border-radius: 10px; border: 1px solid #eaedf5;
    padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.kanban-col-header {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #9390a8;
    padding: 4px 2px 8px; border-bottom: 1px solid #eaedf5; margin-bottom: 4px;
}
.stage-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stage-contact  { background: #3b82f6; }
.stage-followup { background: #f59e0b; }
.stage-demo     { background: #8b6a9c; }
.stage-signing  { background: #d4939a; }
.stage-signed   { background: #16a34a; }
.kanban-count {
    margin-left: auto; background: #eaedf5; color: #9390a8;
    font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.lead-card {
    background: #ffffff !important;
    border: 1px solid #e8eaf0; border-radius: 9px; padding: 12px; cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.lead-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #6B4C7A; }
.lc-name { font-size: 0.88rem; font-weight: 700; color: #1a1535; margin-bottom: 4px; }
.lc-plan { font-size: 0.72rem; font-weight: 600; color: #6B4C7A; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.lc-note { font-size: 0.75rem; color: #9390a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.lc-date { font-size: 0.72rem; color: #c4c0d4; }
.lc-actions { display: flex; gap: 6px; margin-top: 8px; border-top: 1px solid #f3f4f9; padding-top: 8px; }
.kanban-empty { font-size: 0.75rem; color: #c4c0d4; text-align: center; padding: 16px 8px; }

/* MATERIALS */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 16px; }
.mat-card {
    border: 1px solid #eaedf5; border-radius: 12px; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 8px;
    transition: box-shadow var(--transition), transform var(--transition);
    background: #ffffff !important;
}
.mat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); transform: translateY(-3px); }
.mat-card-icon { font-size: 2rem; margin-bottom: 4px; }
.mat-card-title { font-size: 0.92rem; font-weight: 700; color: #1a1535; }
.mat-card-desc { font-size: 0.78rem; color: #5a5478; line-height: 1.5; flex: 1; }
.mat-card-meta { font-size: 0.72rem; color: #9390a8; }
.mat-card-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg, #6B4C7A, #4e3659);
    color: #ffffff; border: none; border-radius: 8px; padding: 9px 14px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: opacity var(--transition); margin-top: 4px;
}
.mat-card-btn:hover { opacity: 0.88; }

/* PROFILE */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-form { padding: 20px; display: flex; flex-direction: column; gap: 0; }
.profile-form .form-group { margin-bottom: 14px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 48px; color: #9390a8; font-size: 0.88rem; }

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #6B4C7A, #4e3659);
    color: #ffffff; border: none; border-radius: 999px; padding: 9px 20px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: opacity var(--transition), transform var(--transition); white-space: nowrap;
    box-shadow: 0 3px 12px rgba(107,76,122,0.3);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline {
    background: transparent; color: #6B4C7A; border: 1.5px solid #6B4C7A;
    border-radius: 9px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { background: #6B4C7A; color: #ffffff; }
.btn-icon-sm {
    background: none; border: none; color: #9390a8; cursor: pointer;
    padding: 5px 7px; border-radius: 7px; font-size: 0.85rem; transition: all var(--transition);
}
.btn-icon-sm:hover { background: #f0eef8; color: #6B4C7A; }
.btn-link { font-size: 0.82rem; color: #6B4C7A; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
    padding: 10px 14px; text-align: left; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; color: #9390a8;
    background: #f7f8fc !important; border-bottom: 1px solid #eaedf5; white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f9; color: #3d3560; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #faf9fd !important; }
.data-table strong { color: #1a1535; }

/* BADGES */
.badge {
    display: inline-flex; align-items: center; padding: 3px 9px;
    border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.badge--contact   { background: #dbeafe; color: #1d4ed8; }
.badge--followup  { background: #fef3c7; color: #92400e; }
.badge--demo      { background: #f3eef7; color: #6B4C7A; }
.badge--signing   { background: #fde8ea; color: #9f1239; }
.badge--signed    { background: #dcfce7; color: #15803d; }
.badge--start     { background: #dbeafe; color: #1d4ed8; }
.badge--pro       { background: #f3eef7; color: #6B4C7A; }
.badge--enterprise{ background: #fde8ea; color: #9f1239; }
.badge--active    { background: #dcfce7; color: #15803d; }
.badge--inactive  { background: #f3f4f9; color: #9390a8; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,8,32,0.55); backdrop-filter: blur(4px);
    z-index: 500; display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: #ffffff !important;
    border-radius: 16px; width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2); animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #eaedf5;
    background: #fafbff !important;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: #1a1535; }
.modal-close {
    background: none; border: none; font-size: 1.4rem; cursor: pointer;
    color: #9390a8; line-height: 1; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: all var(--transition);
}
.modal-close:hover { background: #f0eef8; color: #1a1535; }
.modal form { padding: 20px 22px; display: flex; flex-direction: column; gap: 0; }
.modal .form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-actions {
    padding: 14px 22px; border-top: 1px solid #eaedf5;
    display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
    background: #fafbff !important;
}

/* TOAST */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: #1a1535; color: #ffffff;
    padding: 12px 20px; border-radius: 10px; font-size: 0.88rem; font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); z-index: 9999;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease; pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .kanban-board { flex-wrap: nowrap; }
    .kanban-col { min-width: 190px; }
    :root { --sidebar-w: 220px; }
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section-card { overflow-x: auto; }
    .data-table { min-width: 520px; }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }
    .main-content { margin-left: 0 !important; }
    .menu-toggle { display: flex !important; }
    .view { padding: 16px; gap: 14px; }
    .top-bar { padding: 0 16px; }
    .top-bar-user { display: none; }
    .kanban-board { padding: 12px; gap: 10px; }
    .kanban-col { min-width: 170px; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .card-header > * { width: 100%; }
    .search-bar input { min-width: 100%; width: 100%; }
    .filter-select { width: 100%; }
    .view-header h2 { font-size: 1.3rem; }
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal { border-radius: 16px 16px 0 0; max-width: 100%; margin: 0; }
    .section-card { overflow-x: auto; }
    .data-table { min-width: 480px; }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 1.6rem; }
    .view { padding: 12px; }
    .top-bar { height: 54px; }
    .view-header h2 { font-size: 1.15rem; }
    .materials-grid { grid-template-columns: 1fr; }
    .kanban-col { min-width: 150px; }
    .btn-primary { width: 100%; justify-content: center; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn-primary,
    .modal-actions .btn-outline { width: 100%; justify-content: center; }
    .toast { left: 12px; right: 12px; bottom: 16px; max-width: unset; }
    .profile-form { padding: 14px; }
}
