/* ── BatiKraft Website — Customer Portal ── */

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ── LOGIN SCREEN ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.login-logo svg { color: var(--primary); }

/* ── SUBSCRIPTION ── */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.sub-stat {
  background: var(--bg3);
  border-radius: 8px;
  padding: 14px 16px;
}

.sub-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sub-stat .value { font-size: 1.1rem; font-weight: 700; }

/* ── MACHINE LIST ── */
.machine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 51, 71, 0.5);
}

.machine-row:last-child { border-bottom: none; }

.machine-info { flex: 1; min-width: 0; }

.machine-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.machine-id {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.machine-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── DOWNLOADS ── */
.dl-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dl-card-mobile { align-items: flex-start; }

.dl-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.dl-card-icon-mobile {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.2);
  color: #818cf8;
  margin-top: 2px;
}

.dl-card-body { flex: 1; min-width: 0; }
.dl-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.dl-card-sub   { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.dl-qr-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--bg2);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-qr-wrap svg { width: 68px; height: 68px; }

/* ── DANGER BUTTON VARIANT ── */
.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  text-decoration: none;
}
