* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050508;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger-bg: rgba(239, 68, 68, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 32px;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

header .pro {
    color: var(--accent);
    font-weight: 500;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
}

.header-controls {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-toggle, .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle {
    padding: 8px 12px;
}

.lang-toggle:hover, .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Glass Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -12px;
    margin-bottom: 20px;
}

/* Main IP Card */
.main-ip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 40px;
    text-align: center;
}

.main-ip-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: none;
}

.ip-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ip-display .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ip-address {
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.copy-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Flags Display */
.flags-display {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: none;
    transition: all 0.2s;
}

.flag-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.flag-item .flag {
    font-size: 1.5rem;
}

.flag-item .flag-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flag-item .flag-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.flag-item .flag-country {
    font-size: 0.95rem;
    font-weight: 500;
}

.flag-item.real {
    background: rgba(239, 68, 68, 0.08);
}

.flag-item.vpn {
    background: rgba(16, 185, 129, 0.08);
}

/* Status Badge */
.ip-meta {
    display: flex;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: none;
}

.status-badge.secure {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* VPN Promo Card */
.promo-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px 28px;
}

.promo-card.safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-icon {
    font-size: 2rem;
}

.promo-text {
    flex: 1;
    min-width: 200px;
}

.promo-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.promo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.promo-card.safe .promo-btn {
    background: linear-gradient(135deg, var(--success), #059669);
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.security-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.security-item .icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.security-item .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.security-item .title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.security-item .value {
    font-weight: 600;
    font-size: 0.95rem;
}

.security-item .value.safe {
    color: var(--success);
}

.security-item .value.warning {
    color: var(--warning);
}

.security-item .value.danger {
    color: var(--danger);
}

/* IP List */
.ip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.ip-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ip-item .ip {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.95rem;
}

.ip-item .type {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.ip-item .type.public {
    background: var(--danger-bg);
    color: var(--danger);
}

.ip-item .type.local {
    background: var(--success-bg);
    color: var(--success);
}

/* Geo Grid */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.geo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.geo-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.geo-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.geo-value {
    font-weight: 600;
    word-break: break-word;
    font-size: 0.95rem;
}

/* Browser Grid */
.browser-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.browser-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.browser-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.browser-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.browser-value {
    font-size: 0.9rem;
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: rgba(255, 255, 255, 0.8);
}

/* Headers */
.headers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.header-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.header-item .name {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-item .value {
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.header-item.suspicious {
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: var(--warning-bg);
}

.header-item.suspicious .name {
    color: var(--warning);
}

.no-headers {
    color: var(--success);
    padding: 20px;
    text-align: center;
    background: var(--success-bg);
    border-radius: 14px;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Loading */
.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

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

.card {
    animation: fadeIn 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }
.card:nth-child(6) { animation-delay: 0.5s; }

/* SEO Content */
.seo-content {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    line-height: 1.8;
}

.seo-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.seo-content h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 28px 0 14px;
    font-weight: 600;
}

.seo-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.seo-content li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 0.95rem;
}

.seo-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.seo-content strong {
    color: var(--text-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer .hint {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.4);
}

/* Map */
.map-container {
    margin-top: 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
}

/* Fingerprint */
.fingerprint-display {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fingerprint-hash {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    word-break: break-all;
    margin-bottom: 12px;
    font-weight: 600;
}

.fingerprint-uniqueness {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.uniqueness-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.uniqueness-value {
    color: var(--warning);
    font-weight: 600;
    font-size: 0.95rem;
}

.fingerprint-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.fingerprint-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.fp-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
}

/* Light Theme */
body.light-theme {
    --bg-primary: #f5f5f7;
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.5);
}

body.light-theme::before {
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 0, 0, 0.02), transparent);
}

body.light-theme .card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme header h1 {
    color: #1d1d1f;
}

body.light-theme .lang-toggle,
body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .lang-toggle:hover,
body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

body.light-theme ::selection {
    background: rgba(139, 92, 246, 0.3);
}

body.light-theme .ip-address {
    color: #1d1d1f !important;
}

body.light-theme .geo-value,
body.light-theme .browser-value,
body.light-theme .fp-value {
    color: #1d1d1f !important;
}

body.light-theme .geo-label,
body.light-theme .browser-label,
body.light-theme .fp-label,
body.light-theme .card-desc {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .security-item .title {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .security-item .value {
    color: #1d1d1f !important;
}

body.light-theme .label {
    color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme h2 {
    color: #1d1d1f !important;
}

body.light-theme .ip-item .ip {
    color: #1d1d1f !important;
}

body.light-theme .ip-item .type {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .header-item .name {
    color: var(--accent) !important;
}

body.light-theme .header-item .value {
    color: #1d1d1f !important;
}

body.light-theme .subtitle {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-theme footer p {
    color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .seo-content,
body.light-theme .seo-content p,
body.light-theme .seo-content li {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .seo-content h2,
body.light-theme .seo-content h3 {
    color: #1d1d1f !important;
}

body.light-theme .seo-content strong {
    color: #1d1d1f !important;
}

body.light-theme .header-item,
body.light-theme .fingerprint-item,
body.light-theme .fingerprint-display,
body.light-theme .ip-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .no-headers {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

body.light-theme .status-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-theme .status-badge.secure {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

body.light-theme .flag-label,
body.light-theme .uniqueness-label {
    color: var(--text-secondary);
}

body.light-theme .flag-country,
body.light-theme .fingerprint-hash {
    color: var(--text-primary);
}

body.light-theme .seo-content {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .map-container {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .loading {
    color: var(--text-secondary);
}

/* Mobile adjustments */
@media (max-width: 500px) {
    header h1 {
        font-size: 2.2rem;
    }

    .ip-address {
        font-size: 1.8rem;
    }

    .main-ip-card {
        padding: 28px 20px;
    }

    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .header-controls {
        position: static;
        transform: none;
        margin-top: 12px;
    }

    .header-top {
        flex-direction: column;
    }
}
