/* ===========================
   DESIGN SYSTEM
   =========================== */
:root {
  --bg-base: #0f1117;
  --bg-card: #1a1f2e;
  --bg-card2: #1e2436;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: #252b3b;

  --accent: #6366f1;
  --accent-light: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent2: #8b5cf6;

  --green: #22c55e;
  --green-light: rgba(34, 197, 94, 0.15);
  --orange: #f59e0b;
  --orange-light: rgba(245, 158, 11, 0.15);
  --blue: #3b82f6;
  --blue-light: rgba(59, 130, 246, 0.15);
  --red: #ef4444;
  --red-light: rgba(239, 68, 68, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);

  --nav-h: 72px;
  --header-h: 64px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #090b10;
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100dvh; /* Dynamic viewport height */
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  body {
    max-width: 100% !important;
    height: 100dvh;
    box-shadow: none;
  }
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

input,
textarea,
select {
  font-family: var(--font);
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ===========================
   SPLASH SCREEN
   =========================== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: splashFadeOut 0.6s ease 2.2s forwards;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splashIn 0.8s var(--transition) 0.3s both;
}

.splash-icon {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.5));
}

.splash-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.splash-logo p {
  font-size: 14px;
  color: var(--text-secondary);
}

.splash-loader {
  position: absolute;
  bottom: 60px;
  width: 120px;
  height: 3px;
  background: var(--bg-card);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  animation: loadProgress 2s ease 0.5s forwards;
}

/* ===========================
   APP CONTAINER
   =========================== */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  animation: appFadeIn 0.4s ease both;
}

/* ===========================
   HEADER
   =========================== */
#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#header-title-wrap {
  display: flex;
  flex-direction: column;
}

#header-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.icon-btn:active {
  transform: scale(0.93);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.avatar-btn:active {
  transform: scale(0.93);
}

/* ===========================
   MAIN CONTENT
   =========================== */
#main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 calc(var(--nav-h) + 8px) 0;
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s var(--transition);
  -webkit-overflow-scrolling: touch;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.page.active.page-flex {
  display: flex !important;
  flex-direction: column;
}

.page.slide-out {
  opacity: 0;
  transform: translateX(-30px);
}

/* Scrollbar */
.page::-webkit-scrollbar {
  width: 0;
}

/* ===========================
   HOME PAGE
   =========================== */
.greeting-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}

.greeting-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.greeting-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.date-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.date-chip svg {
  width: 14px;
  height: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 8px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-card.featured .stat-info {
  flex: 1;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.stat-icon.orange {
  background: var(--orange-light);
}

.stat-icon.orange svg {
  stroke: var(--orange);
}

.stat-icon.green {
  background: var(--green-light);
}

.stat-icon.green svg {
  stroke: var(--green);
}

.stat-icon.blue {
  background: var(--blue-light);
}

.stat-icon.blue svg {
  stroke: var(--blue);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-card.featured .stat-value {
  font-size: 22px;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
}

.stat-trend.positive {
  color: var(--green);
}

.stat-trend.negative {
  color: var(--red);
}

.stat-trend.neutral {
  color: var(--orange);
}

.stat-trend svg {
  width: 12px;
  height: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.see-all {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.see-all:hover {
  background: var(--accent-light);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 8px;
  overflow-x: auto;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  transition: all 0.2s;
}

.quick-btn:active {
  transform: scale(0.92);
}

.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
}

.quick-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.quick-icon.green {
  background: var(--green-light);
}

.quick-icon.green svg {
  stroke: var(--green);
}

.quick-icon.orange {
  background: var(--orange-light);
}

.quick-icon.orange svg {
  stroke: var(--orange);
}

.quick-icon.blue {
  background: var(--blue-light);
}

.quick-icon.blue svg {
  stroke: var(--blue);
}

.quick-icon.purple {
  background: var(--accent-light);
}

.quick-btn span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Activity List */
.activity-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.activity-item:active {
  transform: scale(0.98);
}

.activity-item:hover {
  border-color: var(--border-hover);
}

.act-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-icon svg {
  width: 18px;
  height: 18px;
}

.act-info {
  flex: 1;
  min-width: 0;
}

.act-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.act-sub {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-right {
  text-align: right;
  flex-shrink: 0;
}

.act-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.act-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===========================
   STATUS BADGES
   =========================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.status-new {
  background: var(--accent-light);
  color: var(--accent);
}

.status-processing {
  background: var(--orange-light);
  color: var(--orange);
}

.status-done {
  background: var(--green-light);
  color: var(--green);
}

.status-shipped {
  background: var(--blue-light);
  color: var(--blue);
}

.status-pending {
  background: var(--orange-light);
  color: var(--orange);
}

.status-delivered {
  background: var(--green-light);
  color: var(--green);
}

.status-in {
  background: var(--green-light);
  color: var(--green);
}

.status-out {
  background: var(--red-light);
  color: var(--red);
}

/* ===========================
   PAGE TOOLBAR
   =========================== */
.page-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-base);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.filter-btn:active {
  transform: scale(0.93);
}

/* Status Tabs */
.status-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.status-tab.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.status-tab:active {
  transform: scale(0.95);
}

/* Document List */
.doc-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  animation: itemIn 0.3s var(--transition) both;
}

.doc-item:active {
  transform: scale(0.98);
}

.doc-item:hover {
  border-color: var(--border-hover);
}

.doc-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.doc-num {
  font-size: 15px;
  font-weight: 700;
}

.doc-client {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.doc-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.doc-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===========================
   FAB BUTTON
   =========================== */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: calc((100% - 480px) / 2 + 16px);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: all 0.2s;
  z-index: 20;
}

@media (max-width: 480px) {
  .fab {
    right: 16px;
  }
}

.fab svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.fab:active {
  transform: scale(0.92);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===========================
   FORM STYLES
   =========================== */
.form-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-field:focus {
  border-color: var(--accent);
}

.input-field.textarea {
  min-height: 80px;
  resize: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.5);
  cursor: pointer;
}

.select-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-field:hover {
  border-color: var(--border-hover);
}

.select-field.selected {
  color: var(--text-primary);
}

.select-field svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.add-product-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.add-product-btn svg {
  width: 16px;
  height: 16px;
}

.add-product-btn:active {
  transform: scale(0.95);
}

.empty-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-muted);
}

.empty-products svg {
  width: 40px;
  height: 40px;
}

.empty-products p {
  font-size: 13px;
}

.product-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: itemIn 0.2s var(--transition) both;
}

.pli-info {
  flex: 1;
}

.pli-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pli-price {
  font-size: 12px;
  color: var(--text-secondary);
}

.pli-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-val {
  font-size: 15px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.pli-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: all 0.2s;
}

.pli-del svg {
  width: 14px;
  height: 14px;
}

.pli-del:active {
  transform: scale(0.9);
}

.order-total-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.total-row span:first-child {
  color: var(--text-secondary);
}

.total-amount-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.2s;
  border: none;
}

.submit-btn.green {
  background: linear-gradient(135deg, #15803d, #22c55e);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn svg {
  width: 20px;
  height: 20px;
}

/* ===========================
   PAYMENT STYLES
   =========================== */
.payment-type-toggle {
  display: flex;
  gap: 8px;
}

.ptype-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.ptype-btn svg {
  width: 18px;
  height: 18px;
}

.ptype-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.ptype-btn.active-green {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.ptype-btn:active {
  transform: scale(0.97);
}

.amount-input-wrap {
  position: relative;
}

.amount-input {
  padding-right: 50px;
  font-size: 20px;
  font-weight: 700;
}

.currency-label {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pmethod-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.pmethod-btn svg {
  width: 18px;
  height: 18px;
}

.pmethod-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.pmethod-btn:active {
  transform: scale(0.97);
}

/* ===========================
   POKAZATELI STYLES
   =========================== */
.period-selector {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  overflow-x: auto;
}

.period-selector::-webkit-scrollbar {
  display: none;
}

.period-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.period-btn.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.period-btn:active {
  transform: scale(0.95);
}

.revenue-card {
  margin: 14px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.revenue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.period-label {
  color: var(--accent);
  font-weight: 600;
}

.revenue-amount {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  animation: progressIn 1s var(--transition) 0.3s both;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-pct {
  font-weight: 700;
  color: var(--accent);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.kpi-card:active {
  transform: scale(0.97);
}

.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-wrap.purple {
  background: var(--accent-light);
}

.kpi-icon-wrap.purple svg {
  stroke: var(--accent);
}

.kpi-icon-wrap.green {
  background: var(--green-light);
}

.kpi-icon-wrap.green svg {
  stroke: var(--green);
}

.kpi-icon-wrap.orange {
  background: var(--orange-light);
}

.kpi-icon-wrap.orange svg {
  stroke: var(--orange);
}

.kpi-icon-wrap.blue {
  background: var(--blue-light);
}

.kpi-icon-wrap.blue svg {
  stroke: var(--blue);
}

.kpi-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.kpi-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.kpi-change {
  font-size: 12px;
  font-weight: 600;
}

.kpi-change.positive {
  color: var(--green);
}

.kpi-change.negative {
  color: var(--red);
}

.chart-section {
  padding: 0 16px;
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: 180px;
  position: relative;
}

.top-products {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-product-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent);
}

.top-rank.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.top-rank.silver {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.top-rank.bronze {
  background: rgba(180, 83, 9, 0.15);
  color: #b45309;
}

.top-info {
  flex: 1;
}

.top-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.top-qty {
  font-size: 12px;
  color: var(--text-secondary);
}

.top-bar-wrap {
  flex: 1;
}

.top-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.top-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s var(--transition);
}

.top-amount {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
}

/* ===========================
   BOTTOM NAV
   =========================== */
#bottom-nav {
  display: flex;
  align-items: flex-start; /* Ensure items stay at the top */
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 20px));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0 8px env(safe-area-inset-bottom, 20px);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--nav-h); /* Restrict to actual nav bar height */
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 12px;
  padding: 4px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active svg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.nav-item:active {
  transform: scale(0.88);
}

/* ===========================
   MODALS & OVERLAYS
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease both;
  
  /* Universal centering */
  width: 100%;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

.success-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  margin: 24px;
  animation: scaleIn 0.3s var(--transition) both;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--green);
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--green);
}

.success-modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.success-close-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
}

.success-close-btn:active {
  transform: scale(0.97);
}

/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  animation: slideUp 0.3s var(--transition) both;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 12px auto 4px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px 12px;
}

.sheet-search {
  margin: 0 16px 8px;
}

.sheet-list {
  overflow-y: auto;
  padding: 0 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-list::-webkit-scrollbar {
  display: none;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sheet-item:active {
  transform: scale(0.98);
}

.sheet-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sheet-item-name {
  font-size: 14px;
  font-weight: 600;
}

.sheet-item-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Product picker item — don't shrink text on tap */
.sheet-product-item {
  cursor: default;
}

.sheet-product-item:active {
  transform: none;
}

.sheet-product-item>div[style*="flex:1"] {
  cursor: pointer;
}

.sheet-product-item>div[style*="flex:1"]:active {
  opacity: 0.7;
}

/* Picker quantity controls */
.picker-qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.picker-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.picker-qty-btn:active {
  transform: scale(0.88);
  background: var(--accent-light);
}

.picker-qty-btn.add {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.picker-qty-btn.add:active {
  background: var(--accent);
  color: white;
}

/* Editable number input inside picker */
.picker-qty-input {
  width: 40px;
  height: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  outline: none;
  padding: 0 2px;
  -webkit-appearance: none;
  appearance: textfield;
}

/* Hide number input spinners */
.picker-qty-input::-webkit-outer-spin-button,
.picker-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.picker-qty-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.picker-qty-input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px var(--accent-light);
}


.picker-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
}

.picker-add-btn svg {
  width: 16px;
  height: 16px;
}

.picker-add-btn:active {
  transform: scale(0.88);
  background: var(--accent);
  color: white;
}


/* ===========================
   DETAIL DRAWER
   =========================== */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  
  /* Universal centering */
  width: 100%;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

.detail-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s var(--transition) both;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.detail-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.detail-body::-webkit-scrollbar {
  display: none;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-key {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-val {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* ===========================
   PACK PICKER
   =========================== */
.pack-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pack-option {
  transition: background 0.15s;
}

.pack-option:hover {
  background: rgba(99, 102, 241, 0.06);
}

.pack-option:active {
  transform: scale(0.97);
}

.pli-pack-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 2px 0 3px;
}

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 200;
  white-space: nowrap;
  animation: toastIn 0.3s var(--transition) both;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes splashIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes loadProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes appFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressIn {
  from {
    width: 0 !important;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Staggered list animations */
.doc-item:nth-child(1) {
  animation-delay: 0.05s;
}

.doc-item:nth-child(2) {
  animation-delay: 0.10s;
}

.doc-item:nth-child(3) {
  animation-delay: 0.15s;
}

.doc-item:nth-child(4) {
  animation-delay: 0.20s;
}

.doc-item:nth-child(5) {
  animation-delay: 0.25s;
}

.doc-item:nth-child(6) {
  animation-delay: 0.30s;
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

/* ===========================
   MIJOZLAR PAGE
   =========================== */
.client-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  animation: itemIn 0.3s var(--transition) both;
}

.client-item:active {
  transform: scale(0.98);
}

.client-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.client-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.client-phone {
  font-size: 12px;
  color: var(--text-secondary);
}

.client-debt {
  font-size: 12px;
  font-weight: 600;
}

.client-debt.positive {
  color: var(--red);
}

.client-debt.zero {
  color: var(--green);
}

/* ===========================
   LOGIN PAGE
   =========================== */
#login-page {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  overflow-y: auto;
  animation: appFadeIn 0.4s ease both;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366f1, #8b5cf6);
  top: -100px;
  left: -80px;
  animation: blobDrift 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #8b5cf6, #6366f1);
  bottom: -60px;
  right: -60px;
  animation: blobDrift 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 20px) scale(1.1);
  }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: splashIn 0.6s var(--transition) 0.1s both;
}

.login-logo-icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.5));
}

.login-app-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-app-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: splashIn 0.6s var(--transition) 0.2s both;
  backdrop-filter: blur(10px);
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-label svg {
  width: 14px;
  height: 14px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap .login-input {
  padding-right: 50px;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--accent);
}

.pw-toggle svg {
  width: 18px;
  height: 18px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  animation: scaleIn 0.2s var(--transition) both;
}

.login-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px var(--accent-glow);
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: -0.2px;
}

.login-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-btn svg {
  width: 20px;
  height: 20px;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  justify-content: center;
}

.login-hint svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}