/* ============================================================
   Advanced Reverse IP Lookup – Professional Card UI
   Full Width | Dark Mode | Responsive
   ============================================================ */
:root {
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #4a4a6a;
    --border: #e2e8f0;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --red: #db0601;
    --blue: #003a87;
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 16px;
    --transition: 0.3s ease;
}
[data-theme="dark"] {
    --bg: #0f1117;
    --card-bg: #1c1e26;
    --text: #e4e6f0;
    --text-secondary: #a0a4b8;
    --border: #2e3140;
    --shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.aril-wrapper {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    padding: 40px 20px;
    margin: 0;
    transition: background var(--transition), color var(--transition);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.aril-wrapper *, .aril-wrapper *::before, .aril-wrapper *::after {
    box-sizing: inherit;
}
.aril-hero {
    text-align: center;
    margin-bottom: 40px;
}
.aril-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--text);
}
.aril-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}
.aril-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}
.aril-tab {
    background: none;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}
.aril-tab:hover { color: var(--text); }
.aril-tab.active { color: var(--red); }
.aril-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}
.aril-tab-content { animation: fadeIn 0.4s ease; }
.aril-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}
.aril-search-bar input[type="text"] {
    flex: 1 1 300px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.05rem;
    background: var(--card-bg);
    color: var(--text);
    transition: border var(--transition), box-shadow var(--transition);
}
.aril-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(219,6,1,0.1);
}
/* MAIN BUTTON – 20px radius, red */
.aril-search-btn {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
    white-space: nowrap;
}
.aril-search-btn:hover { background: #b80501; transform: scale(1.02); }
.aril-search-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.aril-dark-toggle {
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}
.aril-dark-toggle:hover { background: rgba(128,128,128,0.25); }
.aril-card-view {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease forwards;
}
.aril-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.aril-card-header-row h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.aril-action-btns { display: flex; gap: 8px; }
.aril-icon-btn {
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition), transform 0.1s;
}
.aril-icon-btn:hover { background: rgba(128,128,128,0.25); transform: translateY(-1px); }
.aril-short-grid, .aril-full-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.aril-short-left, .aril-full-left {
    flex: 1 1 55%;
    min-width: 280px;
}
.aril-short-right, .aril-full-right {
    flex: 1 1 40%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aril-clean-list { display: flex; flex-direction: column; }
.aril-clean-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.aril-clean-list > div:last-child { border-bottom: none; }
.aril-clean-list span:first-child {
    font-weight: 600;
    color: var(--text);
    flex: 0 0 40%;
    max-width: 40%;
}
.aril-clean-list span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    flex: 1;
}
.aril-map-box {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
}
.aril-map-box img { width: 100%; height: 100%; object-fit: cover; }
.aril-red-btn {
    display: block;
    width: 100%;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 14px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
}
.aril-red-btn:hover { background: #b80501; transform: scale(1.02); }
.aril-blue-btn {
    display: block;
    width: 100%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 14px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
}
.aril-blue-btn:hover { background: #002c66; transform: scale(1.02); }
.aril-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.aril-detail-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.aril-bulk-form { display: flex; flex-direction: column; gap: 15px; }
.aril-bulk-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}
.aril-file-upload-wrapper {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: var(--card-bg);
    transition: border var(--transition);
}
.aril-file-upload-wrapper:hover { border-color: var(--red); }
.aril-file-upload-wrapper input[type="file"] { display: none; }
.aril-file-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}
.aril-file-types {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}
.aril-pre-block {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    font-family: monospace;
    color: var(--text);
}
[data-theme="dark"] .aril-pre-block { background: rgba(255,255,255,0.05); }
.aril-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.aril-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    gap: 8px;
}
.aril-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}
.aril-progress-fill {
    height: 100%;
    background: var(--red);
    width: 0%;
    transition: width 0.4s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@media (max-width: 1024px) {
    .aril-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 900px) {
    .aril-short-grid, .aril-full-grid { flex-direction: column; }
    .aril-map-box { height: 280px; }
}
@media (max-width: 600px) {
    .aril-wrapper { padding: 20px 12px; }
    .aril-hero h1 { font-size: 1.5rem; }
    .aril-hero p { font-size: 0.95rem; }
    .aril-card-view { padding: 18px; }
    .aril-card-header-row h5 { font-size: 1.2rem; }
    .aril-clean-list > div { padding: 6px 0; font-size: 0.85rem; }
    .aril-clean-list span:first-child { flex: 0 0 50%; max-width: 50%; }
    .aril-red-btn, .aril-blue-btn { padding: 12px 16px; font-size: 0.95rem; }
    .aril-map-box { height: 220px !important; }
    .aril-tab { padding: 10px 16px; font-size: 0.9rem; }
    .aril-search-bar { flex-direction: column; }
    .aril-search-btn { width: 100%; text-align: center; }
}