/* ===== Auth pages ===== */
.auth-page { min-height:100vh; background:linear-gradient(135deg,#0b2b4a 0%,#1a4b6d 100%); display:flex; align-items:center; justify-content:center; padding:30px 20px; }
.auth-card { background:#fff; border-radius:24px; padding:40px; width:100%; max-width:480px; box-shadow:0 20px 60px rgba(0,0,0,0.25); }
.auth-card h1 { font-size:28px; color:#0b2b4a; margin-bottom:8px; text-align:center; }
.auth-card .sub { text-align:center; color:#64748b; margin-bottom:28px; font-size:15px; }
.auth-card .logo-link { display:block; text-align:center; font-size:22px; font-weight:800; color:#0b2b4a; text-decoration:none; margin-bottom:24px; }
.auth-card .logo-link span { color:#fbbf24; }
.form-error { background:#fef2f2; color:#b91c1c; padding:12px 16px; border-radius:12px; margin-bottom:16px; font-size:14px; display:none; }
.form-error.show { display:block; }
.form-success { background:#ecfdf5; color:#0f7b4a; padding:12px 16px; border-radius:12px; margin-bottom:16px; font-size:14px; display:none; }
.form-success.show { display:block; }
.lockout-banner { background:#fff7ed; border:2px solid #fbbf24; color:#92400e; padding:14px 18px; border-radius:12px; margin-bottom:16px; font-size:14px; display:none; }
.lockout-banner.show { display:block; }
.captcha-block { background:#f8fafc; border:2px dashed #cbd5e1; border-radius:12px; padding:16px; margin-bottom:20px; }
.captcha-block label { font-weight:600; margin-bottom:8px; display:block; }
.captcha-row { display:flex; gap:12px; align-items:center; }
.captcha-question { font-size:20px; font-weight:700; color:#0b2b4a; background:#fff; padding:10px 18px; border-radius:10px; border:2px solid #e2e8f0; min-width:120px; text-align:center; }
.captcha-row input { flex:1; }
.btn-refresh-captcha { background:none; border:2px solid #e2e8f0; border-radius:10px; padding:10px 14px; cursor:pointer; font-size:18px; transition:0.2s; }
.btn-refresh-captcha:hover { border-color:#fbbf24; background:#fffbeb; }
.client-type-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.client-type-option { position:relative; }
.client-type-option input { position:absolute; opacity:0; }
.client-type-option label { display:block; padding:12px 14px; border:2px solid #e2e8f0; border-radius:12px; text-align:center; cursor:pointer; font-size:14px; font-weight:600; transition:0.2s; background:#fafcff; }
.client-type-option input:checked + label { border-color:#fbbf24; background:#fffbeb; color:#0b2b4a; }
.client-type-option label:hover { border-color:#fbbf24; }
.business-fields { display:none; }
.business-fields.show { display:block; }
.auth-footer { text-align:center; margin-top:20px; font-size:14px; color:#64748b; }
.auth-footer a { color:#0b2b4a; font-weight:600; }
.btn-auth { background:#0b2b4a; color:#fff; border:none; padding:16px; font-size:18px; font-weight:700; border-radius:60px; width:100%; cursor:pointer; transition:0.2s; }
.btn-auth:hover { background:#1a4b6d; }
.btn-auth:disabled { opacity:0.6; cursor:not-allowed; }
.attempts-hint { font-size:13px; color:#b45309; margin-top:8px; text-align:center; display:none; }
.attempts-hint.show { display:block; }

/* ===== Cabinet ===== */
.cabinet-layout { display:flex; min-height:100vh; background:#f1f5f9; }
.cabinet-sidebar { width:260px; background:#0b2b4a; color:#fff; padding:24px 0; flex-shrink:0; position:fixed; top:0; left:0; bottom:0; overflow-y:auto; z-index:100; }
.cabinet-sidebar .brand { padding:0 24px 24px; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:16px; }
.cabinet-sidebar .brand a { color:#fff; text-decoration:none; font-size:22px; font-weight:800; }
.cabinet-sidebar .brand a span { color:#fbbf24; }
.cabinet-sidebar .brand small { display:block; font-size:12px; opacity:0.7; margin-top:4px; font-weight:400; }
.cabinet-nav a { display:flex; align-items:center; gap:12px; padding:14px 24px; color:rgba(255,255,255,0.8); text-decoration:none; font-weight:500; transition:0.2s; border-left:3px solid transparent; }
.cabinet-nav a:hover, .cabinet-nav a.active { background:rgba(255,255,255,0.08); color:#fff; border-left-color:#fbbf24; }
.cabinet-nav a .icon { font-size:20px; }
.cabinet-main { flex:1; margin-left:260px; padding:30px; }
.cabinet-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; flex-wrap:wrap; gap:15px; }
.cabinet-header h1 { font-size:28px; color:#0b2b4a; }
.cabinet-user { display:flex; align-items:center; gap:12px; }
.cabinet-user .avatar { width:42px; height:42px; background:#fbbf24; color:#0b2b4a; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.cabinet-user .info { font-size:14px; }
.cabinet-user .info strong { display:block; color:#0b2b4a; }
.cabinet-user .info span { color:#64748b; font-size:12px; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; margin-bottom:30px; }
.stat-card { background:#fff; padding:24px; border-radius:16px; box-shadow:0 2px 12px rgba(0,0,0,0.05); }
.stat-card .label { font-size:14px; color:#64748b; margin-bottom:8px; }
.stat-card .value { font-size:32px; font-weight:800; color:#0b2b4a; }
.stat-card .value.accent { color:#fbbf24; }
.shipments-table { width:100%; background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.05); border-collapse:collapse; }
.shipments-table th { background:#0b2b4a; color:#fff; padding:14px 16px; text-align:left; font-size:14px; }
.shipments-table td { padding:14px 16px; border-bottom:1px solid #f1f5f9; font-size:14px; }
.shipments-table tr:hover td { background:#f8fafc; }
.shipments-table tr:last-child td { border-bottom:none; }
.badge { display:inline-block; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.badge-new { background:#e0f2fe; color:#0369a1; }
.badge-confirmed { background:#ede9fe; color:#6d28d9; }
.badge-assigned { background:#fef3c7; color:#b45309; }
.badge-transit { background:#fff7ed; color:#c2410c; }
.badge-delivered { background:#dcfce7; color:#15803d; }
.badge-cancelled { background:#fee2e2; color:#b91c1c; }
.filters-bar { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; align-items:center; }
.filters-bar select, .filters-bar input { padding:10px 14px; border:2px solid #e2e8f0; border-radius:10px; font-size:14px; background:#fff; }
.btn-filter { background:#0b2b4a; color:#fff; border:none; padding:10px 20px; border-radius:10px; cursor:pointer; font-weight:600; }
.btn-filter:hover { background:#1a4b6d; }
.btn-export { background:#fbbf24; color:#0b2b4a; border:none; padding:10px 20px; border-radius:10px; cursor:pointer; font-weight:600; text-decoration:none; display:inline-block; }
.btn-export:hover { background:#fcd34d; }
.btn-link { color:#0b2b4a; font-weight:600; text-decoration:none; }
.btn-link:hover { text-decoration:underline; }
.timeline { position:relative; padding-left:30px; }
.timeline::before { content:''; position:absolute; left:10px; top:0; bottom:0; width:2px; background:#e2e8f0; }
.timeline-item { position:relative; margin-bottom:24px; }
.timeline-item::before { content:''; position:absolute; left:-24px; top:4px; width:12px; height:12px; border-radius:50%; background:#fbbf24; border:2px solid #fff; box-shadow:0 0 0 2px #fbbf24; }
.timeline-item.done::before { background:#15803d; box-shadow:0 0 0 2px #15803d; }
.timeline-item .time { font-size:12px; color:#64748b; margin-bottom:4px; }
.timeline-item .title { font-weight:600; color:#0b2b4a; }
.timeline-item .desc { font-size:14px; color:#475569; margin-top:4px; }
.detail-card { background:#fff; border-radius:16px; padding:30px; box-shadow:0 2px 12px rgba(0,0,0,0.05); margin-bottom:20px; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.detail-item label { font-size:12px; color:#64748b; display:block; margin-bottom:4px; }
.detail-item .val { font-size:15px; color:#0b2b4a; font-weight:500; }
.empty-state { text-align:center; padding:60px 20px; color:#64748b; }
.empty-state .icon { font-size:48px; margin-bottom:16px; }
.mobile-menu-btn { display:none; background:none; border:none; font-size:28px; cursor:pointer; color:#0b2b4a; }
.header-auth-btn { background:transparent; border:2px solid #fbbf24; color:#fbbf24; padding:8px 20px; border-radius:50px; text-decoration:none; font-weight:600; font-size:15px; transition:0.2s; }
.header-auth-btn:hover { background:#fbbf24; color:#0b2b4a; }
.header-auth-btn.filled { background:#fbbf24; color:#0b2b4a; border-color:#fbbf24; }
.header-auth-btn.filled:hover { background:#fcd34d; }

@media (max-width:900px) {
    .cabinet-sidebar { transform:translateX(-100%); transition:0.3s; }
    .cabinet-sidebar.open { transform:translateX(0); }
    .cabinet-main { margin-left:0; }
    .mobile-menu-btn { display:block; }
    .detail-grid { grid-template-columns:1fr; }
    .client-type-grid { grid-template-columns:1fr; }
    .shipments-table { display:block; overflow-x:auto; }
}
