body.tight .card-row {
  padding: 6px 8px;
  gap: 6px;
}

body.tight .card-media {
  width: 42%;
  min-width: 110px;
}

body.tight .card-sku {
  font-size: 14px;
}

body.tight .card-name {
  font-size: 10px;
  -webkit-line-clamp: 1;
}

body.tight .meta-grid {
  padding: 4px;
  gap: 4px;
}

body.tight .meta-box {
  padding: 4px 6px;
}

body.tight .meta-label {
  font-size: 8px;
}

body.tight .meta-value {
  font-size: 13px;
}

body.tight .meta-value.big {
  font-size: 14px;
}

body.tight .tag-row {
  padding: 4px;
  gap: 4px;
}

body.tight .tag-chip {
  padding: 4px 7px;
  font-size: 9px;
}

body.tight .gs-item {
  padding: 4px;
}

body.tight .gs-lbl {
  font-size: 7px;
}

body.tight .gs-val {
  font-size: 12px;
}

body.tight .qty-control {
  width: 100px;
  height: 30px;
}

body.tight .qc-btn {
  width: 26px;
  font-size: 15px;
}

body.tight .qc-val {
  font-size: 13px;
}

body.tight .action-ok {
  height: 30px;
  font-size: 12px;
}

/* SEARCH ITEMS */
.search-item {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.search-item:last-child {
  border-bottom: none;
}

.si-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.si-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.si-content {
  flex: 1;
  min-width: 0;
}

.si-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.si-sku {
  font-weight: 900;
  font-size: 14px;
}

.si-name {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.2;
}

.si-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
}

.si-pill {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.si-pill b {
  color: var(--text);
}

.si-status {
  font-size: 16px;
}

/* CHIPS */
.chips-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
  display: flex;
  gap: 6px;
}

.chips-wrap::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* MODALS */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: popUp 0.2s ease-out;
}

@keyframes popUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-head {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 16px;
  background: var(--bg);
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 80vh;
  overflow-y: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 520px;
  height: min(62vh, 520px);
  max-height: min(62vh, 520px);
  background: var(--card);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.25);
  transform: translateY(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bottom-sheet.dragging {
  transition: none;
}

.pages-hint {
  font-size: 12px;
  font-weight: 800;
  min-height: 16px;
}

.pages-hint.ok {
  color: var(--green);
}

.pages-hint.err {
  color: var(--red);
}

.active-row {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.active-page {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.active-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.active-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.active-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--green));
  transition: width .25s ease;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background: var(--bg);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.sb-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.sb-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 2px;
}

.progress-ring {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 0.3s ease;
}

.work-prog-page {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body.dark .work-prog-page {
  background: #0f172a;
  border-color: #334155;
  color: #e5e7eb;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.leaderboard-item .lb-name {
  flex: 1;
}

.leaderboard-item .lb-count {
  font-weight: 900;
  color: var(--primary);
}

#qrModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  display: none;
}

#reader {
  width: 100%;
  height: 100%;
}

.qr-close {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 900;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  z-index: 3001;
}

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

.img-zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === РќРћР’Р«Р™ Р”РР—РђР™Рќ РўРђР‘Р›РР¦Р« (DESKTOP MODE) === */
#screenTable {
  display: none;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  /* РЈРґР°Р»СЏРµРј РїР°РґРґРёРЅРіРё С‡С‚РѕР±С‹ Р·Р°РЅСЏС‚СЊ РІРµСЃСЊ СЌРєСЂР°РЅ */
  padding: 0 !important;
}

#screenTable.active {
  display: flex;
}

.table-toolbar {
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 6px 16px rgba(12, 18, 32, 0.05);
}

.table-body {
  flex: 1;
  overflow: auto;
  overflow-x: auto;
  position: relative;
  background: var(--bg);
  padding: 12px;
  min-height: 0;
  /* Р’Р°Р¶РЅРѕ РґР»СЏ flex-РєРѕРЅС‚РµР№РЅРµСЂР° */
}

/* РЎС‚РёР»Рё С‚Р°Р±Р»РёС†С‹ РґР°РЅРЅС‹С… */
#pvGrid {
  min-width: 100%;
}

.data-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.35;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f8f6f2;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
  z-index: 5;
}

body.dark .data-table th {
  background: #334155;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.5);
}

.data-table tbody tr:hover {
  background: var(--primary-bg);
}

.data-table .col-row {
  width: 52px;
  text-align: right;
  color: var(--muted);
}

.data-table .col-page {
  width: 70px;
  text-align: center;
  color: var(--muted);
}

.data-table .col-sku {
  font-weight: 800;
  white-space: nowrap;
}

.data-table .col-name {
  white-space: normal;
  min-width: 220px;
  max-width: 420px;
}

.data-table .col-place {
  min-width: 120px;
}

.data-table .col-num {
  text-align: right;
}

.data-table .col-price {
  width: 90px;
}

.data-table .col-money {
  width: 110px;
}

.data-table .col-input {
  background: var(--primary-bg);
}

.data-table .status-ok {
  color: var(--green);
}

.data-table .sortable {
  cursor: default;
}

.data-table .sortable .sort-ind {
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.5;
}

.data-table .sortable.is-active {
  color: var(--text);
}

.data-table .sortable.is-active .sort-ind {
  opacity: 1;
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: #475569;
}

.status-badge.done {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* РРЅРїСѓС‚С‹ РІ С‚Р°Р±Р»РёС†Рµ */
.tbl-inp {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.tbl-inp:focus {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.tbl-inp.saved {
  background: var(--green-bg);
  color: var(--green);
}

.tbl-inp::placeholder {
  color: #ccc;
  font-weight: 400;
}

.sku-cell {
  cursor: pointer;
  text-decoration: none;
}

.sku-cell:hover {
  color: var(--primary);
}

.sku-popover {
  position: fixed;
  z-index: 2500;
  display: none;
  max-width: 320px;
  width: 300px;
  max-height: 260px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(12, 18, 32, 0.18);
  padding: 10px;
}

.sku-popover .pv-head {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.sku-popover .pv-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sku-popover .pv-img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7f5f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sku-popover .pv-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sku-popover .pv-noimg {
  font-size: 10px;
  color: var(--muted);
}

.sku-popover .pv-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.sku-popover .pv-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sku-popover .pv-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}

.sku-popover .pv-val {
  font-weight: 800;
}

@media (max-width: 900px) {
  .data-table {
    min-width: 1240px;
  }

  .table-body {
    padding: 8px;
  }
}

/* РџР°РЅРµР»СЊ Р»РѕРіРѕРІ РІРЅРёР·Сѓ */
.logs-panel {
  height: 180px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.logs-head {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.logs-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.log-item {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: background 0.2s;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-item:hover {
  background: var(--bg);
  cursor: pointer;
}

.log-time {
  color: var(--muted);
  font-family: monospace;
  font-size: 11px;
}

.log-sku {
  font-weight: 800;
  min-width: 60px;
  color: var(--primary);
}

.log-val {
  font-weight: 700;
  color: var(--text);
}

/* TEST RUN LOGS */
.test-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
}

.test-log-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test-log-item.ok {
  border-left-color: var(--green);
}

.test-log-item.warn {
  border-left-color: var(--orange);
}

.test-log-item.error {
  border-left-color: var(--red);
}

.test-log-time {
  color: var(--muted);
  font-size: 10px;
}

.test-log-msg {
  color: var(--text);
  font-weight: 700;
}

.test-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.test-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 12px;
}

.test-check .state {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex: 0 0 18px;
}

.test-check.ok .state {
  background: var(--green);
}

.test-check.pending .state {
  background: #94a3b8;
}

.test-check.warn .state {
  background: var(--orange);
}

.test-check .label {
  font-weight: 800;
  color: var(--text);
}

.test-check .desc {
  color: var(--muted);
  font-size: 11px;
}

.test-check .actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.test-check .btn-mini {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 8px;
}

body.dark .test-check {
  background: #111827;
  border-color: #1f2937;
}

/* ============================================
   LOGIN SCREEN - Premium Design (Fixed)
   ============================================ */

#loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 24px;

  /* Neutral dark background */
  background: linear-gradient(145deg, #1a1f2e 0%, #252b3d 50%, #1e2433 100%);

  /* Prevent scroll */
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* Subtle floating orbs */
#loginOverlay::before,
#loginOverlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
}

#loginOverlay::before {
  width: 350px;
  height: 350px;
  background: #3b82f6;
  top: -120px;
  right: -80px;
}

#loginOverlay::after {
  width: 300px;
  height: 300px;
  background: #6366f1;
  bottom: -100px;
  left: -60px;
}

/* Title */
.login-title {
  font-weight: 700;
  font-size: 32px;
  color: #f1f5f9;
  text-align: center;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

/* ========== STEPPER ========== */
.login-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-stepper .step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-stepper .step.active .step-circle {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
  transform: scale(1.08);
}

.login-stepper .step.completed .step-circle {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.login-stepper .step.completed .step-circle span {
  display: none;
}

.login-stepper .step.completed .step-circle::after {
  content: '✓';
  font-size: 18px;
  font-weight: 700;
  animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.login-stepper .step-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.login-stepper .step.active .step-label {
  color: rgba(255, 255, 255, 0.9);
}

.login-stepper .step.completed .step-label {
  color: #4ade80;
}

.login-stepper .step-line {
  width: 70px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 14px;
  margin-bottom: 22px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.login-stepper .step-line.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  animation: lineGrow 0.5s ease-out forwards;
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ========== LOGIN CONTAINER ========== */
.login-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* ========== LOGIN BOX ========== */
.login-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.4s ease;
  position: relative;
}

/* Verified state - blur effect */
.login-box.verified {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.15);
}

.login-box.verified .step-content {
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* Mobile collapsed */
.login-box.collapsed {
  max-height: 64px;
  padding: 18px 28px;
  overflow: hidden;
}

.login-box.collapsed .step-content {
  opacity: 0;
  height: 0;
}

/* Entering animation */
.login-box.entering {
  animation: cardSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Error shake */
.login-box.error {
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  15%,
  45%,
  75% {
    transform: translateX(-6px);
  }

  30%,
  60%,
  90% {
    transform: translateX(6px);
  }
}

/* Step header */
.login-box .step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #f1f5f9;
  font-weight: 600;
}

.login-box .step-header .step-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.login-box.verified .step-header .step-badge {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.login-box .step-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Verified status */
.login-box .verified-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  animation: statusPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statusPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.login-box .verified-status .check-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ========== DESKTOP ========== */
@media (min-width: 768px) {
  .login-container {
    flex-direction: row;
    gap: 24px;
    max-width: 860px;
  }

  .login-box {
    flex: 1;
    min-width: 0;
  }

  .login-box.collapsed {
    max-height: none;
    padding: 28px;
  }

  .login-box.collapsed .step-content {
    opacity: 0.5;
    height: auto;
  }

  .login-box.verified .step-content {
    filter: blur(1.5px);
  }

  .login-stepper .step-line {
    width: 100px;
  }
}

/* ========== INPUTS ========== */
.login-box select,
.login-box input[type="password"],
.login-box input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 50px;
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.login-box select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

.login-box select option {
  background: #1e2433;
  color: #f1f5f9;
  padding: 12px;
}

.login-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-box select:focus,
.login-box input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Primary button */
.login-box .btn.primary {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.login-box .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.login-box .btn.primary:active {
  transform: translateY(0) scale(0.98);
}

/* Row layout */
.login-box .row {
  display: flex;
  gap: 8px;
}

.login-box .row input {
  flex: 1;
  min-width: 0;
}

.login-box .row .btn.ghost {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-box .row .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Error messages */
#loginGroupErr,
#loginProfileErr {
  color: #f87171 !important;
  font-size: 12px !important;
  font-weight: 500;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  display: none;
}

#loginGroupErr:not(:empty),
#loginProfileErr:not(:empty) {
  display: block;
  animation: errorFadeIn 0.25s ease;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AUTOMATICALLY ADDED: REVISION & LIQUID STYLES */

/* Revisions Card */
.rev-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.rev-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.rev-card.active {
  border-color: var(--primary);
  background: linear-gradient(145deg, var(--card) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.rev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rev-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.rev-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.rev-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.rev-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rev-status.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.rev-status.closed {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Skeleton Loader */
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.medium {
  width: 70%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Liquid Button */
.liquid-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary), #6366f1);
  color: white;
  border: none;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.liquid-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.liquid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}


.liquid-btn:hover::before {
  left: 100%;
}

/* Settings Panel */
.rev-settings-panel {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 16px;
  margin: 0 -16px -16px -16px;
  /* Bleed to edges */
  background-color: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.rev-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rev-set-block h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rev-set-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rs-inp {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
}

.rs-list {
  font-size: 13px;
  color: var(--text-secondary);
}

.rev-set-block.danger {
  border-left: 2px solid var(--red);
  padding-left: 12px;
}

/* Polished Card Base */
.rev-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  /* Base shadow */
}