/* ================================================================
   OGMFUTSHOP — TICKET-TAKİP.CSS
   Sipariş takip sayfası — ticket-takip.html
   ================================================================ */

/* ===== GİRİŞ EKRANI ===== */
.tt-login {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 35%,
      rgba(98,243,107,0.04) 0%, transparent 65%);
}

.tt-login-box {
  background: #151917;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tt-login-box::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 28px; height: 28px;
  border-top: 1.5px solid rgba(98,243,107,0.4);
  border-right: 1.5px solid rgba(98,243,107,0.4);
  border-radius: 0 20px 0 0;
  pointer-events: none;
}

.tt-login-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 14px rgba(98,243,107,0.2));
  animation: ttCoinFloat 3.5s ease-in-out infinite;
}
@keyframes ttCoinFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.tt-login-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #F2F4F1;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.tt-login-title span { color: #62F36B; font-weight: 400; }

.tt-login-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #9BA89E;
  margin-bottom: 28px;
  line-height: 1.6;
}

.tt-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tt-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #F2F4F1;
  background: #1A1F1C;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tt-input:focus {
  border-color: rgba(98,243,107,0.35);
  box-shadow: 0 0 0 3px rgba(98,243,107,0.08);
}
.tt-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: #3a4040;
}

.tt-enter-btn {
  background: #62F36B;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.tt-enter-btn:hover { background: #4fd852; transform: translateY(-1px); }

.tt-login-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #566058;
  line-height: 1.5;
}

/* ===== PANEL (ticket görünümü) ===== */
.tt-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 60px);
}

/* SIDEBAR */
.tt-sidebar {
  background: #151917;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  gap: 16px;
  overflow-y: auto;
}

.tt-sidebar-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tt-ticket-no {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #F2F4F1;
  margin-bottom: 8px;
}

.tt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.status-pending         { background:rgba(240,180,41,0.1);  color:#c49327; border:1px solid rgba(240,180,41,0.2); }
.status-payment_waiting { background:rgba(255,120,0,0.1);   color:#c07a30; border:1px solid rgba(255,120,0,0.2); }
.status-processing      { background:rgba(96,180,255,0.1);  color:#5a96cc; border:1px solid rgba(96,180,255,0.2); }
.status-completed       { background:rgba(98,243,107,0.08); color:#62F36B; border:1px solid rgba(98,243,107,0.2); }
.status-cancelled       { background:rgba(239,68,68,0.08);  color:#ef4444; border:1px solid rgba(239,68,68,0.18); }

.tt-info-rows { display: flex; flex-direction: column; }
.tt-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.tt-info-row:last-child { border-bottom: none; }
.tt-info-row span   { color: #566058; }
.tt-info-row strong { color: #F2F4F1; font-weight: 500; text-align: right; max-width: 140px; }

/* İlerleme adımları */
.tt-progress { display: flex; flex-direction: column; gap: 2px; }

.tt-prog-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #566058;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.tt-prog-step::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: all 0.2s;
}
.tt-prog-step.done { color: #9BA89E; }
.tt-prog-step.done::before {
  background: #62F36B;
  border-color: #62F36B;
  box-shadow: 0 0 6px rgba(98,243,107,0.35);
}
.tt-prog-step.active {
  color: #62F36B;
  background: rgba(98,243,107,0.06);
  border-radius: 8px;
}
.tt-prog-step.active::before {
  background: #62F36B;
  border-color: #62F36B;
  animation: ttStepPulse 1.5s ease-in-out infinite;
}
@keyframes ttStepPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(98,243,107,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(98,243,107,0); }
}

.tt-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(37,211,102,0.07);
  border: 1px solid rgba(37,211,102,0.16);
  color: #25d366;
  text-decoration: none;
  padding: 11px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  margin-top: auto;
}
.tt-wa-btn:hover { background: rgba(37,211,102,0.12); }

/* CHAT ALANI */
.tt-chat {
  display: flex;
  flex-direction: column;
  background: #101311;
  height: 100%;
  overflow: hidden;
}

.tt-chat-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #151917;
  flex-shrink: 0;
}
.tt-chat-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #F2F4F1;
  letter-spacing: -0.2px;
}
.tt-chat-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #566058;
  margin-top: 3px;
}

.tt-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tt-empty-msg {
  text-align: center;
  color: #566058;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  margin: auto;
  line-height: 1.6;
}

.tt-msg {
  max-width: 72%;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  animation: ttMsgIn 0.2s ease;
}
@keyframes ttMsgIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.tt-msg.customer {
  align-self: flex-end;
  background: rgba(98,243,107,0.08);
  border: 1px solid rgba(98,243,107,0.15);
  color: #F2F4F1;
  border-bottom-right-radius: 3px;
}
.tt-msg.admin {
  align-self: flex-start;
  background: #1A1F1C;
  border: 1px solid rgba(255,255,255,0.07);
  color: #F2F4F1;
  border-bottom-left-radius: 3px;
}

.tt-msg-sender {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #62F36B;
  margin-bottom: 5px;
}
.tt-msg.admin .tt-msg-sender { color: #566058; }

.tt-msg-meta {
  font-size: 10px;
  color: #566058;
  margin-top: 5px;
  text-align: right;
}
.tt-msg.admin .tt-msg-meta { text-align: left; }

/* Ödeme butonları */
.tt-pay-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tt-pay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  transition: opacity 0.15s, transform 0.15s;
}
.tt-pay-btn:hover { opacity: 0.82; transform: translateX(2px); }
.tt-pay-btn.card   { background:rgba(98,243,107,0.06); border-color:rgba(98,243,107,0.2); color:#62F36B; }
.tt-pay-btn.eft    { background:rgba(96,180,255,0.06); border-color:rgba(96,180,255,0.2); color:#6dafdb; }
.tt-pay-btn.crypto { background:rgba(240,180,41,0.06); border-color:rgba(240,180,41,0.2); color:#c49327; }

/* Chat input */
.tt-chat-input {
  display: flex;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #151917;
  flex-shrink: 0;
}
.tt-chat-input input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #F2F4F1;
  background: #1A1F1C;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.tt-chat-input input:focus { border-color: rgba(98,243,107,0.3); }
.tt-chat-input input::placeholder { color: #3a4040; }

.tt-send-btn {
  background: #62F36B;
  color: #000;
  border: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.tt-send-btn:hover { background: #4fd852; transform: scale(1.06); }

/* Toast uyumluluk */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #62F36B; color: #000;
  padding: 10px 22px; border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; z-index: 9999;
  transition: opacity 0.3s, transform 0.3s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tt-panel { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 60px); }
  .tt-sidebar { max-height: 280px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .tt-chat { min-height: 420px; }
  .tt-login-box { padding: 32px 22px; }
}
