/* Turkmirsal Tracking — tracking.css v1.0.0 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

#tmt-tracker {
  --r: #CB4644;
  --rd: #a83533;
  --rm: #e05250;
  --rlt: #fdf1f1;
  --nv: #0a1628;
  --dk: #1a2840;
  --mu: #7a8ba6;
  --br: #e2e8f0;
  --off: #f7f8fc;
  --wh: #ffffff;
  --gd2: #e8b84b;
  --wa: #25d366;
  --fn: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --t: .26s cubic-bezier(.4,0,.2,1);
  --ra: 14px;
  --ral: 20px;
  --sh: 0 4px 24px rgba(10,22,40,.09);

  direction: rtl;
  font-family: var(--fn);
  color: var(--dk);
  max-width: 780px;
  margin: 0 auto;
  padding: 0 4px 40px;
}

/* ── Input Section ── */
.tmt-input-section {
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--ral);
  padding: 28px 28px 22px;
  margin-bottom: 24px;
  box-shadow: var(--sh);
}
.tmt-input-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--nv);
  margin-bottom: 12px;
}
.tmt-input-row {
  display: flex;
  gap: 0;
  background: var(--off);
  border: 2px solid var(--br);
  border-radius: var(--ra);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.tmt-input-row:focus-within {
  border-color: var(--r);
  box-shadow: 0 0 0 3px rgba(203,70,68,.1);
}
.tmt-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 18px;
  font-family: var(--fn);
  font-size: 16px;
  font-weight: 700;
  color: var(--dk);
  min-width: 0;
  letter-spacing: .5px;
  direction: ltr;
  text-align: right;
}
.tmt-input-row input::placeholder {
  color: #b0bec5;
  font-weight: 400;
  letter-spacing: 0;
  direction: rtl;
  text-align: right;
}
.tmt-input-row button {
  background: linear-gradient(135deg, var(--rd), var(--rm));
  border: none;
  color: #fff;
  font-family: var(--fn);
  font-size: 15px;
  font-weight: 800;
  padding: 0 26px;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tmt-input-row button:hover {
  background: linear-gradient(135deg, var(--rm), var(--rd));
}
.tmt-input-row button:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.tmt-hint {
  font-size: 12.5px;
  color: var(--mu);
  margin-top: 10px;
  font-weight: 600;
}
.tmt-error {
  margin-top: 12px;
  padding: 11px 16px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #991b1b;
}
.tmt-spin {
  display: inline-block;
  animation: tmtSpin .7s linear infinite;
  font-style: normal;
  font-size: 18px;
}
@keyframes tmtSpin { to { transform: rotate(360deg); } }

/* ── Status Bar ── */
.tmt-status-bar {
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--ral);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--sh);
  animation: tmtFadeUp .35s ease both;
  flex-wrap: wrap;
}
@keyframes tmtFadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.tmt-status-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.tmt-status-info { flex: 1; min-width: 0; }
.tmt-track-num {
  font-size: 12.5px;
  color: var(--mu);
  font-weight: 700;
  margin-bottom: 4px;
  direction: ltr;
  text-align: right;
}
.tmt-status-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--nv);
  margin-bottom: 6px;
}
.tmt-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  color: #fff;
}
.tmt-carrier-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--mu);
  text-align: left;
  direction: ltr;
  min-width: 100px;
}

/* ── Timeline ── */
.tmt-timeline-wrap {
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--ral);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--sh);
  animation: tmtFadeUp .4s ease both;
}
.tmt-timeline-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--nv);
  padding: 16px 24px;
  border-bottom: 1px solid var(--br);
  background: var(--off);
}
.tmt-timeline { padding: 20px 24px; }
.tmt-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  position: relative;
}
.tmt-event:last-child { padding-bottom: 0; }
.tmt-event-line {
  position: absolute;
  right: 18px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--br);
}
.tmt-event:last-child .tmt-event-line { display: none; }
.tmt-event-dot {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 2px solid var(--br);
  background: var(--wh);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 14px;
  transition: all var(--t);
}
.tmt-event.first .tmt-event-dot {
  background: linear-gradient(135deg, var(--rd), var(--rm));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(203,70,68,.35);
}
.tmt-event.first .tmt-event-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(203,70,68,.2);
}
.tmt-event-body { flex: 1; min-width: 0; }
.tmt-event-desc {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dk);
  line-height: 1.55;
  margin-bottom: 4px;
}
.tmt-event.first .tmt-event-desc { color: var(--nv); font-weight: 900; }
.tmt-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tmt-event-time {
  font-size: 12px;
  color: var(--mu);
  font-weight: 600;
  direction: ltr;
}
.tmt-event-loc {
  font-size: 12px;
  color: var(--r);
  font-weight: 700;
  background: var(--rlt);
  padding: 2px 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── No Events ── */
.tmt-no-events {
  text-align: center;
  padding: 32px 16px;
  color: var(--mu);
  font-size: 14px;
}

/* ── WhatsApp Strip ── */
.tmt-wa-strip {
  background: linear-gradient(135deg, #0d2d0d, #1a4d1a);
  border-radius: var(--ral);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: tmtFadeUp .45s ease both;
}
.tmt-wa-text { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.6; }
.tmt-wa-text strong { color: #fff; font-size: 15px; }
.tmt-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wa);
  color: #fff;
  font-family: var(--fn);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--ra);
  border: none;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.tmt-wa-btn:hover { background: #1ebe5d; transform: translateY(-2px); color: #fff; }

/* ── Empty State ── */
.tmt-empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--ral);
  box-shadow: var(--sh);
}
.tmt-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: .4; }
.tmt-empty-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--nv);
  margin-bottom: 10px;
}
.tmt-empty-sub {
  font-size: 14.5px;
  color: var(--mu);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.75;
}
.tmt-carriers-note {
  font-size: 13px;
  color: var(--mu);
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 99px;
  padding: 8px 20px;
  display: inline-block;
}
.tmt-carriers-note strong { color: var(--nv); }

/* ── Responsive ── */
@media (max-width: 580px) {
  .tmt-input-row button { padding: 0 16px; font-size: 14px; }
  .tmt-status-bar { flex-direction: column; text-align: center; }
  .tmt-track-num, .tmt-carrier-info { text-align: center; direction: rtl; }
  .tmt-wa-strip { flex-direction: column; text-align: center; }
  .tmt-event-meta { flex-direction: column; gap: 4px; }
}
