/* ========================================
   MIO INDIRIZZO IP - Styles
   Modern, Minimalist Dark/Light Theme
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0b10;
    --bg-secondary: #12131a;
    --bg-card: #171923;
    --bg-card-hover: #1e2030;
    --bg-hero: linear-gradient(135deg, #0a0b10 0%, #141628 50%, #0a0b10 100%);
    --bg-input: #1e2030;

    --text-primary: #e8eaed;
    --text-secondary: #9aa0b4;
    --text-muted: #636980;

    --accent: #00d4aa;
    --accent-hover: #00eabc;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-subtle: rgba(0, 212, 170, 0.08);

    --accent-secondary: #667eea;
    --accent-secondary-hover: #7c93ff;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    --header-height: 64px;
    --container-max: 1200px;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* Light Theme */
.light-theme {
    --bg-primary: #f7f8fc;
    --bg-secondary: #eef0f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f8fc;
    --bg-hero: linear-gradient(135deg, #f7f8fc 0%, #e8ecf4 50%, #f7f8fc 100%);
    --bg-input: #f0f2f7;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent: #059669;
    --accent-hover: #047857;
    --accent-glow: rgba(5, 150, 105, 0.1);
    --accent-subtle: rgba(5, 150, 105, 0.05);

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.06);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: background var(--transition-slow);
}

.light-theme .header {
    background: rgba(247, 248, 252, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.logo-text {
    white-space: nowrap;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    display: none;
}

@media (min-width: 768px) {
    .nav-link {
        display: block;
    }
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.dark-theme .icon-sun { display: block; }
.dark-theme .icon-moon { display: none; }
.light-theme .icon-sun { display: none; }
.light-theme .icon-moon { display: block; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: var(--bg-hero);
    padding: 48px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero {
        padding: 64px 0 56px;
    }
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
    position: relative;
}

.ip-display {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .ip-display {
        min-height: 100px;
        padding: 20px 48px;
    }
}

.ip-address {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-break: break-all;
}

.ip-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ip-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--accent-secondary-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--accent-subtle);
}

/* ========================================
   Ad Containers
   ======================================== */
.ad-container {
    padding: 16px 0;
    text-align: center;
    min-height: 50px;
}

.ad-container .adsbygoogle {
    margin: 0 auto;
}

.ad-top {
    border-bottom: 1px solid var(--border);
}

.ad-mid {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ad-bottom {
    border-top: 1px solid var(--border);
}

/* ========================================
   Info Section
   ======================================== */
.info-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .info-section {
        padding: 64px 0;
    }
}

.section-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

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

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ========================================
   Info Cards
   ======================================== */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 8px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 20px;
    gap: 12px;
    transition: background var(--transition);
}

.info-row:hover {
    background: var(--accent-subtle);
}

.info-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.info-value-small {
    font-size: 0.72rem;
    line-height: 1.4;
    max-height: 3.4em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skeleton loading */
.skeleton {
    position: relative;
    color: transparent !important;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
    min-height: 1.2em;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: shimmer 1.5s infinite;
}

.light-theme .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .map-section {
        padding: 64px 0;
    }
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-top: 24px;
}

.map-container {
    width: 100%;
    height: 300px;
    background: var(--bg-card);
}

@media (min-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* Leaflet dark theme override */
.dark-theme .leaflet-tile {
    filter: brightness(0.7) contrast(1.1) saturate(0.8);
}

.dark-theme .leaflet-control-zoom a {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

.dark-theme .leaflet-control-attribution {
    background: rgba(10, 11, 16, 0.8) !important;
    color: var(--text-muted) !important;
}

.dark-theme .leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .about-section {
        padding: 64px 0;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 32px;
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.about-usecases h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    transition: all var(--transition);
}

.usecase-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.usecase-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.usecase-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .faq-section {
        padding: 64px 0;
    }
}

.faq-list {
    max-width: 800px;
    margin: 32px auto 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item[open] {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    list-style: none;
    gap: 12px;
    transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

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

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 8px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .cookie-inner {
        padding: 0 32px;
    }
}

.cookie-text {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cookie-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.cookie-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 4px;
    transition: color var(--transition);
}

.cookie-link:hover {
    color: var(--accent);
}

/* Cookie Details Panel */
.cookie-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cookie-option {
    margin-bottom: 12px;
}

.cookie-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.cookie-toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    min-width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    margin-top: 2px;
}

.cookie-toggle-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform var(--transition), background var(--transition);
}

.cookie-toggle-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.cookie-toggle-label input[type="checkbox"]:checked::after {
    transform: translateX(18px);
    background: #fff;
}

.cookie-toggle-label input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-option-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.cookie-option-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-details-actions {
    margin-top: 12px;
}

/* When cookie banner is visible, push toast up */
.cookie-banner.visible ~ .toast.show {
    bottom: 200px;
}

/* ========================================
   PDF Styles (for generated PDF)
   ======================================== */
.pdf-container {
    font-family: 'Helvetica', 'Arial', sans-serif;
    padding: 30px;
    color: #1a1a1a;
    background: #ffffff;
    max-width: 800px;
}

.pdf-header {
    text-align: center;
    border-bottom: 2px solid #059669;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.pdf-header h1 {
    font-size: 22px;
    color: #059669;
    margin-bottom: 4px;
}

.pdf-header p {
    font-size: 12px;
    color: #666;
}

.pdf-ip {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    margin: 16px 0 24px;
    font-family: monospace;
}

.pdf-section {
    margin-bottom: 20px;
    break-inside: avoid;
}

.pdf-section h2 {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.pdf-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 11px;
}

.pdf-label {
    color: #6b7280;
    font-weight: 500;
}

.pdf-value {
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.pdf-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 9px;
    color: #9ca3af;
}

/* ========================================
   Animations & Transitions
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.2s; }
.info-card:nth-child(5) { animation-delay: 0.25s; }
.info-card:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   Responsive Fine-Tuning
   ======================================== */
@media (max-width: 480px) {
    .ip-display {
        padding: 12px 16px;
        margin-left: 8px;
        margin-right: 8px;
    }

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

    .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .info-row {
        padding: 7px 14px;
    }

    .info-label {
        font-size: 0.72rem;
    }

    .info-value {
        font-size: 0.8rem;
    }

    .card-header {
        padding: 12px 14px 10px;
    }
}

/* Print styles */
@media print {
    .header, .ad-container, .footer, .ip-actions, .theme-toggle, .toast {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .info-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Selection color */
::selection {
    background: var(--accent);
    color: #000;
}

::-moz-selection {
    background: var(--accent);
    color: #000;
}
