/* Pjesa e kompanive — hyrje, regjistrim, llogari.
   Trashëgon paletën dhe tipografinë nga ../style.css; këtu vetëm format,
   fushat dhe gjendjet që faqja publike nuk i ka. */

.auth { max-width: 480px; margin: 0 auto; padding: 48px 24px 72px; }
.auth.wide { max-width: 720px; }
.auth h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 8px; }
.auth .sub { color: var(--muted); margin-bottom: 30px; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font-size: 16px; /* 16px: nën këtë, iOS bën zoom */
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }

button.act {
  width: 100%; padding: 14px 20px; margin-top: 10px;
  background: var(--accent); color: #000; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
}
button.act:disabled { opacity: .55; cursor: default; }
button.act.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

.msg { padding: 13px 15px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; }
.msg.err { background: #2a1315; border: 1px solid #5c2a2f; color: #ffb4b4; }
.msg.ok  { background: #10241b; border: 1px solid #24503c; color: #9fe8c0; }

.alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.alt a { color: var(--accent); text-decoration: none; }

/* Zgjedhja e planit: kuti që sillen si radio, por duken si çmime. */
.picks { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 8px 0 22px; }
/* Tre plane: në ekran të gjerë rrinë krah për krah; nën 760px bien njëra mbi
   tjetrën, sepse tri kolona në telefon i bëjnë çmimet të palexueshme. */
.picks.tre { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .picks.tre { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label {
  display: block; padding: 20px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.pick input:checked + label { border-color: var(--accent); background: #1b1710; }
.pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pick .amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; line-height: 1.1; }
.pick .amount .unit { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.pick .per { font-size: 14px; color: var(--muted); }

/* Llogaria */
.state {
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px;
}
.state.live { border-color: #24503c; background: #10241b; }
.state.dead { border-color: #5c2a2f; background: #2a1315; }
.state .big { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.state .small { color: var(--muted); font-size: 14.5px; }

.bills { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bill { display: flex; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.bill:last-child { border-bottom: 0; }
.bill .no { color: var(--muted); }
.empty { padding: 22px; color: var(--muted); font-size: 14.5px; text-align: center; }

.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; margin-right: 7px; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- Paneli: shoferët, qendrat, udhëtimet ---------- */
/* Nuk janë tabela: një rresht ka një emër, ca hollësi nën të, dhe veprimet
   djathtas. Në telefon veprimet bien poshtë, që të mos ngushtohet emri. */
.nav2 { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.nav2 a { color: var(--muted); text-decoration: none; font-size: 15px; padding-bottom: 4px; }
.nav2 a:hover { color: var(--text); }
.nav2 a.on { color: var(--text); border-bottom: 2px solid var(--accent); }

.list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row > div:first-child { flex: 1 1 240px; min-width: 0; }
.rname { font-weight: 600; }
.rmeta { color: var(--muted); font-size: 13.5px; }
.ractions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.pill {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); color: var(--muted);
}
.pill.on { color: #6ee7a8; border-color: #24503c; background: #10241b; }

button.link {
  background: none; border: 0; color: var(--accent);
  font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 0;
}
button.link.danger { color: #ff9a9a; }

.addbox { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.addbox h2 { font-size: 16px; margin-bottom: 14px; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

/* Zona e sigurt për pjesën e kompanisë. */
@media (max-width: 620px) {
  .auth { padding-left: max(20px, env(safe-area-inset-left));
          padding-right: max(20px, env(safe-area-inset-right)); }
  .row { padding: 14px 16px; }
  .ractions { width: 100%; justify-content: flex-start; }
  .nav2 { gap: 14px; overflow-x: auto; padding-bottom: 6px; }
  .nav2 a { white-space: nowrap; }
  .addbox { padding: 18px 16px; }
  button.act { min-height: 50px; }
}
