/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #1a1a1a;
    --success-color: #00d084;
    --warning-color: #ffa500;
    --danger-color: #ff4757;
    --info-color: #00bcd4;
    --light-bg: #2a2a2a;
    --card-bg: #1f1f1f;
    --text-dark: #ffffff;
    --text-light: #c0c0c0;
    --border-color: #3a3a3a;
    --shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    --shadow-lg: 0 15px 40px rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-bottom: 2px solid #d4af37;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo i {
    font-size: 32px;
    animation: bounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    position: relative;
    font-size: 15px;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid white;
}

.nav-link.admin-link {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
}

.nav-link.admin-link:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #d4af37;
}

.language-selector select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.language-selector select option {
    background: #1a1a1a;
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #0f0f0f 75%, #1a1a1a 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.85) 50%),
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 35%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(212,175,55,0.06)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>');
    animation: float 6s ease-in-out infinite;
    opacity: 0.95;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 50%);
    animation: slide 15s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero Team SVG */
.hero-team-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 8px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 1px 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    letter-spacing: 0.5px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a15 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.5);
    color: #1a1a1a;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00d084 0%, #00a860 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #00a860 0%, #007a48 100%);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffa500 0%, #ff9500 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9500 0%, #ff8500 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff3838 0%, #ff2d1f 100%);
}

.btn-info {
    background: linear-gradient(135deg, #00bcd4 0%, #00a5b3 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #00a5b3 0%, #007a8f 100%);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.services h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: #1f1f1f;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #d4af37;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
    border-color: #ffd700;
    background: #252525;
}

.service-card i {
    font-size: 56px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 600;
}

.service-card p {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.7;
}

/* Shipment Form */
.shipment-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    position: relative;
}

.shipment-section h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1px;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.shipment-form {
    background: #1f1f1f;
    padding: 50px 40px;
    border-radius: 16px;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #2a2a2a;
    color: #ffffff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #d4af37;
    background: #333333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: #333333;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-divider {
    grid-column: 1 / -1;
    padding: 24px 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    border-top: 2px solid #d4af37;
    margin: 20px 0;
}

/* File Upload Area */
.file-upload-area {
    width: 100%;
}

.file-upload-box {
    border: 2px dashed #d4af37;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(184, 148, 31, 0.05) 100%);
}

.file-upload-box:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 148, 31, 0.1) 100%);
}

.file-upload-box i {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 12px;
    display: block;
}

.file-upload-box p {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.file-upload-box span {
    color: #cccccc;
    font-size: 13px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
}

.success-message {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    margin: 10px 0;
}

/* Quick Track Section */
.quick-track {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #0f0f0f 75%, #1a1a1a 100%);
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 50%),
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%);
    color: white;
    position: relative;
    overflow: hidden;
}

.quick-track::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.quick-track h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.track-form {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.track-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.track-result {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    color: var(--text-dark);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Tracking Details */
.tracking-search {
    padding: 60px 0 40px 0;
    text-align: center;
}

.tracking-search h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.shipment-details-section {
    padding: 40px 0;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.shipment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.15);
}

.info-card h3 {
    color: #d4af37;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #ffffff;
}

.info-item .value {
    color: #cccccc;
}

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.status-badge.in_transit {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    color: #084298;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.status-badge.delivered {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0a3622;
}

.status-badge.on_hold {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.status-badge.customs_clearance {
    background: linear-gradient(135deg, #e2e3e5 0%, #d3d4d6 100%);
    color: #383d41;
}

/* Timeline */
.timeline-section {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #d4af37;
}

.timeline-section h3 {
    color: #d4af37;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item.completed::before {
    background: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color);
}

.timeline-item-content {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.timeline-item-status {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-item-location {
    color: var(--text-light);
    font-size: 14px;
}

.timeline-item-time {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 5px;
}

/* Chat Section */
.chat-section {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #d4af37;
}

.chat-section h3 {
    color: #d4af37;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.message.bot .message-bubble {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-bottom-left-radius: 4px;
}

.message-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #2a2a2a;
    border-top: 1px solid #3a3a3a;
}

.message-input input {
    flex: 1;
    padding: 10px;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    background: #333333;
    color: #ffffff;
}

.message-input input:focus {
    outline: none;
    border-color: #d4af37;
}

.message-input button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.message-input button:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a15 100%);
    transform: translateY(-2px);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    background: #1f1f1f;
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
    overflow: hidden;
    z-index: 1000;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-header {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    padding: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    user-select: none;
    transition: all 0.3s;
}

.chat-header:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a15 100%);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #2a2a2a;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #2a2a2a;
    border-top: 1px solid #3a3a3a;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    background: #333333;
    color: #ffffff;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #d4af37;
    background: #3a3a3a;
}

.chat-input-area button {
    padding: 10px 14px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.chat-input-area button:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a15 100%);
    transform: scale(1.05);
}

/* Shipment Controls */
.shipment-controls-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 148, 31, 0.08) 100%);
    border: 2px solid #d4af37;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.shipment-controls-section h3 {
    color: #d4af37;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.controls .btn {
    flex: 1;
    min-width: 180px;
}

/* Admin Panel */
.admin-navbar {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

.admin-panel {
    padding: 40px 0;
}

.admin-section {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #d4af37;
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 28px;
}

.admin-section h3 {
    color: #d4af37;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s;
    font-weight: 600;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.4);
}

.stat-card i {
    font-size: 32px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-card h3 {
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #1a1a1a;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
    margin-top: 20px;
    border: 1px solid #3a3a3a;
}

.admin-table thead {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #d4af37;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #3a3a3a;
    color: #ffffff;
}

.admin-table tbody tr:hover {
    background: #313131;
}

.admin-table .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInDown 0.3s ease-out;
    position: relative;
    border: 2px solid #d4af37;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffffff;
}

.login-form {
    max-width: 400px;
}

.shipment-modal {
    max-width: 600px;
}

.message-modal {
    max-width: 700px;
    max-height: 80vh;
}

.message-thread {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    min-height: 200px;
    border: 1px solid #3a3a3a;
}

.message-thread .message {
    margin-bottom: 15px;
}

/* Proof Section */
.proof-section {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 12px;
    border: 2px dashed #d4af37;
    margin-bottom: 40px;
}

.proof-section h3 {
    color: #d4af37;
    border: none;
    margin: 0 0 15px 0;
}

.proof-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Recent Shipments */
.recent-shipments {
    margin-top: 40px;
}

.recent-shipments h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 10px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    font-size: 14px;
    background: #2a2a2a;
    color: #ffffff;
}

.filters input {
    flex: 1;
    min-width: 200px;
}

/* Settings */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.settings-section {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #d4af37;
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: #d4af37;
}

.settings-section .info-item {
    padding: 10px 0;
    flex-direction: column;
}

.settings-section .info-item span {
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 18px;
    color: #d4af37;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #d4af37;
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Chat Page Styles */
.chat-page {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: calc(100vh - 60px);
}

.chat-page-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    background: #1f1f1f;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.chat-sidebar {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-right: 2px solid #d4af37;
}

.sidebar-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
}

.online-status i {
    color: #00d084;
    font-size: 10px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.3; }
}

.chat-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.chat-info p {
    margin-bottom: 12px;
}

.chat-info strong {
    color: #d4af37;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: #2a2a2a;
}

/* Inner chat header */
.chat-main .chat-header {
    background: #1f1f1f;
    padding: 20px;
    border-bottom: 2px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-main .chat-header h2 {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.support-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 14px;
}

.team-member img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d4af37;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #2a2a2a;
}

.message-day-marker {
    text-align: center;
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 20px 0;
    letter-spacing: 1px;
}

.message {
    display: flex;
    gap: 12px;
    animation: slideInUp 0.3s ease-out;
    align-items: flex-end;
}

.message.user-message {
    justify-content: flex-end;
}

.message.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 600;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-content p {
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    word-wrap: break-word;
    line-height: 1.5;
}

.message.user-message .message-content p {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.message.bot-message .message-content p {
    background: #3a3a3a;
    color: #ffffff;
    border: 1px solid #4a4a4a;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: #888888;
    padding: 0 16px;
}

.typing-indicator .message-content {
    max-width: auto;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-bottom-left-radius: 4px;
    border-radius: 12px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-10px); }
}

.chat-input-section {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #1f1f1f;
    border-top: 2px solid #d4af37;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    font-size: 15px;
    background: #2a2a2a;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #333333;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.chat-send-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a15 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.chat-send-btn:active {
    transform: translateY(0);
}

/* Admin Login Required */
.admin-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .shipment-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        right: 0;
        bottom: 0;
    }

    .track-form {
        flex-direction: column;
    }

    .shipment-info-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    .controls .btn {
        min-width: unset;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Chat Page Responsive */
    .chat-page-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 140px);
    }

    .chat-sidebar {
        display: none;
    }

    .chat-messages-area {
        height: 400px;
    }

    .message-content {
        max-width: 85%;
    }
}

    .settings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .services h2,
    .shipment-section h2,
    .quick-track h2,
    .tracking-search h1 {
        font-size: 24px;
    }

    .service-card {
        padding: 20px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 100%;
    }
}
