/* CSS Custom Properties - Dark Theme */
:root {
    --primary-color: #6ee7b7;
    --primary-hover: #34d399;
    --primary-light: rgba(110, 231, 183, 0.15);
    --primary-glow: rgba(110, 231, 183, 0.3);
    --secondary-color: #94a3b8;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --surface-color: rgba(26, 26, 36, 0.8);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(110, 231, 183, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --gradient-primary: linear-gradient(135deg, rgba(110, 231, 183, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(110, 231, 183, 0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* App Layout */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    pointer-events: none;
    z-index: 0;
}

.app-main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Global Header Navigation */
.site-header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.header-logo svg {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.header-logo span {
    display: none;
}

@media (min-width: 480px) {
    .header-logo span {
        display: inline;
    }
}

/* Desktop Navigation */
.header-nav-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 900px) {
    .header-nav-desktop {
        display: flex;
    }
}

.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-dropdown-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-dropdown-menu a.active {
    color: var(--primary-color);
}

.header-nav-desktop .nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.header-nav-desktop .nav-link:hover,
.header-nav-desktop .nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-glass-hover);
}

@media (min-width: 900px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.mobile-menu a:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.mobile-menu a.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Global Footer */
.global-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: var(--primary-color);
}

.footer-logo span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-divider {
    width: 4px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
}

/* Page Container */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.page-content {
    position: relative;
}

/* Animated Background - Keep for backwards compatibility */
.ip-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background: var(--bg-primary);
}

.ip-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    pointer-events: none;
    z-index: 0;
}

.ip-container::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(110, 231, 183, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.02) 0%, transparent 30%);
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

/* Header Styles */
.site-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: transparent;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-header h1 svg,
.logo-icon {
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.tagline {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 1.5rem 1rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-secondary);
    margin: 0;
}

/* Glass Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--surface-border-hover);
    box-shadow: var(--shadow-lg);
}

/* IP Cards */
.ip-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ip-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ip-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.ip-card:hover::before {
    opacity: 0.5;
}

.ip-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ip-icon {
    color: var(--primary-color);
}

.ip-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ip-address {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--text-primary);
    word-break: break-all;
    letter-spacing: -0.02em;
}

.ip-address.ipv6 {
    font-size: 1rem;
}

.ip-not-available {
    color: var(--text-tertiary);
    font-style: italic;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Map Section */
.map-section {
    margin-bottom: 2rem;
}

.map-section h2,
.ip-details h2,
.results-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-icon {
    color: var(--primary-color);
}

.map-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
    filter: grayscale(30%) brightness(0.9);
}

/* Details Grid */
.ip-details {
    margin-bottom: 2rem;
}

.details-grid {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    overflow: hidden;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
    transition: background 0.2s ease;
}

.detail-item:hover {
    background: var(--bg-glass-hover);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.monospace {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover:not(:disabled) {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.refresh-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

/* Primary Button */
.primary-btn,
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.primary-btn:hover:not(:disabled),
.search-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-1px);
}

.primary-btn:active:not(:disabled),
.search-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled,
.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secondary/Outline Button */
.secondary-btn,
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.secondary-btn:hover,
.nav-link:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Navigation Section */
.nav-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Ad Container */
.ad-container {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    max-width: 728px;
    width: 100%;
}

.ad-top {
    border-bottom: 1px solid var(--border-light);
}

.ad-bottom {
    border-top: 1px solid var(--border-light);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-light);
}

.site-footer p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.site-footer .disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 240px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.nav-menu.open .nav-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-section-title {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-glass-hover);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-item svg {
    opacity: 0.7;
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-glow);
}

.search-input.input-error {
    border-color: var(--error-color);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 15, 0.3);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.validation-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

/* Examples Section */
.examples-section {
    margin-bottom: 2rem;
    text-align: center;
}

.examples-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.results-header h2 {
    margin: 0;
}

.copy-result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-result-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

.results-section .map-container {
    margin-bottom: 1rem;
}

/* Error Section */
.error-section {
    margin-bottom: 2rem;
}

.error-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.error-icon {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.error-card h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.error-card p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.retry-btn {
    display: inline-flex;
}

/* Info Section */
.info-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-section p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.info-section ul, .info-section ol {
    color: var(--text-secondary);
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.info-section li {
    margin-bottom: 0.375rem;
}

/* Blacklist Check Specific */
.blacklist-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.summary-card.summary-warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.summary-card.summary-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.summary-warning .summary-number { color: var(--warning-color); }
.summary-success .summary-number { color: var(--success-color); }
.summary-neutral .summary-number { color: var(--text-primary); }

.summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-color);
}

.blacklist-table {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blacklist-table .table-header {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0.875rem 1.25rem;
    background: var(--bg-glass);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.blacklist-table .table-row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background 0.2s ease;
}

.blacklist-table .table-row:hover {
    background: var(--bg-glass-hover);
}

.blacklist-table .table-row:last-child {
    border-bottom: none;
}

.blacklist-table .row-listed {
    background: rgba(239, 68, 68, 0.1);
}

.blacklist-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-listed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.status-clean {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

/* Speed Test Specific */
.speedtest-section {
    min-height: 300px;
}

.speedtest-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
}

.speedtest-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px var(--primary-glow);
}

.speedtest-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--primary-glow);
}

.speedtest-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.speedtest-note {
    margin-top: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.speedtest-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.speed-gauge {
    text-align: center;
    margin-bottom: 2rem;
}

.gauge-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 30px var(--primary-glow);
}

.gauge-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.progress-status {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.speedtest-results {
    padding: 1rem 0;
}

.speed-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.speed-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.speed-card svg {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.speed-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.speed-unit {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.speed-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.speed-rating {
    text-align: center;
    margin-bottom: 1.5rem;
}

.speed-rating h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.rating-value {
    font-weight: 700;
}

.rating-excellent { color: var(--success-color); }
.rating-good { color: #4ade80; }
.rating-fair { color: var(--warning-color); }
.rating-slow { color: var(--error-color); }

.retest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retest-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Traceroute Table */
.resolved-ip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.traceroute-table {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.traceroute-table .table-header {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 80px;
    padding: 0.875rem 1.25rem;
    background: var(--bg-glass);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    min-width: 500px;
}

.traceroute-table .table-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 80px;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    min-width: 500px;
    transition: background 0.2s ease;
}

.traceroute-table .table-row:hover {
    background: var(--bg-glass-hover);
}

.traceroute-table .table-row:last-child {
    border-bottom: none;
}

.traceroute-table .row-success {
    background: rgba(34, 197, 94, 0.1);
}

.col-hop { text-align: center; color: var(--text-tertiary); }
.col-ip { color: var(--text-primary); }
.col-host { color: var(--text-secondary); }
.col-time { text-align: right; color: var(--primary-color); }

/* Port Checker Specific */
.port-input-section {
    margin-top: 1rem;
}

.port-input-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.port-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preset-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.preset-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.port-custom-input {
    margin-bottom: 1rem;
}

.search-btn.full-width {
    width: 100%;
}

.port-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.port-count {
    font-weight: 600;
}

.port-count.open { color: var(--success-color); }
.port-count.closed { color: var(--text-tertiary); }

.port-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.port-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.port-card:hover {
    border-color: var(--surface-border-hover);
}

.port-card.port-open {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.port-card.port-closed {
    opacity: 0.6;
}

.port-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.port-service {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin: 0.25rem 0;
    text-transform: uppercase;
}

.port-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.port-open .port-status { color: var(--success-color); }
.port-closed .port-status { color: var(--text-tertiary); }

/* DNS Lookup Specific */
.dns-records {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dns-record-section {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dns-record-section h4 {
    padding: 0.875rem 1.25rem;
    background: var(--bg-glass);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.record-list {
    padding: 0.5rem;
}

.record-item {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.record-item:hover {
    background: var(--bg-glass-hover);
}

.txt-record {
    word-break: break-all;
    font-size: 0.8rem;
}

/* WHOIS Specific */
.raw-data-section {
    margin-top: 1.5rem;
}

.raw-data-section h4 {
    margin: 0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.toggle-btn:hover {
    text-decoration: underline;
}

.raw-data {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-family: 'SF Mono', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text-secondary);
}

/* User Agent Specific */
.ua-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ua-card h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ua-string {
    font-size: 0.85rem;
    word-break: break-all;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.copy-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn-inline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

/* HTTP Headers Specific */
.headers-table {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.header-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-light);
}

.header-row:last-child {
    border-bottom: none;
}

.header-row:hover {
    background: var(--bg-glass-hover);
}

.header-name {
    padding: 0.875rem 1.25rem;
    background: var(--bg-glass);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary-color);
    border-right: 1px solid var(--border-light);
}

.header-value {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-secondary);
}

/* Content Pages */
.content-page {
    max-width: 900px;
}

.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-card svg {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checklist-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checklist-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.tool-card:hover {
    border-color: var(--surface-border-hover);
}

.tool-card h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

.numbered-list {
    padding-left: 1.5rem;
}

.numbered-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* About IP Page Specific */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.comparison-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--primary-color);
}

.ip-example {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    word-break: break-all;
    color: var(--text-primary);
}

.comparison-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.comparison-card li {
    margin-bottom: 0.375rem;
    color: var(--text-secondary);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.info-card h4 svg {
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
}

.example-text {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--primary-color);
}

.definition-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.definition-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.definition-item h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--primary-color);
}

.definition-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

.glossary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.glossary-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.glossary-item strong {
    flex-shrink: 0;
    color: var(--primary-color);
    min-width: 70px;
}

.glossary-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Blazor Error UI */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    text-align: center;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
    color: var(--text-tertiary);
}

#blazor-error-ui .dismiss:hover {
    color: var(--text-primary);
}

.blazor-error-boundary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    color: var(--error-color);
    border-radius: var(--radius-md);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Form validation styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--error-color);
}

.validation-message {
    color: var(--error-color);
}

/* Responsive - Tablet */
@media (min-width: 640px) {
    .site-header {
        padding: 5rem 2rem 3rem;
    }

    .site-header h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 2rem;
    }

    .ip-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-address {
        font-size: 1.75rem;
    }

    .ip-address.ipv6 {
        font-size: 1.1rem;
    }

    .search-container {
        flex-direction: row;
    }

    .search-btn {
        flex-shrink: 0;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .site-header h1 {
        font-size: 3rem;
    }

    .main-content {
        padding: 2.5rem;
    }

    .ip-card {
        padding: 2rem;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Responsive - Mobile adjustments */
@media (max-width: 639px) {
    .speed-cards {
        grid-template-columns: 1fr;
    }

    .blacklist-summary {
        grid-template-columns: 1fr;
    }

    .header-row {
        grid-template-columns: 1fr;
    }

    .header-name {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-toggle span {
        display: none;
    }

    .nav-toggle {
        padding: 0.75rem;
    }

    .speedtest-btn {
        width: 140px;
        height: 140px;
    }

    .gauge-value {
        font-size: 3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text p:first-child {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        flex-direction: column;
        align-items: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-buttons .btn {
        flex: 1;
        max-width: 160px;
    }
}

/* Footer with Links */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.site-footer p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
}

/* Legal Pages Styling */
.legal-page h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-page h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-page li strong {
    color: var(--text-primary);
}

.cookie-table {
    margin: 1rem 0;
}

.cookie-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.cookie-row strong {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.cookie-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon svg {
    color: var(--primary-color);
}

.contact-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
}

/* About Page */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon svg {
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.benefits-list {
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.benefit-item svg {
    flex-shrink: 0;
    color: var(--success-color);
    margin-top: 0.25rem;
}

.benefit-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Styling */
.faq-list {
    margin: 1.5rem 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.faq-item a {
    color: var(--primary-color);
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text-primary);
}

.contact-info a {
    color: var(--primary-color);
}

/* ================================================
   BREADCRUMB NAVIGATION
   ================================================ */

.breadcrumb-nav {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ================================================
   HOMEPAGE - ENGAGING DESIGN STYLES
   ================================================ */

/* Homepage Container */
.home-page {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.3) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: 30%;
    right: -30px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: -30px;
    left: 40%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-title-line {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 auto;
    max-width: 500px;
}

/* Quick Tools Bar */
.quick-tools-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.quick-tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-tool-link:hover {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quick-tool-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quick-tools-bar {
        gap: 0.375rem;
        padding: 0.75rem 0.5rem 0;
    }

    .quick-tool-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .quick-tool-link svg {
        width: 14px;
        height: 14px;
    }
}

/* Home Layout - Full Width */
.home-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .home-layout {
        padding: 0 2rem 2rem;
    }
}

.home-main {
    min-width: 0;
    overflow: hidden;
}

/* Ad Unit Wrapper - AdSense Compliant */
.ad-unit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 1rem 0;
    overflow: hidden;
    box-sizing: border-box;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Ad Containers - Specific Sizes */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--bg-glass) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ad-728x90 {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-300x600 {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 250px;
    aspect-ratio: 300 / 600;
}

.ad-300x250 {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 150px;
    aspect-ratio: 300 / 250;
}

.ad-responsive {
    width: 100%;
    min-height: 90px;
    max-height: 250px;
    padding: 1.5rem 1rem;
}

.ad-leaderboard {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.ad-bottom-leaderboard {
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.ad-in-content {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

/* Sidebar ad containers - no sticky to prevent overflow */
.ad-sidebar,
.ad-sidebar-small,
.ad-sidebar-primary {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

/* Responsive ads for mobile */
@media (max-width: 767px) {
    .ad-728x90 {
        height: 60px;
        min-height: 50px;
    }

    .ad-300x600,
    .ad-300x250 {
        max-width: 100%;
        height: auto;
        min-height: 100px;
        aspect-ratio: auto;
    }

    .ad-responsive {
        min-height: 60px;
    }
}

/* IP Display Section */
.ip-display-section {
    margin-bottom: 2rem;
}

/* Large IP Card */
.ip-card-large {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ip-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.3;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.ip-card-content {
    position: relative;
    z-index: 1;
}

.ip-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ip-card-badge svg {
    opacity: 0.8;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ip-text {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    word-break: break-all;
}

.copy-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn-modern:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: scale(1.05);
}

.ipv6-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.ipv6-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.ipv6-value {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.copy-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn-small:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-header h2 svg {
    color: var(--primary-color);
}

.section-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Map Section Modern */
.map-section-modern {
    margin-bottom: 2rem;
}

.map-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(30%) brightness(0.85) contrast(1.1);
}

/* Details Section Modern */
.details-section-modern {
    margin-bottom: 2rem;
}

.refresh-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn-modern:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.refresh-btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-btn-modern svg.spinning {
    animation: spin 1s linear infinite;
}

.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: var(--surface-border-hover);
    background: var(--bg-glass-hover);
}

.detail-card .detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.detail-card .detail-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

/* Tools Section */
.tools-section {
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.tool-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.tool-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Privacy CTA Section */
.privacy-cta {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
    min-width: 200px;
}

.cta-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.cta-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cta-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.25rem;
}

.quick-links a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background: var(--bg-glass-hover);
    color: var(--primary-color);
    padding-left: 1rem;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .hero-section {
        padding: 2.5rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-line {
        font-size: 1.125rem;
    }

    .ip-text {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .ip-text {
        font-size: 3.5rem;
    }
}

@media (max-width: 639px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .ip-text {
        font-size: 1.75rem;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Homepage SEO Content Sections
   ============================================ */

/* Info Content Section (What Your IP Reveals, IPv4 vs IPv6) */
.info-content-section {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-content-section .section-header {
    margin-bottom: 1.5rem;
}

.info-content-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.info-content-section .section-header h2 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-content > p {
    margin: 0 0 1.5rem 0;
}

.info-content > p:last-child {
    margin-bottom: 0;
}

/* Info Grid (What Your IP Reveals) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.info-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--surface-border-hover);
}

.info-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
}

.info-item-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-item-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-note {
    padding: 1rem 1.25rem;
    background: rgba(110, 231, 183, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.info-note strong {
    color: var(--text-primary);
}

/* IPv4 vs IPv6 Comparison */
.ip-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ip-type-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.ip-type-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.ip-type-card .ip-example {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-bottom: 1rem;
    word-break: break-all;
    border: 1px solid var(--border-color);
}

.ip-type-card ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.ip-type-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ip-type-card ul li strong {
    color: var(--text-primary);
}

.ip-type-card > p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* More Tools Section */
.more-tools-section {
    margin-bottom: 2rem;
}

.more-tools-section .section-header {
    margin-bottom: 1.5rem;
}

.more-tools-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.more-tools-section .section-header h2 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.tools-grid-extended {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tool-card-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-card-small:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tool-card-small svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.tool-card-small span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.faq-section .section-header {
    margin-bottom: 1.5rem;
}

.faq-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-section .section-header h2 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--surface-border-hover);
}

.faq-item h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer ul li strong {
    color: var(--text-primary);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for SEO content */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .ip-comparison {
        grid-template-columns: 1fr;
    }

    .tools-grid-extended {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .info-content-section,
    .faq-section {
        padding: 1.25rem;
    }

    .info-content-section .section-header h2,
    .faq-section .section-header h2,
    .more-tools-section .section-header h2 {
        font-size: 1.25rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item-icon {
        margin: 0 auto;
    }

    .tools-grid-extended {
        grid-template-columns: 1fr;
    }

    .tool-card-small {
        justify-content: center;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }
}

/* ============================================
   Use Cases & Related Tools Sections
   ============================================ */

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.use-case-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.use-case-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--surface-border-hover);
}

.use-case-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.use-case-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Content Section h3 */
.info-content h3 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Related Tools Section */
.related-tools-section {
    margin-bottom: 2rem;
}

.related-tools-section .section-header {
    margin-bottom: 1.5rem;
}

.related-tools-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.related-tools-section .section-header h2 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Responsive use cases */
@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .related-tools-section .section-header h2 {
        font-size: 1.25rem;
    }
}
