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

:root {
    --primary-color: #FF6B35;
    --secondary-color: #00D4FF;
    --primary-dark: #E55A2B;
    --secondary-dark: #00B8D4;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F4F8;
    --border-color: #E0E0E0;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #FFF5F0 0%, #E0F7FA 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    direction: rtl;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.main-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.tracking-section {
    margin-bottom: 30px;
}

.tracking-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.search-box {
    margin-top: 30px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.tracking-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    background: transparent;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-primary);
    direction: ltr;
    text-align: left;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.tracking-input::placeholder {
    color: var(--text-light);
    direction: rtl;
    text-align: right;
}

.tracking-input:focus {
    outline: none;
}

.search-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.search-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 20px;
    height: 20px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner-wrapper {
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.error-message {
    background: #FEE2E2;
    color: var(--error-color);
    padding: 16px 20px;
    border-radius: 10px;
    border-right: 4px solid var(--error-color);
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
}

.results-section {
    margin-top: 30px;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-card,
.description-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-secondary);
}

.title-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.card-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.info-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-column-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.info-item:hover::before {
    opacity: 1;
}

.info-item-primary {
    background: var(--bg-primary);
    border-color: rgba(255, 107, 53, 0.2);
}

.info-item-primary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.info-item-secondary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(0, 212, 255, 0.2);
}

.info-item-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: var(--secondary-color);
}

.info-item-description {
    background: var(--bg-primary);
    border-color: rgba(255, 107, 53, 0.2);
    min-height: 100%;
}

.info-item-description:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.info-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-item-secondary .info-icon {
    color: var(--secondary-color);
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    direction: ltr;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
    padding-top: 4px;
}

#description-display {
    direction: rtl;
    text-align: right;
}

.info-value img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.info-value img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.info-value > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.info-value a:hover {
    text-decoration: underline;
}

.document-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    object-fit: contain;
    display: block;
}

.document-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.document-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.document-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    word-break: break-all;
    margin-top: 8px;
}

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

.timeline-section {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-secondary);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 40px 20px;
    overflow-x: visible;
    overflow-y: visible;
    position: relative;
    background: var(--bg-primary);
    border-radius: 12px;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    position: relative;
    padding: 0;
    justify-content: space-between;
}

.timeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    z-index: 2;
}

.timeline-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        to left,
        #FFD700 0px,
        #FFD700 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 0;
    pointer-events: none;
}

.timeline-stage.completed:not(:last-child)::after {
    background: repeating-linear-gradient(
        to left,
        var(--success-color) 0px,
        var(--success-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.stage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
    z-index: 10;
    background: var(--bg-primary);
}

.stage-circle.completed {
    background: var(--bg-primary);
    border: 3px solid var(--success-color);
}

.stage-circle.active {
    background: var(--bg-primary);
    border: 3px solid #EF4444;
    animation: pulse 2s ease-in-out infinite;
}

.stage-circle.pending {
    background: var(--bg-primary);
    border: 2px solid #E5E7EB;
}

.stage-circle.completed::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0.2;
}

.stage-circle.active::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #EF4444;
    opacity: 0.2;
    animation: pulse-ring 2s ease-in-out infinite;
}

.stage-circle.pending::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFD700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.stage-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 11;
    background: var(--bg-primary);
    border-radius: 50%;
}

.stage-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

.stage-circle.completed .stage-icon-wrapper svg {
    color: var(--success-color);
}

.stage-circle.active .stage-icon-wrapper svg {
    color: #EF4444;
    animation: move 2s ease-in-out infinite;
}

.stage-circle.pending .stage-icon-wrapper {
    display: none;
}

@keyframes move {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(4px);
    }
    75% {
        transform: translateX(2px);
    }
}

.stage-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-top: 8px;
    position: relative;
    z-index: 10;
}

.stage-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 160px;
}

.stage-circle.active .stage-name {
    color: #EF4444;
    font-weight: 700;
}

.stage-time {
    font-size: 13px;
    color: var(--text-secondary);
    direction: ltr;
    text-align: center;
    font-weight: 400;
    background: transparent;
    padding: 4px 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 4px;
}

.stage-circle.completed .stage-time {
    display: none;
}

.stage-circle.pending .stage-time {
    display: none;
}

.checkmark {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark svg {
    width: 100%;
    height: 100%;
    color: var(--success-color);
    stroke-width: 3;
}

.description-card {
    background: linear-gradient(135deg, #FFF5F0 0%, #E0F7FA 100%);
    border: 2px solid var(--secondary-color);
}

.description-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 400;
}

.documents-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.documents-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.documents-content > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.document-text-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.delivery-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-top: 12px;
}

.delivery-link:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    color: var(--primary-color);
}

.delivery-external-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.delivery-link:hover .delivery-external-icon {
    transform: translate(2px, -2px);
}

.delivery-chevron {
    transition: transform 0.3s ease;
}

.delivery-chevron.open {
    transform: rotate(180deg);
}

.delivery-iframe-wrapper {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.delivery-iframe {
    width: 100%;
    height: 420px;
    border: none;
    background: #fff;
}

.delivery-fallback {
    margin-top: 12px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-fallback-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.delivery-fallback-link {
    word-break: break-all;
    color: var(--text-primary);
    font-weight: 600;
}

.delivery-copy-btn {
    padding: 10px 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
}

.delivery-copy-btn:hover {
    background: var(--primary-dark);
}

.delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.delivery-modal.hidden {
    display: none;
}

.delivery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.delivery-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.delivery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
}

.delivery-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.delivery-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.delivery-modal-body {
    padding: 24px;
}

.delivery-modal-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.delivery-modal-link-container {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.delivery-modal-link {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.delivery-modal-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.delivery-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-modal-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delivery-modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.delivery-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.delivery-modal-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.delivery-modal-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.delivery-modal-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .delivery-modal {
        padding: 10px;
    }

    .delivery-modal-content {
        max-width: 100%;
    }

    .delivery-modal-header {
        padding: 20px;
    }

    .delivery-modal-header h3 {
        font-size: 18px;
    }

    .delivery-modal-body {
        padding: 20px;
    }

    .delivery-modal-actions {
        flex-direction: column;
    }

    .delivery-modal-btn {
        width: 100%;
    }
}

.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 30px 20px;
    }

    .tracking-card {
        padding: 32px 24px;
    }

    .page-title {
        font-size: 36px;
    }

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

    .document-image {
        max-width: 180px;
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }

    .main-header {
        padding: 15px 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo {
        max-width: 160px;
    }

    .tracking-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .card-header {
        margin-bottom: 28px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .search-box {
        margin-top: 24px;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 6px;
    }

    .tracking-input {
        padding: 14px 16px;
        font-size: 15px;
        width: 100%;
    }

    .search-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .order-card,
    .description-card,
    .documents-card,
    .timeline-section {
        padding: 20px;
        border-radius: 12px;
    }

    .card-title {
        margin-bottom: 20px;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }

    .card-title h2,
    .section-header h2 {
        font-size: 20px;
    }

    .title-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-column-left,
    .info-column-right {
        gap: 16px;
    }

    .info-item {
        padding: 16px;
        gap: 10px;
    }

    .info-item-header {
        gap: 8px;
    }

    .info-icon {
        width: 18px;
        height: 18px;
    }

    .info-label {
        font-size: 12px;
    }

    .info-value {
        font-size: 15px;
    }

    .timeline {
        padding: 30px 10px;
        min-height: 180px;
    }

    .timeline-container {
        padding: 0;
    }

    .timeline-stage:not(:last-child)::after {
        top: 30px;
        right: 50%;
        width: 100%;
    }

    .timeline-stage {
        min-width: 0;
        flex: 1;
    }

    .stage-circle {
        width: 60px;
        height: 60px;
    }

    .stage-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }

    .stage-name {
        font-size: 13px;
        max-width: 100%;
        padding: 0 5px;
    }

    .stage-time {
        font-size: 11px;
        padding: 4px 8px;
    }

    .checkmark {
        width: 24px;
        height: 24px;
    }

    .description-text {
        font-size: 15px;
    }

    .document-image {
        max-width: 100%;
        max-height: 250px;
        width: auto;
    }

    .documents-content > div {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }

    .main-header {
        padding: 12px 0;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo {
        max-width: 140px;
    }

    .tracking-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .card-header {
        margin-bottom: 24px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .search-box {
        margin-top: 20px;
    }

    .input-wrapper {
        padding: 5px;
        border-radius: 10px;
    }

    .tracking-input {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }

    .search-button {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
    }

    .button-icon {
        width: 18px;
        height: 18px;
    }

    .order-card,
    .description-card,
    .documents-card,
    .timeline-section {
        padding: 16px;
        border-radius: 10px;
    }

    .card-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .card-title h2,
    .section-header h2 {
        font-size: 18px;
    }

    .title-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .info-item {
        padding: 14px;
        gap: 8px;
    }

    .info-item-header {
        gap: 6px;
    }

    .info-icon {
        width: 16px;
        height: 16px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 14px;
    }

    .timeline {
        padding: 25px 5px;
        min-height: 160px;
    }

    .timeline-container {
        padding: 0;
    }

    .timeline-stage:not(:last-child)::after {
        top: 25px;
        right: 50%;
        width: 100%;
    }

    .timeline-stage {
        min-width: 0;
        flex: 1;
    }

    .stage-circle {
        width: 50px;
        height: 50px;
    }

    .stage-icon-wrapper svg {
        width: 25px;
        height: 25px;
    }

    .stage-name {
        font-size: 12px;
        max-width: 100%;
        padding: 0 3px;
        line-height: 1.3;
    }

    .stage-time {
        font-size: 10px;
        padding: 3px 6px;
    }

    .checkmark {
        width: 20px;
        height: 20px;
    }

    .stage-circle.pending::before {
        width: 15px;
        height: 15px;
    }

    .description-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .loading-state {
        padding: 40px 15px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }

    .loading-text {
        font-size: 14px;
    }

    .error-message {
        padding: 14px 16px;
        font-size: 14px;
        word-wrap: break-word;
    }

    .document-image {
        max-width: 100%;
        max-height: 200px;
        width: auto;
    }

    .documents-content > div {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 30px 20px;
    }

    .tracking-card {
        padding: 35px 28px;
    }

    .page-title {
        font-size: 32px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .input-wrapper {
        flex-direction: row;
    }

    .search-button {
        width: auto;
    }

    .timeline {
        padding: 35px 15px;
        min-height: 190px;
    }

    .timeline-stage:not(:last-child)::after {
        top: 35px;
        right: 50%;
        width: 100%;
    }

    .stage-circle {
        width: 70px;
        height: 70px;
    }

    .stage-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .stage-name {
        font-size: 14px;
    }

    .stage-time {
        font-size: 12px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .main-content {
        max-width: 1100px;
        padding: 40px 30px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1441px) {
    .main-content {
        max-width: 1200px;
        padding: 50px 40px;
    }

    .tracking-card {
        padding: 50px;
    }

    .page-title {
        font-size: 48px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .main-header {
        padding: 10px 0;
    }

    .logo {
        max-width: 120px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .tracking-card {
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .card-header {
        margin-bottom: 20px;
    }
}

