/* Hyrja e përbashkët (datofin.com/login) mbi stilet e përbashkëta (/web/base.css). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/pjs-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/pjs-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/pjs-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/pjs-latin-700.woff2") format("woff2");
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
}

.theme-toggle.is-floating {
  position: fixed;
  top: 18px;
  right: 18px;
}

.entry-card {
  max-width: 460px;
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-body h1 {
  margin-top: 6px;
  font-size: 23px;
}

.entry-body form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-icon {
  position: relative;
}

.input-icon svg.i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--faint);
  transform: translateY(-50%);
}

.input-icon input {
  padding-left: 38px;
}

.hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.code-input {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 48px));
  gap: 8px;
}

.code-input input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
}

.code-input.has-error input {
  border-color: var(--danger);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  background: var(--hover);
  color: var(--text);
}

.link svg.i {
  width: 16px;
  height: 16px;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Zgjedhjet (ku të hyjë, cilin biznes, cilin punëtor). */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.choice:hover {
  border-color: var(--brand-1);
  transform: translateY(-1px);
}

.choice.is-active {
  border-color: var(--brand-1);
  background: color-mix(in srgb, var(--brand-1) 7%, var(--surface));
}

.choice .grow {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.choice small {
  color: var(--muted);
}

.choice > svg.i:last-child {
  color: var(--faint);
}

.choice-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand-1) 16%, transparent);
  color: var(--brand-2);
}

.notice-soft {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-1) 10%, transparent);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reg-grid .wide {
  grid-column: 1 / -1;
}

/* Regjistrimi: ndarjet si te programi (Kontakti, Programi) dhe ylli i fushave të detyrueshme. */
.reg-section {
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.req {
  color: var(--danger);
  font-style: normal;
}

.reg-grid .hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

/* ---------- Llogaria ---------- */

.account {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
}

.topbar .brand span {
  display: block;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hover);
  font-weight: 600;
}

.user-chip small {
  color: var(--muted);
  font-weight: 500;
}

.account-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.account .btn {
  white-space: normal;
  text-align: center;
}

.account .card {
  border-radius: 18px;
}

.account .card-head {
  padding: 20px 24px 0;
}

.account .card-body {
  padding: 14px 24px 22px;
}

.account .card-head h2 {
  font-size: 16px;
  font-weight: 700;
}

.card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Koka: biznesi, programi dhe dy mënyrat për ta hapur. */
.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 28px;
  background:
    radial-gradient(560px 220px at 0% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent),
    var(--surface);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hero-top .grow {
  flex: 1;
  min-width: 0;
}

.hero .cat-icon.is-large {
  width: 60px;
  height: 60px;
  border-radius: 17px;
}

.hero-program {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-nui {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions:empty {
  display: none;
}

.hero-actions .btn {
  padding: 11px 20px;
  border-radius: 12px;
}

.hero-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Djathtas abonimi dhe kompjuterët, majtas biznesi dhe kopjet; kolonat nuk lënë vrima. */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-main,
.account-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.account-main {
  grid-column: 1;
  grid-row: 1;
}

.account-side {
  grid-column: 2;
  grid-row: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-line .grow {
  flex: 1;
  min-width: 0;
}

.status-line strong {
  display: block;
  font-size: 15px;
}

.status-line small {
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row .btn {
  flex: 1 1 auto;
}

.license-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.license-row {
  display: flex;
  gap: 8px;
}

.license-row input {
  flex: 1;
  min-width: 0;
  font-family: Consolas, Menlo, monospace;
  text-transform: uppercase;
}

.license-row input::placeholder {
  text-transform: none;
}

.license-form .form-error:empty {
  display: none;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Të dhënat e biznesit: lista e qetë, pa kuti brenda kutisë. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 0;
}

.facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.account .rows .row {
  padding: 11px 0;
}

.account .rows small {
  font-size: 12.5px;
}

.account .rows .btn-small {
  flex: none;
}

.rows-more {
  margin: 8px 0 0 -8px;
  color: var(--brand-2);
}

.staff-pin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-card {
  align-self: center;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-main,
  .account-side {
    grid-column: 1;
    grid-row: auto;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .topbar-user {
    width: 100%;
  }
  .user-chip {
    margin-right: auto;
  }
  .user-chip small,
  #switch-user span {
    display: none;
  }
  .hero {
    padding: 20px;
  }
  .hero-top {
    flex-wrap: wrap;
    gap: 14px;
  }
  .hero-top .grow {
    flex-basis: calc(100% - 80px);
  }
  .hero h1 {
    font-size: 21px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .account .card-head {
    padding: 18px 18px 0;
  }
  .account .card-body {
    padding: 12px 18px 18px;
  }
  .reg-grid {
    grid-template-columns: 1fr;
  }
  .account-page {
    padding: 20px 16px 40px;
  }
}
