/* ============================================
   ORDER STATUS PAGE — Custom Styles
   ============================================ */

/* === HEADER LANG SWITCH (з test3) === */
.header__lang-switch {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-right: 15px;
}

.header__lang-switch .lang-link {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.header__lang-switch .lang-link:hover {
    color: #333;
}

.header__lang-switch .lang-link.active {
    color: rgba(216, 43, 203, 1);
    font-weight: 600;
}

.header__lang-switch .lang-divider {
    color: #ddd;
    font-size: 14px;
    margin: 0 3px;
}

@media (max-width: 768px) {
    .header__lang-switch.mobile-only {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header__lang-switch.mobile-only {
        padding-right: 8px;
        gap: 4px;
    }
    .header__lang-switch .lang-link {
        font-size: 12px;
    }
}

/* === SECTION === */
.order-status-section {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.order-status__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TOP / TITLE === */
.order-status-top {
    text-align: center;
    margin-bottom: 40px;
}

.order-status__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ED4F5D 0%, #D82BCB 50%, #0EA4E4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-status__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #645E66;
    max-width: 600px;
    margin: 0 auto;
}

/* === SEARCH FORM === */
.order-status-search {
    max-width: 720px;
    margin: 0 auto 32px;
}

.order-status-search__form {
    width: 100%;
}

.order-status-search__input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 100px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 4px 24px rgba(155, 188, 254, 0.2),
                0 1px 4px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.order-status-search__input-wrap:focus-within {
    border-color: rgba(216, 43, 203, 0.3);
    box-shadow: 0 4px 32px rgba(216, 43, 203, 0.15),
                0 1px 4px rgba(0, 0, 0, 0.04);
}

.order-status-search__icon {
    flex-shrink: 0;
    color: #b0aec4;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.order-status-search__input-wrap:focus-within .order-status-search__icon {
    color: #D82BCB;
}

.order-status-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a2e;
    background: transparent;
    padding: 16px 0;
    min-width: 0;
}

.order-status-search__input::placeholder {
    color: #b0aec4;
    font-weight: 300;
}

.order-status-search__btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    background: linear-gradient(135deg, #ED4F5D 0%, #D82BCB 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.order-status-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(237, 79, 93, 0.35);
    background: linear-gradient(135deg, #e04350 0%, #c524b8 100%);
}

.order-status-search__btn:active {
    transform: translateY(0);
}

/* === HINTS === */
.order-status-hints {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto 48px;
}

.order-status-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #645E66;
}

.order-status-hint__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-status-hint__icon--purple {
    background: rgba(216, 43, 203, 0.12);
    color: #D82BCB;
}

.order-status-hint__icon--green {
    background: rgba(14, 228, 112, 0.12);
    color: #0eE470;
}

.order-status-hint__icon--blue {
    background: rgba(14, 164, 228, 0.12);
    color: #0EA4E4;
}

/* === RESULTS === */
.order-status-results {
    margin-top: 20px;
}

.order-status-results__header {
    margin-bottom: 24px;
}

.order-status-results__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-status-results__title svg {
    color: #D82BCB;
}

/* === EMPTY STATE === */
.order-status-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.order-status-empty__icon {
    color: #d0cee0;
    margin-bottom: 20px;
}

.order-status-empty__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.order-status-empty__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #645E66;
}

/* ============================================
   DESKTOP TABLE
   ============================================ */
.order-table-wrapper {
    width: 100%;
}

.order-table-desktop {
    display: block;
}

.order-table-mobile {
    display: none;
}

.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
}

.order-table thead {
    background: linear-gradient(135deg, rgba(155, 188, 254, 0.15) 0%, rgba(216, 43, 203, 0.08) 100%);
}

.order-table thead th {
    padding: 18px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #645E66;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid rgba(155, 188, 254, 0.15);
}

.order-table-th-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-table-th-inner svg {
    color: #D82BCB;
    opacity: 0.7;
}

.order-table tbody tr {
    transition: all 0.2s ease;
    animation: fadeInRow 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-table tbody tr:hover {
    background: rgba(155, 188, 254, 0.06);
}

.order-table tbody td {
    padding: 16px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a2e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.order-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- ID Badge --- */
.order-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(14, 164, 228, 0.1);
    color: #0EA4E4;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- Service --- */
.order-service {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    max-width: 200px;
}

.order-service__category {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 13px;
}

.order-service__divider {
    color: #b0aec4;
    font-size: 12px;
}

.order-service__name {
    font-weight: 400;
    color: #645E66;
    font-size: 13px;
}

/* --- Count --- */
.order-count {
    font-weight: 600;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
}

.order-counter {
    font-weight: 400;
    color: #645E66;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

/* --- Link --- */
.order-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0EA4E4;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    max-width: 180px;
}

.order-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.order-link:hover {
    color: #D82BCB;
}

.order-link:hover svg {
    opacity: 1;
}

/* --- Amount --- */
.order-amount {
    font-weight: 700;
    color: #ED4F5D;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Status Badge --- */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: color-mix(in srgb, var(--status-color) 12%, transparent);
    color: var(--status-color);
}

.order-status-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-color);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   MOBILE CARDS
   ============================================ */
.order-table-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(155, 188, 254, 0.12) 0%, rgba(216, 43, 203, 0.06) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.order-card__body {
    padding: 20px;
}

.order-card__service {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.order-card__service .order-service__category {
    font-size: 14px;
    font-weight: 600;
}

.order-card__service .order-service__name {
    font-size: 14px;
}

.order-card__link {
    margin-bottom: 16px;
}

.order-card__link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0EA4E4;
    font-size: 13px;
    text-decoration: none;
    word-break: break-all;
}

.order-card__link a:hover {
    color: #D82BCB;
}

.order-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-card__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(155, 188, 254, 0.06);
    border-radius: 12px;
}

.order-card__stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #b0aec4;
}

.order-card__stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
}

.order-card__stat-value--amount {
    color: #ED4F5D;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199.98px) {
    .order-table thead th,
    .order-table tbody td {
        padding: 14px 12px;
        font-size: 13px;
    }
    .order-service {
        max-width: 160px;
    }
    .order-link {
        max-width: 140px;
    }
}

@media (max-width: 991.98px) {
    .order-status-section {
        padding: 40px 0 60px;
    }
    .order-status__title {
        font-size: 36px;
    }
    .order-status__subtitle {
        font-size: 16px;
    }
    .order-table-desktop {
        display: none;
    }
    .order-table-mobile {
        display: flex;
    }
    .order-status-hints {
        gap: 12px;
    }
    .order-status-hint {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 767.98px) {
    .order-status-section {
        padding: 30px 0 40px;
    }
    .order-status__container {
        padding: 0 16px;
    }
    .order-status__title {
        font-size: 28px;
    }
    .order-status__subtitle {
        font-size: 14px;
    }
    .order-status-top {
        margin-bottom: 28px;
    }
    .order-status-search__input-wrap {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
        gap: 0;
    }
    .order-status-search__icon {
        display: none;
    }
    .order-status-search__input {
        width: 100%;
        padding: 14px 16px;
        text-align: center;
        font-size: 15px;
    }
    .order-status-search__btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        border-radius: 14px;
        font-size: 13px;
    }
    .order-status-hints {
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
    }
    .order-status-hint {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .order-status-results__title {
        font-size: 18px;
    }
    .order-card__stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .order-card__stat {
        padding: 8px 12px;
    }
    .order-card__stat-value {
        font-size: 14px;
    }
    .order-card__header {
        padding: 14px 16px;
    }
    .order-card__body {
        padding: 16px;
    }
}

@media (max-width: 410px) {
    .order-status__title {
        font-size: 24px;
    }
    .order-card__stats {
        grid-template-columns: 1fr;
    }
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .order-status-badge {
        background: rgba(0, 0, 0, 0.06);
    }
}