:root {
  --bg-primary: #f0f1f3;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f0f1f3;
  --bg-code: #f0f1f3;
  --bg-code-block: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #6c6c6c;
  --text-muted: #7a7a7a;
  --text-hint: #a0a0a0;
  --text-code-block: #e5e5ea;
  --border-color: #e5e5ea;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --btn-primary-bg: #1a1a1a;
  --btn-primary-text: #ffffff;
  --badge-bg: #e5e5ea;
}
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-card: #1e1e1e;
  --bg-sidebar: #1a1a1a;
  --bg-input: #2a2a2a;
  --bg-hover: #2a2a2a;
  --bg-code: #2a2a2a;
  --bg-code-block: #0d0d0d;
  --text-primary: #e5e5ea;
  --text-secondary: #a0a0a0;
  --text-muted: #8e8e93;
  --text-hint: #6c6c6c;
  --text-code-block: #e5e5ea;
  --border-color: #333333;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
  --btn-primary-bg: #e5e5ea;
  --btn-primary-text: #1a1a1a;
  --badge-bg: #333333;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1rem;
}
p {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
p:last-child {
  margin-bottom: 0;
}
small, .text-small {
  font-size: 0.75rem;
}
label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.text-secondary {
  color: var(--text-muted);
}
.text-muted {
  color: var(--text-hint);
}
.text-success {
  color: #34c759;
}
.text-warning {
  color: #ff9f0a;
}
.text-danger {
  color: #ff3b30;
}
.text-info {
  color: #007aff;
}
.text-primary {
  color: var(--text-primary);
}
.text-accent {
  color: #2d2d2d;
}
.font-bold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}
.sidebar-header {
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1.25rem 1.125rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--btn-primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--btn-primary-text);
  flex-shrink: 0;
}
.sidebar-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.sidebar-logo span,
.sidebar-logo h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
}
.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hint);
  padding: 0.875rem 0.75rem 0.375rem;
}
.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hint);
  padding: 1rem 0.75rem 0.5rem;
}
.sidebar-nav a,
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-nav a:hover,
.sidebar-nav .nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-nav a.active,
.sidebar-nav .nav-link.active {
  background-color: #2d2d2d;
  color: #ffffff;
}
.sidebar-nav a.active:hover,
.sidebar-nav .nav-link.active:hover {
  background-color: #3a3a3a;
  color: #ffffff;
}
.sidebar-nav a .nav-icon,
.sidebar-nav .nav-link .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.75;
}
.sidebar-nav a.active .nav-icon,
.sidebar-nav .nav-link.active .nav-icon {
  opacity: 1;
}
.sidebar-nav a .nav-badge,
.sidebar-nav .nav-link .nav-badge {
  margin-left: auto;
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.4375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}
.sidebar-nav a.active .nav-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.sidebar-theme-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.sidebar-logout:hover {
  background-color: #fef2f2;
  color: #dc2626;
}
.sidebar-bottom {
  padding: 1rem 1rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.sidebar-user:hover {
  background-color: var(--bg-hover);
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2d2d2d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-user-info {
  overflow: hidden;
}
.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--text-hint);
}
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
.nav-divider {
  height: 1px;
  background-color: #e5e5ea;
  margin: 0.5rem 0.75rem;
}
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.main-content {
  margin-left: 240px;
  min-height: 100vh;
  padding: 2rem;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-hint);
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--text-primary);
}
.breadcrumb .separator {
  color: var(--text-hint);
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.dashboard-main {
  min-width: 0;
}
.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}
.card-hover:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.card-header h2,
.card-header h3 {
  margin: 0;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.card-body {
}
.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-compact {
  padding: 1rem;
}
.card-flush {
  padding: 0;
}
.card-flush .card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}
.card-flush .card-footer {
  padding: 1rem 1.5rem;
  margin-top: 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stat-card-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.stat-card-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.375rem;
}
.stat-card-change.positive {
  color: #34c759;
}
.stat-card-change.negative {
  color: #ff3b30;
}
.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.stat-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table thead th {
  background-color: var(--bg-hover);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.table thead th:first-child {
  padding-left: 1.5rem;
}
.table thead th:last-child {
  padding-right: 1.5rem;
}
.table tbody td {
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.table tbody td:first-child {
  padding-left: 1.5rem;
}
.table tbody td:last-child {
  padding-right: 1.5rem;
}
.table tbody tr {
  transition: background-color 0.15s ease;
}
.table tbody tr:hover {
  background-color: var(--bg-hover);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table-compact thead th {
  padding: 0.5rem 0.75rem;
}
.table-compact tbody td {
  padding: 0.625rem 0.75rem;
}
.table .cell-mono {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}
.table .cell-truncate {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table .cell-actions {
  white-space: nowrap;
}
.table .cell-right {
  text-align: right;
}
.table .cell-center {
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  outline: none;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.15);
}
.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}
.btn-primary:hover {
  background-color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  opacity: 0.85;
}
.btn-primary:active {
  opacity: 0.75;
}
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: #f7f7f8;
  border-color: #d1d1d6;
}
.btn-secondary:active {
  background-color: var(--bg-hover);
}
.btn-danger {
  background-color: #ff3b30;
  color: #ffffff;
  border-color: #ff3b30;
}
.btn-danger:hover {
  background-color: #e6352b;
  border-color: #e6352b;
}
.btn-danger:active {
  background-color: #cc2f27;
}
.btn-danger-outline {
  background-color: var(--bg-card);
  color: #ff3b30;
  border-color: #ff3b30;
}
.btn-danger-outline:hover {
  background-color: #fff5f5;
}
.btn-success {
  background-color: #34c759;
  color: #ffffff;
  border-color: #34c759;
}
.btn-success:hover {
  background-color: #2db84f;
  border-color: #2db84f;
}
.btn-success:active {
  background-color: #28a745;
}
.btn-info {
  background-color: #007aff;
  color: #ffffff;
  border-color: #007aff;
}
.btn-info:hover {
  background-color: #006ee6;
  border-color: #006ee6;
}
.btn-warning {
  background-color: #ff9f0a;
  color: #ffffff;
  border-color: #ff9f0a;
}
.btn-warning:hover {
  background-color: #e68f09;
  border-color: #e68f09;
}
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}
.btn-link {
  background-color: transparent;
  color: #007aff;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-link:hover {
  color: #005ecb;
  text-decoration: underline;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-xl {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: 10px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  background: #f8f8fa;
  color: #6e6e73;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin-left: 0.375rem;
  font-size: 0.8125rem;
}
.btn-copy:hover {
  background: #e8e8ed;
  color: var(--text-primary);
  border-color: #b0b0b5;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-group {
  display: inline-flex;
  gap: 0;
}
.btn-group .btn {
  border-radius: 0;
}
.btn-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}
.btn-group .btn:last-child {
  border-radius: 0 8px 8px 0;
}
.btn-group .btn + .btn {
  margin-left: -1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-success {
  background-color: #ecfdf0;
  color: #1a7f37;
}
.badge-warning {
  background-color: #fff8eb;
  color: #9a6700;
}
.badge-danger {
  background-color: #fff0f0;
  color: #cf222e;
}
.badge-secondary {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}
.badge-info {
  background-color: #eef6ff;
  color: #0559b3;
}
.badge-dark {
  background-color: #2d2d2d;
  color: #ffffff;
}
.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-success.badge-dot::before {
  background-color: #34c759;
}
.badge-warning.badge-dot::before {
  background-color: #ff9f0a;
}
.badge-danger.badge-dot::before {
  background-color: #ff3b30;
}
.badge-secondary.badge-dot::before {
  background-color: var(--text-hint);
}
.badge-info.badge-dot::before {
  background-color: #007aff;
}
.badge-pill {
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
}
.form-group {
  margin-bottom: 1.125rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.form-label .required {
  color: #ff3b30;
  margin-left: 2px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.5625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:hover {
  border-color: #d1d1d6;
}
.form-control:focus {
  border-color: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.08);
}
.form-control::placeholder {
  color: var(--text-hint);
}
.form-control:disabled,
.form-control[readonly] {
  background-color: #f7f7f8;
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-control.is-invalid,
.form-control:invalid:not(:placeholder-shown) {
  border-color: #ff3b30;
}
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}
.invalid-feedback {
  font-size: 0.75rem;
  color: #ff3b30;
  margin-top: 0.3125rem;
}
.form-control.is-valid {
  border-color: #34c759;
}
.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}
.form-text {
  font-size: 0.75rem;
  color: var(--text-hint);
  margin-top: 0.3125rem;
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}
select.form-control {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237a7a7a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}
.form-control-sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}
.form-control-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #d1d1d6;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-card);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.form-check-input[type="radio"] {
  border-radius: 50%;
}
.form-check-input:checked {
  background-color: #2d2d2d;
  border-color: #2d2d2d;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8l3 3L12.5 5'/%3e%3c/svg%3e");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.form-check-input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='white'/%3e%3c/svg%3e");
}
.form-check-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 0;
}
.input-with-btn {
  display: flex;
  gap: 0.5rem;
}
.input-with-btn .form-control {
  flex: 1;
}
.input-with-btn .btn {
  flex-shrink: 0;
}
.form-switch {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}
.form-switch-input {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background-color: #d1d1d6;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}
.form-switch-input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.form-switch-input:checked {
  background-color: #2d2d2d;
}
.form-switch-input:checked::before {
  transform: translateX(18px);
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-radius: 0;
}
.input-group .form-control:first-child {
  border-radius: 8px 0 0 8px;
}
.input-group .form-control:last-child {
  border-radius: 0 8px 8px 0;
}
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: #f7f7f8;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}
.input-group-text:first-child {
  border-radius: 8px 0 0 8px;
  border-right: none;
}
.input-group-text:last-child {
  border-radius: 0 8px 8px 0;
  border-left: none;
}
.input-group .btn {
  border-radius: 0;
}
.input-group .btn:last-child {
  border-radius: 0 8px 8px 0;
}
.form-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.form-inline .form-group {
  margin-bottom: 0;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filter-bar-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.filter-item label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 0.375rem;
}
.filter-item .form-control {
  width: 100%;
}
.filter-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-bar .btn {
  flex-shrink: 0;
}
.filter-bar-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.card-header .filter-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-header .filter-inline .form-control {
  min-width: 0;
  width: 180px;
}
.search-input-wrapper {
  position: relative;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  pointer-events: none;
  font-size: 0.875rem;
}
.search-input-wrapper .form-control {
  padding-left: 2.25rem;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-link,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.pagination a:hover,
.pagination-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}
.pagination .active a,
.pagination .active span,
.pagination-link.active {
  background-color: #2d2d2d;
  color: #ffffff;
}
.pagination .disabled a,
.pagination .disabled span,
.pagination-link.disabled {
  color: var(--text-hint);
  pointer-events: none;
  cursor: not-allowed;
}
.pagination-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.active,
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal,
.modal-overlay.show .modal {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
  font-size: 1.125rem;
}
.modal-close:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}
.modal-body {
  padding: 1.5rem;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}
.modal-sm {
  max-width: 400px;
}
.modal-lg {
  max-width: 680px;
}
.modal-xl {
  max-width: 900px;
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.alert-content {
  flex: 1;
}
.alert-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.alert-dismiss {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  margin: -0.25rem -0.25rem -0.25rem 0;
  cursor: pointer;
}
.alert-dismiss:hover {
  background-color: rgba(0, 0, 0, 0.06);
}
.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert-danger,
.alert-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert-warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}
.alert-info {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.flash-messages {
  margin-bottom: 1.5rem;
}
.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-hover);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}
.auth-wrapper--centered {
  justify-content: center;
  align-items: center;
  background: #f5f5f7;
}
.auth-left {
  flex: 0 0 440px;
  background-color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 340px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.auth-brand-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.auth-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}
.auth-left-content > h2 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.875rem 0;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.auth-left-content > p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 2rem 0;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: background 0.2s;
}
.auth-feature:hover {
  background: rgba(255, 255, 255, 0.08);
}
.auth-feature i {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  width: 18px;
  text-align: center;
}
.auth-feature span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: var(--bg-hover);
}
.auth-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  padding: 2.25rem;
  width: 100%;
  max-width: 400px;
}
.auth-card-header {
  margin-bottom: 1.75rem;
}
.auth-card-header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}
.auth-card-header p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.auth-alert i {
  font-size: 0.875rem;
  flex-shrink: 0;
}
.auth-alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.auth-alert-success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.auth-field {
  margin-bottom: 1.125rem;
}
.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap i {
  position: absolute;
  left: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-hint);
  pointer-events: none;
  transition: color 0.2s;
}
.auth-input-wrap input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.25rem;
  border: 1px solid #d5d5da;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.auth-input-wrap input::placeholder {
  color: var(--text-hint);
}
.auth-input-wrap input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}
.auth-input-wrap:focus-within i {
  color: var(--text-primary);
}
.auth-fields-row {
  display: flex;
  gap: 0.75rem;
}
.auth-fields-row .auth-field {
  flex: 1;
  min-width: 0;
}
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6875rem 1.25rem;
  background-color: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  margin-top: 0.25rem;
  font-family: inherit;
}
.auth-btn:hover {
  background-color: #2d2d2d;
}
.auth-btn:active {
  transform: scale(0.99);
}
.auth-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.auth-btn:hover i {
  transform: translateX(2px);
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 0.25rem;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 960px) {
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 2rem 1rem;
  }
}
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
  .auth-fields-row {
    flex-direction: column;
    gap: 0;
  }
}
.right-sidebar {
  position: sticky;
  top: 2rem;
}
.balance-widget {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.balance-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.balance-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.balance-currency {
  font-size: 0.8125rem;
  color: var(--text-hint);
  margin-bottom: 1.25rem;
}
.balance-widget .btn-block {
  margin-top: 0.75rem;
}
.balance-details {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.balance-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}
.balance-detail-row .label {
  color: var(--text-muted);
}
.balance-detail-row .value {
  font-weight: 600;
  color: var(--text-primary);
}
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 10rem);
  min-height: 400px;
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.chat-header-info h3 {
  font-size: 0.9375rem;
  margin: 0;
}
.chat-header-info span {
  font-size: 0.75rem;
  color: var(--text-hint);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-message {
  display: flex;
  gap: 0.625rem;
  max-width: 80%;
}
.chat-message.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-message-bubble {
  padding: 0.625rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.chat-message.incoming .chat-message-bubble {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}
.chat-message.outgoing .chat-message-bubble {
  background-color: #2d2d2d;
  color: #ffffff;
  border-top-right-radius: 4px;
}
.chat-message-time {
  font-size: 0.6875rem;
  color: var(--text-hint);
  margin-top: 0.25rem;
}
.chat-message.outgoing .chat-message-time {
  text-align: right;
}
.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chat-input-area .form-control {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: none;
}
.chat-input-area .btn {
  flex-shrink: 0;
}
.chat-date-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-hint);
  margin: 0.5rem 0;
  position: relative;
}
.chat-date-divider span {
  background-color: var(--bg-card);
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
.chat-date-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: #e5e5ea;
}
.api-docs {
  max-width: 900px;
}
.api-endpoint {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  min-width: 52px;
}
.api-method-get {
  background-color: #ecfdf0;
  color: #1a7f37;
}
.api-method-post {
  background-color: #eef6ff;
  color: #0559b3;
}
.api-method-put {
  background-color: #fff8eb;
  color: #9a6700;
}
.api-method-patch {
  background-color: #fff8eb;
  color: #9a6700;
}
.api-method-delete {
  background-color: #fff0f0;
  color: #cf222e;
}
.api-path {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}
.api-endpoint-body {
  padding: 1.5rem;
}
.api-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.api-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}
.api-section-title:first-child {
  margin-top: 0;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.param-table thead th {
  background-color: #f7f7f8;
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.param-table tbody td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #f0f1f3;
  vertical-align: top;
}
.param-table tbody tr:last-child td {
  border-bottom: none;
}
.param-name {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.8125rem;
}
.param-type {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  color: #007aff;
  font-size: 0.75rem;
}
.param-required {
  color: #ff3b30;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
}
.param-optional {
  color: var(--text-hint);
  font-size: 0.6875rem;
  text-transform: uppercase;
}
code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  background-color: var(--bg-hover);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: var(--text-primary);
}
pre {
  background-color: var(--bg-code-block);
  color: var(--text-code-block);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}
pre .string { color: #a8d8a8; }
pre .number { color: #d4a8d8; }
pre .keyword { color: #82aaff; }
pre .comment { color: var(--text-secondary); }
pre .property { color: #f0c674; }
.api-endpoint-body code {
  background-color: var(--bg-hover);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.api-response-example {
  margin-top: 1rem;
}
.api-response-example pre {
  margin-top: 0.5rem;
}
@media (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .right-sidebar {
    position: static;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    z-index: 300;
  }
  .sidebar-toggle {
    display: flex;
  }
  .main-content {
    margin-left: 0;
    padding: 1.25rem;
    padding-top: 4rem;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .filter-bar-group {
    grid-template-columns: 1fr;
  }
  .filter-bar-actions {
    flex-wrap: wrap;
  }
  .stats-row,
  .stats-row-4 {
    grid-template-columns: 1fr;
  }
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .modal {
    max-width: 100%;
    border-radius: 12px;
  }
  .auth-card {
    padding: 1.75rem;
  }
  .table-wrapper {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
  }
  h1 {
    font-size: 1.375rem;
  }
  h2 {
    font-size: 1.125rem;
  }
  .chat-message {
    max-width: 90%;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    border-radius: 0;
  }
  .btn-group .btn:first-child {
    border-radius: 8px 8px 0 0;
  }
  .btn-group .btn:last-child {
    border-radius: 0 0 8px 8px;
  }
}
@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
    padding-top: 4rem;
  }
  .card {
    padding: 1rem;
    border-radius: 10px;
  }
  .card-flush .card-header {
    padding: 1rem;
  }
  .table thead th:first-child,
  .table tbody td:first-child {
    padding-left: 1rem;
  }
  .table thead th:last-child,
  .table tbody td:last-child {
    padding-right: 1rem;
  }
  .pagination-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .balance-amount {
    font-size: 1.5rem;
  }
}
@media print {
  .sidebar,
  .sidebar-toggle,
  .sidebar-overlay {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid var(--border-color);
    break-inside: avoid;
  }
  .btn,
  .filter-bar,
  .pagination {
    display: none !important;
  }
}
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow-1 { flex-grow: 1; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-self-start { align-self: flex-start; }
.align-self-center { align-self: center; }
.align-self-end { align-self: flex-end; }
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-auto { margin-left: auto; }
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }
.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 1rem; }
.pl-4 { padding-left: 1.5rem; }
.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 1rem; }
.pr-4 { padding-right: 1.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.w-50 { width: 50%; }
.max-w-100 { max-width: 100%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.min-h-100vh { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid #e5e5ea; }
.border-right { border-right: 1px solid #e5e5ea; }
.border-0 { border: none; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.rounded-0 { border-radius: 0; }
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02); }
.shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04); }
.bg-white { background-color: var(--bg-card); }
.bg-light { background-color: var(--bg-hover); }
.bg-dark { background-color: #2d2d2d; }
.bg-transparent { background-color: transparent; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.list-none { list-style: none; }
@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
}
@media (min-width: 769px) {
  .d-md-up-none { display: none; }
  .d-md-up-block { display: block; }
  .d-md-up-flex { display: flex; }
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-link:hover {
  color: var(--text-primary);
}
.tab-link.active {
  color: var(--text-primary);
  border-bottom-color: #2d2d2d;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.375rem;
  min-width: 180px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 200;
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  border-radius: 6px;
  transition: background-color 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover {
  background-color: var(--bg-hover);
}
.dropdown-item.danger {
  color: #ff3b30;
}
.dropdown-item.danger:hover {
  background-color: #fff0f0;
}
.dropdown-divider {
  height: 1px;
  background-color: #e5e5ea;
  margin: 0.375rem 0;
}
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}
.tooltip-wrapper .tooltip-text {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #2d2d2d;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 300;
}
.tooltip-wrapper .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2d2d2d;
}
.tooltip-wrapper:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}
.progress {
  width: 100%;
  height: 6px;
  background-color: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: #2d2d2d;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-bar-success { background-color: #34c759; }
.progress-bar-warning { background-color: #ff9f0a; }
.progress-bar-danger { background-color: #ff3b30; }
.progress-bar-info { background-color: #007aff; }
.progress-lg { height: 10px; border-radius: 5px; }
.progress-lg .progress-bar { border-radius: 5px; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-hint);
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 360px;
}
.empty-state .btn {
  margin-top: 1.25rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-xs { width: 24px; height: 24px; font-size: 0.625rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-group {
  display: flex;
}
.avatar-group .avatar {
  border: 2px solid #ffffff;
  margin-left: -8px;
}
.avatar-group .avatar:first-child {
  margin-left: 0;
}
.skeleton {
  background: linear-gradient(90deg, #f0f1f3 25%, #e5e5ea 50%, #f0f1f3 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
}
.skeleton-text-sm {
  height: 10px;
  width: 60%;
}
.skeleton-heading {
  height: 24px;
  width: 40%;
  margin-bottom: 0.75rem;
}
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.skeleton-card {
  height: 120px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}
.divider-lg {
  margin: 2rem 0;
}
.divider-sm {
  margin: 0.75rem 0;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #d1d1d6;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-hint);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #d1d1d6 transparent;
}
.transition-all {
  transition: all 0.2s ease;
}
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.transition-opacity {
  transition: opacity 0.2s ease;
}
.transition-transform {
  transition: transform 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in { animation: fadeIn 0.2s ease; }
.animate-fade-in-up { animation: fadeInUp 0.3s ease; }
.animate-fade-in-down { animation: fadeInDown 0.3s ease; }
:focus-visible {
  outline: 2px solid #2d2d2d;
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}
a:focus:not(:focus-visible) {
  outline: none;
}
.support-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}
.support-sidebar {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}
.support-chat-area {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}
.chat-list {
  max-height: 400px;
  overflow-y: auto;
}
.chat-list-item {
  display: block;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.chat-list-item:hover {
  background-color: #f5f5f7;
}
.chat-list-item--active {
  background-color: #e8e8ed;
  border-left: 3px solid #1a1a1a;
}
.chat-list-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.chat-list-item-subject {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-primary);
}
.chat-list-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-list-item-date {
  font-size: 0.6875rem;
  color: #8e8e93;
}
.chat-list-item-preview {
  font-size: 0.75rem;
  color: #6e6e73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.support-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem !important;
  max-height: calc(100vh - 400px);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-message {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.chat-message--own {
  align-self: flex-end;
  background-color: var(--text-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-message--other {
  align-self: flex-start;
  background-color: #e8e8ed;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  gap: 1rem;
}
.chat-message-sender {
  font-weight: 600;
  font-size: 0.75rem;
}
.chat-message--own .chat-message-sender {
  color: rgba(255, 255, 255, 0.7);
}
.chat-message--other .chat-message-sender {
  color: #6e6e73;
}
.chat-message-time {
  font-size: 0.6875rem;
}
.chat-message--own .chat-message-time {
  color: rgba(255, 255, 255, 0.5);
}
.chat-message--other .chat-message-time {
  color: #8e8e93;
}
.chat-message-text {
  word-wrap: break-word;
}
.chat-reply-form {
  width: 100%;
}
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.chat-input-row textarea {
  flex: 1;
  resize: none;
}
.chat-input-row .btn {
  flex-shrink: 0;
  height: 42px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
  .support-sidebar {
    max-height: none;
  }
  .chat-message {
    max-width: 90%;
  }
}
.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}
.admin-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
  cursor: pointer;
}
.admin-nav-card:hover {
  border-color: #c5c5ca;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.admin-nav-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.admin-nav-card-info {
  flex: 1;
  min-width: 0;
}
.admin-nav-card-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.admin-nav-card-desc {
  display: block;
  font-size: 0.75rem;
  color: #8e8e93;
  margin-top: 0.125rem;
}
.admin-nav-card-arrow {
  color: #c5c5ca;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.admin-nav-card .badge {
  flex-shrink: 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.settings-divider {
  height: 1px;
  background: #e5e5ea;
  margin: 1.25rem 0;
}
.settings-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #f8f8fa;
  border-radius: 8px;
}
.settings-stat-label {
  font-size: 0.8125rem;
  color: #6e6e73;
}
.settings-stat-value {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.form-hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #8e8e93;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--text-primary);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.dashboard-main {
  min-width: 0;
}
.dashboard-sidebar {
  min-width: 0;
}
.balance-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}
.table-responsive table {
  min-width: 600px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card--news {
  overflow: hidden;
}
.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.news-date {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.news-date i {
  margin-right: 0.25rem;
}
.news-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}
.news-image {
  margin-top: 1rem;
}
.news-image__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.card-body,
.card {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .balance-top-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .balance-top-row {
    grid-template-columns: 1fr;
  }
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  .table-responsive table {
    min-width: 500px;
  }
}
@media (max-width: 480px) {
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 0.5rem;
  }
  .table-responsive table {
    min-width: 450px;
    font-size: 0.8125rem;
  }
  .news-title {
    font-size: 1rem;
  }
  .balance-top-row {
    gap: 1rem;
  }
  .dashboard-grid {
    gap: 1rem;
  }
  .balance-amount--large {
    font-size: 1.5rem;
  }
  .stats-row {
    gap: 0.75rem;
  }
  .page-header {
    margin-bottom: 1rem;
  }
  .input-with-btn {
    flex-direction: column;
  }
  .admin-nav-grid {
    grid-template-columns: 1fr;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
