*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-gap { 
    margin-top: 28px;
    margin-bottom: 28px;
    
}

/* ─── Header ─── */
header {
    background: #0f172a;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.header-logo span { color: #60a5fa; font-weight: 300; }

nav { display: flex; align-items: center; gap: 20px; }

nav > a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

nav > a:hover { color: #fff; }

.dropdown { position: relative; }

.dropbtn {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.15s;
}

.dropbtn:hover { color: #fff; }

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 4px;
    margin-top: 8px;
    z-index: 200;
}

.dropdown-content a {
    display: block;
    padding: 9px 14px;
    color: #1e293b;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.1s;
}

.dropdown-content a:hover { background: #f1f5f9; }
.dropdown:hover .dropdown-content { display: block; }

/* ─── Hero ─── */
.hero {
    position: relative;
    background: linear-gradient(160deg, #1e3a8a 0%, #1e40af 30%, #2563eb 70%, #3b82f6 100%);
    padding: 72px 20px 64px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 60%, rgba(96,165,250,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 30%, rgba(59,130,246,0.1) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 80%, rgba(147,197,253,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: #bfdbfe;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero > .hero-content > p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ─── Search Box ─── */
.search-box {
    max-width: 640px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: box-shadow 0.25s, transform 0.25s;
}

.search-box:focus-within {
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

.search-icon {
    flex-shrink: 0;
    margin-left: 20px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 16px 14px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    color: #0f172a;
    min-width: 0;
}

.search-box input::placeholder { color: #94a3b8; }

.search-box button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.search-box button:hover { background: #1d4ed8; }

/* ─── Hero meta ─── */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}

.cached-badge {
    display: inline-block;
    background: rgba(16,185,129,0.2);
    color: #6ee7b7;
    padding: 2px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Examples ─── */
.examples {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.examples a {
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.examples a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ─── Hero Stats ─── */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hs-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.hs-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.hs-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ─── Features Section ─── */
.features {
    padding: 56px 0 48px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.f-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.f-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.f-icon { font-size: 28px; margin-bottom: 14px; line-height: 1; }

.f-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.f-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* ─── Results Section ─── */
.results-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 48px;
}

.results-grid {
    width: 100%;
    max-width: 720px;
}

.rg-main { width: 100%; }

/* ─── Cards ─── */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 16px 20px; }

/* ─── Data Table ─── */
.data-table { width: 100%; border-collapse: collapse; }

.data-table td {
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 14px;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table .rl {
    font-weight: 600;
    color: #64748b;
    width: 140px;
    min-width: 110px;
    white-space: nowrap;
    font-size: 13px;
}

.data-table .rv {
    color: #0f172a;
    word-break: break-word;
}

.data-table .mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: #475569;
}

/* ─── Status Badge ─── */
.badge-st {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #eef2ff;
    color: #4338ca;
    margin: 1px 3px 1px 0;
    border: 1px solid #e0e7ff;
    transition: background 0.15s;
}

.badge-st:hover { background: #e0e7ff; }

/* ─── Expiry ─── */
.expiry {
    color: #059669;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.expiry::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ─── Links ─── */
.lnk { color: #2563eb; font-weight: 500; transition: opacity 0.15s; }
.lnk:hover { text-decoration: underline; opacity: 0.8; }

/* ─── Thumbnail ─── */
.thumb { border-radius: 6px; border: 1px solid #e2e8f0; width: 120px; transition: transform 0.2s; }
.thumb:hover { transform: scale(1.05); }


/* ─── Error ─── */
.msg-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
}

/* ─── Footer ─── */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.fc h4 {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.fc p {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.fc a {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.15s;
}

.fc a:hover { color: #e2e8f0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 28px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #475569;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero h1 { font-size: 36px; }
}

@media (max-width: 640px) {
    .hero { padding: 40px 16px 32px; }
    .hero h1 { font-size: 28px; }
    .hero > .hero-content > p { font-size: 14px; margin-bottom: 22px; }
    .hero-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 16px; }
    .search-box { border-radius: 10px; flex-direction: column; }
    .search-icon { display: none; }
    .search-box input { padding: 14px; font-size: 15px; width: 100%; }
    .search-box button { padding: 14px; font-size: 15px; width: 100%; }
    .hero-stats { gap: 24px; }
    .hs-num { font-size: 18px; }
    .hero-meta { font-size: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .features { padding: 36px 0 28px; }
    .results-section { padding: 20px 12px 36px; }
    .card-header { padding: 12px 14px; font-size: 14px; }
    .data-table td { padding: 8px 14px; font-size: 13px; }
    .data-table .rl { width: 100px; min-width: 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .header-inner { height: 50px; }
    nav { gap: 12px; }
    nav > a, .dropbtn { font-size: 13px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 24px; }
    .hero { padding: 32px 12px 24px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-badge { font-size: 10px; }
    .data-table .rl { width: 80px; min-width: 70px; font-size: 12px; white-space: normal; }
    .data-table td { padding: 6px 10px; font-size: 12px; }
    .card-header { padding: 10px 12px; font-size: 13px; }
    .examples { flex-direction: column; gap: 3px; font-size: 12px; }
    .results-section { padding: 16px 8px 28px; }
    .header-logo { font-size: 15px; }
    nav { gap: 8px; }
    nav > a, .dropbtn { font-size: 12px; }
}
