/* ============================================
   Bitstech Order Tracking Styles
   ============================================ */

.bt-order-tracking-wrap {
    max-width: 900px;
}

.bt-ot-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bt-text-primary, #fff);
}

/* ── Order Card ── */
.bt-ot-card {
    background: var(--bt-glass-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--bt-border-color, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bt-ot-card:hover {
    border-color: rgba(117, 59, 235, 0.3);
    box-shadow: 0 4px 24px rgba(117, 59, 235, 0.08);
}

.bt-ot-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.bt-ot-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bt-ot-card__id {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bt-text-primary, #fff);
}

.bt-ot-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--bt-text-secondary, #8899bf);
}

/* Status Badge */
.bt-ot-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.bt-ot-status--pending { background: rgba(255, 171, 0, 0.12); color: #ffab00; }
.bt-ot-status--processing { background: rgba(0, 176, 255, 0.12); color: #00b0ff; }
.bt-ot-status--on-hold { background: rgba(255, 107, 0, 0.12); color: #ff6b00; }
.bt-ot-status--completed { background: rgba(0, 230, 118, 0.12); color: #00e676; }
.bt-ot-status--refunded { background: rgba(255, 23, 68, 0.12); color: #ff1744; }
.bt-ot-status--cancelled { background: rgba(255, 23, 68, 0.12); color: #ff1744; }
.bt-ot-status--failed { background: rgba(255, 23, 68, 0.12); color: #ff1744; }

/* ── Progress Steps ── */
.bt-ot-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--bt-border-color, rgba(255,255,255,0.06));
    border-bottom: 1px solid var(--bt-border-color, rgba(255,255,255,0.06));
}

.bt-ot-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.bt-ot-step__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bt-glass-bg, rgba(255,255,255,0.06));
    border: 2px solid var(--bt-border-color, rgba(255,255,255,0.12));
    color: var(--bt-text-secondary, #8899bf);
    transition: all 0.3s ease;
}

.bt-ot-step--done .bt-ot-step__icon {
    background: rgba(0, 230, 118, 0.15);
    border-color: #00e676;
    color: #00e676;
}

.bt-ot-step--active .bt-ot-step__icon {
    background: rgba(117, 59, 235, 0.2);
    border-color: #753beb;
    color: #753beb;
    box-shadow: 0 0 16px rgba(117, 59, 235, 0.3);
    animation: btStepPulse 2s ease infinite;
}

@keyframes btStepPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(117, 59, 235, 0.3); }
    50% { box-shadow: 0 0 24px rgba(117, 59, 235, 0.5); }
}

.bt-ot-step__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bt-text-muted, #5a6a8a);
    white-space: nowrap;
}

.bt-ot-step--done .bt-ot-step__label,
.bt-ot-step--active .bt-ot-step__label {
    color: var(--bt-text-primary, #fff);
}

.bt-ot-step__line {
    flex: 1;
    height: 2px;
    min-width: 40px;
    max-width: 80px;
    background: var(--bt-border-color, rgba(255,255,255,0.1));
    margin: 0 8px;
    margin-bottom: 24px;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.bt-ot-step__line--done {
    background: linear-gradient(90deg, #00e676, rgba(117, 59, 235, 0.5));
}

/* ── Tracking Details ── */
.bt-ot-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(117, 59, 235, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(117, 59, 235, 0.1);
}

.bt-ot-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--bt-text-secondary, #8899bf);
}

.bt-ot-detail strong {
    color: var(--bt-text-primary, #fff);
}

.bt-ot-detail--note {
    font-style: italic;
    opacity: 0.85;
}

/* ── Order Items ── */
.bt-ot-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bt-ot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bt-glass-bg, rgba(255,255,255,0.03));
    border-radius: 10px;
    border: 1px solid var(--bt-border-color, rgba(255,255,255,0.05));
}

.bt-ot-item__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.bt-ot-item__info {
    flex: 1;
    min-width: 0;
}

.bt-ot-item__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bt-text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-ot-item__qty {
    font-size: 0.8rem;
    color: var(--bt-text-muted, #5a6a8a);
}

.bt-ot-item__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bt-accent, #00e0f0);
    white-space: nowrap;
}

/* ── Card Footer ── */
.bt-ot-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--bt-border-color, rgba(255,255,255,0.06));
}

.bt-ot-total {
    font-size: 1rem;
    color: var(--bt-text-secondary, #8899bf);
}

.bt-ot-total strong {
    color: var(--bt-text-primary, #fff);
}

/* ── Buttons ── */
.bt-ot-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #753beb, #5a20c8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bt-ot-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(117, 59, 235, 0.4);
    color: #fff;
}

.bt-ot-btn--sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* ── Empty State ── */
.bt-ot-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--bt-text-muted, #5a6a8a);
}

.bt-ot-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.bt-ot-empty p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ── Public Tracking Form ── */
.bt-ot-public {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 0;
}

.bt-ot-public__card {
    background: var(--bt-glass-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--bt-border-color, rgba(255,255,255,0.08));
    border-radius: 20px;
    padding: 32px;
}

.bt-ot-public__header {
    text-align: center;
    margin-bottom: 28px;
}

.bt-ot-public__header svg {
    color: var(--bt-primary, #753beb);
    margin-bottom: 12px;
}

.bt-ot-public__header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bt-text-primary, #fff);
    margin-bottom: 8px;
}

.bt-ot-public__header p {
    font-size: 0.9rem;
    color: var(--bt-text-secondary, #8899bf);
}

.bt-ot-public__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bt-ot-public__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bt-text-primary, #fff);
    margin-bottom: 6px;
}

.bt-ot-public__field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bt-input-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--bt-input-border, rgba(255,255,255,0.12));
    border-radius: 10px;
    color: var(--bt-text-primary, #fff);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bt-ot-public__field input:focus {
    outline: none;
    border-color: var(--bt-primary, #753beb);
    box-shadow: 0 0 0 3px rgba(117, 59, 235, 0.15);
}

.bt-ot-public__form .bt-ot-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    margin-top: 4px;
}

.bt-ot-public__result {
    margin-top: 24px;
}

.bt-ot-error {
    padding: 14px 18px;
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.2);
    border-radius: 12px;
    color: #ff1744;
    font-size: 0.9rem;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .bt-ot-card { padding: 16px; }
    .bt-ot-card__header { flex-direction: column; align-items: flex-start; }
    .bt-ot-progress { flex-wrap: wrap; gap: 4px; }
    .bt-ot-step__line { min-width: 20px; }
    .bt-ot-card__footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .bt-ot-public__card { padding: 20px; }
    .bt-ot-item__name { max-width: 120px; }
}
