/* ==========================================
   PhoneTracer — Premium CSS Design System
   ========================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 35, 0.7);
    --bg-card-hover: rgba(30, 30, 50, 0.8);
    --bg-input: rgba(25, 25, 45, 0.8);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a8;
    --text-muted: #55556a;

    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --accent-4: #14b8a6;
    --accent-5: #f59e0b;

    --gradient-1: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --gradient-2: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-3: linear-gradient(135deg, #14b8a6, #06b6d4);

    --border-color: rgba(99, 102, 241, 0.15);
    --border-color-hover: rgba(99, 102, 241, 0.35);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* === Animated Background === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.logo-icon.small {
    width: 34px;
    height: 34px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* === Gradient Text === */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Mockup */
.hero-visual {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: linear-gradient(145deg, #1a1a2e, #16162a);
    border-radius: 36px;
    padding: 12px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, 0.1);
    position: relative;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-slow);
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    padding: 12px 20px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.phone-icons {
    display: flex;
    gap: 4px;
    font-size: 0.65rem;
}

.phone-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.phone-pin-icon {
    font-size: 3rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.phone-text-line {
    width: 80%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    animation: shimmer 2s ease-in-out infinite;
}

.phone-text-line.short {
    width: 55%;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.phone-map-preview {
    width: 100%;
    flex: 1;
    margin-top: 12px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.phone-map-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.phone-map-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* === Tracker Section === */
.tracker-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px 100px;
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.tracker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: var(--transition-base);
}

.tracker-card:hover {
    border-color: var(--border-color-hover);
}

/* === Form === */
.track-form {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    display: flex;
    pointer-events: none;
    transition: var(--transition-fast);
}

.phone-input {
    width: 100%;
    padding: 16px 44px 16px 52px;
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition-base);
}

.phone-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.phone-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.phone-input:focus~.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.track-btn {
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    background: var(--gradient-2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition-base);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.track-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.track-btn:active {
    transform: translateY(0);
}

.track-btn:disabled {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 4px;
}

/* === Error Message === */
.error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-top: 20px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

/* === Results === */
.results {
    margin-top: 32px;
    animation: fadeInUp 0.5s ease;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.results-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.results-title svg {
    color: var(--accent-1);
}

.validity-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.validity-badge.valid {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #14b8a6;
}

.validity-badge.invalid {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Result Item Enhancements */
.result-item {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    overflow: hidden;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    display: flex;
    opacity: 0;
    transition: var(--transition-fast);
}

.result-item:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--accent-1);
    color: white;
}

/* Action Center */
.action-center {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease 0.2s forwards;
    opacity: 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
    color: var(--text-secondary);
}

.action-btn:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.action-btn.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.action-btn.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

/* Real-time Clock */
.clock-container {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--gradient-2);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInUp 0.5s ease 0.3s forwards;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.clock-info {
    display: flex;
    flex-direction: column;
}

.clock-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.clock-time {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* History Section */
.history-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.history-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
    cursor: pointer;
}

.history-card:hover {
    border-color: var(--accent-1);
    transform: translateX(5px);
}

.history-details {
    display: flex;
    flex-direction: column;
}

.history-number {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .action-center {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.result-value.mono {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Map container */
.map-container {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease;
}

.map-header {
    padding: 14px 18px;
    background: rgba(15, 15, 30, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.map-header svg {
    color: var(--accent-1);
}

.map {
    height: 350px;
    width: 100%;
    background: var(--bg-secondary);
}

/* === Features Section === */
.features-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    cursor: default;
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent, #6366f1) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #6366f1);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === How It Works === */
.how-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        transform: scale(0.85);
    }

    .nav-links {
        display: none;
    }

    .tracker-card {
        padding: 24px;
    }

    .input-group {
        flex-direction: column;
    }

    .track-btn {
        justify-content: center;
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .map {
        height: 280px;
    }
}

/* === Auth & Login UI === */
.login-trigger-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-2);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.login-trigger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

#user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-4);
}

.logout-btn {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    color: #ef4444;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    padding: 10px 0;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.auth-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--gradient-1);
    color: white;
    font-weight: 700;
    margin-top: 10px;
}

/* Carrier Note Styling */
.carrier-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
    display: block;
    line-height: 1.3;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* === Selection === */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* === Leaflet custom styling === */
.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 10, 15, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
}

.leaflet-control-attribution a {
    color: var(--accent-1) !important;
}