/* =========================================================
   PUBLIC TRANSLATION TRACKING PAGE
   ========================================================= */

:root {
    --gls-cream: #fffee8;
    --gls-cream-soft: #fffff9;
    --gls-border: #e6e2c5;
    --gls-blue: #2563eb;
    --gls-blue-light: #3577f4;
    --gls-blue-dark: #1533a1;
    --gls-text: #1c1c1a;
    --gls-muted: #6c6a5e;
    --gls-yellow: #fc0;
    --gls-success: #009d5a;
}

body { background: var(--gls-cream) !important; }

/* ── HERO ─────────────────────────────────────── */
.tt-hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
}
.tt-hero::before,
.tt-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.tt-hero::before {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(37,99,235,.15), transparent 70%);
    top: -80px; left: -80px;
}
.tt-hero::after {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,204,0,.22), transparent 70%);
    bottom: -60px; right: -60px;
}
.tt-hero-inner { position: relative; z-index: 1; text-align: center; }
.tt-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .9rem;
    background: rgba(37,99,235,.08);
    color: var(--gls-blue);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.tt-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gls-blue);
    animation: ttPulse 1.6s ease-in-out infinite;
}
@keyframes ttPulse { 50% { opacity: .35; transform: scale(.85); } }

.tt-hero h1 {
    font-family: "Now", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.1;
    color: var(--gls-text);
    margin-bottom: .75rem;
}
.tt-hero h1 .accent {
    background: linear-gradient(120deg, var(--gls-blue) 0%, var(--gls-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tt-hero p.lead {
    color: var(--gls-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── SEARCH CARD ─────────────────────────────── */
.tt-search-card {
    max-width: 560px; margin: 0 auto;
    background: #fff;
    border: 1px solid var(--gls-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
}
.tt-search-card .form-label {
    font-weight: 600; font-size: .92rem;
    color: var(--gls-text);
    margin-bottom: .4rem;
}
.tt-search-card .form-control {
    border: 1px solid var(--gls-border);
    background: var(--gls-cream-soft);
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.tt-search-card .form-control:focus {
    border-color: var(--gls-blue);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}
.tt-search-card .input-icon {
    position: relative;
}
.tt-search-card .input-icon i {
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--gls-muted);
    font-size: 1.2rem;
    pointer-events: none;
}
.tt-search-card .input-icon input { padding-right: 2.6rem; }

/* RTL : icon flips to the left side */
[dir="rtl"] .tt-search-card .input-icon i { right: auto; left: 1rem; }
[dir="rtl"] .tt-search-card .input-icon input {
    padding-right: 1rem;
    padding-left: 2.6rem;
}
.tt-search-btn {
    width: 100%;
    background: var(--gls-text);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: .9rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .15s ease, background .15s ease;
}
.tt-search-btn:hover {
    background: var(--gls-blue);
    transform: translateY(-2px);
    color: #fff;
}
.tt-search-helper {
    font-size: .82rem;
    color: var(--gls-muted);
    margin-top: .5rem;
}

/* ── RESULTS LAYOUT ──────────────────────────── */
.tt-results { padding: 24px 0 80px; }
.tt-results-inner {
    max-width: 880px;
    margin: 0 auto;
}
.tt-results-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 24px;
}
.tt-student-chip {
    display: inline-flex; align-items: center; gap: .65rem;
    background: #fff;
    border: 1px solid var(--gls-border);
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
}
.tt-student-chip .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bs-black);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}
.tt-results-count {
    font-family: "Now", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── ORDER CARD ──────────────────────────────── */
.tt-order {
    background: #fff;
    border: 1px solid var(--gls-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
    transition: box-shadow .25s ease, transform .25s ease;
}
.tt-order:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-2px); }

.tt-order-head {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: flex-start; justify-content: space-between;
    padding: 22px 26px 18px;
    border-bottom: 1px dashed var(--gls-border);
}
.tt-order-meta { display:flex; flex-direction: column; gap:.25rem; }
.tt-order-id {
    font-family: "Now", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--gls-text);
}
.tt-order-id .hash { color: var(--gls-blue); }
.tt-order-sub {
    color: var(--gls-muted);
    font-size: .88rem;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.tt-order-sub i { color: var(--gls-blue); margin-right: 4px; }
.tt-order-sub .dot-sep::before { content: '•'; margin-right: 14px; color: var(--gls-border); }

.tt-status-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}
.tt-status-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.tt-pending     { background:#f3f1e3; color:#5e5a4d; }
.tt-pending .dot{ background:#a39e88; }
.tt-translator  { background:#fff4cc; color:#8a6d00; }
.tt-translator .dot{ background:#fc0; animation: ttPulse 1.6s ease-in-out infinite; }
.tt-delivered   { background:#dbeafe; color:#1533a1; }
.tt-delivered .dot{ background:var(--gls-success); }

/* Items list */
.tt-items { padding: 4px 26px 4px; }
.tt-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--gls-border);
}
.tt-item:last-child { border-bottom: 0; }
.tt-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tt-item-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(37,99,235,.08);
    color: var(--gls-blue);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex: none;
}
.tt-item-name { font-weight: 600; color: var(--gls-text); }
.tt-item-meta { font-size: .82rem; color: var(--gls-muted); }
.tt-item-price {
    font-family: "Now", sans-serif;
    font-weight: 700;
    color: var(--gls-blue);
    font-size: 1.05rem;
    white-space: nowrap;
}

.tt-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 26px;
    background: var(--gls-cream);
    border-top: 1px solid var(--gls-border);
}
.tt-total-label {
    font-weight: 600; font-size: .85rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--gls-muted);
}
.tt-total-val {
    font-family: "Now", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--gls-success);
}

/* ── TIMELINE ────────────────────────────────── */
.tt-timeline {
    display: flex; align-items: center;
    padding: 20px 26px 24px;
    background: linear-gradient(180deg, #fff 0%, var(--gls-cream-soft) 100%);
}
.tt-step {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    text-align: center;
    min-width: 88px;
}
.tt-step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gls-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: #b8b3a0;
    transition: all .25s ease;
    position: relative;
}
.tt-step.done .tt-step-circle {
    background: var(--gls-success);
    border-color: var(--gls-success);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(0,157,90,.15);
}
.tt-step.current .tt-step-circle {
    background: #fff;
    border-color: var(--gls-blue);
    color: var(--gls-blue);
    box-shadow: 0 0 0 5px rgba(37,99,235,.18);
    animation: ttPulse 1.6s ease-in-out infinite;
}
.tt-step-label {
    font-size: .75rem;
    color: var(--gls-muted);
    font-weight: 600;
    line-height: 1.2;
    max-width: 96px;
}
.tt-step.done .tt-step-label,
.tt-step.current .tt-step-label { color: var(--gls-text); }
.tt-step-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--gls-border);
    margin: 0 6px;
    position: relative;
    margin-top: -22px;
}
.tt-step-line.done { background: var(--gls-success); }

.tt-delivered-banner {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 26px 22px;
    padding: 12px 16px;
    background: rgba(0,157,90,.08);
    border: 1px solid rgba(0,157,90,.2);
    border-radius: 12px;
    color: #00713f;
    font-weight: 600;
    font-size: .92rem;
}
.tt-delivered-banner i { font-size: 1.2rem; }

/* ── EMPTY / NOT FOUND ───────────────────────── */
.tt-empty {
    max-width: 540px; margin: 32px auto 0;
    background: #fff;
    border: 1px dashed var(--gls-border);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
}
.tt-empty .icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,204,0,.18);
    color: #8a6d00;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.tt-empty h4 { font-family: "Now", sans-serif; font-weight: 700; }
.tt-empty p  { color: var(--gls-muted); margin-bottom: 0; }

@media (max-width: 576px) {
    .tt-step { min-width: 70px; }
    .tt-step-label { font-size: .68rem; }
    .tt-order-head { padding: 18px 20px 14px; }
    .tt-items, .tt-timeline, .tt-total { padding-left: 20px; padding-right: 20px; }
    .tt-delivered-banner { margin-left: 20px; margin-right: 20px; }
}
