/* ============================================================
   BinAref — Google Play Testers app styles. Sits on the site's
   design tokens (main.css vars) so every design/theme/skin the
   owner picks re-colours the platform automatically.
   ============================================================ */
.t-wrap { position: relative; z-index: 2; min-height: 100vh; padding: 96px 20px 80px; }
.t-shell, .t-landing { max-width: 1080px; margin: 0 auto; }

/* landing */
.t-landing { text-align: center; padding-top: 8vh; }
.t-hero-title {
  font-size: clamp(34px, 5.5vw, 62px); font-weight: 700; letter-spacing: -.03em;
  margin-bottom: 16px; color: var(--text);
}
[dir="rtl"] .t-hero-title { letter-spacing: 0; line-height: 1.3; }
.t-hero-sub { color: var(--dim); font-size: 16.5px; line-height: 1.7; max-width: 52ch; margin: 0 auto 30px; }

/* buttons */
.t-btn {
  display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
  font: 700 14px/1 "Space Grotesk", system-ui, sans-serif;
  padding: 12px 20px; border-radius: 12px;
  color: var(--ink); background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep));
  text-decoration: none; transition: filter .2s, transform .2s;
}
.t-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.t-btn.sec { color: var(--text); background: var(--glass); border: 1px solid var(--border2); }
.t-btn.danger { color: #ffd7d7; background: rgba(220,80,80,.15); border: 1px solid rgba(220,80,80,.4); }
.t-btn.tiny { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.t-google { background: #fff; color: #1a1a1a; padding: 14px 26px; font-size: 15px; }

/* shell bar */
.t-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.t-brand { font: 700 20px/1.2 "Space Grotesk", system-ui, sans-serif; color: var(--text); text-decoration: none; }
.t-bar-side { display: flex; align-items: center; gap: 9px; }
.t-chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--glass); border: 1px solid var(--border2);
  padding: 7px 11px; border-radius: 99px;
}
.t-chip.tiny { font-size: 10.5px; padding: 4px 8px; }
.t-bell { position: relative; font-size: 18px; text-decoration: none; padding: 5px; }
.t-bell span {
  position: absolute; top: -2px; inset-inline-end: -4px; min-width: 16px; height: 16px;
  border-radius: 99px; background: #e5484d; color: #fff;
  font: 700 10px/16px var(--mono); text-align: center; padding: 0 3px;
}
.t-me { display: inline-flex; }
.t-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border2); }
.t-ava.sm { width: 26px; height: 26px; }
.t-ava.xl { width: 84px; height: 84px; }
.t-ava-mono {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ice-soft); color: var(--ice); font: 700 14px/1 var(--mono);
}
.t-appicon { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; border: 1px solid var(--border); }
.t-appicon.lg { width: 76px; height: 76px; border-radius: 18px; }

/* tabs */
.t-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.t-tabs a {
  font: 600 13.5px/1 "Space Grotesk", system-ui, sans-serif; color: var(--dim);
  text-decoration: none; padding: 10px 15px; border-radius: 11px;
}
.t-tabs a.on { color: var(--text); background: var(--glass); border: 1px solid var(--border); }
.t-tabs a:hover { color: var(--text); }
.t-post-btn { margin-inline-start: auto; color: var(--ink) !important; background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep)); }

/* filters */
.t-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.t-fchip {
  font: 600 12.5px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; color: var(--dim);
  background: var(--glass); border: 1px solid var(--border); padding: 9px 14px; border-radius: 99px;
}
.t-fchip.on { color: var(--ink); background: var(--ice); border-color: var(--ice); }

/* cards grid */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.t-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  transition: transform .2s, border-color .2s;
}
.t-card:not(.static):hover { transform: translateY(-3px); border-color: var(--border2); }
.t-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.t-card-name { font-weight: 700; font-size: 16.5px; margin-bottom: 6px; color: var(--text); }
.t-card-desc {
  font-size: 13px; color: var(--dim); line-height: 1.55; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-card-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); }
.t-status {
  font: 700 10.5px/1 var(--mono); padding: 5px 9px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--border2); color: var(--dim); background: var(--glass);
}
.t-st-recruiting { color: #58aeff; border-color: rgba(88,174,255,.4); background: rgba(88,174,255,.1); }
.t-st-testing { color: #57d97a; border-color: rgba(87,217,122,.4); background: rgba(87,217,122,.1); }
.t-st-pending { color: #e6c989; border-color: rgba(230,201,137,.4); background: rgba(230,201,137,.1); }
.t-st-time_up { color: #ffab70; border-color: rgba(255,171,112,.4); background: rgba(255,171,112,.1); }
.t-st-done { color: #8ce6a0; border-color: rgba(140,230,160,.4); background: rgba(140,230,160,.1); }
.t-progress { height: 6px; border-radius: 99px; background: var(--ice-soft); overflow: hidden; margin: 10px 0 6px; }
.t-progress-in { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ice-deep), var(--ice)); }
.t-count { font: 600 12px/1.5 var(--mono); color: var(--dim); }
.t-count.big { font-size: 15px; color: var(--text); margin: 10px 0; }

/* detail + rows */
.t-back { display: inline-block; color: var(--ice); text-decoration: none; font: 600 13px/1 var(--mono); margin-bottom: 16px; }
.t-detail { background: var(--glass); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.t-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.t-detail-head h2 { font-size: 24px; margin-bottom: 6px; color: var(--text); }
.t-desc { color: var(--dim); line-height: 1.7; font-size: 14.5px; margin-bottom: 10px; white-space: pre-wrap; }
.t-desc.dim { color: var(--faint); font-size: 13px; }
.t-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.t-note {
  font-size: 13px; color: var(--dim); background: var(--ice-soft);
  border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px; margin: 8px 0; width: 100%;
}
.t-note.ok { color: #8ce6a0; background: rgba(140,230,160,.08); border-color: rgba(140,230,160,.25); }
.t-sec-l { font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--faint); margin: 22px 0 10px; text-transform: uppercase; }
.t-trow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--glass); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 13px; margin-bottom: 8px; color: inherit; text-decoration: none;
}
.t-trow.unread { border-color: var(--ice); background: var(--ice-soft); }
.t-trow-name { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 140px; color: var(--text); }
.t-trow-name small { color: var(--faint); font-weight: 500; }
.t-trow-mail { font: 500 12px/1 var(--mono); color: var(--dim); direction: ltr; }
.t-dim { color: var(--faint); font-size: 12px; }
.t-pos { color: #8ce6a0; font-family: var(--mono); }
.t-neg { color: #ff9d9d; font-family: var(--mono); }

/* forms */
.t-form { max-width: 560px; background: var(--glass); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.t-form h2 { margin-bottom: 14px; color: var(--text); }
.t-form label { display: block; font: 600 12px/1 var(--mono); color: var(--dim); margin: 14px 0 6px; }
.t-in {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  font: 500 14px/1.45 "Space Grotesk", system-ui, sans-serif;
  color: var(--text); background: rgba(127,127,127,.08); border: 1px solid var(--border2); outline: none;
}
.t-in:focus { border-color: var(--ice); }
textarea.t-in { min-height: 90px; resize: vertical; }
.t-form .t-btn { margin-top: 18px; }
.t-iconrow { display: flex; align-items: center; gap: 12px; }
.t-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); margin: 10px 0; cursor: pointer; }

/* profile + stats */
.t-profile { text-align: center; max-width: 640px; margin: 0 auto; }
.t-profile h2 { margin: 12px 0 4px; color: var(--text); }
.t-profile .t-trow { text-align: start; }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 26px 0; }
.t-stat { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 18px 12px; text-align: center; }
.t-stat-n { font: 700 26px/1 var(--mono); color: var(--ice); margin-bottom: 8px; }
.t-stat-l { font-size: 12px; color: var(--dim); }

/* published screenshots */
.t-shots { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; }
.t-shots img { height: 130px; border-radius: 10px; border: 1px solid var(--border); }

/* modal + toast */
.t-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.t-modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.t-modal-card {
  position: relative; width: min(430px, 92vw); background: var(--panel, #12131c);
  border: 1px solid var(--border2); border-radius: 18px; padding: 22px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
}
.t-modal-title { font-weight: 700; font-size: 17px; margin-bottom: 12px; color: var(--text); }
.t-modal-body { font-size: 14px; color: var(--dim); line-height: 1.6; }
.t-modal-body .t-in { margin: 8px 0; }
.t-modal-row { display: flex; gap: 9px; margin-top: 18px; }
#t-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 950; padding: 12px 20px; border-radius: 12px; font: 600 13.5px/1.4 "Space Grotesk", sans-serif;
  color: var(--text); background: var(--panel, #12131c); border: 1px solid var(--border2);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s; max-width: 90vw;
}
#t-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#t-toast.err { border-color: rgba(220,80,80,.5); color: #ffb4b4; }

.t-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.t-row-between h2, .t-view > h2 { color: var(--text); }
.t-loading, .t-empty { color: var(--faint); font: 600 13px/1 var(--mono); padding: 30px 0; text-align: center; }

@media (max-width: 640px) {
  .t-wrap { padding: 84px 12px 60px; }
  .t-detail, .t-form { padding: 18px; }
  .t-post-btn { margin-inline-start: 0; }
}
