/* ============================================
   G-EX Style v4.0
   Полный файл стилей
   ============================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    padding-top: 110px;
}

a { color: #ffd700; text-decoration: none; }
a:hover { color: #ffed4a; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar-main {
    background-color: #050505 !important;
    border-bottom: 1px solid #222;
    z-index: 1030;
    padding: 10px 0;
}
.navbar-main .navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
}

/* ============================================
   TRACKING BAR
   ============================================ */
.tracking-bar {
    background: linear-gradient(90deg, #1a1a00 0%, #2a2200 50%, #1a1a00 100%);
    border-bottom: 1px solid #333;
    padding: 8px 0;
    text-align: center;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1020;
}
.tracking-bar-link {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    animation: pulseGlow 2s ease-in-out infinite;
}
.tracking-bar-link:hover { color: #fff; }
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255,215,0,0.3); }
    50%      { text-shadow: 0 0 20px rgba(255,215,0,0.6); }
}

/* ============================================
   HEADER TRACKING WIDGET (десктоп)
   ============================================ */
.tracking-header-widget {
    background: rgba(255,215,0,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s;
}
.tracking-header-widget:focus-within {
    border-color: #ffd700;
    background: rgba(255,215,0,0.1);
    box-shadow: 0 0 15px rgba(255,215,0,0.15);
}
.tracking-header-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.tracking-header-icon {
    position: absolute;
    left: 12px;
    color: #ffd700;
    font-size: 13px;
    pointer-events: none;
}
.tracking-header-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 13px;
    padding: 6px 10px 6px 32px;
    width: 200px;
    outline: none !important;
    box-shadow: none !important;
    transition: width 0.3s;
}
.tracking-header-input::placeholder { color: #888 !important; font-size: 12px; }
.tracking-header-input:focus { width: 240px; }

.btn-tracking-header {
    background: #ffd700;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 50px;
    padding: 6px 16px;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-tracking-header:hover { background: #ffed4a; color: #000; }

/* Кнопка «Отслеживание» */
.btn-tracking {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700 !important;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.btn-tracking:hover { background: #ffd700; color: #000 !important; }

/* Мобильные круглые кнопки */
.btn-tracking-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    text-decoration: none;
    background: #ffd700;
    color: #000 !important;
    animation: pulseBtn 2s ease-in-out infinite;
    transition: all 0.2s;
}
.btn-tracking-mobile:hover { background: #ffed4a; color: #000 !important; }

.btn-client-mobile {
    background: #28a745 !important;
    animation: none !important;
    font-weight: 700;
    font-size: 14px;
}
.btn-client-mobile:hover { background: #34ce57 !important; }

.btn-login-mobile {
    background: #555 !important;
    animation: none !important;
    color: #fff !important;
}
.btn-login-mobile:hover { background: #777 !important; }

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(255,215,0,0); }
}

/* ============================================
   CLIENT AUTH ELEMENTS
   ============================================ */
.btn-client-login {
    background: transparent;
    border: 1px solid #555;
    color: #ccc !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-client-login:hover { border-color: #ffd700; color: #ffd700 !important; }
.btn-client-login i { font-size: 12px; }

.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}
.client-badge:hover { color: #fff; }
.client-badge .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.client-badge .name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-dropdown {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 10px !important;
    min-width: 200px;
    padding: 8px 0 !important;
}
.client-dropdown .dropdown-item {
    color: #ccc !important;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.15s;
}
.client-dropdown .dropdown-item:hover {
    background: #1a1a1a !important;
    color: #ffd700 !important;
}
.client-dropdown .dropdown-item.text-danger { color: #ef5350 !important; }
.client-dropdown .dropdown-item.text-danger:hover { background: #1a1111 !important; }
.client-dropdown .dropdown-divider { border-color: #333 !important; }

/* ============================================
   HERO
   ============================================ */
.hero-section {
    padding: 100px 0;
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
        url('/assets/img/track_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding { padding: 80px 0; }
.section-title { font-weight: 900; text-transform: uppercase; margin-bottom: 50px; }
.bg-darker { background-color: #121212; }

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background-color: #050505;
    border: 1px solid #333;
    padding: 40px 20px;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.service-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.1);
}

/* ============================================
   CALCULATOR
   ============================================ */
#quote { background-color: #050505; }

.region-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px 25px;
    transition: all 0.3s;
    border-radius: 4px;
}
.region-btn:hover { border-color: #ffd700; color: white; }
.region-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: black;
    font-weight: bold;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-control {
    background: transparent !important;
    color: white !important;
    border-color: #555 !important;
}
.form-control:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255,215,0,0.25) !important;
}
.form-control::placeholder { color: #888 !important; }
.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important;
}

/* Checkboxes */
.form-check-input {
    background-color: #333 !important;
    border-color: #555 !important;
}
.form-check-input:checked {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
}

/* ============================================
   CITY AUTOCOMPLETE DROPDOWN
   ============================================ */
.city-dropdown {
    background: #1a1a1a;
    border: 1px solid #333;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.city-dropdown.show { display: block; }

.city-dropdown .dropdown-item {
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    display: block;
    text-decoration: none;
    transition: background 0.15s;
}
.city-dropdown .dropdown-item:last-child { border-bottom: none; }
.city-dropdown .dropdown-item:hover,
.city-dropdown .dropdown-item.active { background: #2a2a2a; }
.city-dropdown .dropdown-item strong { color: #ffd700; }
.city-dropdown .dropdown-item .city-region {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}
.city-dropdown .dropdown-item.no-results {
    color: #666;
    cursor: default;
    text-align: center;
    font-style: italic;
}
.city-dropdown .dropdown-item.no-results:hover { background: transparent; }

.city-dropdown::-webkit-scrollbar { width: 6px; }
.city-dropdown::-webkit-scrollbar-track { background: #1a1a1a; }
.city-dropdown::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-calculate {
    background-color: #ffd700;
    color: black;
    font-weight: bold;
    border: none;
    transition: all 0.2s;
}
.btn-calculate:hover { background-color: #ffed4a; }
.btn-calculate:disabled { background-color: #666; color: #999; cursor: not-allowed; }

.btn-order {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border: none;
    transition: all 0.2s;
}
.btn-order:hover { background-color: #34ce57; }

/* ============================================
   TRACKING PAGE
   ============================================ */
.tracking-section {
    min-height: 80vh;
    padding: 60px 0;
}

.tracking-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #000;
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.tracking-search-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
}

.tracking-main-input {
    background: #0a0a0a !important;
    border: 2px solid #333 !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding-left: 45px !important;
    border-radius: 12px !important;
}
.tracking-main-input:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255,215,0,0.2) !important;
}
.tracking-main-input::placeholder {
    color: #555 !important;
    font-weight: 400;
    letter-spacing: 0;
}

.tracking-form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

.btn-tracking-submit {
    background: #ffd700;
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-tracking-submit:hover {
    background: #ffed4a;
    color: #000;
    transform: translateY(-1px);
}

/* Result card */
.tracking-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    text-align: left;
}
.tracking-error-card {
    text-align: center;
    border-color: #444;
}

.animate-in { animation: fadeSlideUp 0.4s ease; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tracking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #222;
}
.tracking-number-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1px;
}

.status-badge { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-active    { background: #1a2a1a; color: #4caf50; border: 1px solid #2e7d32; }
.status-delivered { background: #1a331a; color: #66bb6a; border: 1px solid #388e3c; }
.status-cancelled { background: #331a1a; color: #ef5350; border: 1px solid #c62828; }

.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.tracking-info-item { display: flex; align-items: flex-start; gap: 12px; }
.tracking-info-item i { font-size: 1.1rem; margin-top: 3px; }
.tracking-info-item .label {
    display: block; font-size: 11px; color: #888;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tracking-info-item .value { display: block; font-size: 15px; font-weight: 600; color: #fff; }

/* Timeline */
.tracking-timeline { border-top: 1px solid #222; padding-top: 20px; }
.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    border-left: 2px solid #333;
    margin-left: 6px;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -8px; top: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #333;
    border: 3px solid #111;
}
.timeline-item.active .timeline-dot {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.timeline-content { padding-left: 10px; }

/* ============================================
   LEAD COOLDOWN
   ============================================ */
.lead-cooldown-notice {
    background: #1a1a00;
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 15px;
    text-align: center;
    color: #ccc;
}
.lead-cooldown-notice .cooldown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-toast {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.notification-toast.success { background: #1a331a; border: 1px solid #2e7d32; color: #66bb6a; }
.notification-toast.error   { background: #331a1a; border: 1px solid #c62828; color: #ef5350; }
.notification-toast.warning { background: #332a1a; border: 1px solid #f57c00; color: #ffb74d; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-main {
    background: #050505;
    border-top: 1px solid #222;
    padding: 50px 0 30px;
}
.footer-main h5 {
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-main ul { list-style: none; padding: 0; }
.footer-main ul li { margin-bottom: 8px; }
.footer-main ul li a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-main ul li a:hover { color: #ffd700; }

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 30px;
    color: #555;
    font-size: 13px;
}

.footer-auth-link {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-auth-link:hover { color: #ffd700; }

.footer-social a {
    color: #888;
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.2s;
}
.footer-social a:hover { color: #ffd700; }

/* ============================================
   STATIC PAGES
   ============================================ */
.page-content { min-height: 60vh; padding: 40px 0; }
.page-content h1 { color: #ffd700; margin-bottom: 30px; }

/* ============================================
   UTILS
   ============================================ */
.text-warning { color: #ffd700 !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .tracking-header-widget { display: none; }
}

@media (max-width: 768px) {
    body { padding-top: 100px; }
    .hero-section {
        background-attachment: scroll;
        min-height: 70vh;
    }
    .hero-title { font-size: 2.2rem; }
    .tracking-card { padding: 20px; }
    .tracking-card-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
    body { padding-top: 95px; }
    .tracking-bar { font-size: 12px; padding: 6px 0; }
    .tracking-search-card { padding: 20px; }
    .tracking-main-input { font-size: 1rem !important; }
    .tracking-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .notification-toast { left: 10px; right: 10px; max-width: none; top: 100px; }
    .tracking-icon-circle { width: 70px; height: 70px; font-size: 28px; }
    .hero-title { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
}