    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
           background: #ffffff; color: #111; padding: 1.5rem; max-width: 1200px; margin: auto; }
    h1 { color: #1e40af; margin-bottom: 0.3rem; }
    h2 { color: #555; font-size: 1rem; margin-bottom: 1.5rem; font-weight: normal; }
    h3 { color: #1e40af; margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }

    .loading { color: #666; padding: 2rem; text-align: center; }

    /* Navigation header */
    .nav-header { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
                  padding: 0.6rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
    .nav-header h1 { font-size: 1.1rem; margin: 0 0.6rem 0 0; white-space: nowrap; color: #1e40af; }
    .btn { border: 1px solid #ccc; background: #f0f0f2; color: #111; padding: 0.35rem 0.7rem;
           border-radius: 0.5rem; cursor: pointer; font-size: 0.85rem; text-decoration: none; }
    .btn:hover { border-color: #93c5fd; }
    .btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

    /* Country tabs */
    .tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
    .tab { padding: 0.4rem 1rem; border: 1px solid #ccc; border-radius: 0.4rem;
           background: #f0f0f2; cursor: pointer; font-size: 0.9rem; }
    .tab:hover { border-color: #93c5fd; }
    .tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }

    /* Charts */
    .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
    .chart-box { background: #f8f8fa; border: 1px solid #e5e7eb; border-radius: 0.6rem; padding: 0.8rem; }
    .chart-box h4 { margin: 0 0 0.5rem; font-size: 0.85rem; color: #555; }
    .chart-row { display: flex; align-items: center; gap: 0.4rem; margin: 0.3rem 0; font-size: 0.82rem; }
    .chart-label { width: 140px; text-align: right; white-space: nowrap; overflow: hidden;
                   text-overflow: ellipsis; flex-shrink: 0; }
    .chart-bar-wrap { flex: 1; height: 18px; background: #e8e8ec; border-radius: 3px; overflow: hidden; }
    .chart-bar { height: 100%; border-radius: 3px; min-width: 2px; }
    .chart-bar.dns { background: #2563eb; }
    .chart-bar.mx { background: #7c3aed; }
    .chart-bar.cert { background: #16a34a; }
    .chart-count { width: 40px; text-align: right; color: #888; flex-shrink: 0; }

    /* Summary table */
    table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
    th, td { padding: 0.5rem 0.8rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
    th { background: #f8f8fa; color: #555; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
    td { font-size: 0.9rem; }
    .good { color: #16a34a; font-weight: bold; }
    .bad { color: #dc2626; font-weight: bold; }
    .country-name { font-weight: bold; color: #111; }

    /* Detail sections */
    .detail-section { margin: 0.8rem 0; }
    .detail-header {
      background: #f8f8fa; padding: 0.5rem 0.8rem; border-radius: 6px;
      cursor: pointer; display: flex; justify-content: space-between; align-items: center;
      border: 1px solid #e5e7eb; font-size: 0.9rem;
    }
    .detail-header:hover { border-color: #93c5fd; }
    .detail-header .arrow { transition: transform 0.2s; }
    .detail-header.open .arrow { transform: rotate(90deg); }
    .detail-body { display: none; padding: 0.5rem 0; max-height: 500px; overflow-y: auto; }
    .detail-body.open { display: block; }
    .detail-body table { font-size: 0.82rem; }
    .detail-body td { padding: 0.25rem 0.6rem; }
    .tag { display: inline-block; font-size: 0.72rem; border-radius: 0.3rem; padding: 0.1rem 0.35rem;
           margin: 0.05rem 0.1rem; border: 1px solid #c4cdd9; background: #e8ecf4; white-space: nowrap; }
    .tag.mx-tag { background: #ede9fe; border-color: #c4b5fd; }
    .tag.cert-tag { background: #dcfce7; border-color: #86efac; }

    .scan-info { color: #888; font-size: 0.8rem; margin-top: 1.5rem; padding: 0.5rem 0.8rem;
                  background: #f8f8fa; border-radius: 6px; border: 1px solid #e5e7eb; }
    .flag { font-size: 1.2rem; margin-right: 0.3rem; }
