/* [project]/src/app/globals.css [app-client] (css) */
*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --sidebar-bg: #0f1523;
  --sidebar-hover: #1c2438;
  --sidebar-active-bg: #1a3a4a;
  --sidebar-border: #ffffff12;
  --sidebar-text: #8b9bb4;
  --sidebar-text-active: #fff;
  --sidebar-icon: #5a6a85;
  --sidebar-icon-active: #25d366;
  --sidebar-section: #4a5568;
  --accent: #25d366;
  --accent-hover: #20c062;
  --accent-light: #25d3661f;
  --accent-dim: #25d36614;
  --purple: #7c3aed;
  --purple-light: #7c3aed1f;
  --bg: #f1f5f9;
  --bg-card: #fff;
  --bg-hover: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #fff;
  --success: #22c55e;
  --success-bg: #22c55e1a;
  --warning: #f59e0b;
  --warning-bg: #f59e0b1a;
  --danger: #ef4444;
  --danger-bg: #ef44441a;
  --info: #3b82f6;
  --info-bg: #3b82f61a;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;
  --shadow-xs: 0 1px 2px #0000000d;
  --shadow-sm: 0 1px 3px #00000014, 0 1px 2px #0000000d;
  --shadow: 0 4px 6px #00000012, 0 2px 4px #0000000d;
  --shadow-md: 0 10px 15px #00000014, 0 4px 6px #0000000d;
  --shadow-lg: 0 20px 25px #0000001a, 0 10px 10px #0000000a;
  --transition: .15s ease;
  --transition-md: .25s ease;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

#__next {
  height: 100%;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.toast-container {
  z-index: 9999;
  pointer-events: none;
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.toast {
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  pointer-events: all;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 18px;
  animation: .3s cubic-bezier(.34, 1.56, .64, 1) toastIn;
  display: flex;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--info);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-msg {
  color: var(--text-primary);
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(60px)scale(.9);
  }

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

.btn {
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  outline: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  text-decoration: none;
  display: inline-flex;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #25d36659;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid #ef444433;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-ghost {
  color: var(--text-secondary);
  background: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  border-radius: var(--r-sm);
  padding: 8px;
}

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

.form-label {
  color: var(--text-secondary);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  width: 100%;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all var(--transition);
  outline: none;
  padding: 10px 14px;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  width: 100%;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  outline: none;
  padding: 10px 36px 10px 14px;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.toggle-wrapper {
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  display: flex;
}

.toggle-wrapper:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.toggle-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.toggle {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  position: relative;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  background: var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--transition-md);
  position: absolute;
  inset: 0;
}

.toggle-slider:before {
  content: "";
  width: 18px;
  height: 18px;
  transition: all var(--transition-md);
  box-shadow: var(--shadow-xs);
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-header {
  border-bottom: 1px solid var(--border-light);
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  display: flex;
}

.card-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.card-body {
  padding: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-md);
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  display: flex;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card.mint {
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  border-color: #a7f3d0;
}

.stat-card.peach {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-color: #fde68a;
}

.stat-card.sky {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-color: #bfdbfe;
}

.stat-card.lavender {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border-color: #c4b5fd;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.stat-value {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.stat-empty {
  color: var(--text-secondary);
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
}

.badge {
  border-radius: var(--r-full);
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.badge-success {
  background: var(--success-bg);
  color: #16a34a;
}

.badge-warning {
  background: var(--warning-bg);
  color: #d97706;
}

.badge-danger {
  background: var(--danger-bg);
  color: #dc2626;
}

.badge-info {
  background: var(--info-bg);
  color: #2563eb;
}

.badge-neutral {
  background: var(--border);
  color: var(--text-secondary);
}

.badge-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.badge-new {
  background: var(--success);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.badge-dot:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: left;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
}

td {
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  padding: 14px 16px;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-hover);
}

.modal-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  background: #0f152399;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: .15s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  animation: .25s cubic-bezier(.34, 1.56, .64, 1) modalIn;
  overflow-y: auto;
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  display: flex;
}

.modal-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  border-radius: var(--r-sm);
  background: var(--bg);
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  display: flex;
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-body {
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 24px;
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.9)translateY(20px);
  }

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

.page-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  display: flex;
}

.page-title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 14px;
}

.avatar {
  background: linear-gradient(135deg, var(--accent), #128c7e);
  color: #fff;
  text-transform: uppercase;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  display: flex;
}

.empty-icon {
  opacity: .3;
  font-size: 48px;
}

.empty-title {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}

.empty-desc {
  color: var(--text-muted);
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
}

.spinner {
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-page {
  background: linear-gradient(135deg, #0f1523 0%, #1a2540 50%, #0d2137 100%);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.auth-page:before {
  content: "";
  background: radial-gradient(circle, #25d36614 0%, #0000 70%);
  border-radius: 50%;
  width: 500px;
  height: 500px;
  position: absolute;
  top: -200px;
  right: -200px;
}

.auth-page:after {
  content: "";
  background: radial-gradient(circle, #7c3aed0f 0%, #0000 70%);
  border-radius: 50%;
  width: 600px;
  height: 600px;
  position: absolute;
  bottom: -200px;
  left: -200px;
}

.auth-card {
  z-index: 1;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 48px 44px;
  position: relative;
  box-shadow: 0 25px 50px #0006;
}

.auth-logo {
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  display: flex;
}

.auth-logo-icon {
  background: linear-gradient(135deg, var(--accent), #128c7e);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  display: flex;
  box-shadow: 0 8px 24px #25d3664d;
}

.auth-logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.auth-title {
  color: #fff;
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 800;
}

.auth-subtitle {
  color: #ffffff80;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.6;
}

.auth-input {
  border-radius: var(--r);
  width: 100%;
  font-size: 14px;
  font-family: var(--font);
  color: #fff;
  transition: all var(--transition);
  background: #ffffff0d;
  border: 1.5px solid #ffffff1a;
  outline: none;
  padding: 12px 16px;
}

.auth-input:focus {
  border-color: var(--accent);
  background: #ffffff14;
  box-shadow: 0 0 0 3px #25d36626;
}

.auth-input::placeholder {
  color: #ffffff4d;
}

.auth-label {
  color: #fff9;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.auth-btn {
  background: linear-gradient(135deg, var(--accent), #128c7e);
  color: #fff;
  border-radius: var(--r);
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition-md);
  border: none;
  margin-top: 8px;
  padding: 13px;
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #25d36666;
}

.auth-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth-link {
  text-align: center;
  color: #ffffff80;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.auth-error {
  border-radius: var(--r);
  color: #fca5a5;
  background: #ef44441a;
  border: 1px solid #ef44444d;
  margin-bottom: 4px;
  padding: 12px 16px;
  font-size: 13px;
}

.app-shell {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  width: 240px;
  transition: width var(--transition-md);
  flex-direction: column;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
}

.sidebar-logo {
  border-bottom: 1px solid var(--sidebar-border);
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  display: flex;
}

.sidebar-logo-icon {
  background: linear-gradient(135deg, var(--accent), #128c7e);
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  box-shadow: 0 4px 12px #25d36640;
}

.sidebar-logo-text {
  color: #fff;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
}

.sidebar-logo-sub {
  color: var(--sidebar-text);
  letter-spacing: .05em;
  font-size: 10px;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-section {
  color: var(--sidebar-section);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 20px 16px 6px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-item {
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--sidebar-text);
  align-items: center;
  gap: 12px;
  margin: 1px 8px;
  padding: 10px 16px;
  text-decoration: none;
  display: flex;
  position: relative;
}

.sidebar-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-item.active {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #25d36626;
}

.sidebar-item.active .sidebar-icon {
  color: var(--accent);
}

.sidebar-icon {
  opacity: .8;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.sidebar-item.active .sidebar-icon {
  opacity: 1;
}

.sidebar-label {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-item.active .sidebar-label {
  font-weight: 600;
}

.sidebar-badge {
  background: var(--accent);
  color: #000;
  border-radius: var(--r-full);
  margin-left: auto;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 16px;
}

.sidebar-user {
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--transition);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.sidebar-user:hover {
  background: var(--sidebar-hover);
}

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

.sidebar-user-name {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.sidebar-user-role {
  color: var(--sidebar-text);
  text-transform: capitalize;
  font-size: 11px;
  font-weight: 500;
}

.sidebar-submenu-tree {
  border-left: 1px dotted #ffffff1a;
  margin-top: -4px;
  margin-bottom: 8px;
  margin-left: 24px;
  padding-left: 12px;
  position: relative;
}

.sidebar-subitem {
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--sidebar-text);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  display: flex;
  position: relative;
}

.sidebar-subitem:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-subitem.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar-subitem-line {
  border-bottom: 1px dotted #ffffff1a;
  width: 12px;
  height: 1px;
  position: absolute;
  top: 16px;
  left: -13px;
}

.sidebar-subicon {
  opacity: .7;
  width: 16px;
  height: 16px;
}

.sidebar-subitem.active .sidebar-subicon {
  opacity: 1;
}

.sidebar-subitem-label {
  font-size: 13px;
  font-weight: 500;
}

.sidebar-subitem.active .sidebar-subitem-label {
  color: #fff;
  font-weight: 600;
}

.sidebar-chevron {
  opacity: .5;
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform .2s;
}

.sidebar-chevron.open {
  opacity: .8;
  transform: rotate(180deg);
}

.main-content {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 28px;
  display: flex;
}

.topbar-search {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  width: 260px;
  transition: all var(--transition);
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  display: flex;
}

.topbar-search:focus-within {
  border-color: var(--accent);
  width: 320px;
}

.topbar-search input {
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  width: 100%;
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

.topbar-right {
  align-items: center;
  gap: 12px;
  display: flex;
}

.topbar-role-pill {
  background: var(--purple-light);
  color: var(--purple);
  border-radius: var(--r-full);
  text-transform: capitalize;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.page-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.qr-container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  display: flex;
}

.qr-ring {
  box-shadow: var(--shadow-md);
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  position: relative;
}

.qr-ring:before {
  content: "";
  background: linear-gradient(135deg, var(--accent), #128c7e, var(--accent));
  z-index: -1;
  background-size: 200% 200%;
  border-radius: 24px;
  animation: 2s linear infinite gradientRotate;
  position: absolute;
  inset: -4px;
}

@keyframes gradientRotate {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }

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

.qr-status-text {
  color: var(--text-secondary);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.qr-hint {
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
}

.qr-step {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.qr-step-num {
  background: var(--accent-light);
  width: 24px;
  height: 24px;
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.qr-step-text {
  color: var(--text-secondary);
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.connecting-animation {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  display: flex;
}

.pulse-ring {
  background: var(--accent-light);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  animation: 2s ease-in-out infinite pulse;
  display: flex;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .8;
    transform: scale(1.08);
  }
}

.chats-layout {
  gap: 0;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.chats-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  display: flex;
}

.chats-account-tabs {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  overflow-x: auto;
}

.chats-account-tab {
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 2px solid #0000;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.chats-account-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.chats-account-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}

.chats-search {
  border-bottom: 1px solid var(--border-light);
  padding: 12px;
}

.chats-search-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  width: 100%;
  font-size: 13px;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
  padding: 9px 14px;
}

.chats-search-input:focus {
  border-color: var(--accent);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.chat-item:hover {
  background: var(--bg-hover);
}

.chat-item.active {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
}

.chat-item-avatar {
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

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

.chat-item-name {
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.chat-item-preview {
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
}

.chat-item-meta {
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.chat-item-time {
  color: var(--text-muted);
  font-size: 11px;
}

.chat-unread {
  background: var(--accent);
  color: #000;
  border-radius: var(--r-full);
  text-align: center;
  min-width: 20px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.message-area {
  background: #e5ddd5 url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.message-topbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #fffffff2;
  border-bottom: 1px solid #00000014;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  display: flex;
}

.message-list {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 16px 20px;
  display: flex;
  overflow-y: auto;
}

.msg-row {
  display: flex;
}

.msg-row.mine {
  justify-content: flex-end;
}

.msg-bubble {
  word-break: break-word;
  border-radius: 12px;
  max-width: 65%;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.msg-bubble.theirs {
  background: #fff;
  border-radius: 2px 12px 12px;
  box-shadow: 0 1px 2px #0000001a;
}

.msg-bubble.mine {
  background: #d9fdd3;
  border-radius: 12px 12px 2px;
  box-shadow: 0 1px 2px #0000001a;
}

.msg-time {
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  font-size: 10px;
}

.msg-input-area {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #fffffff2;
  border-top: 1px solid #00000014;
  padding: 12px 16px;
}

.msg-input-form {
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  display: flex;
}

.msg-input {
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  flex: 1;
}

.msg-input::placeholder {
  color: var(--text-muted);
}

.msg-send-btn {
  background: var(--accent);
  cursor: pointer;
  color: #fff;
  width: 38px;
  height: 38px;
  transition: all var(--transition);
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.msg-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.msg-send-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.msg-empty {
  opacity: .4;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 100%;
  display: flex;
}

.accounts-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  display: grid;
}

.account-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.account-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.account-card:before {
  content: "";
  background: var(--border);
  height: 3px;
  transition: background var(--transition-md);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.account-card.ready:before {
  background: linear-gradient(90deg, var(--accent), #128c7e);
}

.account-card.scanning:before {
  background: linear-gradient(90deg, var(--warning), #f59e0b);
  animation: 1.5s linear infinite shimmer;
}

.account-card.disconnected:before {
  background: var(--danger);
}

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

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

.account-card-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  display: flex;
}

.account-card-icon {
  background: linear-gradient(135deg, #25d36618, #128c7e18);
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  display: flex;
}

.account-card-actions {
  gap: 6px;
  display: flex;
}

.account-card-name {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}

.account-card-phone {
  color: var(--text-muted);
  font-size: 13px;
}

.account-card-meta {
  border-top: 1px solid var(--border-light);
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
}

.plan-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  transition: all var(--transition-md);
  padding: 28px;
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
}

.plan-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.plan-popular-badge {
  background: linear-gradient(135deg, var(--accent), #128c7e);
  color: #fff;
  border-radius: var(--r-full);
  white-space: nowrap;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-name {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  display: flex;
}

.plan-price-amount {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 800;
}

.plan-price-currency {
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.plan-price-period {
  color: var(--text-muted);
  font-size: 13px;
}

.plan-price-note {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 12px;
}

.plan-features {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  list-style: none;
  display: flex;
}

.plan-feature {
  color: var(--text-secondary);
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
}

.plan-feature-check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.chart-section {
  margin-bottom: 32px;
}

.chart-section-title {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.chart-section-subtitle {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 13px;
}

.charts-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.chart-card-title {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.chart-area {
  height: 160px;
  position: relative;
}

.chart-legend {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  display: flex;
}

.chart-legend-item {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  display: flex;
}

.chart-legend-color {
  border-radius: 2px;
  width: 24px;
  height: 4px;
}

.perf-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

.perf-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.perf-card-title {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/