* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #03060b;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* Header */
.header {
    margin-bottom: 40px;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 40px;
    border: 1px solid transparent;
}

.back-link:hover {
    background: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateX(-3px);
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.logo-small .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(145deg, #fff, #6ea5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-small .logo-badge {
    background: #0d6efd;
    color: #03060b;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.title-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.title-text .subtitle {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Tracker Container */
.tracker-container {
    background: rgba(8, 18, 28, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 30px;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 60px;
    padding: 5px;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.input-icon {
    padding: 0 15px;
    color: #0d6efd;
    font-size: 1.1rem;
}

.ip-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.ip-input::placeholder {
    color: #666;
}

.track-btn {
    background: #0d6efd;
    border: none;
    color: #03060b;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.track-btn:hover {
    background: transparent;
    color: #0d6efd;
    border-color: #0d6efd;
    transform: translateX(2px);
}

.input-hint {
    margin-top: 10px;
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(13, 110, 253, 0.1);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    margin-bottom: 20px;
}

.error-message.hidden {
    display: none;
}

/* Result Section */
.result-section {
    animation: fadeIn 0.5s ease;
}

.result-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.info-card.primary {
    background: rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.info-label i {
    color: #0d6efd;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
}

.section-title i {
    color: #0d6efd;
}

/* ISP Section */
.isp-section {
    margin-bottom: 25px;
}

.isp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.isp-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
}

.isp-label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.isp-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Security Section */
.security-section {
    margin-bottom: 25px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
}

.security-label {
    color: #888;
    font-size: 0.9rem;
}

.security-badge {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.security-badge.true {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.security-badge.false {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

/* Map Section */
.map-section {
    margin-bottom: 25px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

#map-frame {
    width: 100%;
    height: 100%;
}

.map-note {
    margin-top: 10px;
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Raw Data */
.raw-data {
    margin-top: 20px;
}

.toggle-raw {
    background: transparent;
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #0d6efd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    width: fit-content;
}

.toggle-raw:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

.raw-json {
    background: #0a0f17;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a5d8ff;
    max-height: 300px;
    overflow-y: auto;
}

.raw-json.hidden {
    display: none;
}

/* Examples Section */
.examples-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(13, 110, 253, 0.2);
}

.examples-label {
    color: #888;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.example-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.example-btn {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #b0b0b0;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.example-btn:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #fff;
    border-color: #0d6efd;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(13, 110, 253, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .track-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .example-buttons {
        flex-direction: column;
    }
    
    .example-btn {
        width: 100%;
        justify-content: center;
    }
}