/* ============================================
   WHOIS Lookup - Enhanced Stylesheet
   SURITD TOOLS Design System
   Dark mode + single colors + no gradients
   ============================================ */

:root {
    --whois-primary: #3399cc;
    --whois-primary-light: #d6eef8;
    --whois-primary-dark: #2a7aa8;
    --whois-accent: #339966;
    --whois-success: #339966;
    --whois-success-light: #d9f0e5;
    --whois-warning: #e6a533;
    --whois-danger: #e64e4e;
    --whois-purple: #8B5CF6;
    --whois-orange: #F97316;

    --whois-bg: #f8fafc;
    --whois-bg-elevated: #ffffff;
    --whois-text: #1e293b;
    --whois-text-secondary: #64748b;
    --whois-text-muted: #94a3b8;
    --whois-border: #e2e8f0;

    --whois-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --whois-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
    --whois-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --whois-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08);

    --whois-radius-sm: 6px;
    --whois-radius-md: 12px;
    --whois-radius-lg: 16px;
    --whois-radius-xl: 24px;
    --whois-radius-full: 9999px;
}

/* Dark Mode */
[data-theme="dark"] {
    --whois-bg: #0f172a;
    --whois-bg-elevated: #1e293b;
    --whois-text: #e2e8f0;
    --whois-text-secondary: #94a3b8;
    --whois-text-muted: #64748b;
    --whois-border: #334155;
    --whois-primary-light: rgba(51,153,204,0.15);
    --whois-success-light: rgba(51,153,102,0.15);
    --whois-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --whois-shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --whois-shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --whois-shadow-xl: 0 20px 25px rgba(0,0,0,0.3);
}

/* Base */
* { box-sizing: border-box; }

.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--whois-primary);
    border-radius: var(--whois-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--whois-shadow-lg);
    flex-shrink: 0;
}

.tool-icon-wrapper svg,
.tool-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.tool-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--whois-primary);
    letter-spacing: -0.02em;
}

.tool-description {
    font-size: 1.15rem;
    color: var(--whois-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Tool Area */
.tool-main {
    background: var(--whois-bg-elevated);
    border-radius: var(--whois-radius-xl);
    box-shadow: var(--whois-shadow-xl);
    overflow: hidden;
    border: 1px solid var(--whois-border);
}

/* Input Section */
.input-section { padding: 2rem; }

.mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.mode-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-full);
    background: var(--whois-bg);
    color: var(--whois-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-tab:hover { border-color: var(--whois-primary-light); }

.mode-tab.active {
    border-color: var(--whois-primary);
    background: var(--whois-primary-light);
    color: var(--whois-primary);
}

.mode-tab svg, .mode-tab i { flex-shrink: 0; }

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--whois-bg);
    border: 2px solid var(--whois-border);
    border-radius: var(--whois-radius-lg);
    padding: 0.5rem;
    transition: all 0.3s;
    max-width: 700px;
    margin: 0 auto;
}

.search-box:focus-within {
    border-color: var(--whois-primary);
    box-shadow: 0 0 0 4px rgba(51,153,204,0.1);
}

.search-icon { padding: 0.75rem; color: var(--whois-text-muted); }

.domain-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-size: 1.1rem;
    color: var(--whois-text);
    outline: none;
    min-width: 0;
}

.domain-input::placeholder { color: var(--whois-text-muted); }

.input-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--whois-text-muted);
    margin-top: 0.75rem;
}

/* Bulk Input */
.bulk-input-wrapper { max-width: 700px; margin: 0 auto; }

.bulk-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--whois-border);
    border-radius: var(--whois-radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--whois-text);
    background: var(--whois-bg);
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s;
}

.bulk-input:focus {
    outline: none;
    border-color: var(--whois-primary);
    box-shadow: 0 0 0 4px rgba(51,153,204,0.1);
}

.bulk-input::placeholder { color: var(--whois-text-muted); }

/* Controls Bar */
.whois-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--whois-radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--whois-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(51,153,204,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(51,153,204,0.4); }

.btn-secondary {
    background: var(--whois-bg);
    color: var(--whois-text);
    border: 2px solid var(--whois-border);
}

.btn-secondary:hover { background: var(--whois-bg-elevated); border-color: var(--whois-text-muted); }

.btn-outline {
    background: transparent;
    color: var(--whois-text-secondary);
    border: 2px solid var(--whois-border);
}

.btn-outline:hover {
    background: var(--whois-bg);
    border-color: var(--whois-primary);
    color: var(--whois-primary);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary:disabled { box-shadow: none; background: var(--whois-text-muted); }

/* Progress */
.progress-container { display: none; padding: 2rem; text-align: center; }

.progress-bar {
    height: 8px;
    background: var(--whois-bg);
    border-radius: var(--whois-radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background: var(--whois-primary);
    border-radius: var(--whois-radius-full);
    transition: width 0.3s;
    width: 0%;
}

#progressText { font-size: 0.9rem; color: var(--whois-text-secondary); }

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.progress-step {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--whois-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--whois-radius-full);
    border: 1px solid var(--whois-border);
    transition: all 0.3s;
}

.progress-step.active {
    color: var(--whois-primary);
    border-color: var(--whois-primary);
    background: var(--whois-primary-light);
}

.progress-step.done {
    color: var(--whois-success);
    border-color: var(--whois-success);
    background: var(--whois-success-light);
}

/* Error Message */
.error-message {
    margin: 1rem 2rem;
    padding: 1rem 1.5rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--whois-radius-md);
    color: var(--whois-danger);
    font-weight: 500;
}

[data-theme="dark"] .error-message {
    background: rgba(230,78,78,0.1);
    border-color: rgba(230,78,78,0.3);
}

.error-message a { color: var(--whois-primary); text-decoration: underline; }

/* Results */
.results-section { padding: 2rem; animation: fadeIn 0.4s ease; }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--whois-border);
}

.result-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--whois-text);
    margin: 0;
}

.result-header h3 svg, .result-header h3 i { color: var(--whois-primary); }

/* Share Button */
.share-btn-small {
    width: 40px; height: 40px;
    border: 2px solid var(--whois-border);
    border-radius: var(--whois-radius-md);
    background: var(--whois-bg-elevated);
    color: var(--whois-text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.share-btn-small:hover { background: var(--whois-primary); border-color: var(--whois-primary); color: white; }
.share-btn-small.copied { background: var(--whois-success); border-color: var(--whois-success); color: white; }

/* Health Score Bar */
.health-score-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--whois-bg);
    border-radius: var(--whois-radius-lg);
    border: 1px solid var(--whois-border);
    margin-bottom: 1.5rem;
}

.health-score-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    min-width: 3.5rem;
    text-align: center;
}

.health-score-value.excellent { color: var(--whois-success); }
.health-score-value.good { color: var(--whois-primary); }
.health-score-value.fair { color: var(--whois-warning); }
.health-score-value.poor { color: var(--whois-danger); }

.health-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--whois-text-secondary);
    margin-bottom: 0.4rem;
}

.health-meter {
    height: 8px;
    background: var(--whois-border);
    border-radius: var(--whois-radius-full);
    overflow: hidden;
}

.health-meter-fill {
    height: 100%;
    border-radius: var(--whois-radius-full);
    transition: width 0.6s ease;
}

.health-meter-fill.excellent { background: var(--whois-success); }
.health-meter-fill.good { background: var(--whois-primary); }
.health-meter-fill.fair { background: var(--whois-warning); }
.health-meter-fill.poor { background: var(--whois-danger); }

/* Domain Age Box */
.domain-age-box {
    background: var(--whois-primary-light);
    border-radius: var(--whois-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--whois-border);
}

.age-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 1.5rem;
    border-right: 2px solid var(--whois-border);
}

.age-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--whois-primary);
    line-height: 1;
}

.age-label {
    font-size: 0.875rem;
    color: var(--whois-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.age-details { font-size: 1rem; color: var(--whois-text-secondary); }

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Result Cards */
.result-card {
    background: var(--whois-bg-elevated);
    border-radius: var(--whois-radius-md);
    border: 1px solid var(--whois-border);
    overflow: hidden;
    box-shadow: var(--whois-shadow-sm);
}

.card-header {
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.card-header.whois-header { background: var(--whois-primary); }
.card-header.ssl-header { background: var(--whois-success); }
.card-header.status-header { background: var(--whois-purple); }
.card-header.hosting-header { background: var(--whois-orange); }

.card-body { padding: 1rem; }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--whois-bg);
}

.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--whois-text-secondary); font-size: 0.85rem; }
.result-row .value { color: var(--whois-text); font-weight: 500; font-size: 0.85rem; text-align: right; max-width: 60%; word-break: break-word; }

.value.copyable { cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.value.copyable:hover { color: var(--whois-primary); }

.copy-feedback {
    color: var(--whois-success);
    font-size: 0.75rem;
    font-weight: 600;
    animation: fadeIn 0.3s;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--whois-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: var(--whois-success-light); color: #059669; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger { background: #FEE2E2; color: #DC2626; }

[data-theme="dark"] .badge-success { background: rgba(51,153,102,0.2); color: #4ade80; }
[data-theme="dark"] .badge-warning { background: rgba(230,165,51,0.2); color: #fbbf24; }
[data-theme="dark"] .badge-danger { background: rgba(230,78,78,0.2); color: #f87171; }

/* Result Section */
.result-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--whois-bg);
    border-radius: var(--whois-radius-md);
    border: 1px solid var(--whois-border);
}

.result-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--whois-text);
    margin: 0 0 1rem 0;
}

.result-section h4 svg, .result-section h4 i { color: var(--whois-primary); }

/* Nameserver Grid */
.ns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.ns-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--whois-bg-elevated);
    border-radius: var(--whois-radius-sm);
    font-size: 0.875rem;
    color: var(--whois-text-secondary);
    border: 1px solid var(--whois-border);
}

.ns-item svg, .ns-item i { color: var(--whois-primary); flex-shrink: 0; }

/* DNS Records Table */
.dns-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.dns-table th {
    text-align: left;
    padding: 0.625rem 0.875rem;
    background: var(--whois-bg-elevated);
    color: var(--whois-text);
    font-weight: 600;
    border-bottom: 2px solid var(--whois-border);
}

.dns-table td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--whois-border);
    color: var(--whois-text-secondary);
}

.dns-table tr:hover { background: var(--whois-bg-elevated); }

/* TXT Records */
.txt-record-item {
    padding: 0.75rem;
    background: var(--whois-bg-elevated);
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-sm);
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--whois-text-secondary);
    word-break: break-all;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.txt-record-item:last-child { margin-bottom: 0; }
.txt-record-item:hover { border-color: var(--whois-primary); }

.txt-label {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--whois-radius-full);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.5rem;
    letter-spacing: 0.3px;
}

.txt-label.spf { background: rgba(51,153,204,0.15); color: var(--whois-primary); }
.txt-label.dmarc { background: rgba(51,153,102,0.15); color: var(--whois-success); }
.txt-label.dkim { background: rgba(139,92,246,0.15); color: var(--whois-purple); }
.txt-label.verification { background: rgba(230,165,51,0.15); color: var(--whois-warning); }

/* Technology Grid */
.tech-grid { display: flex; flex-direction: column; gap: 1rem; }

.tech-category { display: flex; flex-direction: column; gap: 0.5rem; }

.tech-cat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--whois-text-muted);
}

.tech-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--whois-bg-elevated);
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--whois-text);
    transition: all 0.2s;
}

.tech-tag:hover { border-color: var(--whois-primary); color: var(--whois-primary); }
.tech-tag small { color: var(--whois-text-muted); font-weight: 400; }
.tech-tag svg, .tech-tag i { color: var(--whois-primary); flex-shrink: 0; }

/* Redirect Chain */
.redirect-chain { display: flex; flex-direction: column; gap: 0; }

.redirect-hop {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--whois-bg-elevated);
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-sm);
}

.redirect-hop.final { border-color: var(--whois-success); background: var(--whois-success-light); }

.hop-number {
    width: 28px; height: 28px;
    background: var(--whois-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.redirect-hop.final .hop-number { background: var(--whois-success); }

.hop-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.hop-url {
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--whois-text-secondary);
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.hop-time { font-size: 0.75rem; color: var(--whois-text-muted); font-weight: 600; white-space: nowrap; }

.redirect-arrow { display: flex; justify-content: center; padding: 0.25rem 0; color: var(--whois-text-muted); }

/* Security Header Row */
.sec-header-row { background: var(--whois-success-light); }

.headers-toggle { margin-bottom: 0.75rem; }

/* Reverse IP Grid */
.reverse-ip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.reverse-ip-item {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--whois-bg-elevated);
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-full);
    font-size: 0.825rem;
    color: var(--whois-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.reverse-ip-item:hover { border-color: var(--whois-primary); color: var(--whois-primary); background: var(--whois-primary-light); }

/* Raw WHOIS */
.toggle-raw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--whois-bg);
    border: 1px solid var(--whois-border);
    border-radius: var(--whois-radius-sm);
    color: var(--whois-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-raw-btn:hover { background: var(--whois-bg-elevated); border-color: var(--whois-primary); color: var(--whois-primary); }

.raw-whois {
    margin-top: 1rem;
    padding: 1rem;
    background: #1e293b;
    border-radius: var(--whois-radius-md);
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.8rem;
    color: #e2e8f0;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* Export Actions */
.export-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--whois-border);
    flex-wrap: wrap;
}

/* Bulk Results */
.bulk-results-container { text-align: left; }

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bulk-header h3 { margin: 0; font-size: 1.25rem; color: var(--whois-text); }

.bulk-count {
    background: var(--whois-primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--whois-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.bulk-table-wrapper {
    overflow-x: auto;
    border-radius: var(--whois-radius-md);
    border: 1px solid var(--whois-border);
}

.bulk-results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.bulk-results-table th {
    background: var(--whois-bg);
    color: var(--whois-text);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--whois-border);
    white-space: nowrap;
}

.bulk-results-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--whois-border); color: var(--whois-text-secondary); }
.bulk-results-table tr:hover { background: var(--whois-bg); }
.bulk-results-table tr.result-error { background: rgba(230,78,78,0.05); }
.error-cell { color: var(--whois-danger); font-style: italic; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.online { background: var(--whois-success); }
.status-dot.offline { background: var(--whois-danger); }
.ssl-valid { color: var(--whois-success); }
.ssl-warning { color: var(--whois-warning); }
.ssl-none { color: var(--whois-danger); }

/* Related Tools */
.related-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--whois-bg-elevated);
    border-radius: var(--whois-radius-lg);
    box-shadow: var(--whois-shadow-sm);
    flex-wrap: wrap;
}

.related-label { font-weight: 600; color: var(--whois-text); font-size: 0.9rem; }
.related-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--whois-bg);
    color: var(--whois-text-secondary);
    text-decoration: none;
    border-radius: var(--whois-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--whois-border);
}

.related-link:hover { background: var(--whois-primary); color: white; border-color: var(--whois-primary); transform: translateY(-2px); }
.related-link svg, .related-link i { flex-shrink: 0; }

/* Info Sections */
.info-sections { display: grid; gap: 2rem; margin-top: 3rem; }

.info-card {
    padding: 2rem;
}

.info-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    color: var(--whois-text);
    margin: 0 0 1.5rem;
}

.info-card h2 svg, .info-card h2 i { color: var(--whois-primary); flex-shrink: 0; }

.info-card p { color: var(--whois-text-secondary); line-height: 1.7; }
.info-card p a { color: var(--whois-primary); text-decoration: none; }
.info-card p a:hover { text-decoration: underline; }

/* Steps List */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }

.steps-list li {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 1.25rem;
    counter-increment: step;
    color: var(--whois-text-secondary);
    line-height: 1.6;
}

.steps-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(1rem - 1px);
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: var(--whois-primary-light);
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 2rem; height: 2rem;
    background: var(--whois-primary);
    color: white;
    border-radius: var(--whois-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
}

.steps-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--whois-primary-light);
    border-radius: var(--whois-radius-sm);
    color: var(--whois-text-secondary);
    font-size: 0.9rem;
}

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--whois-bg);
    border-radius: var(--whois-radius-md);
    border: 1px solid var(--whois-border);
    transition: all 0.2s;
}

.feature-item:hover { border-color: var(--whois-primary-light); box-shadow: var(--whois-shadow-sm); }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--whois-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.feature-icon.blue { background: var(--whois-primary); }
.feature-icon.green { background: var(--whois-success); }
.feature-icon.purple { background: var(--whois-purple); }
.feature-icon.orange { background: var(--whois-orange); }

.feature-content h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--whois-text); }
.feature-content p { margin: 0; font-size: 0.85rem; color: var(--whois-text-secondary); line-height: 1.5; }
.feature-content p a { color: var(--whois-primary); text-decoration: none; }
.feature-content p a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; }

.faq-item { border: 1px solid var(--whois-border); border-radius: var(--whois-radius-md); overflow: hidden; }

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--whois-bg);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--whois-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-question:hover { background: var(--whois-bg-elevated); }
.faq-question svg, .faq-question i { color: var(--whois-primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question svg, .faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1rem; background: var(--whois-bg-elevated); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: 0; color: var(--whois-text-secondary); line-height: 1.7; }

/* Responsive */
@media (max-width: 900px) {
    .result-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tool-container { padding: 1rem; }
    .tool-title-row { flex-direction: row; gap: 0.75rem; }
    .tool-icon-wrapper { width: 48px; height: 48px; }
    .tool-icon-wrapper svg, .tool-icon-wrapper i { width: 24px; height: 24px; }
    .input-section, .results-section { padding: 1.5rem; }
    .mode-tabs { flex-direction: column; }
    .search-box { flex-wrap: wrap; }
    .domain-input { font-size: 1rem; }
    .domain-age-box { flex-direction: column; text-align: center; }
    .age-display { padding-right: 0; padding-bottom: 1rem; border-right: none; border-bottom: 2px solid var(--whois-border); }
    .whois-controls { flex-direction: column; }
    .btn { width: 100%; }
    .related-tools { flex-direction: column; text-align: center; }
    .related-links { justify-content: center; }
    .result-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .result-row .value { text-align: left; max-width: 100%; }
    .result-header { flex-direction: column; gap: 1rem; text-align: center; }
    .ns-grid { grid-template-columns: 1fr; }
    .bulk-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .hop-details { flex-direction: column; }
}

@media (max-width: 480px) {
    .tool-title { font-size: 1.5rem; }
    .age-number { font-size: 2.5rem; }
    .steps-list li { padding-left: 3rem; }
    .feature-item { flex-direction: column; text-align: center; }
    .feature-icon { margin: 0 auto; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print */
@media print {
    .mode-tabs, .whois-controls, .export-actions, .share-btn-small, .toggle-raw-btn, .related-tools { display: none !important; }
    .tool-main { box-shadow: none; border: 1px solid #ccc; }
}
