/* ============================================================
    BLACKLIST TOOL MASTER (Restored Original Layout)
   ============================================================ */

/* 1. RESTORED FROM dns.css (Sections 1-5 & 7) */
* { box-sizing: border-box; }
body { background-color: #2a2a2a; margin: 0; overflow-x: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.dns-page-wrapper { background-color: #1e1e1e; color: #e0e0e0; padding-bottom: 40px; }
header.dns-header { background: #2d2d2d; padding: 20px; font-size: 24px; font-weight: bold; border-bottom: 2px solid #444; color: #fff; text-align: center; }
.dns-container { display: flex; flex-direction: row; gap: 30px; padding: 30px; max-width: 1400px; margin: 0 auto; min-height: 600px; }
.tool-sidebar-column { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.tool-sidebar { display: flex; flex-direction: column; gap: 8px; }
.tool-sidebar button, .tool-sidebar a { background: #1a1a1a; color: #ccc; border: 1px solid #333; padding: 12px 15px; text-align: left; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; transition: all 0.2s ease; width: 100%; text-decoration: none; }
.tool-sidebar button i, .tool-sidebar a i { width: 20px !important; font-size: 1.1rem; color: #25D366; text-align: center; }
.tool-sidebar button:hover, .tool-sidebar a:hover { background: #252525; border-color: #444; color: #fff; }
.tool-sidebar button.active, .tool-sidebar a.active { background: #25D366 !important; color: #000 !important; border-color: #25D366; font-weight: bold; }
.tool-sidebar button.active i, .tool-sidebar a.active i { color: #000 !important; }
.dns-container main { flex: 1; background: #1e1e1e; min-width: 0; }
input[type="text"] { width: 100%; padding: 12px; border: 1px solid #555; background: #2a2a2a; color: #fff; border-radius: 4px; font-size: 1rem; }
button.scan { padding: 12px 24px; background: #0078d4; border: none; color: #fff; border-radius: 4px; cursor: pointer; font-weight: bold; }
.result-box { background: #1a1a1a; border-radius: 12px; padding: 25px; margin-bottom: 20px; border: 1px solid #333; }
.cta-section { background: #1a1a1a; padding: 60px 20px; text-align: center; border-top: 1px solid #333; margin-top: 40px; width: 100%; }
.cta-section h3 { font-size: 2rem; color: #fff; margin-bottom: 15px; }
.cta-section p { color: #aaa; margin-bottom: 30px; font-size: 1.1rem; }
.book-now-btn { display: inline-block; background: #25D366; color: #000; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-decoration: none; font-size: 1.1rem; transition: all 0.2s ease; }
.book-now-btn:hover { background: #20ba5a; transform: translateY(-2px); color: #000; }

/* 2. MIGRATED INLINE STYLES */
.sidebar-column-custom { min-width: 260px; display: flex; flex-direction: column; gap: 20px; }
.reputation-text { font-size: 0.8rem; line-height: 1.3; color: #ccc; }
.main-content-custom { flex: 1; min-width: 0; overflow: hidden; }
.input-p-custom { margin-bottom: 20px; color: #aaa; }
.input-flex-row { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.input-target-custom { flex: 3; min-width: 200px; }
.scan-btn-custom { flex: 1; margin: 0; min-width: 120px; }
.results-box-custom { padding: 0 !important; border: none !important; background: transparent !important; }
.table-custom { width: 100%; border-collapse: collapse; text-align: left; }
.thead-row-custom { background: rgba(255,255,255,0.05); border-bottom: 2px solid #333; }
.th-custom { padding: 15px !important; }

/* 3. UPDATED MOBILE FIXES (Gap Killer) */
@media (max-width: 900px) {
    /* Kill the 600px desktop stretch */
    .dns-container { 
        flex-direction: column !important; 
        padding: 15px !important; 
        min-height: auto !important; 
    }

    .tool-sidebar-column { 
        width: 100% !important; 
        order: 2; 
        gap: 15px !important;
        margin-top: 0 !important; /* Pulls Reputation Status card up */
    }

    .tool-sidebar { display: none !important; }

    main { 
        width: 100% !important; 
        order: 1; 
        min-width: 0; 
        overflow-x: hidden !important; 
        margin-bottom: 10px !important; /* Controlled space between button and card */
    }
    
    /* iPhone Table fix */
    .table-custom, .table-custom tbody, .table-custom thead, .table-custom tr, .table-custom td { display: block !important; width: 100% !important; }
    .thead-row-custom { display: flex !important; justify-content: space-between; padding: 8px 12px !important; border: 1px solid #444 !important; border-radius: 6px; margin-bottom: 8px; }
    .th-custom { padding: 0 !important; font-size: 0.7rem !important; color: #25D366 !important; text-transform: uppercase; border: none !important; }
    .table-custom tr:not(.thead-row-custom) { display: flex !important; justify-content: space-between; align-items: center; background: #1a1a1a; margin-bottom: 5px; padding: 8px 12px !important; border: 1px solid #333; border-radius: 6px; }
    .table-custom td { padding: 0 !important; border: none !important; font-size: 0.85rem; color: #fff; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .table-custom td:last-child { max-width: 30%; text-align: right !important; font-weight: bold; }

    /* Zoom fix */
    .input-target-custom { font-size: 16px !important; }
}