/* ========================================
   TRACKING SECTION - PREMIUM LIGHT
   ======================================== */

.tracking-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: #f8f9fa;
}

/* Background Effects */
.tracking-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tracking-section__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
}

.tracking-section__orb--1 {
    width: 500px;
    height: 500px;
    background: #FF6B35;
    top: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.tracking-section__orb--2 {
    width: 400px;
    height: 400px;
    background: #ffa366;
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.tracking-section__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Tracking Card */
.tracking-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    z-index: 1;
}

[dir="rtl"] .tracking-card {
    direction: rtl;
    text-align: right;
}

.tracking-card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15); */
    border-color: rgba(255, 107, 53, 0.2);
}

.tracking-card__glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, #FF6B35, transparent, #ffa366);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tracking-card:hover .tracking-card__glow {
    opacity: 0.4;
}

/* Card Header */
.tracking-card__header {
    text-align: center;
    margin-bottom: 40px;
}

.tracking-card__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 163, 102, 0.1));
    border-radius: 18px;
    color: #FF6B35;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.tracking-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: 10px;
    font-family: var(--font-ar);
}

.tracking-card__subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-family: var(--font-ar);
}

/* Tracking Form */
.tracking-form__group {
    margin-bottom: 30px;
}

.tracking-form__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-family: var(--font-ar);
}

.tracking-form__input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
}

.tracking-form__input {
    flex: 1;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    color: #2d3748;
    font-size: 1rem;
    font-family: var(--font-ar);
    transition: all 0.3s ease;
}

.tracking-form__input::placeholder {
    color: #9ca3af;
}

.tracking-form__input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: #ffffff;
}

.tracking-form__btn {
    padding: 16px 30px;
    background: linear-gradient(135deg, #FF6B35, #ff8555);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-ar);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tracking-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.tracking-form__btn svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.tracking-form__divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.tracking-form__divider::before,
.tracking-form__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.tracking-form__divider::before {
    left: 0;
}

.tracking-form__divider::after {
    right: 0;
}

[dir="rtl"] .tracking-form__divider::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .tracking-form__divider::after {
    left: 0;
    right: auto;
}

.tracking-form__divider span {
    position: relative;
    background: #ffffff;
    padding: 0 20px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-ar);
}

/* Create Order CTA */
.tracking-form__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background: transparent;
    border: 2px solid #FF6B35;
    border-radius: 12px;
    color: #FF6B35;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-ar);
    margin-bottom: 35px;
}

.tracking-form__cta:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: #ff5722;
    color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

/* App Store Links */
.tracking-apps {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.tracking-apps__text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    font-family: var(--font-ar);
}

.tracking-apps__buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tracking-apps__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #FF6B35;
    border-radius: 10px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
}

.tracking-apps__btn:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.tracking-apps__btn:hover svg {
    color: #ffffff;
}

.tracking-apps__btn:hover .tracking-apps__btn-label {
    color: rgba(255, 255, 255, 0.9);
}

.tracking-apps__btn:hover .tracking-apps__btn-store {
    color: #ffffff;
}

.tracking-apps__btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #FF6B35;
}

.tracking-apps__btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .tracking-apps__btn-text {
    align-items: flex-end;
    text-align: right;
}

.tracking-apps__btn-label {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1;
    margin-bottom: 6px;
    color: #6c757d;
    font-family: var(--font-ar);
}

.tracking-apps__btn-store {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: #2d3748;
    font-family: var(--font-ar);
}

.tracking-apps__btn--apple {
    border-color: #FF6B35;
}

.tracking-apps__btn--apple:hover {
    background: rgba(255, 107, 53);
    border-color: #ff5722;
}

.tracking-apps__btn--google {
    border-color: #FF6B35;
}

.tracking-apps__btn--google:hover {
    background: rgba(255, 107, 53);
    border-color: #ff5722;
}

/* Loading State */
.tracking-loader {
    text-align: center;
    padding: 40px 20px;
}

.tracking-loader__spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.tracking-loader p {
    color: #6c757d;
    font-size: 1rem;
    font-family: var(--font-ar);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-section {
        padding: 50px 20px;
    }

    .tracking-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .tracking-card__title {
        font-size: 1.5rem;
    }

    .tracking-form__input-wrapper {
        flex-direction: column;
    }

    .tracking-form__btn {
        width: 100%;
        justify-content: center;
    }

    .tracking-apps__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .tracking-apps__btn {
        width: 100%;
        justify-content: flex-start;
    }
}