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

body {
    font-family: 'Inter', sans-serif;
    background: #064e3b;
    color: #0f172a;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Dynamic Background */
.bg-dynamic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.bg-dynamic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 40%, rgba(6, 78, 59, 0.4), rgba(2, 44, 34, 0.85));
    pointer-events: none;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.bg-overlay-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 44, 34, 0.7);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* ==================== WELCOME SCREEN ==================== */
.welcome-screen {
    --wc-bg-1: #ffffff;
    --wc-bg-2: #f0fdf7;
    --wc-bg-3: #d1fae5;
    --wc-accent: #10b981;
    --wc-accent-hover: #059669;
    --wc-text-muted: #475569;
    --wc-text-faint: #64748b;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wc-bg-1) 0%, var(--wc-bg-2) 50%, var(--wc-bg-3) 100%);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    overflow-y: auto;
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0.7s;
}

.welcome-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Top nav */
.welcome-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    animation: fadeUp 0.6s ease-out;
}

.welcome-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-logo-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    color: #10b981;
    font-size: 16px;
}

.welcome-logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #064e3b;
}

.welcome-nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-nav-login {
    background: none;
    border: none;
    color: var(--wc-text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    transition: color 0.2s;
}

.btn-nav-login:hover {
    color: #064e3b;
}

.btn-nav-signup {
    background: linear-gradient(95deg, var(--wc-accent), var(--wc-accent-hover));
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.4);
}

.btn-nav-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -4px rgba(16, 185, 129, 0.5);
}

/* Hero */
.welcome-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 80px;
    animation: fadeUp 0.8s ease-out;
}

.welcome-hero-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 22px;
    color: #10b981;
    font-size: 38px;
    margin: 56px 0 32px;
}

.welcome-hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #064e3b;
    line-height: 1.1;
}

.welcome-hero-subtitle {
    margin-top: 18px;
    font-size: 18px;
    color: var(--wc-text-muted);
    max-width: 480px;
}

.welcome-track-group {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    width: 100%;
    max-width: 560px;
}

.welcome-track-group input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #d1fae5;
    background: #ffffff;
    color: #064e3b;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.welcome-track-group input::placeholder {
    color: #94a3b8;
}

.welcome-track-group input:focus {
    border-color: var(--wc-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.welcome-track-group button {
    background: linear-gradient(95deg, var(--wc-accent), var(--wc-accent-hover));
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 30px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.45);
}

.welcome-track-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -5px rgba(16, 185, 129, 0.55);
}

.welcome-try-row {
    margin-top: 18px;
    font-size: 13px;
    color: var(--wc-text-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-try-link {
    background: none;
    border: none;
    color: var(--wc-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.welcome-try-link:hover {
    color: var(--wc-accent-hover);
    text-decoration: underline;
}

.welcome-try-sep {
    color: #cbd5e1;
}

.welcome-track-result {
    width: 100%;
    max-width: 760px;
    margin-top: 36px;
    text-align: left;
}

.welcome-track-result:empty {
    margin-top: 0;
}

/* ==================== AUTH SCREEN ==================== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.auth-screen.active {
    display: flex;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 40px;
    box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpCard 0.5s ease forwards;
}

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

.auth-header {
    text-align: center;
    padding: 32px 28px 16px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-logo i {
    font-size: 28px;
    color: #10b981;
}

.auth-logo h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(145deg, #064e3b, #0f766e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.auth-logo h2 span {
    color: #10b981;
    background: none;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    background: #ecfdf5;
    border-radius: 60px;
    padding: 6px;
    margin-top: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    letter-spacing: 0.5px;
}

.auth-tab.active {
    background: #064e3b;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    padding: 24px 28px 32px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-form-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #064e3b;
    letter-spacing: 0.5px;
}

.auth-form-header p {
    color: #64748b;
    font-size: 14px;
    margin-top: 6px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #d1fae5;
    border-radius: 44px;
    padding: 14px 22px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-group i {
    color: #10b981;
    font-size: 18px;
    width: 22px;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-weight: 500;
    font-family: inherit;
}

.input-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.forgot-link {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-auth {
    background: #064e3b;
    width: 100%;
    padding: 16px;
    border-radius: 60px;
    font-weight: 700;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 24px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1fae5;
}

.auth-divider span {
    color: #94a3b8;
    font-size: 13px;
    white-space: nowrap;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d1fae5;
    background: white;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background: #ecfdf5;
    border-color: #10b981;
    transform: translateY(-2px);
}

/* ==================== DASHBOARD ==================== */
.dashboard {
    display: none;
    min-height: 100vh;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(2px);
}

.dashboard.active {
    display: block;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 28px;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 44px;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(115deg, #064e3b, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: #ecfdf5;
    border-radius: 60px;
}

.user-info i {
    font-size: 20px;
    color: #10b981;
}

.user-info span {
    font-weight: 600;
    color: #064e3b;
}

.logout-btn {
    background: #ecfdf5;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: #064e3b;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ecfdf5;
    border-radius: 60px;
    font-size: 12px;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Navigation */
.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 80px;
    margin-bottom: 32px;
    display: inline-flex;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    padding: 12px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
    border-radius: 60px;
    font-size: 14px;
}

.nav-btn.active {
    background: #064e3b;
    color: white;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover:not(.active) {
    background: #ecfdf5;
    color: #064e3b;
    transform: translateY(-1px);
}

.dashboard-content {
    animation: fadeSlide 0.4s ease-out;
}

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

/* ==================== DASHBOARD COMPONENTS ==================== */
/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecfdf5;
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-title i {
    font-size: 28px;
    color: #10b981;
    background: #ecfdf5;
    padding: 12px;
    border-radius: 20px;
}

.profile-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #064e3b;
    margin: 0;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.edit-profile-btn.cancel-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.profile-field {
    margin-bottom: 24px;
}

.profile-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #064e3b;
}

.profile-field input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    background: #f8fafc;
    font-weight: 500;
}

/* Track Form */
.track-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.track-form h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #064e3b;
}

.track-form p {
    color: #475569;
    margin-bottom: 20px;
}

.track-input-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.track-input-group input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid #d1fae5;
    border-radius: 80px;
    font-size: 15px;
    transition: all 0.2s;
}

.track-input-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.track-input-group button {
    background: #064e3b;
    border: none;
    padding: 0 32px;
    border-radius: 80px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.track-input-group button:hover {
    background: #0f766e;
    transform: scale(0.98);
}

/* ==================== APX/SMARTCARGO TRACKING TABLE - ONLY TABLE ==================== */
.tracking-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8edf2;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 20px;
}

.tracking-number-large {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a2332;
}

.tracking-number-large i {
    color: #2563eb;
    font-size: 20px;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.source-badge.real {
    background: #e8f5e9;
    color: #2e7d32;
}

.source-badge.real i {
    color: #2e7d32;
}

.refresh-btn {
    background: #f0f4f8;
    border: 1px solid #dce3ed;
    padding: 8px 20px;
    border-radius: 6px;
    color: #1a2332;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #e8edf2;
    border-color: #c5cdd8;
}

/* ==================== APX TIMELINE TABLE - ONLY ==================== */
.timeline-container {
    margin-top: 4px;
}

.timeline-container h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-container h4 i {
    color: #2563eb;
}

.timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.timeline-table thead {
    background: #f0f4f8;
}

.timeline-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a2332;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dce3ed;
}

.timeline-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #1a2332;
    vertical-align: middle;
}

.timeline-table tbody tr:last-child td {
    border-bottom: none;
}

.timeline-table tbody tr:hover {
    background: #f8fafc;
}

.timeline-table tbody tr.current-event {
    background: #f0f7ff;
}

.timeline-table tbody tr.current-event td {
    border-bottom-color: #d4e2f7;
}

/* Timeline dot */
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dce3ed;
    display: inline-block;
}

.timeline-dot.active {
    background: #2563eb;
}

.current-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timeline-table tbody td i {
    margin-right: 8px;
    color: #6b7a8a;
    width: 14px;
    text-align: center;
}

.timeline-table thead th:first-child {
    width: 40px;
    text-align: center;
}

.timeline-table tbody td:first-child {
    text-align: center;
}

/* Shipments Table */
.shipments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 24px;
    overflow: hidden;
}

.shipments-table th {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #064e3b;
}

.shipments-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #d1fae5;
}

.shipments-table tr:hover {
    background: #f8fafc;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #064e3b, #0f766e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 998;
    border: 2px solid #10b981;
}

.fab-button:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #0f766e, #064e3b);
}

.fab-menu {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 998;
}

.fab-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.fab-options.show {
    display: flex;
}

.fab-option {
    background: #064e3b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.fab-option:hover {
    background: #0f766e;
    transform: translateX(-8px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 48px;
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #d1fae5;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #064e3b;
}

.modal-header h3 i {
    color: #10b981;
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
}

.modal-close:hover {
    color: #064e3b;
}

.modal-body {
    padding: 28px;
}

/* Form Styles */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1fae5;
}

.form-section h4 {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #064e3b;
}

.form-section h4 i {
    color: #10b981;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s;
}

.form-row input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.btn-primary {
    background: linear-gradient(95deg, #064e3b, #0f766e);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 12px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
    color: #064e3b;
}

.btn-secondary:hover {
    background: #d1fae5;
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    color: white;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

/* Tracked History */
.tracked-history-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 32px;
}

.tracked-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecfdf5;
}

.tracked-history-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #064e3b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-history-btn {
    background: #fee2e2;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    color: #991b1b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history-btn:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.tracked-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.tracked-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tracked-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.tracked-card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.tracked-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #064e3b;
}

.tracked-number i {
    color: #10b981;
    font-size: 18px;
}

.tracked-time {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tracked-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tracked-status {
    display: flex;
    align-items: center;
}

.status-badge {
    background: #10b981;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 12px;
    color: white;
}

.tracked-location, .tracked-update {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.tracked-location i, .tracked-update i {
    color: #10b981;
    width: 18px;
}

.tracked-card-footer {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

/* Contact Page */
.contact-page [style*="background: #ecfdf5"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .user-section {
        justify-content: center;
    }

    .dashboard-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 40px;
        padding: 6px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .track-input-group {
        flex-direction: column;
    }

    .track-input-group button {
        padding: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .fab-button, .fab-menu {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .fab-option {
        padding: 10px 18px;
        font-size: 12px;
    }

    .logo-section h1 {
        font-size: 32px;
    }
    
    .logo-section i {
        font-size: 28px;
        padding: 12px;
    }

    .auth-card {
        margin: 16px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .edit-profile-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .tracking-card {
        padding: 16px;
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tracking-number-large {
        font-size: 17px;
        flex-wrap: wrap;
    }
    
    .timeline-table {
        font-size: 12px;
    }
    
    .timeline-table thead th,
    .timeline-table tbody td {
        padding: 8px 10px;
    }
    
    .timeline-table thead th:first-child {
        width: 30px;
    }
    
    .current-badge {
        font-size: 9px;
        padding: 1px 8px;
        margin-left: 4px;
    }
    
    .tracked-history-grid {
        grid-template-columns: 1fr;
    }
    
    .tracked-card-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .tracked-card-footer {
        flex-direction: column;
    }
    
    .welcome-nav {
        padding: 20px 24px;
    }

    .welcome-nav-actions {
        gap: 14px;
    }

    .welcome-hero {
        padding: 24px 16px 60px;
    }

    .welcome-hero-icon {
        width: 76px;
        height: 76px;
        font-size: 30px;
        margin: 32px 0 24px;
        border-radius: 18px;
    }

    .welcome-hero-subtitle {
        font-size: 16px;
    }

    .welcome-track-group {
        flex-direction: column;
    }

    .welcome-track-group button {
        padding: 16px;
        justify-content: center;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tracking-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .tracking-number-large {
        font-size: 15px;
    }
    
    .timeline-table thead th,
    .timeline-table tbody td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .timeline-table thead th:first-child {
        width: 24px;
    }
    
    .timeline-dot {
        width: 8px;
        height: 8px;
    }
}

/* ==================== PROFESSIONAL TRACKING DISPLAY ==================== */

/* Shipment Summary */
.shipment-summary {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 16px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-label i {
    margin-right: 6px;
    color: #10b981;
}

.summary-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

/* Shipper & Consignee */
.parties-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.party-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid #10b981;
}

.party-card h5 {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.party-card h5 i {
    margin-right: 8px;
    color: #10b981;
}

.party-card p {
    margin: 4px 0;
}

/* Route Info */
.route-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 12px;
    margin: 16px 0;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.route-item i {
    color: #10b981;
    font-size: 18px;
}

.route-arrow {
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
}

/* Status Badge */
.status-badge {
    background: #10b981;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 12px;
    color: white;
}

/* Timeline Table */
.timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.timeline-table thead {
    background: #f0f4f8;
}

.timeline-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a2332;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dce3ed;
}

.timeline-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #1a2332;
    vertical-align: middle;
}

.timeline-table tbody tr:last-child td {
    border-bottom: none;
}

.timeline-table tbody tr:hover {
    background: #f8fafc;
}

.timeline-table tbody tr.current-event {
    background: #f0f7ff;
}

.timeline-table tbody tr.current-event td {
    border-bottom-color: #d4e2f7;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dce3ed;
    display: inline-block;
}

.timeline-dot.active {
    background: #2563eb;
}

.current-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Source Badge */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.source-badge.real {
    background: #e8f5e9;
    color: #2e7d32;
}

.source-badge.real i {
    color: #2e7d32;
}

/* Tracking Card */
.tracking-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8edf2;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 20px;
}

.tracking-number-large {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a2332;
    flex-wrap: wrap;
}

.tracking-number-large i {
    color: #2563eb;
    font-size: 20px;
}

.refresh-btn {
    background: #f0f4f8;
    border: 1px solid #dce3ed;
    padding: 8px 20px;
    border-radius: 6px;
    color: #1a2332;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #e8edf2;
    border-color: #c5cdd8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .parties-container {
        grid-template-columns: 1fr;
    }
    
    .route-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .tracking-number-large {
        font-size: 17px;
    }
    
    .timeline-table {
        font-size: 12px;
    }
    
    .timeline-table thead th,
    .timeline-table tbody td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-card {
        padding: 16px;
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-table thead th,
    .timeline-table tbody td {
        padding: 6px 8px;
        font-size: 11px;
    }
}