/* ── APP ENHANCEMENTS ── */
    .hero-stats {
      display: flex;
      gap: 1.25rem;
      margin-top: 1.75rem;
      flex-wrap: wrap;
    }
    .stat-box {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.9rem 1.4rem;
      min-width: 110px;
      appearance: none;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      color: var(--text-main);
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }
    .stat-box:hover,
    .stat-box.active {
      transform: translateY(-2px);
      border-color: rgba(96, 165, 250, 0.65);
      background: rgba(59, 130, 246, 0.1);
      box-shadow: 0 8px 22px rgba(59, 130, 246, 0.16);
    }
    .stat-box:focus-visible {
      outline: 2px solid #93c5fd;
      outline-offset: 3px;
    }
    .stat-val {
      display: block;
      font-size: 1.75rem;
      font-weight: 900;
      color: var(--blue-main);
      line-height: 1;
    }
    .stat-lbl {
      display: block;
      font-size: 0.72rem;
      font-weight: 600;
      color: #cbd5e1;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-top: 0.35rem;
    }
    [data-theme='light'] .stat-lbl { color: #475569; }
    [data-theme='light'] .stat-box { color: #0f172a; }

    /* ── SIMPLE REPORT FORM ── */
    .simple-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      margin-bottom: 3rem;
      position: relative;
      z-index: 1;
    }
    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .input-field {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .input-field label,
    .slip-overlay label,
    .modal label,
    label {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--label-color, #93c5fd);
      letter-spacing: 0.04em;
    }
    [data-theme='light'] .input-field label,
    [data-theme='light'] .slip-overlay label,
    [data-theme='light'] .modal label,
    [data-theme='light'] label {
      color: #1e3a8a !important;
    }
    [data-theme='dark'] .input-field label,
    [data-theme='dark'] .slip-overlay label,
    [data-theme='dark'] .modal label,
    [data-theme='dark'] label {
      color: #93c5fd !important;
    }
    [data-theme='light'] .input-field select option {
      background: #ffffff !important;
      color: #0f172a !important;
    }
    .input-field input,
    .input-field select,
    .input-field textarea {
      background: rgba(255, 255, 255, 0.05);
      border: 1.5px solid rgba(59, 130, 246, 0.22);
      border-radius: 8px;
      padding: 0.65rem 0.85rem;
      color: var(--text-main);
      font-size: 0.88rem;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }
    .input-field input:focus,
    .input-field select:focus,
    .input-field textarea:focus {
      border-color: var(--blue-main);
    }
    .input-field select optgroup {
      background: #18181b;
      color: #3b82f6;
      font-weight: 800;
      font-style: normal;
      font-size: 0.88rem;
      padding: 0.4rem 0.2rem;
    }
    .input-field select option {
      background: #27272a;
      color: #f8fafc;
      font-weight: 500;
      padding: 0.35rem;
    }
    .input-field textarea {
      resize: vertical;
      min-height: 80px;
    }

    /* Type radio buttons */
    .type-switcher {
      display: flex;
      gap: 0.75rem;
      margin-top: 0.25rem;
    }
    .type-option {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.65rem 1rem;
      border: 1.5px solid rgba(59, 130, 246, 0.25);
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--text-muted);
      transition: all 0.2s;
    }
    .type-option input { display: none; }
    .type-option.active-lost {
      border-color: #ef4444;
      background: rgba(239, 68, 68, 0.15);
      color: #fca5a5;
    }
    .type-option.active-found {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.15);
      color: #86efac;
    }

    /* ── SEARCH & FILTER CONTROLS ── */
    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }
    .search-box {
      flex: 1;
      min-width: 240px;
    }
    .search-box input {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1.5px solid rgba(59, 130, 246, 0.22);
      border-radius: 8px;
      padding: 0.6rem 0.9rem;
      color: var(--text-main);
      font-size: 0.88rem;
      outline: none;
    }
    .search-box input:focus {
      border-color: var(--blue-main);
    }
    .filter-chips {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }
    .chip {
      background: rgba(59, 130, 246, 0.07);
      border: 1px solid rgba(59, 130, 246, 0.3);
      color: var(--text-muted);
      border-radius: 6px;
      padding: 0.35rem 0.75rem;
      font-size: 0.76rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .chip:hover, .chip.active {
      border-color: var(--blue-main);
      color: var(--blue-main);
      background: rgba(59, 130, 246, 0.18);
    }

    /* ── ITEM CARDS ── */
    .item-badge {
      display: inline-block;
      padding: 0.2rem 0.5rem;
      border-radius: 5px;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .badge-lost {
      background: rgba(239, 68, 68, 0.18);
      color: #fca5a5;
      border: 1px solid rgba(239, 68, 68, 0.4);
    }
    .badge-found {
      background: rgba(34, 197, 94, 0.18);
      color: #86efac;
      border: 1px solid rgba(34, 197, 94, 0.4);
    }
    .badge-claimed {
      background: rgba(59, 130, 246, 0.18);
      color: var(--blue-light);
      border: 1px solid rgba(59, 130, 246, 0.4);
    }

    .card-meta-line {
      font-size: 0.78rem;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      margin: 0.35rem 0;
      padding: 0.5rem 0;
      border-top: 1px solid rgba(59, 130, 246, 0.08);
      border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    }
    .card-actions {
      display: flex;
      gap: 0.5rem;
      margin-top: auto;
      padding-top: 0.5rem;
      flex-wrap: wrap;
    }
    .btn-sm {
      padding: 0.35rem 0.65rem;
      font-size: 0.72rem;
      font-weight: 700;
      border-radius: 6px;
      cursor: pointer;
      border: 1px solid;
      background: transparent;
      transition: all 0.2s;
    }
    .btn-claim {
      border-color: rgba(34, 197, 94, 0.4);
      color: #86efac;
    }
    .btn-claim:hover {
      background: rgba(34, 197, 94, 0.15);
    }
    .btn-del {
      border-color: rgba(239, 68, 68, 0.35);
      color: #fca5a5;
    }
    .btn-del:hover {
      background: rgba(239, 68, 68, 0.15);
    }
    .btn-qr {
      border-color: rgba(59, 130, 246, 0.4);
      color: var(--blue-light);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .btn-qr:hover {
      background: rgba(59, 130, 246, 0.15);
      border-color: var(--blue-main);
    }

    .ref-code {
      font-family: monospace;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }

    .match-banner {
      background: rgba(59, 130, 246, 0.1);
      border: 1px dashed rgba(59, 130, 246, 0.45);
      border-radius: 8px;
      padding: 0.55rem 0.75rem;
      margin: 0.5rem 0;
      font-size: 0.75rem;
      color: var(--blue-light);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }
    .btn-match-qr {
      background: var(--blue-main);
      color: #ffffff;
      border: none;
      border-radius: 6px;
      padding: 0.3rem 0.65rem;
      font-size: 0.72rem;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-match-qr:hover {
      background: #60a5fa;
      transform: translateY(-1px);
    }
    .notif-item {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 0.9rem;
      position: relative;
      transition: border-color 0.2s;
    }
    .notif-item.unread {
      background: rgba(59, 130, 246, 0.06);
      border-color: rgba(59, 130, 246, 0.35);
    }
    .notif-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.4rem;
      font-size: 0.85rem;
      color: #ffffff;
    }
    .notif-time {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    .notif-msg {
      font-size: 0.8rem;
      color: #e2e8f0;
      margin: 0.25rem 0;
      line-height: 1.4;
    }
    .notif-contact {
      font-size: 0.75rem;
      color: #86efac;
      margin: 0.4rem 0 0;
    }
    .btn-mark-read {
      background: none;
      border: 1px solid rgba(59, 130, 246, 0.3);
      color: var(--blue-light);
      border-radius: 6px;
      padding: 0.2rem 0.5rem;
      font-size: 0.7rem;
      cursor: pointer;
      margin-top: 0.5rem;
    }
    .btn-mark-read:hover {
      background: rgba(59, 130, 246, 0.15);
      border-color: var(--blue-main);
    }
    .badge-registered {
      background: rgba(59, 130, 246, 0.15);
      color: #93c5fd;
      border: 1px solid rgba(59, 130, 246, 0.35);
    }
    .chip-my-vault {
      background: rgba(59, 130, 246, 0.12) !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
      color: #bfdbfe !important;
    }
    .chip-my-vault.active {
      background: #2563eb !important;
      color: #ffffff !important;
      border-color: #2563eb !important;
    }

    .hotspots-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-bottom: 1.25rem;
      font-size: 0.76rem;
      color: var(--text-muted);
    }
    .location-filter-wrap {
      position: relative;
      flex: 1 1 420px;
      min-width: 200px;
    }
    .location-filter-select {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(59, 130, 246, 0.18);
      border-radius: 12px;
      padding: 0.7rem 2.75rem 0.7rem 0.9rem;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-main);
      cursor: pointer;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      background-image: linear-gradient(45deg, transparent 50%, var(--blue-light) 50%), linear-gradient(135deg, var(--blue-light) 50%, transparent 50%);
      background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }
    .location-filter-select:focus {
      border-color: var(--blue-main);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }
    .location-filter-select option {
      background: #0f172a;
      color: #f8fafc;
    }
    [data-theme='light'] .location-filter-select option {
      background: #ffffff;
      color: #0f172a;
    }
    .hotspots-row label {
      font-weight: 700;
      color: var(--blue-dark);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-right: 0.1rem;
    }


    /* Slip Modal */
    .slip-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(5px);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .slip-overlay.open {
      display: flex;
    }
    .slip-box {
      background: #ffffff;
      color: #18181b;
      border-radius: 12px;
      max-width: 540px;
      width: 100%;
      padding: 2rem;
      position: relative;
      box-shadow: 0 10px 40px rgba(0,0,0,0.5);
      max-height: 90vh;
      overflow-y: auto;
    }
    .slip-table {
      width: 100%;
      margin: 1.2rem 0;
      border-collapse: collapse;
      font-size: 0.84rem;
    }
    .slip-table td {
      padding: 0.45rem 0.5rem;
      border-bottom: 1px solid #e2e8f0;
      color: #1e293b;
    }
    .slip-table td:first-child {
      font-weight: 700;
      width: 35%;
      color: #475569;
    }
    .slip-signatures {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 1.8rem;
      padding-top: 1rem;
      border-top: 1px dashed #cbd5e1;
      font-size: 0.75rem;
      color: #64748b;
      text-align: center;
    }
    .sig-line {
      border-top: 1px solid #94a3b8;
      margin-top: 2.2rem;
      padding-top: 0.25rem;
    }

    @media print {
      body * {
        visibility: hidden !important;
      }
      #qrPrintArea, #qrPrintArea *, #matchPrintArea, #matchPrintArea * {
        visibility: visible !important;
      }
      #qrPrintArea, #matchPrintArea {
        position: fixed;
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
        width: 320px;
        margin: 0 auto;
        padding: 20px;
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px dashed #000000 !important;
        box-shadow: none !important;
      }
      .no-print {
        display: none !important;
      }
    }

    /* Toast alert */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #27272a;
      border: 1px solid var(--blue-main);
      color: var(--text-main);
      padding: 0.8rem 1.25rem;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      z-index: 999;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
      animation: fadeIn 0.3s;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
