﻿:root {
  --bg: #0f172a;
  --bg-soft: #111a2e;
  --card: #161f33;
  --card-strong: #1c2540;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #ff6b35;
  --primary-strong: #ff7f4f;
  --accent: #4cc0f6;
  --success: #2dd4bf;
  --danger: #f87171;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --surface-blur: rgba(17, 24, 39, 0.5);
}

* { box-sizing: border-box; }

body {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.12), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(76, 192, 246, 0.12), transparent 25%),
    linear-gradient(135deg, #0b1222 0%, #0f172a 40%, #0c1425 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 { color: #fff; }
.text-muted { color: var(--muted) !important; }
.text-dark { color: var(--text) !important; }

.nav-blur {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}
.nav-blur.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.navbar-brand { 
  color: #fff !important; 
  letter-spacing: 0.2px; 
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
.navbar-brand:hover {
  transform: scale(1.05);
}
.navbar .nav-link { 
  color: #cbd5e1 !important; 
  font-weight: 600; 
  padding: 10px 14px; 
  border-radius: 12px; 
  transition: all 0.2s ease; 
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.navbar .nav-link:hover, 
.navbar .nav-link:focus, 
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover { 
  color: #fff !important; 
  background: rgba(255, 255, 255, 0.08); 
  transform: translateY(-1px);
}
.navbar .dropdown-menu { 
  background: #0f172a; 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  box-shadow: var(--shadow); 
  margin-top: 8px;
  padding: 8px;
}
.navbar .dropdown-item { 
  color: #e2e8f0; 
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}
.navbar .dropdown-item.active, 
.navbar .dropdown-item:active { 
  background: var(--primary); 
  color: #0b1222; 
}
.nav-ghost { 
  height: 72px; 
}
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, var(--primary), var(--accent)); 
  color: #0b1222; 
  display: grid; 
  place-items: center; 
  font-weight: 800; 
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}
.brand-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}
.brand-avatar i {
  font-size: 20px;
}

.card, .card-elevated, .glass-card, .panel, .feature-card, .stat-card, .timeline-card, .table-responsive, .glass-widget, .search-card, .blog-card, .cta-panel, .card-modern {
  background: linear-gradient(140deg, var(--card), var(--card-strong));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
.content-page {
  min-height: 60vh;
}
.content-page h1, .content-page h2, .content-page h3, .content-page h4, .content-page h5, .content-page h6 {
  color: var(--text);
}
.content-page section {
  margin-bottom: 2rem;
}
.content-page ul, .content-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-page li {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.content-page a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.content-page a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

body .glass-card, .glass-widget, .search-card { background: rgba(22, 31, 51, 0.9); backdrop-filter: blur(12px); }

.hero-section { padding-top: 5rem; position: relative; }
.hero-grid { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(76,192,246,0.04)), repeating-linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 48px), repeating-linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 48px); opacity: .45; }

.badge-soft, .badge.bg-primary-soft, .bg-primary-soft { background: rgba(76, 192, 246, 0.14); color: var(--text); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.pill-status { padding: 8px 12px; background: rgba(45, 212, 191, 0.14); color: var(--success); border-radius: 12px; font-weight: 700; }
.chip, .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--text); border: 0; background: rgba(76, 192, 246, 0.12); }
.pill { letter-spacing: 0.02em; }
.pill-ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.state-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.state-pill.success { background: rgba(34, 197, 94, 0.18); color: #d1fae5; border: 1px solid rgba(34, 197, 94, 0.4); }
.state-pill.danger { background: rgba(248, 113, 113, 0.2); color: #fee2e2; border: 1px solid rgba(248, 113, 113, 0.4); }

.btn { font-weight: 700; border-radius: 12px; letter-spacing: 0.2px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); border: none; padding: 0.65rem 1.4rem; box-shadow: 0 14px 30px rgba(255,107,53,0.32); transition: box-shadow .2s ease, transform .2s ease; }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255,107,53,0.45); transform: translateY(-1px); }
.btn-outline-primary { border-radius: 12px; border-color: rgba(76, 192, 246, 0.6); color: #dbeafe; }
.btn-outline-primary:hover { background: rgba(76, 192, 246, 0.12); color: #fff; border-color: rgba(76, 192, 246, 0.9); }
.btn-outline-secondary { border-radius: 12px; border-color: rgba(255, 255, 255, 0.25); color: #cbd5e1; background: rgba(255, 255, 255, 0.02); }
.btn-outline-secondary:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }

.glass-widget { padding: 18px; border-radius: 18px; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 8px; font-size: 13px; }

input.form-control, select.form-select, textarea.form-control { 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: var(--bg-soft) !important; 
  color: var(--text) !important; 
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease; 
}
input.form-control:focus, select.form-select:focus, textarea.form-control:focus { 
  border-color: var(--primary) !important; 
  box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.16) !important; 
  background: #0a0e1a !important; 
  color: #f1f5f9 !important; 
}
textarea.form-control:focus { 
  background: #0a0e1a !important; 
  color: #f1f5f9 !important; 
}
input::placeholder, textarea::placeholder, .form-control::placeholder { 
  color: #94a3b8 !important; 
  opacity: 0.8 !important; 
}
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="url"] {
  background: var(--bg-soft) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="url"]:focus {
  background: #0a0e1a !important;
  color: #f1f5f9 !important;
  border-color: var(--primary) !important;
}
input[readonly], input:disabled, textarea[readonly], textarea:disabled, select:disabled {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}
select.form-select option { background: #0f172a !important; color: var(--text) !important; }
select.form-select option:checked, select.form-select option:hover { background: var(--primary) !important; color: #0b1222 !important; }
select.form-select { background-color: var(--bg-soft) !important; color: var(--text) !important; }
select.form-select:focus { background-color: #0a0e1a !important; color: #f1f5f9 !important; }
.input-group-text { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text); }
.form-check-input { background-color: var(--bg-soft); border-color: var(--border); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

.table { color: var(--text); }
.table thead { background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table tbody td, .table thead th { border-color: var(--border); }
.table-responsive { border-radius: 16px; overflow: hidden; background: rgba(17, 24, 39, 0.4); }

.panel { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; box-shadow: var(--shadow); }
.panel-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; background: rgba(255, 255, 255, 0.12); }

.timeline-card { padding: 14px; }
.timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b1222; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.stat-card, .feature-card, .request-tile, .result-card, .summary-card, .cta-panel, .blog-card { border-radius: 16px; }
.stat-card { padding: 16px; border: 1px solid var(--border); }
.feature-card { padding: 12px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; }
.bg-success-soft { background: rgba(45, 212, 191, 0.16); color: var(--success); }
.bg-warning-soft { background: rgba(234, 179, 8, 0.18); color: #facc15; }
.bg-indigo-soft { background: rgba(79, 70, 229, 0.16); color: #c7d2fe; }
.bg-slate-soft { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.bg-danger-soft { background: rgba(248, 113, 113, 0.16); color: var(--danger); }

.cta-section { background: linear-gradient(120deg, #ff6b35, #ff7f4f, #4cc0f6); border-radius: 18px; margin: 0 12px; padding: 24px 18px; box-shadow: 0 18px 40px rgba(255, 107, 53, 0.3); color: #0b1222; }

.hero-minimal { position: relative; padding: 68px 0 40px; background: linear-gradient(140deg, rgba(76, 192, 246, 0.12), rgba(255, 107, 53, 0.12), rgba(12, 18, 34, 0.92)); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(76, 192, 246, 0.18), transparent 30%), radial-gradient(circle at 80% 10%, rgba(255, 107, 53, 0.18), transparent 28%); filter: blur(10px); opacity: 0.9; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); font-weight: 600; margin-bottom: 10px; }
.hero-stats .stat-pill { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 10px 14px; min-width: 140px; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.stat-pill .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(226, 232, 240, 0.72); margin-bottom: 4px; }
.stat-pill .value { font-weight: 800; font-size: 20px; color: #fff; }

.result-section { border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 1.5rem; background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(17, 24, 39, 0.95)); box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.result-section__header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.result-section__title { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.result-section__subtitle { color: var(--muted); font-size: 0.85rem; }
.result-section__count { font-size: 1.2rem; font-weight: 700; }
.result-section__list { display: flex; flex-direction: column; gap: 1rem; }
.result-section--found { border-color: rgba(45, 212, 191, 0.4); }
.result-section--missing { border-color: rgba(248, 113, 113, 0.35); }

.result-card { position: relative; overflow: hidden; border-radius: 16px; padding: 16px; background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(15,23,42,0.95)); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow); }
.result-card.status-found { background: linear-gradient(145deg, rgba(45,212,191,0.22), rgba(15,23,42,0.95)); border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 20px 48px rgba(45, 212, 191, 0.16); }
.result-card.status-missing { background: linear-gradient(145deg, rgba(255,118,74,0.22), rgba(17,24,39,0.97)); border-color: rgba(255,118,74,0.45); box-shadow: 0 20px 48px rgba(255,118,74,0.2); }
.result-card__status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.result-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.result-card__body { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; backdrop-filter: blur(4px); }
.result-card__body .row { row-gap: 12px; }
.label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: rgba(226, 232, 240, 0.8); }
.imei { font-weight: 900; font-size: 22px; color: #f8fafc; letter-spacing: 0.02em; word-break: break-word; }

.result-field { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 26px rgba(0,0,0,0.24); height: 100%; }
.result-field.compact { flex-direction: column; gap: 4px; }
.result-field .title { font-weight: 600; color: rgba(226, 232, 240, 0.7); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.result-field .value { font-weight: 700; font-size: 16px; color: #f8fafc; word-break: break-word; }
.result-field .value a { color: #f8fafc; text-decoration: none; }
.result-field .value a:hover { color: var(--accent); }
.result-field .sub { font-size: 12px; color: var(--muted); }
.result-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }

.missing-request { margin-top: 16px; padding: 1.25rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(17, 24, 39, 0.9)); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.missing-request .request-section-title { margin-bottom: 16px; }
.missing-request .request-section-title .fw-semibold { color: var(--text); font-size: 16px; line-height: 1.5; }
.missing-request .request-section-title p { margin-top: 8px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.missing-request .request-form { margin-top: 16px; }
.missing-request .form-control, .missing-request .form-select { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #f8fafc; transition: all 0.2s ease; }
.missing-request .form-control:focus, .missing-request .form-select:focus { background: rgba(255, 255, 255, 0.12); border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.16); color: #f1f5f9; }
.missing-request .form-control::placeholder, .missing-request .form-select::placeholder { color: #94a3b8; opacity: 0.8; }
.missing-request .form-select option { background: #0f172a !important; color: #f8fafc !important; padding: 8px 12px; }
.missing-request .form-select option:checked, .missing-request .form-select option:hover { background: var(--primary) !important; color: #0b1222 !important; }
.missing-request .form-select option:focus { background: rgba(255, 107, 53, 0.2) !important; }
.missing-request .form-select { background-color: rgba(255, 255, 255, 0.08) !important; color: #f8fafc !important; }
.missing-request .form-select:focus { background-color: rgba(255, 255, 255, 0.12) !important; color: #f1f5f9 !important; }
.missing-request .row.g-2 { margin-left: -4px; margin-right: -4px; }
.missing-request .row.g-2 > * { padding-left: 4px; padding-right: 4px; }
.missing-request .btn { margin-top: 8px; }

.request-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.request-card { background: linear-gradient(145deg, rgba(22, 31, 51, 0.9), rgba(17, 24, 39, 0.95)); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-soft); }
.request-card--positive { background: linear-gradient(145deg, rgba(45, 212, 191, 0.15), rgba(22, 31, 51, 0.95)); border-color: rgba(45, 212, 191, 0.3); }
.request-card--negative { background: linear-gradient(145deg, rgba(248, 113, 113, 0.15), rgba(22, 31, 51, 0.95)); border-color: rgba(248, 113, 113, 0.3); }
.request-card__header { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.request-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.request-name { font-weight: 700; color: #f8fafc; }
.request-meta { font-size: 12px; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 6px; }
.request-meta i { color: var(--muted); }
.request-section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.request-section-title i { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.request-section-title > div { flex: 1; }
.request-section-title .fw-semibold { color: var(--text); font-size: 15px; display: block; margin-bottom: 4px; }
.request-section-title p { margin: 0; }
.request-tile { display: flex; align-items: flex-start; gap: 10px; background: rgba(15, 23, 42, 0.6); border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.request-tile__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.request-tile .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; font-weight: 700; }
.request-tile .value { font-weight: 800; color: #f1f5f9; font-size: 15px; word-break: break-word; }
.request-tile .sub { font-size: 12px; color: #cbd5e1; }
.request-tile.span-2 { grid-column: span 2; }

.summary-card { border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.12); padding: 1rem; background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); box-shadow: var(--shadow-soft); color: #f8fafc; }
.summary-card__badge { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.summary-card__value { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.15rem; }
.summary-card__label, .summary-card__note { font-size: 0.9rem; color: var(--muted); }
.summary-card--found { background: linear-gradient(145deg, rgba(45, 212, 191, 0.28), rgba(15, 23, 42, 0.95)); border-color: rgba(45, 212, 191, 0.5); }
.summary-card--missing { background: linear-gradient(145deg, rgba(248, 113, 113, 0.28), rgba(15, 23, 42, 0.95)); border-color: rgba(248, 113, 113, 0.45); }
.summary-card--note { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); grid-column: 1 / -1; }

.search-results-placeholder { min-height: 140px; }
.search-results-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.toast-container { 
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  z-index: 1080; 
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 400px;
  pointer-events: none;
}

.toast-container .alert {
  pointer-events: auto;
  min-width: 250px;
  max-width: 400px;
}

@media (max-width: 767px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: auto;
    max-width: calc(100% - 20px);
    align-items: flex-end;
  }
  
  .toast-container .alert {
    min-width: auto;
    max-width: 100%;
    width: auto;
  }
}

/* Toast/Alert styles for dark theme */
.alert {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert-success {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.1)) !important;
  border-color: rgba(45, 212, 191, 0.4) !important;
  color: #2dd4bf !important;
}

.alert-danger {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.2), rgba(248, 113, 113, 0.1)) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fca5a5 !important;
}

.alert-warning {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1)) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  color: #ffd700 !important;
}

.alert-info {
  background: linear-gradient(145deg, rgba(76, 192, 246, 0.2), rgba(76, 192, 246, 0.1)) !important;
  border-color: rgba(76, 192, 246, 0.4) !important;
  color: #93c5fd !important;
}

.alert-primary {
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1)) !important;
  border-color: rgba(255, 107, 53, 0.4) !important;
  color: #ffb89a !important;
}

.footer { margin-top: 4rem; }

/* Modern Footer Styles */
.footer-modern {
  margin-top: 5rem;
  background: linear-gradient(135deg, #0f1c32 0%, #0a1224 100%);
  color: var(--text);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}

.footer-main {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand .brand-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-security {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: rgba(10, 18, 36, 0.5);
}

.footer-bottom .border-top {
  border-color: var(--border) !important;
}

.footer-meta a {
  transition: color 0.2s ease;
}

.footer-meta a:hover {
  color: var(--primary) !important;
}

.badge.badge-soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge.badge-soft i {
  font-size: 0.875rem;
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-main {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .footer-brand {
    margin-bottom: 2rem;
  }
  
  .footer-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767px) {
  .footer-modern {
    margin-top: 3rem;
  }
  
  .footer-main {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.blog-card { overflow: hidden; }
.blog-thumb img { width: 100%; height: 180px; object-fit: cover; }
.blog-body { padding: 14px; }

/* Modern Blog Cards */
.blog-card-modern {
  background: linear-gradient(145deg, rgba(22, 31, 51, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.blog-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 107, 53, 0.3);
}
.blog-card-modern__header {
  position: relative;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(76, 192, 246, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.blog-card-modern__category {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 107, 53, 0.2);
  color: var(--primary);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-modern__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
}
.blog-card-modern__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-modern__title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-modern__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-modern__footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.blog-card-modern__link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-card-modern__link:hover {
  color: var(--primary-strong);
  transform: translateX(4px);
}
.blog-card-modern__link i {
  transition: transform 0.2s ease;
}
.blog-card-modern__link:hover i {
  transform: translateX(4px);
}

.main-content { min-height: 70vh; }
.shop-hero { border: 1px solid var(--border); background: linear-gradient(120deg, rgba(255, 107, 53, 0.14), rgba(76, 192, 246, 0.12)); }
.metric-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(145deg, var(--card), var(--card-strong)); border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; }
.metric-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, 0.06); color: var(--primary); }

.modal-content { background: linear-gradient(145deg, var(--card), var(--card-strong)); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-backdrop.show { opacity: 0.7; }
.btn-close { filter: invert(0.9); }

.notify-menu { max-height: 360px; }
.max-h-300 { max-height: 300px; }
.stat-tile { min-height: 100px; }

.status-pill { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 0.2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 14px rgba(0, 0, 0, 0.25); }
.status-icloud { background: linear-gradient(135deg, rgba(76, 192, 246, 0.7), rgba(76, 192, 246, 0.45)); border: 1px solid rgba(76, 192, 246, 0.95); color: #042c3a; }
.status-device { background: linear-gradient(135deg, rgba(45, 212, 191, 0.65), rgba(45, 212, 191, 0.4)); border: 1px solid rgba(45, 212, 191, 0.95); color: #06332d; }
.status-device-alt { background: linear-gradient(135deg, rgba(255, 207, 86, 0.6), rgba(255, 207, 86, 0.35)); border: 1px solid rgba(255, 207, 86, 0.85); color: #4a3202; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 14px rgba(0, 0, 0, 0.25); }

.log-card .card-header, .log-card .card-footer { background: transparent !important; border-color: var(--border); }
.log-range-group .log-range-btn { border-radius: 12px; border-color: rgba(76, 192, 246, 0.35); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.log-range-group .log-range-btn.active, .log-range-group .log-range-btn:focus { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b1222; border-color: transparent; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.log-top-list .list-group-item { background: transparent; color: var(--text); border-color: var(--border); }
.log-top-list .log-badge-count { background: rgba(255, 107, 53, 0.16); color: var(--primary); }
.log-table thead th { background: rgba(255, 255, 255, 0.04); color: var(--text) !important; border-color: var(--border) !important; }
.log-table td, .log-table th { border-color: var(--border) !important; color: var(--text) !important; background: transparent; }
.log-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

#imeiPage .table { background: transparent; color: var(--text); }
#imeiPage .table thead { background: rgba(255, 255, 255, 0.05); }
#imeiPage .table tbody tr { background: rgba(0, 0, 0, 0.18); }
#imeiPage .table tbody tr:hover { background: rgba(0, 0, 0, 0.26); }
#imeiPage .table td, #imeiPage .table th { border-color: var(--border); background: transparent; }
#imeiPage .form-control, #imeiPage .form-select { background: rgba(10, 14, 26, 0.85) !important; border-color: rgba(255, 255, 255, 0.15); color: var(--text); }
#imeiPage .form-select option { background: #0f172a; color: var(--text); }
#imeiPage .form-control::placeholder { color: #e5edff; opacity: 0.9; }

.word-break { word-break: break-word; }
.flex-wrap { flex-wrap: wrap; }

@media (max-width: 767px) {
  .hero-section { padding-top: 3rem; }
  .hero-minimal { padding: 42px 0 28px; }
  .hero-minimal h1 { font-size: 32px; line-height: 1.1; }
  .hero-stats { width: 100%; flex-direction: column; }
  .hero-stats .stat-pill { width: 100%; text-align: left; }
  .search-card.glass-widget { margin-top: 8px; }
  .feature-tile, .step-card { align-items: flex-start; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .blog-thumb img { height: 160px; }
  .mini-stats { grid-template-columns: 1fr; }
  .pill.glass, .pill.ghost { width: 100%; justify-content: center; }
  .table-responsive { overflow-x: auto; }
  .timeline-card, .log-card, .card-elevated { margin-bottom: 12px; }
  .request-tile.span-2 { grid-column: span 1; }
  .result-section, .result-card { padding: 14px; }
  .missing-request { padding: 1rem; margin-top: 12px; }
  .missing-request .request-section-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .missing-request .request-section-title i { margin-bottom: 4px; }
  .missing-request .row.g-2 > [class*="col-"] { margin-bottom: 8px; }
  .missing-request .row.g-2 > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
  .missing-request .btn { width: 100%; }
  .blog-card-modern { margin-bottom: 16px; }
  .blog-card-modern__header { padding: 16px; }
  .blog-card-modern__body { padding: 16px; }
  .blog-card-modern__footer { padding: 12px 16px; }
  #blog .row.g-4 > [class*="col-"] { margin-bottom: 16px; }
}
