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

:root {
  --brand: #ffc63b;
  --brand-dark: #e7a900;
  --ink: #252525;
  --ink-2: #3b3b3b;
  --muted: #7a7f89;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --line: #e8eaf0;
  --success: #129b63;
  --danger: #d94a4a;
  --warning: #d88b15;
  --info: #3578e5;
  --purple: #7257d9;
  --cyan: #1498ad;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 31, 36, .07);
  --sidebar-w: 285px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #242424;
  color: #fff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -12px 0 35px rgba(0, 0, 0, .08);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  padding: 3px;
}
.sidebar-brand strong { display:block; font-size: 20px; line-height: 1.25; color: var(--brand); }
.sidebar-brand span { display:block; color:#b8b8b8; font-size: 11px; margin-top: 4px; }
.nav-menu { padding: 14px 11px; flex: 1; }
.nav-section {
  color: #7f7f7f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 16px 12px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 9px 12px;
  margin: 3px 0;
  border-radius: 12px;
  color: #d4d4d4;
  transition: .2s ease;
  font-weight: 600;
}
.nav-link:hover { background: rgba(255,255,255,.07); color:#fff; }
.nav-link.active { background: var(--brand); color: #222; box-shadow: 0 8px 20px rgba(255,198,59,.18); }
.nav-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 27px;
}
.nav-badge {
  margin-right: auto;
  background: #e94d4d;
  color: #fff;
  border-radius: 30px;
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.055); border-radius:14px; padding:10px; }
.avatar { width:38px; height:38px; border-radius:50%; background:var(--brand); color:#222; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; flex:0 0 38px; }
.user-meta { min-width:0; flex:1; }
.user-meta strong { display:block; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-meta span { display:block; font-size:9px; color:#aaa; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.logout-icon { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:9px; color:#bbb; }
.logout-icon:hover { background:rgba(255,255,255,.1); color:#fff; }

.main-area { margin-right: var(--sidebar-w); min-height:100vh; display:flex; flex-direction:column; }
.topbar {
  height: 82px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
  position: sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  padding:0 28px;
  gap:16px;
}
.mobile-menu-btn { display:none; border:0; background:#f1f2f4; width:42px; height:42px; border-radius:12px; font-size:20px; }
.topbar-title { flex:1; min-width:0; }
.topbar-title h1 { margin:0; font-size:21px; line-height:1.35; }
.topbar-title span { color:var(--muted); font-size:11px; }
.topbar-actions { display:flex; align-items:center; gap:9px; }
.icon-button { width:42px; height:42px; border-radius:12px; background:#f5f6f8; display:flex; align-items:center; justify-content:center; font-size:19px; border:1px solid #eceef2; }
.icon-button:hover { background:#eceef2; }

.content-wrap { flex:1; padding: 25px 28px 36px; width:100%; max-width:1680px; margin:0 auto; }
.app-footer { padding:16px 28px; display:flex; justify-content:space-between; gap:12px; color:#969aa3; font-size:10px; border-top:1px solid #eceef1; }

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 42px;
  padding: 8px 15px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:700;
  transition:.18s ease;
  white-space:nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background:var(--brand); color:#222; border-color:var(--brand); }
.btn-primary:hover { background:#ffbd19; }
.btn-dark { background:#282828; color:#fff; }
.btn-light { background:#fff; color:#333; border-color:#e5e7ec; }
.btn-soft { background:#f1f2f5; color:#45484f; }
.btn-success { background:var(--success); color:#fff; }
.btn-danger { background:var(--danger); color:#fff; }
.btn-warning { background:#f3a51d; color:#fff; }
.btn-sm { min-height:34px; padding:5px 10px; border-radius:9px; font-size:11px; }
.btn-xs { min-height:29px; padding:3px 8px; border-radius:8px; font-size:10px; }
.btn-block { width:100%; }

.alert { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 15px; border-radius:13px; margin-bottom:16px; border:1px solid; transition:.3s; box-shadow:0 7px 20px rgba(0,0,0,.035); }
.alert-success { background:#edf9f4; color:#0f7a51; border-color:#cfeee1; }
.alert-error, .alert-danger { background:#fff0f0; color:#b23838; border-color:#f2cece; }
.alert-warning { background:#fff7e8; color:#a9690a; border-color:#f2dfbd; }
.alert-info { background:#edf4ff; color:#2d66b8; border-color:#d2e3ff; }
.alert-close { background:transparent; border:0; font-size:20px; color:inherit; opacity:.7; }
.alert-hide { opacity:0; transform:translateY(-8px); }

.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
.page-head h2 { margin:0 0 4px; font-size:20px; }
.page-head p { margin:0; color:var(--muted); font-size:12px; }
.page-actions { display:flex; gap:8px; flex-wrap:wrap; }

.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:20px; }
.stat-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); position:relative; overflow:hidden; min-height:126px; }
.stat-card::after { content:''; position:absolute; width:90px; height:90px; border-radius:50%; background:rgba(255,198,59,.08); left:-28px; bottom:-35px; }
.stat-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.stat-label { color:var(--muted); font-size:11px; font-weight:600; }
.stat-icon { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#fff6db; color:#9d6b00; font-size:19px; }
.stat-value { font-size:27px; font-weight:800; line-height:1.25; letter-spacing:-.5px; }
.stat-sub { font-size:10px; color:#9a9da5; margin-top:4px; }
.stat-card.success .stat-icon { background:#eaf8f2; color:var(--success); }
.stat-card.info .stat-icon { background:#edf4ff; color:var(--info); }
.stat-card.dark .stat-icon { background:#efefef; color:#333; }
.stat-card.warning .stat-icon { background:#fff3df; color:#bd7710; }

.grid-2 { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr); gap:18px; }
.grid-2-equal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.card-header { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 17px; border-bottom:1px solid var(--line); }
.card-header h3 { margin:0; font-size:14px; }
.card-header p { margin:2px 0 0; color:var(--muted); font-size:10px; }
.card-body { padding:17px; }
.card-body.no-pad { padding:0; }
.card-footer { padding:12px 17px; border-top:1px solid var(--line); background:#fafbfc; }

.table-wrap { overflow-x:auto; width:100%; }
table { border-collapse:collapse; width:100%; min-width:760px; }
th, td { padding:12px 13px; border-bottom:1px solid #eef0f3; text-align:right; vertical-align:middle; }
th { background:#fbfbfc; color:#777b84; font-size:10px; font-weight:700; white-space:nowrap; }
td { font-size:11.5px; }
tbody tr:hover { background:#fffdf7; }
tbody tr:last-child td { border-bottom:0; }
.code-link { font-weight:800; direction:ltr; display:inline-block; color:#2a2d32; }
.code-link:hover { color:#b67b00; }
.muted { color:var(--muted); }
.small { font-size:10px; }
.nowrap { white-space:nowrap; }
.text-center { text-align:center; }
.text-left { text-align:left; }
.text-danger { color:var(--danger); }
.text-success { color:var(--success); }
.text-brand { color:#b57b00; }
.fw-bold { font-weight:800; }

.status-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:30px; font-size:9.5px; font-weight:700; white-space:nowrap; }
.status-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-gray { color:#6f747c; background:#f0f1f3; }
.status-blue { color:#376fc8; background:#edf4ff; }
.status-purple { color:#7257d9; background:#f1eefe; }
.status-amber { color:#b5760e; background:#fff4df; }
.status-cyan { color:#127f92; background:#e8f7fa; }
.status-green { color:#118258; background:#e9f8f2; }
.status-orange { color:#b85b17; background:#fff0e5; }
.status-red { color:#ba4141; background:#ffeded; }

.filters { display:flex; flex-wrap:wrap; gap:9px; align-items:end; padding:14px; background:#fff; border:1px solid var(--line); border-radius:15px; margin-bottom:15px; box-shadow:0 7px 22px rgba(30,30,30,.035); }
.filter-item { min-width:150px; flex:1; }
.filter-item.search { min-width:240px; flex:2; }
.filter-actions { display:flex; gap:7px; }
label { display:block; font-size:10.5px; font-weight:700; color:#5f646d; margin-bottom:5px; }
.input, input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width:100%;
  border:1px solid #dfe2e7;
  border-radius:10px;
  min-height:42px;
  padding:8px 11px;
  background:#fff;
  color:#292c31;
  outline:none;
  transition:.17s ease;
}
textarea { min-height:90px; resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:#e6b436; box-shadow:0 0 0 3px rgba(255,198,59,.14); }
input[readonly], input:disabled, select:disabled { background:#f4f5f7; color:#7c8087; }
.help-text { display:block; color:#969aa2; font-size:9px; margin-top:4px; }
.required::after { content:' *'; color:var(--danger); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 16px; }
.form-grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px 16px; }
.form-group.full { grid-column:1/-1; }
.form-section { border:1px solid var(--line); border-radius:15px; padding:16px; margin-bottom:15px; background:#fff; }
.form-section-title { display:flex; align-items:center; gap:9px; margin:-3px 0 14px; }
.form-section-title .num { width:27px; height:27px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:#fff2ca; color:#9c6900; font-weight:800; font-size:11px; }
.form-section-title h3 { margin:0; font-size:13px; }
.form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; flex-wrap:wrap; }

.empty-state { padding:45px 20px; text-align:center; color:#8a8e96; }
.empty-state .empty-icon { width:66px; height:66px; border-radius:20px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; font-size:28px; color:#b0b3b9; }
.empty-state h4 { margin:0 0 4px; color:#555b63; }
.empty-state p { margin:0 auto 15px; max-width:420px; font-size:11px; }

.kpi-list { display:flex; flex-direction:column; gap:13px; }
.kpi-row { display:grid; grid-template-columns:110px 1fr 45px; gap:10px; align-items:center; }
.kpi-row label { margin:0; font-size:10px; }
.progress { height:8px; border-radius:20px; background:#eff1f4; overflow:hidden; }
.progress span { display:block; height:100%; border-radius:20px; background:var(--brand); }
.kpi-row b { font-size:10px; text-align:left; }

.detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.detail-item { padding:11px 12px; border:1px solid #eceef1; border-radius:12px; background:#fbfbfc; }
.detail-item label { margin:0 0 2px; color:#9498a0; font-size:9px; }
.detail-item strong { display:block; font-size:11.5px; word-break:break-word; }
.detail-item.span-2 { grid-column:span 2; }
.detail-item.span-all { grid-column:1/-1; }

.shipment-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; background:linear-gradient(135deg,#252525,#333); color:#fff; border-radius:20px; padding:20px; margin-bottom:17px; box-shadow:0 15px 35px rgba(20,20,20,.14); }
.shipment-hero-main { display:flex; align-items:center; gap:14px; }
.shipment-mark { width:55px; height:55px; border-radius:16px; background:var(--brand); color:#222; display:flex; align-items:center; justify-content:center; font-size:24px; }
.shipment-hero h2 { margin:0; font-size:20px; direction:ltr; text-align:right; }
.shipment-hero p { margin:3px 0 0; color:#bcbcbc; font-size:10px; }
.shipment-hero-actions { display:flex; flex-wrap:wrap; gap:7px; }
.shipment-hero .btn-light { background:#fff; border-color:#fff; }

.timeline { position:relative; padding-right:18px; }
.timeline::before { content:''; position:absolute; right:6px; top:10px; bottom:10px; width:2px; background:#e7e9ed; }
.timeline-item { position:relative; padding:0 15px 17px 0; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-dot { position:absolute; right:-17px; top:5px; width:14px; height:14px; border-radius:50%; background:#fff; border:4px solid var(--brand); box-shadow:0 0 0 3px #fff; }
.timeline-item:first-child .timeline-dot { background:var(--brand); }
.timeline-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.timeline-title strong { font-size:11px; }
.timeline-date { color:#9a9da3; font-size:9px; direction:ltr; }
.timeline-meta { color:#7c8088; font-size:9.5px; margin-top:2px; }
.timeline-note { background:#f7f8fa; border-radius:9px; padding:6px 9px; margin-top:6px; font-size:9.5px; color:#62666d; }

.quick-periods { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px; }
.period-pill { padding:7px 12px; border-radius:20px; background:#fff; border:1px solid #e3e5e9; color:#656a72; font-size:10px; font-weight:700; }
.period-pill.active, .period-pill:hover { background:#282828; color:#fff; border-color:#282828; }

.login-page, .tracking-page { min-height:100vh; background:#f3f4f6; overflow-x:hidden; }
.login-page { min-width:0; }
.login-layout, .login-panel, .login-card { min-width:0; }
.login-layout { min-height:100vh; display:grid; grid-template-columns:minmax(360px, .9fr) minmax(500px,1.2fr); }
.login-panel { background:#fff; display:flex; align-items:center; justify-content:center; padding:45px; }
.login-card { width:100%; max-width:420px; }
.login-logo { text-align:center; margin-bottom:27px; }
.login-logo img { width:185px; max-height:185px; object-fit:contain; }
.login-logo h1 { margin:7px 0 2px; font-size:21px; }
.login-logo p { margin:0; color:#90949c; font-size:10px; }
.login-card .form-group { margin-bottom:13px; }
.login-help { text-align:center; margin-top:14px; font-size:9px; color:#9a9ca3; }
.login-visual { background:#252525; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; padding:50px; color:#fff; }
.login-visual::before, .login-visual::after { content:''; position:absolute; border-radius:50%; background:rgba(255,198,59,.08); }
.login-visual::before { width:420px; height:420px; top:-160px; left:-130px; }
.login-visual::after { width:520px; height:520px; bottom:-280px; right:-130px; }
.visual-content { max-width:520px; position:relative; z-index:2; }
.visual-badge { display:inline-flex; background:var(--brand); color:#222; border-radius:30px; padding:5px 12px; font-size:10px; font-weight:800; margin-bottom:13px; }
.visual-content h2 { font-size:34px; line-height:1.45; margin:0 0 12px; }
.visual-content p { color:#c1c1c1; max-width:450px; margin:0 0 24px; font-size:12px; }
.visual-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.visual-feature { border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.05); border-radius:13px; padding:12px; display:flex; align-items:center; gap:9px; font-size:10px; }
.visual-feature b { width:27px; height:27px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(255,198,59,.15); color:var(--brand); }

.tracking-header { background:#242424; color:#fff; padding:18px 20px; }
.tracking-header-inner { max-width:980px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.tracking-brand { display:flex; align-items:center; gap:11px; }
.tracking-brand img { width:54px; height:54px; border-radius:14px; background:#fff; object-fit:cover; padding:2px; }
.tracking-brand strong { display:block; color:var(--brand); font-size:17px; }
.tracking-brand span { display:block; color:#aaa; font-size:9px; }
.tracking-main { max-width:980px; margin:0 auto; padding:35px 18px 60px; }
.tracking-search { background:#fff; padding:20px; border-radius:18px; box-shadow:var(--shadow); margin-top:-56px; position:relative; z-index:3; }
.tracking-search h1 { margin:0 0 3px; font-size:20px; }
.tracking-search p { margin:0 0 13px; color:#8b8f97; font-size:10px; }
.tracking-search-form { display:flex; gap:8px; }
.tracking-search-form input { direction:ltr; text-align:left; flex:1; min-height:49px; font-weight:700; }
.tracking-result { margin-top:18px; }
.track-route { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; padding:17px; background:#fbfbfc; border-radius:15px; border:1px solid #eceef1; }
.route-point label { color:#969aa2; font-size:9px; margin:0; }
.route-point strong { display:block; font-size:14px; }
.route-point span { color:#747982; font-size:10px; }
.route-arrow { width:43px; height:43px; border-radius:50%; background:#fff1c6; display:flex; align-items:center; justify-content:center; color:#8d6000; font-size:19px; }
.track-status-big { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:13px; }
.track-status-big h2 { margin:0; direction:ltr; font-size:18px; }

.pager { display:flex; align-items:center; justify-content:center; gap:5px; padding:14px; }
.pager a, .pager span { min-width:34px; height:34px; padding:0 8px; border-radius:9px; border:1px solid #e3e5e8; background:#fff; display:flex; align-items:center; justify-content:center; font-size:10px; }
.pager .current { background:#272727; color:#fff; border-color:#272727; }

.modal-lite { background:#fff; border-radius:18px; border:1px solid var(--line); box-shadow:var(--shadow); }
.inline-actions { display:flex; gap:5px; flex-wrap:wrap; }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { padding:4px 8px; border-radius:20px; background:#f1f2f4; color:#656970; font-size:9px; }

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --sidebar-w: 275px; }
  .sidebar { transform:translateX(105%); transition:.25s ease; }
  .sidebar-open .sidebar { transform:translateX(0); }
  .sidebar-overlay { position:fixed; inset:0; background:rgba(0,0,0,.43); opacity:0; visibility:hidden; transition:.2s; z-index:45; }
  .sidebar-open .sidebar-overlay { opacity:1; visibility:visible; }
  .main-area { margin-right:0; }
  .mobile-menu-btn { display:block; }
  .topbar { padding:0 18px; }
  .content-wrap { padding:20px 18px 30px; }
  .grid-2, .grid-2-equal, .grid-3 { grid-template-columns:1fr; }
  .login-layout { grid-template-columns:1fr; }
  .login-visual { display:none; }
  .login-panel { min-height:100vh; padding:28px 20px; width:100%; }
  .login-card { width:100%; max-width:420px; margin:0 auto; }
}

@media (max-width: 640px) {
  body { font-size:13px; }
  .topbar { height:72px; padding:0 12px; }
  .topbar-title h1 { font-size:17px; }
  .topbar-title span { display:none; }
  .topbar-new { width:42px; padding:0; font-size:0; }
  .topbar-new::first-letter { font-size:20px; }
  .content-wrap { padding:14px 11px 25px; }
  .page-head { flex-direction:column; align-items:stretch; }
  .page-actions .btn { flex:1; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .stat-card { padding:13px; min-height:109px; border-radius:14px; }
  .stat-icon { width:32px; height:32px; border-radius:10px; font-size:16px; }
  .stat-value { font-size:21px; }
  .stat-label { font-size:9.5px; }
  .stat-sub { font-size:8.5px; }
  .card { border-radius:14px; }
  .card-header { padding:11px 13px; }
  .card-body { padding:13px; }
  .filters { padding:11px; gap:7px; }
  .filter-item, .filter-item.search { min-width:calc(50% - 5px); flex:1 1 calc(50% - 5px); }
  .filter-item.search { min-width:100%; }
  .filter-actions { width:100%; }
  .filter-actions .btn { flex:1; }
  .form-grid, .form-grid-3 { grid-template-columns:1fr; }
  .form-section { padding:13px; }
  .detail-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .detail-item.span-2 { grid-column:1/-1; }
  .shipment-hero { flex-direction:column; align-items:stretch; padding:15px; border-radius:15px; }
  .shipment-hero-actions .btn { flex:1; }
  .shipment-hero h2 { font-size:16px; }
  .app-footer { flex-direction:column; text-align:center; padding:13px; }
  .tracking-main { padding:25px 10px 45px; }
  .tracking-search { margin-top:-38px; padding:14px; }
  .tracking-search-form { flex-direction:column; }
  .track-route { grid-template-columns:1fr; text-align:center; }
  .route-arrow { transform:rotate(90deg); margin:auto; }
  .tracking-brand span { display:none; }
  .tracking-brand img { width:45px; height:45px; }
  .track-status-big { align-items:flex-start; flex-direction:column; }
  .login-panel { padding:20px 16px; }
  .login-card { max-width:390px; }
  .login-logo { margin-bottom:20px; }
  .login-logo img { width:145px; max-height:145px; }
  .login-logo h1 { font-size:19px; margin-top:5px; }
  .login-logo p { font-size:10px; }
  .login-card label { font-size:11px; }
  .login-card input[type=text], .login-card input[type=password] { min-height:46px; font-size:16px; }
  .login-help { font-size:9px; line-height:1.8; }
}

@media (max-width: 390px) {
  .login-panel { padding:16px 13px; }
  .login-logo img { width:125px; max-height:125px; }
  .login-logo h1 { font-size:18px; }
}

@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .filters, .no-print { display:none !important; }
  .main-area { margin:0 !important; }
  .content-wrap { padding:0 !important; max-width:none !important; }
  body { background:#fff; }
  .card, .stat-card { box-shadow:none; break-inside:avoid; }
}

.install-note {
  background: #fff8e5;
  border: 1px solid #f4dfac;
  border-radius: 11px;
  padding: 10px 12px;
  color: #855e08;
  font-size: 10px;
}
