/* GT Seats — Firebase account / tracking / affiliate styles */

/* configuration banner */
.gt-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.5);
  color: #f5a623;
}
.gt-banner.warn { color: #f5a623; }
.gt-banner.ok { color: #34c759; border-color: rgba(52,199,89,0.5); background: rgba(52,199,89,0.12); }

/* iOS-style locked dashboard (logged out) */
#accountDash.locked .acc-row {
  opacity: 0.55;
  cursor: pointer;
}
#accountDash.locked .acc-row .acc-ico::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.acc-ico { position: relative; }

.acc-row.mini {
  padding: 10px 12px;
  font-size: 13px;
}
.acc-row.mini .acc-row-label { font-weight: 600; }
.acc-row.mini .acc-row-value { opacity: 0.7; text-transform: capitalize; }

/* tracking image */
.track-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #11141a;
}

.timeline { margin-top: 6px; }
.track-empty { color: rgba(255,255,255,0.7); font-size: 14px; padding: 8px 2px; }
.tl-step {
  position: relative;
  padding: 10px 0 10px 26px;
  border-left: 2px solid rgba(255,255,255,0.18);
  margin-left: 8px;
}
.tl-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.tl-step.done::before { background: #34c759; }
.tl-step.current::before { background: #f5a623; box-shadow: 0 0 0 4px rgba(245,166,35,0.25); }
.tl-step strong { display: block; font-size: 14px; }
.tl-step span { font-size: 12.5px; color: rgba(255,255,255,0.65); }

.dash-my-orders { margin-top: 14px; }

/* earnings chart */
.earn-chart {
  width: 100% !important;
  max-width: 280px;
  margin: 14px auto 6px;
  display: block;
}

/* forgot password + ghost button */
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  margin-top: 10px;
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
#authReset { margin-top: 10px; }

/* pulse highlight for sign-in prompt */
@keyframes gtPulse {
  0% { box-shadow: 0 0 0 0 rgba(245,166,35,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
#accountAuth.pulse { animation: gtPulse 1s ease-out 2; border-radius: 18px; }

/* small subhead */
.acc-subhead.small { font-size: 12px; opacity: 0.6; margin: 4px 2px 6px; }

/* admin page */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 18px 80px; color: #e9edf2; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { font-size: 22px; margin: 0; }
.admin-auth { max-width: 380px; margin: 60px auto; }
.admin-auth .ios-card { padding: 22px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 22px; }
.admin-stat { background: #151a22; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; }
.admin-stat strong { display: block; font-size: 24px; }
.admin-stat span { font-size: 12.5px; opacity: 0.7; }
.admin-section { background: #11151c; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; margin-bottom: 22px; overflow: auto; }
.admin-section h2 { font-size: 16px; margin: 0 0 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.admin-table th { position: sticky; top: 0; background: #11151c; opacity: 0.8; font-weight: 600; }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 18px; }
.admin-chart-card { background: #11151c; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; }
.admin-chart-card h3 { margin: 0 0 10px; font-size: 14px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
button.mini-btn { font-size: 12px; padding: 5px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #e9edf2; cursor: pointer; }
button.mini-btn.pay { border-color: rgba(52,199,89,0.6); color: #34c759; }
button.mini-btn.danger { border-color: rgba(255,69,58,0.6); color: #ff453a; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,0.1); }
.tag.paid { background: rgba(52,199,89,0.18); color: #34c759; }
.tag.pending { background: rgba(245,166,35,0.18); color: #f5a623; }
.admin-empty { opacity: 0.6; font-size: 13px; padding: 8px 2px; }
.admin-logout { font-size: 13px; padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #e9edf2; cursor: pointer; }

/* support messaging (account side) — iMessage-style */
.msg-thread {
  max-height: 440px;
  min-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 8px;
  background: #0c0f14;
  border-radius: 14px;
  scroll-behavior: smooth;
}
.msg-empty { margin: auto; text-align: center; color: rgba(233,237,242,.5); font-size: .9rem; padding: 24px 14px; line-height: 1.5; }
.msg-day { text-align: center; margin: 12px 0 8px; }
.msg-day span {
  font-size: 11px;
  letter-spacing: .02em;
  color: rgba(233,237,242,.6);
  background: rgba(255,255,255,.06);
  padding: 3px 11px;
  border-radius: 999px;
}
.msg-row { display: flex; margin: 2px 0; }
.msg-row.me { justify-content: flex-end; }
.msg-row.them { justify-content: flex-start; }
.msg-row.grouped { margin-top: 0; }
.msg-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 20px;
  font-size: .92rem;
  line-height: 1.38;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.18);
  animation: msgIn .18s ease-out;
}
.msg-row.me .msg-bubble { background: linear-gradient(180deg, #2a3340, #222b36); color: #e9edf2; border-bottom-right-radius: 6px; }
.msg-row.me.grouped .msg-bubble { border-bottom-right-radius: 20px; border-top-right-radius: 6px; }
.msg-row.them .msg-bubble { background: #161c25; color: #e9edf2; border-bottom-left-radius: 6px; }
.msg-row.them.grouped .msg-bubble { border-bottom-left-radius: 20px; border-top-left-radius: 6px; }
.msg-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-meta { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 4px; font-size: .62rem; opacity: .62; }
.msg-row.them .msg-meta { justify-content: flex-start; }
.msg-status { font-style: normal; }
.msg-row.me .msg-status { color: #aeb8c4; opacity: .85; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.msg-form-msg { min-height: 16px; margin: 6px 2px 0; font-size: .8rem; color: #ff6b5e; }
.msg-form-msg[data-status='ok'] { color: #34c759; }
.msg-compose { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.msg-input {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  padding: 11px 14px;
  font-size: .92rem;
  font-family: inherit;
  background: #0c0f14;
  color: #e9edf2;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.msg-input:focus { outline: none; border-color: #cfd6df; box-shadow: 0 0 0 3px rgba(207,214,223,.15); }
.acc-ico-msg { background: linear-gradient(135deg, #5e5ce6, #7d4dff); }
