/* Tool form + results */
.tool-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

.tool-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 6px
}

.tool-form button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #1d72ff;
    color: #fff
}

.wide-tool-form {
    max-width: 100%;
}

.wide-tool-form input {
    padding: 16px;
    font-size: 18px;
}

.wide-tool-form button {
    padding: 16px 32px;
    font-size: 16px;
    background: #1d72ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile: Stack tool form input and button */
@media (max-width: 600px) {

    .tool-form,
    .wide-tool-form {
        flex-direction: column;
    }

    .tool-form input,
    .wide-tool-form input {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .tool-form button,
    .wide-tool-form button {
        width: 100%;
        padding: 12px 16px;
    }

    .tool-input-section h1 {
        font-size: 24px;
    }

    .tool-description {
        font-size: 14px;
    }

    .content-article {
        padding: 16px;
    }

    .content-article h3 {
        font-size: 18px;
    }
}

/* Tool Input Section Container */
.tool-input-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.tool-input-section h1 {
    margin-bottom: 16px;
}

.tool-input-section .tool-description {
    margin-bottom: 32px;
    color: var(--text-muted);
}

.tool-input-section .input-label {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

/* Ping Results Table */
.ping-results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.ping-results-table thead th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.ping-results-table thead th:first-child {
    text-align: left;
    padding-left: 16px;
}

.ping-results-table tbody td {
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.ping-results-table tbody td:first-child {
    text-align: left;
    padding-left: 16px;
}

.ping-results-table tbody td.target-cell {
    font-weight: 600;
}

.ping-results-table tbody tr:last-child td {
    border-bottom: none;
}

.ping-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.ping-status-dot.success {
    background-color: #22c55e;
}

.ping-status-dot.error {
    background-color: #ef4444;
}

.ping-summary {
    margin-top: 20px;
    padding: 16px;
    background: var(--kv-header-bg);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.ping-summary p {
    margin: 4px 0;
}

.result-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 8px;
    margin-top: 8px;
    min-height: 80px;
    overflow-x: auto;
    max-width: 100%;
    color: var(--text-color);
}

/* Hide result box when empty (no content) */
.result-box:empty {
    display: none;
}

/* Mobile: reduce result-box padding */
@media (max-width: 600px) {
    .result-box {
        padding: 10px;
    }
}

button,
input[type="button"],
input[type="submit"],
.search-btn,
.primary-btn {
    cursor: pointer;
}

.output {
    background: #0f1724;
    color: #e6f0ff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 12px;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-color);
}

/* KV Table */
.kv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    table-layout: fixed;
}

.kv-table th {
    width: 220px;
    text-align: left;
    padding: 6px;
    background: var(--kv-header-bg);
    border-bottom: 1px solid var(--kv-border);
    color: var(--text-color);
    word-wrap: break-word;
}

.kv-table td {
    padding: 6px;
    border-bottom: 1px solid var(--kv-border);
    color: var(--text-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {

    /* Keep table display on mobile - use horizontal scroll instead of block reshape */
    .kv-table {
        display: table;
        width: 100%;
        font-size: 13px;
    }

    .kv-table th {
        width: 120px;
        min-width: 100px;
        padding: 8px;
    }

    .kv-table td {
        padding: 8px;
        word-break: break-word;
    }
}

.kv-list dt {
    font-weight: 600
}

.kv-list dd {
    margin: 0 0 8px 0
}

.summary {
    background: #f5f8fb;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px
}

/* Tools Grid - Photo Album Style (more columns horizontally) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tool-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #2874A6;
    transform: translateY(-4px);
}

.tool-card-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.tool-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    object-fit: contain;
}

/* VPN Tester Styles */
.vpn-tester-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    background: var(--card-bg);
}

.vpn-start-section {
    text-align: center;
    margin-bottom: 32px;
}

.vpn-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.vpn-result-card {
    background: var(--kv-header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

body.dark-mode .vpn-result-card,
body.dark-mode .webrtc-card {
    background: rgba(255, 255, 255, 0.05);
}

.vpn-card-title {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ============================================
   VPN TESTER REDESIGN - Progress Bar & Cards
   ============================================ */

/* Progress Bar Container */
.vpn-progress-container {
    margin: 32px 0;
    position: relative;
}

.vpn-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.vpn-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--kv-header-bg);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.vpn-progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 -10px;
    margin-bottom: 28px;
}

/* Progress Step States */
.vpn-progress-step.active .step-circle {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
    animation: pulse 1.5s infinite;
}

.vpn-progress-step.active .step-label {
    color: #2563eb;
}

.vpn-progress-step.complete .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.vpn-progress-step.complete .step-label {
    color: #10b981;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

/* Start Button */
.vpn-start-section {
    text-align: center;
    padding: 40px 20px;
}

.vpn-start-btn {
    font-size: 18px;
    padding: 16px 48px;
    border-radius: 10px;
    background: #27619B;
    transition: all 0.3s ease;
}

.vpn-start-btn:hover {
    box-shadow: 0 8px 20px rgba(39, 97, 155, 0.3);
}

/* Test Cards Grid */
.vpn-tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .vpn-tests-grid {
        grid-template-columns: 1fr;
    }
}

.vpn-test-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vpn-test-card.running {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.vpn-test-card.pass {
    border-color: #10b981;
}

.vpn-test-card.fail {
    border-color: #ef4444;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--kv-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.test-icon {
    font-size: 24px;
}

.test-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

/* Status Badges */
.test-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-muted);
}

.test-status-badge.running {
    background: #dbeafe;
    color: #1d4ed8;
    animation: pulse-badge 1.5s infinite;
}

.test-status-badge.pass {
    background: #d1fae5;
    color: #047857;
}

.test-status-badge.fail {
    background: #fee2e2;
    color: #b91c1c;
}

.test-status-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

body.dark-mode .test-status-badge.running {
    background: rgba(37, 99, 235, 0.2);
}

body.dark-mode .test-status-badge.pass {
    background: rgba(16, 185, 129, 0.2);
}

body.dark-mode .test-status-badge.fail {
    background: rgba(239, 68, 68, 0.2);
}

body.dark-mode .test-status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
}

.test-content {
    padding: 16px;
}

.test-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.test-how-it-works {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--kv-header-bg);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.test-how-it-works strong {
    color: var(--text-color);
}

/* DNS Test Counter */
.dns-test-counter {
    background: #27619B;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 8px;
}

.dns-test-counter span {
    font-family: 'Courier New', monospace;
}

/* DNS Servers List */
.dns-servers-list {
    background: var(--kv-header-bg);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.dns-servers-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dns-server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.dns-server-item:last-child {
    border-bottom: none;
}

.dns-server-ip {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2563eb;
    font-size: 13px;
    min-width: 120px;
}

.dns-server-info {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
}

.dns-server-hits {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.dns-server-hits.warning {
    background: #f59e0b;
}

.dns-server-hits.danger {
    background: #ef4444;
}

.test-result {
    font-size: 14px;
    color: var(--text-color);
    min-height: 40px;
}

.test-result .result-ip {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2563eb;
    font-size: 16px;
}

.test-result .result-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.test-result .leak-warning {
    color: #ef4444;
    font-weight: 600;
}

.test-result .no-leak {
    color: #10b981;
    font-weight: 600;
}

/* Summary Card */
.vpn-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
    text-align: center;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.summary-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #27619B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.summary-score-circle.good {
    background: #10b981;
}

.summary-score-circle.warning {
    background: #f59e0b;
}

.summary-score-circle.bad {
    background: #ef4444;
}

.summary-title h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.summary-title p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

.summary-details {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-icon {
    font-size: 20px;
}

.summary-item-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

/* VPN Blog Section */
.vpn-blog-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.vpn-blog-section h2 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.vpn-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .vpn-blog-grid {
        grid-template-columns: 1fr;
    }
}

.vpn-blog-article {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.vpn-blog-article h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.vpn-blog-article p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.vpn-blog-article ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
}

.vpn-blog-article li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.vpn-blog-article li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #27619B;
    font-weight: bold;
}

.vpn-blog-article li strong {
    color: var(--text-color);
}

.blog-tip {
    background: #f0f9ff;
    border-left: 4px solid #27619B;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #1e40af;
}

body.dark-mode .blog-tip {
    background: rgba(39, 97, 155, 0.15);
    color: #63b3ed;
}

/* Fixes Section */
.vpn-fixes-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.vpn-fixes-section h3 {
    text-align: center;
    font-size: 22px;
    margin: 0 0 24px 0;
    color: var(--text-color);
}

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

@media (max-width: 900px) {
    .fixes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fixes-grid {
        grid-template-columns: 1fr;
    }
}

.fix-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fix-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #27619B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.fix-content strong {
    display: block;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.fix-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   WHAT IS MY IP - Card Styles
   ============================================ */

.my-ip-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.my-ip-main {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.my-ip-label {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

/* Row layout for IPv4/IPv6 */
.my-ip-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(39, 97, 155, 0.08);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.my-ip-row:last-child {
    margin-bottom: 0;
}

.my-ip-type-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

.my-ip-value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #27619B;
    word-break: break-all;
    flex: 1;
    text-align: left;
}

body.dark-mode .my-ip-value {
    color: #63b3ed;
}

body.dark-mode .my-ip-row {
    background: rgba(99, 179, 237, 0.1);
}

.copy-ip-btn {
    background: #27619B;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.copy-ip-btn.small {
    padding: 6px 12px;
}

.copy-ip-btn:hover {
    background: #1e4b7a;
}

.copy-ip-btn.copied {
    background: #10b981;
}

.copy-icon-dark {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.copy-check {
    font-size: 14px;
}

.my-ip-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .my-ip-details-grid {
        grid-template-columns: 1fr;
    }

    .my-ip-row {
        flex-wrap: wrap;
    }

    .my-ip-value {
        font-size: 18px;
    }
}

.my-ip-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.my-ip-detail .detail-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.my-ip-detail .detail-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.my-ip-detail .detail-text {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

/* ============================================
   RELATED TOOLS - Horizontal Links Section
   ============================================ */

.related-tools-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.related-tools-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.related-tools-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.related-tool-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    position: relative;
}

.related-tool-link:hover {
    text-decoration: underline;
}

.related-tool-link:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ============================================
   MORE TOOLS - Grid Section
   ============================================ */

.more-tools-section {
    margin: 24px 0;
}

.more-tools-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.more-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.more-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.more-tool-btn:hover {
    background: var(--kv-header-bg);
    border-color: #27619B;
    color: #27619B;
}

.more-tool-btn.all-tools-btn {
    background: #27619B;
    color: white;
    border-color: #27619B;
}

.more-tool-btn.all-tools-btn:hover {
    background: #1e4b7a;
}

/* ============================================
   CONTEXTUAL LINKS - Inline content links
   ============================================ */

.contextual-link {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--link-color);
    transition: all 0.2s ease;
}

.contextual-link:hover {
    border-bottom-style: solid;
    opacity: 0.8;
}

/* ============================================
   ASN LOOKUP - Results Styling
   ============================================ */

.asn-result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.asn-header {
    background: #27619B;
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.asn-number {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.asn-name {
    font-size: 16px;
    opacity: 0.9;
}

.asn-details {
    padding: 24px;
}

.asn-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.asn-detail-row:last-child {
    border-bottom: none;
}

.asn-detail-label {
    width: 150px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.asn-detail-value {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
}

/* ============================================
   ADVANCED TOGGLE SWITCH
   ============================================ */

.advanced-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: #27619B;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 2px rgba(39, 97, 155, 0.3);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.toggle-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .advanced-toggle-container {
        flex-wrap: wrap;
    }
}

/* Blacklist Form Layout */
.blacklist-form {
    flex-direction: column;
    gap: 0;
}

.form-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.form-input-row input {
    flex: 1;
}

@media (max-width: 600px) {
    .form-input-row {
        flex-direction: column;
    }
}

/* Advanced Tools Section */
.advanced-tools-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.advanced-tools-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.advanced-tools-section .section-description {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

.tool-card.advanced-card {
    border-left: 4px solid #27619B;
}

.tool-card.advanced-card:hover {
    border-left-color: #1d4f7d;
}

/* CAPTCHA Container */
.captcha-container {
    margin: 16px 0 24px 0;
}

.captcha-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

/* Tools Grid Page Layout */
.tools-grid-page h1 {
    margin-top: 40px;
    margin-bottom: 8px;
}

.page-description {
    color: var(--text-muted);
    margin-bottom: 8px;
}