* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #fff;
    min-width: 320px;
    width: 100%;
    padding: 0;
    margin: 0;
}
.main-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 10px;
}
.main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.main-container {
    width: 100%;
}
.page-header {
    text-align: center;
    margin: 5px 0 20px;
    padding: 0;
    position: relative;
}
.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.page-subtitle {
    font-size: 15px;
    color: #4a5568;
    margin-top: 4px;
    font-weight: 500;
}
.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 25px 0;
}
.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(32,33,36,0.28);
    transition: box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}
.search-input-wrapper:hover {
    box-shadow: 0 4px 16px rgba(32,33,36,0.35);
}
.search-input-wrapper:focus-within {
    box-shadow: 0 6px 20px rgba(32,33,36,0.4);
}
.wt_iptool_search_input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #2d3748;
}
.wt_iptool_search_input::placeholder {
    color: #718096;
}
.search-icon-wrapper {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
}
.search-icon {
    width: 35px;
    height: 35px;
    fill: #4299e1;
}
.wt_iptool_search_error {
    background: #fed7d7;
    color: #c53030;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 5px auto;
    font-size: 13px;
    border: 1px solid #fc8181;
    display: none;
    max-width: 500px;
    font-weight: 500;
}
.loading-state {
    text-align: center;
    padding: 25px;
    color: #4a5568;
    font-size: 15px;
    background: white;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #edf2f7;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.results-container {
    display: none;
    width: 100%;
}
.risk-color-0 {
    color: #718096;
}
.risk-color-low {
    color: #0f9d58;
    font-weight: 600;
}
.risk-color-medium {
    color: #f57c00;
    font-weight: 600;
}
.risk-color-high {
    color: #e53935;
    font-weight: 600;
}
.risk-color-very-high {
    color: #c62828;
    font-weight: 700;
}
.boolean-true {
    color: #ff0000;
    font-weight: 600;
}
.boolean-false {
    color: #00b72e;
    font-weight: 600;
}
.summary-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.summary-card {
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    border-radius: 10px;
    padding: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
}
.card-title {
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.9;
}
.card-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
}
.score-bar {
    height: 10px;
    background: #edf2f7;
    border-radius: 5px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.score-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.score-0-19 {
    background: linear-gradient(90deg, #0f9d58, #34a853);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.score-20-39 {
    background: linear-gradient(90deg, #34a853, #fbbc05);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.score-40-59 {
    background: linear-gradient(90deg, #fbbc05, #f57c00);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.score-60-79 {
    background: linear-gradient(90deg, #f57c00, #e53935);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.score-80-100 {
    background: linear-gradient(90deg, #e53935, #c62828);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}
.details-area {
    width: 100%;
}
.info-section {
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #b4d4ff;
    position: relative;
    overflow: hidden;
}
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 10px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}
.detail-item {
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #70adff;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}
.detail-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.detail-label {
    font-size: 14px;
    color: #0e0057;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    opacity: 0.9;
}
.detail-value {
    font-size: 14px;
    color: #000000;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    word-break: break-word;
    line-height: 1.5;
    font-weight: 500;
}
.nested-object {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #cbd5e0;
}
.nested-item {
    margin-bottom: 6px;
    padding: 4px 0;
}
.nested-label {
    font-size: 11px;
    color: #4a5568;
    font-weight: 600;
    opacity: 0.9;
}
.nested-value {
    font-size: 13px;
    color: #2d3748;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 500;
}
.array-container {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
}
.array-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #4a5568;
}
.array-item:last-child {
    margin-bottom: 0;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 3px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.tag-risk-low {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #10b981;
}
.tag-risk-medium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #f59e0b;
}
.tag-risk-high {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-risk-very-high {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #7f1d1d;
    border-color: #dc2626;
}
.tag-vpn {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-datacenter {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-proxy {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-clean {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #10b981;
}
.tag-warning {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.tag-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #00b72e;
    border-color: #10b981;
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.status-ok {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #10b981;
}
.status-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.status-live {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
    border-color: #3b82f6;
}
.status-test {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #f59e0b;
}
.external-link {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #4299e1;
}
.external-link:hover {
    text-decoration: none;
    color: #3182ce;
    border-bottom: 1px solid #3182ce;
}
.api-info-item {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    border: 1px solid #90cdf4;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #2b6cb0;
    font-weight: 500;
}
.api-status {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.api-status-item {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}
.api-status-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #10b981;
}
.api-status-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}
.code-block {
    background: linear-gradient(145deg, #f7fafc, #edf2f7);
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 12px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    color: #2d3748;
}
.map-link {
    display: inline-block;
    margin-top: 8px;
    color: #4299e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px dashed #4299e1;
}
.map-link:hover {
    color: #3182ce;
    border-bottom: 1px solid #3182ce;
}
.hidden {
    display: none;
}
@media (max-width: 350px) {
    .wt_iptool_search_form {
        flex-direction: column;
    }
    .wt_iptool_search_input {
        width: 100%;
    }
    .page-title {
        font-size: 20px;
    }
    .card-value {
        font-size: 20px;
    }
}
@media (max-width: 450px) {
    .page-title {
        font-size: 22px;
    }
    .search-box {
        max-width: 100%;
    }
    .wt_iptool_search_error {
        max-width: 100%;
    }
    .summary-card,
    .info-section {
        padding: 16px;
    }
}
@media (min-width: 451px) and (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .search-box {
        width: 500px;
    }
    .main-wrapper {
        padding: 20px;
    }
}
@media (min-width: 1025px) {
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}