/**
 * Main Stylesheet - SaberCualEsMiIP.com
 * Modern, minimal, elegant design
 */

/* ==================== CSS VARIABLES ==================== */

:root {
    /* Clean Blue Color Palette */
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-primary-light: #e3f2fd;

    --color-secondary: #2ecc71;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;

    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-elevated: #ffffff;

    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-text-muted: #7f8c9a;

    --color-border: #e1e8ed;
    --color-border-light: #f1f5f9;

    /* Typography */
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, monospace;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-primary-light: #1a5a7f;

    --color-secondary: #2ecc71;
    --color-warning: #f39c12;

    --color-bg: #1a1f2e;
    --color-surface: #2c3e50;
    --color-elevated: #34495e;

    --color-text: #ecf0f1;
    --color-text-light: #bdc3c7;
    --color-text-muted: #95a5a6;

    --color-border: #34495e;
    --color-border-light: #2c3e50;

    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
}

[data-theme="dark"] .header {
    background: rgba(44, 62, 80, 0.98);
}

[data-theme="dark"] .hero {
    background: linear-gradient(to bottom, #1a1f2e 0%, #2c3e50 100%);
}

/* ==================== RESET ==================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin-top: 2rem;
}

h2 { font-size: 1.875rem; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Page title specific spacing */
.container > h1:first-child,
main > .container > h1:first-child {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .container > h1:first-child,
    main > .container > h1:first-child {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Internal page content styling */
.container > p,
.container > ul,
.container > ol,
.container > h2,
.container > h3 {
    max-width: 100%;
}

.container > h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.container > h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.container > ul,
.container > ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.container > ul li,
.container > ol li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.container > ul li strong,
.container > ol li strong {
    color: var(--color-text);
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: var(--color-primary-dark);
}

strong {
    font-weight: 600;
    color: var(--color-text);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-surface);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

pre {
    background: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ==================== LAYOUT ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

.section {
    padding: var(--space-12) 0;
}

@media (min-width: 768px) {
    .section { padding: var(--space-16) 0; }
}

/* ==================== HEADER ==================== */

.header {
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--color-text);
}

.logo-text span {
    color: var(--color-primary);
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: var(--space-2);
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-elevated);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        transition: transform 0.3s var(--ease-in-out);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: var(--space-4);
        border-top: 1px solid var(--color-border);
    }

    .menu-toggle {
        display: block;
    }
}


/* ==================== HERO ==================== */

.hero {
    background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
    border-bottom: 1px solid var(--color-border);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 40px 50px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 40px 20px;
        gap: 30px;
    }
}

.hero-content {
    text-align: left;
}

@media (max-width: 1024px) {
    .hero-content {
        text-align: center;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 38px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
}

.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 16px;
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1024px) {
    .hero-features {
        align-items: center;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 15px;
}

.hero-feature-icon {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

/* IP Card - Clean Style */
.ip-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ip-content {
    position: relative;
}

.ip-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ip-address {
    font-size: 48px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    padding: 20px 0;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    word-break: break-all;
}

@media (max-width: 768px) {
    .ip-address {
        font-size: 36px;
    }
}

.ip-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.ip-meta-item {
    text-align: left;
}

.ip-meta-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ip-meta-value {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
}

.ip-actions,
.ip-buttons {
    display: flex;
    gap: 12px;
    justify-content: stretch;
}

.ip-actions .btn,
.ip-buttons .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .ip-actions,
    .ip-buttons {
        flex-direction: column;
    }
}

/* ==================== BUTTONS ==================== */

.btn {
    padding: 12px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.btn-success {
    background: var(--color-secondary);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* ==================== BADGES ==================== */

.info-badges {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
}

.badge-icon {
    font-size: 1rem;
}

.badge.vpn-detected {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--color-danger);
}

[data-theme="dark"] .badge.vpn-detected {
    background: #3a1e1e;
    border-color: #5a2e2e;
}

.badge.vpn-safe {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--color-secondary);
}

[data-theme="dark"] .badge.vpn-safe {
    background: #1e3a2e;
    border-color: #2e5a4e;
}

/* ==================== SECTIONS ==================== */

.section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-description,
.section-subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ==================== INFO GRID ==================== */

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

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

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

.info-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.info-card:hover {
    border-color: var(--color-primary);
}

.info-card-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card-value {
    font-size: 22px;
    color: var(--color-text);
    font-weight: 600;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.info-card-icon {
    font-size: 1.5rem;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid var(--color-border-light);
}

.info-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.info-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: right;
}

/* ==================== MAP ==================== */

.map-container {
    height: 28rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: none; /* Hidden by default */
}

.map-container.show {
    display: block;
}

#map {
    width: 100%;
    height: 100%;
}

/* ==================== CONTENT ==================== */

/* ==================== CONTENT GRID ==================== */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

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

.content-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 4px;
}

.content-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.content-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-card ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-card li {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

/* Content Section - Full Width */
.content-section {
    background: white;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-section ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

/* System Info Sidebar */
.system-info {
    background: var(--color-text);
    color: white;
}

.system-info h3 {
    color: white;
}

.system-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.system-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.system-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.system-value {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 35px;
    border-radius: 4px;
    text-align: center;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Detail Table */
.detail-table {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
}

.detail-table-header {
    background: var(--color-bg);
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-border);
}

.detail-table-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-border);
}

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

.detail-row:hover {
    background: var(--color-bg);
}

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

.detail-value {
    color: var(--color-text);
    font-weight: 600;
    font-size: 15px;
}

/* ==================== TABLES ==================== */

.table-container,
.container > table {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 2rem;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-bg);
}

/* Make container tables look good */
.container > .table-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* ==================== FAQ ==================== */

.faq-container {
    max-width: 56rem;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-5);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: background 0.2s var(--ease-out);
}

.faq-question:hover {
    background: var(--color-surface);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.2s var(--ease-out);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-in-out);
}

.faq-item.active .faq-answer {
    max-height: 40rem;
    padding: 0 var(--space-5) var(--space-5);
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ==================== FORMS ==================== */

.form-group {
    margin-bottom: var(--space-5);
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-out);
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--color-text-muted);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

textarea {
    resize: vertical;
    min-height: 6rem;
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 40px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 30px;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-brand {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-brand span {
    color: var(--color-primary);
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
}

/* ==================== UTILITIES ==================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }
.mb-4 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-8); }

.hidden { display: none; }

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-surface) 0%,
        var(--color-border) 50%,
        var(--color-surface) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade In */
.fade-in {
    animation: fadeIn 0.4s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    min-width: 20rem;
    padding: var(--space-4) var(--space-5);
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: 0.9375rem;
    z-index: 100;
    animation: slideIn 0.3s var(--ease-out);
}

@keyframes slideIn {
    from { transform: translateX(24rem); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success {
    border-left: 4px solid var(--color-secondary);
}

.toast-error {
    border-left: 4px solid var(--color-danger);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
    .ip-card {
        padding: 2rem;
    }

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

    .ip-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .ip-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .details-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
