:root {
  /* Surfaces & Backgrounds */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.94);
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcfe;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-backdrop: rgba(15, 23, 42, 0.45);
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;

  /* Borders */
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;
  --border-focus: #4f46e5;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Brand Accents */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-active: #3730a3;
  --primary-subtle: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.14);
  --primary-text: #ffffff;

  /* Status Colors */
  --success: #059669;
  --success-hover: #047857;
  --success-subtle: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;

  --warning: #d97706;
  --warning-hover: #b45309;
  --warning-subtle: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;

  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-subtle: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;

  --info: #0284c7;
  --info-subtle: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #0369a1;

  --purple: #7e22ce;
  --purple-subtle: #faf5ff;
  --purple-border: #e9d5ff;
  --purple-text: #6b21a8;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Typography & Shadows */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.03) 0px, transparent 40%),
    radial-gradient(at 90% 90%, rgba(5, 150, 105, 0.02) 0px, transparent 40%);
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #4f46e5, #7e22ce);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.sidebar-section-title {
  padding: 1.25rem 1.25rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.sidebar-menu {
  list-style: none;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  border-left: 3px solid transparent;
}

.menu-item a:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
  transform: translateX(2px);
}

.menu-item.active a {
  background-color: var(--primary-subtle);
  color: var(--primary-hover);
  font-weight: 600;
  border-left-color: var(--primary);
}

.menu-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
}

/* Main Layout */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-topbar);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background-color: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.content-body {
  padding: 2rem;
  flex: 1;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.card-primary::before { background: var(--primary); }
.stat-card.card-success::before { background: var(--success); }
.stat-card.card-warning::before { background: var(--warning); }
.stat-card.card-danger::before { background: var(--danger); }
.stat-card.card-purple::before { background: var(--purple); }

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-subtext {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Quick Action Banner */
.quick-action-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
}

.quick-action-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quick-action-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filter & Search Bar */
.filter-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.search-input-box {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  height: 38px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem 0 2.35rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

.filter-select {
  height: 38px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 2.25rem 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-tabs {
  display: flex;
  gap: 3px;
  background-color: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.filter-tab {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Tables */
.table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.table-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-subtle);
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:hover {
  background-color: var(--bg-subtle);
}

.token-code {
  font-family: var(--font-mono);
  background-color: var(--bg-muted);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  color: var(--primary-hover);
  border: 1px solid var(--border);
  font-weight: 600;
}

.table-notes-cell {
  max-width: 240px;
  white-space: normal;
  line-height: 1.45;
  word-break: break-word;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-active {
  background: var(--success-subtle);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.badge-grace {
  background: var(--warning-subtle);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.badge-suspended {
  background: var(--danger-subtle);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.badge-pending {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.badge-paid {
  background: var(--success-subtle);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.badge-onprem {
  background: var(--info-subtle);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

.badge-saas {
  background: var(--purple-subtle);
  color: var(--purple-text);
  border: 1px solid var(--purple-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-dim);
  color: var(--text-primary);
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background-color: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-warning {
  background-color: var(--warning);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.25);
}

.btn-warning:hover {
  background-color: var(--warning-hover);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  height: 32px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-backdrop);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlide {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  background-color: #ffffff;
}

.modal-footer {
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Forms System */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3,
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-control,
.form-select,
.form-select-full,
.form-input {
  width: 100%;
  height: 42px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.form-control:hover,
.form-select:hover,
.form-select-full:hover,
.form-input:hover {
  border-color: var(--text-dim);
}

.form-control:focus,
.form-select:focus,
.form-select-full:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control:read-only,
.form-input:read-only,
.form-control:disabled,
.form-input:disabled {
  background-color: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-select,
.form-select-full,
select.form-input,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control,
textarea.form-input {
  min-height: 90px;
  height: auto;
  padding: 0.65rem 0.85rem;
  resize: vertical;
  line-height: 1.5;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.35rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.form-help,
small.text-muted {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Alert Boxes */
.alert-box {
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.alert-success {
  background-color: var(--success-subtle);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.alert-danger {
  background-color: var(--danger-subtle);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.alert-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.tab-link {
  padding: 0.75rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  border: none;
  background: transparent;
  font-family: inherit;
}

.tab-link:hover {
  color: var(--text-primary);
}

.tab-link.active {
  color: var(--primary);
}

.tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px 2px 0 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Specialized sections */
.table-card-body {
  padding: 1.75rem;
}

.settings-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
}

.settings-checkbox-row label {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.settings-tab-desc {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.table-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-quota-inputs {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.inline-form {
  display: inline-block;
  margin: 0;
}

/* Utilities */
.is-hidden {
  display: none !important;
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-mono { font-family: var(--font-mono); }
.copy-btn { cursor: pointer; }
.nowrap { white-space: nowrap; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }
.p-4 { padding: 1.5rem; }
.text-center { text-align: center; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Ahenx Central — operational workspace */
:root {
  --bg-app: #f5f7f8; --bg-sidebar: #142c2b; --bg-subtle: #f7f9fa;
  --border: #e5eaec; --border-subtle: #edf1f2; --border-strong: #cbd5d6;
  --text-primary: #192d32; --text-secondary: #43575c; --text-muted: #75868b;
  --primary: #147d70; --primary-hover: #0e655b; --primary-active: #0a5149;
  --primary-subtle: #eaf5f1; --primary-glow: rgba(20,125,112,.12); --border-focus: #147d70;
  --radius: 12px; --radius-sm: 7px; --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(25,45,50,.025); --shadow: 0 6px 20px rgba(25,45,50,.05);
  --font-family: "Aptos", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background-image: none; font-size: 14px; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid #61b9aa; outline-offset: 4px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 280px; padding: 12px 20px; background: white; border-radius: 8px; z-index: 2000; }
.skip-link:focus { top: 12px; }
.sidebar { width: 244px; height: 100dvh; overflow-y: auto; border: 0; color: #c1cfcd; padding: 0 14px; position: sticky; top: 0; }
.sidebar-brand { text-decoration: none; border: 0; padding: 28px 12px 24px; color: white; gap: 11px; }
.brand-icon { background: #c3eed9; color: #173a32; width: 39px; height: 39px; border-radius: 11px; box-shadow: none; }
.brand-icon svg { width: 29px; height: 29px; }
.brand-wordmark { font-size: 29px; font-weight: 750; letter-spacing: -1.4px; line-height: 1; }
.brand-subtitle { display: block; font-size: 8px; font-weight: 500; letter-spacing: 1.8px; color: #95aca6; margin-top: 8px; }
.workspace-chip { border: 1px solid #39514e; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 11px; margin: 0 0 19px; color: #eef5f2; font-size: 12px; font-weight: 600; }
.workspace-avatar { background: #36534d; color: #c8e5d9; border-radius: 6px; padding: 9px 7px; font-size: 10px; }
.workspace-chip small { display: block; font-size: 10px; color: #9eb2ac; margin-top: 3px; font-weight: 400; }
.workspace-check { margin-left: auto; color: #aacbbd; }
.workspace-check .icon { width: 17px; height: 17px; }
.sidebar-section-title { color: #91aaa3; font-size: 9px; letter-spacing: 1.5px; padding: 17px 13px 8px; }
.sidebar-menu { padding: 4px 0 9px; gap: 5px; }
.menu-item a { color: #b8cbc5; font-size: 12px; border: 0; padding: 12px 13px; gap: 12px; border-radius: 7px; }
.menu-item a .icon { width: 18px; height: 18px; opacity: .8; }
.menu-item a:hover { background: #243e38; transform: none; color: white; }
.menu-item.active a { background: #caecd9; color: #193f32; font-weight: 650; border: 0; }
.menu-item.active a .icon { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-note { padding: 17px 14px; border: 1px solid #355046; border-radius: 10px; background: #1e3831; }
.sidebar-note > .icon { color: #bce9cc; margin-bottom: 12px; }
.sidebar-note strong { display: block; color: #e3f1e9; font-size: 12px; font-weight: 550; }
.sidebar-note p { font-size: 11px; color: #a0b7ac; line-height: 1.75; margin: 7px 0 14px; }
.sidebar-note a { display: flex; align-items: center; justify-content: space-between; color: #c9efd6; font-size: 11px; text-decoration: none; }
.sidebar-note a .icon { width: 15px; height: 15px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 20px 5px; color: #edf4ee; font-size: 11px; }
.profile-avatar { background: #d8e9db; color: #234637; border-radius: 50%; display: grid; place-items: center; width: 34px; height: 34px; font-size: 10px; font-weight: 650; }
.sidebar-profile small { display: block; color: #99b0a6; font-size: 10px; margin-top: 4px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #36a77d; border-radius: 50%; flex-shrink: 0; }
.sidebar-profile > .status-dot { margin-left: auto; }
.main-content { height: 100dvh; scroll-behavior: smooth; }
.topbar { min-height: 70px; height: 70px; padding: 0 34px; box-shadow: none; background: #fff; }
.topbar-left { gap: 13px; min-width: 0; }
.breadcrumb-root { font-size: 12px; color: #879396; }
.topbar-left > .icon { width: 12px; height: 12px; color: #a5afb1; }
.topbar-title { font-size: 12px; font-weight: 550; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { gap: 17px; }
.command-trigger { display: flex; align-items: center; gap: 9px; color: #8c989b; background: #f7f9fa; border: 1px solid #e8eded; border-radius: 7px; padding: 8px 10px; font-size: 11px; cursor: pointer; min-width: 215px; }
.command-trigger .icon { width: 15px; height: 15px; }
kbd { font-family: inherit; font-size: 10px; background: white; border: 1px solid var(--border); padding: 2px 4px; border-radius: 4px; margin-left: auto; }
.lang-switcher { background: none; border: 0; padding: 0; }
.lang-btn { color: #879397; font-size: 10px; padding: 5px 7px; }
.lang-btn.active { color: #1a6351; background: #edf5f0; box-shadow: none; }
.topbar-avatar { display: grid; place-items: center; color: #426351; background: #e8f1e9; width: 31px; height: 31px; font-size: 12px; font-weight: 600; border: 3px solid white; outline: 1px solid #e2e9e2; border-radius: 50%; }
.content-body { padding: 34px; width: 100%; max-width: 1640px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { font-size: 9px; letter-spacing: 1.5px; color: #78888b; font-weight: 600; }
h1 { font-size: clamp(23px, 2.1vw, 32px); font-weight: 650; letter-spacing: -1.15px; line-height: 1.3; margin: 9px 0 8px; }
.page-heading p { color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.heading-dot { color: #20a77c; }
.page-date { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: white; border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; color: #64767a; font-size: 11px; }
.page-date .icon { width: 15px; height: 15px; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 19px; }
.overview-label { font-size: 11px; display: flex; align-items: center; gap: 8px; font-weight: 550; }
.overview-label .text-muted { font-weight: 400; }
.toolbar-divider { color: #bac4c5; margin: 0 4px; }
.quick-action-btns { gap: 8px; }
.btn { gap: 7px; font-size: 11px; font-weight: 550; border-radius: 7px; padding: 9px 13px; height: 36px; box-shadow: none; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { box-shadow: 0 2px 3px #147d7014; }
.btn-secondary, .btn-outline { background: white; color: #4e6165; border: 1px solid #dce4e5; }
.btn-secondary:hover, .btn-outline:hover { background: #f2f7f5; color: var(--primary); border-color: #abc7bc; }
.btn-sm { height: 29px; font-size: 10px; padding: 5px 9px; }
.stats-grid { gap: 15px; margin-bottom: 22px; }
.dashboard-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-card { padding: 21px; box-shadow: none; border-radius: 10px; }
.stat-card::before { display: none; }
.stat-card:hover { transform: none; box-shadow: var(--shadow); }
.stat-header { margin-bottom: 13px; gap: 8px; }
.stat-label { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.stat-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef6f1; color: #49836c; flex-shrink: 0; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-icon.amber { background: #fff6e9; color: #bd954a; }
.stat-icon.blue { background: #eef3fa; color: #647fa1; }
.stat-value { font-size: clamp(22px,2.1vw,31px); font-weight: 600; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value small { font-size: 15px; color: #8c9a9b; font-weight: 400; letter-spacing: 0; }
.stat-subtext { font-size: 10px; margin-top: 16px; gap: 6px; flex-wrap: wrap; line-height: 1.6; }
.featured-stat { background: #eaf4ee; border-color: #d4e6da; }
.featured-stat .stat-icon { background: #d7eade; }
.featured-stat .stat-value { color: #215b44; }
.stat-detail { color: #438466; background: #edf5ef; border-radius: 4px; padding: 2px 5px; text-decoration: none; }
.warning-detail { color: #a78439; background: #fcf5e8; }
.mini-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #549979; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(280px,1fr); gap: 20px; margin-bottom: 22px; }
.insight-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 0; }
.insight-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 23px 0; gap: 12px; }
.insight-header h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.insight-header p { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
.period-chip { border: 1px solid var(--border); font-size: 10px; color: #6f7f83; padding: 7px 9px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.period-chip .icon { width: 13px; height: 13px; }
.revenue-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 22px 23px 10px; }
.revenue-summary > strong { font-size: 25px; font-weight: 550; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.revenue-summary small { font-size: 16px; font-weight: 400; color: #82938f; }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #7b8a8a; }
.revenue-chart { display: flex; height: 182px; margin: 10px 23px 19px; gap: 15px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 25px); font-size: 9px; color: #8d9b9e; min-width: 44px; text-align: right; padding: 0 0 1px; }
.chart-plot { flex: 1; position: relative; min-width: 0; }
.chart-gridlines { position: absolute; display: flex; justify-content: space-between; flex-direction: column; top: 0; bottom: 25px; left: 0; right: 0; pointer-events: none; }
.chart-gridlines i { border-top: 1px dashed #e4ebe9; width: 100%; }
.chart-bars { display: flex; height: 100%; gap: 18px; position: relative; padding: 0 8px; }
.chart-column { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.bar-track { height: calc(100% - 25px); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.revenue-bar { border: 0; background: #8bbda5; width: 70%; max-width: 54px; min-height: 3px; height: var(--bar-height); border-radius: 5px 5px 0 0; position: relative; cursor: pointer; transition: background .15s; }
.chart-column:last-child .revenue-bar { background: #267f61; }
.revenue-bar:hover, .revenue-bar:focus { background: #236e54; }
.bar-tooltip { display: none; position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #203b32; color: white; font-size: 10px; padding: 6px 8px; white-space: nowrap; border-radius: 5px; z-index: 2; }
.revenue-bar:hover .bar-tooltip, .revenue-bar:focus .bar-tooltip { display: block; }
.bar-label { color: #7d8c8d; font-size: 10px; padding-top: 12px; }
.insight-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-subtle); padding: 13px 23px; font-size: 9px; color: #8a9799; }
.insight-footer a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 10px; color: #44806c; }
.insight-footer .icon { width: 13px; height: 13px; }
.chart-empty-note { font-size: 10px; color: #849290; padding: 0 23px 13px; }
.health-visual { display: flex; justify-content: center; padding: 20px 0 15px; }
.health-ring { width: 152px; height: 152px; border-radius: 50%; background: conic-gradient(#398569 0 var(--active), #d6b363 var(--active) var(--grace), #cb7972 var(--grace) var(--suspended), #e9eeeb var(--suspended) 100%); display: grid; place-items: center; transform: rotate(-0deg); }
.health-center { background: white; width: 126px; height: 126px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; }
.health-center strong { font-size: 34px; font-weight: 550; letter-spacing: -1px; }
.health-center span { color: #82928d; font-size: 10px; margin-top: 3px; }
.health-legend { display: grid; gap: 11px; padding: 0 25px 20px; }
.health-legend a, .health-legend > div { display: flex; align-items: center; justify-content: space-between; color: #6c7c78; font-size: 11px; text-decoration: none; }
.health-legend a:hover { color: var(--primary); }
.health-legend span { display: flex; align-items: center; gap: 8px; }
.health-legend strong { font-size: 12px; color: #364d44; font-weight: 550; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-dot.green { background: #398569; }.legend-dot.amber { background: #d6b363; }.legend-dot.red { background: #cb7972; }.legend-dot.gray { background: #c5d1cb; }
.all-clear { display: flex; align-items: center; gap: 13px; background: #edf5f0; border: 1px solid #dce9df; border-radius: 10px; padding: 17px 21px; margin-bottom: 22px; color: #4c7860; }
.all-clear > .icon { background: #d7eadc; width: 32px; height: 32px; padding: 7px; border-radius: 50%; }
.all-clear strong { font-size: 11px; font-weight: 600; }
.all-clear p { font-size: 10px; color: #819289; margin-top: 4px; }
.all-clear a { margin-left: auto; font-size: 10px; text-decoration: none; display: flex; align-items: center; gap: 6px; color: #4c7860; }
.all-clear a .icon { width: 14px; height: 14px; }
.table-card { box-shadow: none; margin-bottom: 22px; border-radius: 11px; }
.table-header { padding: 18px 21px; }
.table-title { font-size: 13px; font-weight: 600; }
.table-title .icon { width: 17px; height: 17px; color: #b4914b; }
.data-table th { background: #fafbfc; font-size: 9px; text-transform: none; letter-spacing: 0; font-weight: 500; padding: 11px 18px; }
.data-table td { padding: 15px 18px; font-size: 11px; }
.data-table td strong { font-weight: 550; }
.data-table td small { font-size: 9px; }
.data-table .font-mono { font-size: 10px; word-break: break-word; }
.badge { font-size: 9px; font-weight: 500; padding: 4px 7px; border: 0; }
.empty-state { text-align: center; padding: 34px 20px !important; }
.empty-state-icon { display: grid; place-items: center; background: #f0f5f2; border: 1px solid #e6ece8; border-radius: 10px; width: 41px; height: 41px; margin: 0 auto 13px; color: #729280; }
.empty-state strong { display: block; font-size: 12px; }
.empty-state p { color: #85938e; font-size: 10px; margin: 7px 0 14px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 9px; color: #99a4a6; padding: 7px 0 0; }
.footer-dot { padding: 0 7px; color: #a4afad; }
.filter-bar { padding: 15px; box-shadow: none; }
.filter-tabs { border-color: #e5ebe7; background: #f3f6f4; }
.filter-tab { font-size: 11px; }
.search-input, .filter-select { font-size: 11px; border-width: 1px; }
.form-label { font-size: 12px; }
.form-control, .form-select, .form-select-full, .form-input { font-size: 12px; border-width: 1px; }
.flex { display: flex; flex-wrap: wrap; }.items-center { align-items: center; }.gap-2 { gap: 8px; }
.modal-dialog { border: 0; border-radius: 15px; box-shadow: 0 25px 100px #132e2a40; }
.modal-dialog > form { display: flex; flex-direction: column; min-height: 0; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { min-height: 0; }
.modal-backdrop { background: #0d252b75; backdrop-filter: blur(5px); }
body.modal-open .main-content { overflow: hidden; }
.command-modal .modal-dialog { max-width: 540px; }
.command-search { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--border); }
.command-search > .icon { color: var(--primary); }
.command-search input { font-size: 14px; border: 0; outline: none; flex: 1; min-width: 0; background: white; color: var(--text-primary); }
.command-escape { background: #f5f7f6; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; color: var(--text-muted); cursor: pointer; font-size: 10px; }
.command-results { padding: 10px; overflow-y: auto; }
.command-result { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #536c62; padding: 12px; font-size: 12px; border-radius: 7px; }
.command-result > .icon:last-child { margin-left: auto; width: 15px; height: 15px; color: #9cb0a6; }
.command-result:hover, .command-result:focus { background: #eef6f1; }
.command-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 12px; }
.command-footer { border-top: 1px solid var(--border); padding: 13px 20px; display: flex; justify-content: space-between; color: #97a59e; font-size: 10px; }
.icon-button { background: none; border: 1px solid var(--border); border-radius: 7px; width: 34px; height: 34px; color: var(--text-primary); cursor: pointer; display: inline-grid; place-items: center; }
.mobile-menu, .sidebar-scrim { display: none; }
@media (min-width: 1700px) { .content-body { padding: 42px 48px; }.sidebar { width: 260px; }.stat-card { padding: 25px; }.revenue-chart { height: 220px; }.health-ring { width: 170px; height: 170px; }.health-center { width: 144px; height: 144px; } }
@media (max-width: 1200px) { .sidebar { width: 220px; }.content-body { padding: 25px; }.topbar { padding: 0 25px; }.dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.recent-grid { grid-template-columns: 1fr; }.stat-value { font-size: 29px; }.command-trigger { min-width: 175px; }.page-date { font-size: 10px; }.analytics-grid { grid-template-columns: minmax(0,1.5fr) minmax(250px,1fr); } }
@media (max-width: 900px) { .sidebar { position: fixed; left: 0; top: 0; width: 244px; transform: translateX(-100%); transition: transform .2s ease; z-index: 200; }.sidebar-open .sidebar { transform: translateX(0); }.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; border: 0; background: #10252180; z-index: 199; }.mobile-menu { display: inline-grid; }.breadcrumb-root, .topbar-left > .icon { display: none; }.main-content { width: 100%; }.topbar-title { max-width: 260px; }.skip-link { left: 15px; } }
@media (max-width: 640px) {
  .content-body { padding: 23px 16px; }.topbar { padding: 0 16px; min-height: 62px; height: 62px; }.topbar-left { gap: 10px; }.topbar-right { gap: 10px; }.topbar-title { font-size: 11px; max-width: 125px; }.command-trigger { min-width: auto; background: none; border: 0; padding: 5px; }.command-trigger .icon { width: 18px; height: 18px; }.command-trigger span, .command-trigger kbd, .topbar-avatar { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }h1 { font-size: 27px; max-width: 330px; letter-spacing: -.8px; }.eyebrow { font-size: 8px; }.page-heading p { font-size: 11px; }.page-date { font-size: 10px; padding: 8px 10px; }.dashboard-toolbar { gap: 14px; margin-bottom: 15px; }.quick-action-btns { width: 100%; gap: 6px; }.quick-action-btns .btn { flex: 1; padding: 8px; font-size: 10px; }.quick-action-btns .icon { width: 12px; height: 12px; }
  .dashboard-stats { gap: 10px; }.stat-card { padding: 14px; }.stat-label { font-size: 10px; }.stat-icon { width: 25px; height: 25px; }.stat-value { font-size: 24px; }.stat-value small { font-size: 11px; }.stat-subtext { font-size: 9px; margin-top: 12px; }.stat-header { margin-bottom: 10px; }.analytics-grid { grid-template-columns: 1fr; gap: 16px; }.insight-header { padding: 19px 17px 0; }.revenue-summary { margin: 18px 17px 10px; }.revenue-summary > strong { font-size: 23px; }.revenue-chart { margin: 15px 17px 19px; gap: 8px; }.chart-bars { gap: 10px; padding: 0 4px; }.chart-axis { font-size: 8px; }.insight-footer { padding: 13px 17px; font-size: 8px; }.insight-footer a { font-size: 9px; }.license-health { display: grid; grid-template-columns: 1fr 1fr; }.license-health .insight-header { grid-column: 1/-1; }.health-ring { width: 128px; height: 128px; }.health-center { width: 104px; height: 104px; }.health-legend { justify-content: stretch; align-content: center; padding: 20px 17px 20px 4px; gap: 17px; }.health-legend a { font-size: 10px; }.health-center strong { font-size: 28px; }
  .all-clear { padding: 15px; flex-wrap: wrap; gap: 10px; }.all-clear p { font-size: 9px; }.all-clear a { margin-left: 42px; }.all-clear > div { flex: 1; }.workspace-footer { font-size: 8px; flex-wrap: wrap; gap: 8px; }.table-header { padding: 15px; }.table-title { font-size: 12px; }.data-table th, .data-table td { padding: 12px; }.data-table { min-width: 540px; }.recent-grid .data-table { min-width: 440px; }.empty-state { white-space: normal; }.form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }.filter-bar { align-items: stretch; }.filter-group { width: 100%; }.search-input-box { min-width: 0; width: 100%; }.filter-tabs { flex-wrap: wrap; }.modal-backdrop { padding: 12px; }.modal-header, .modal-body, .modal-footer { padding: 18px; }.modal-title { font-size: 14px; }.modal-footer { flex-wrap: wrap; }.command-search { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Consistent detail screens and readable settings forms. */
.icon { vertical-align: middle; }
.search-icon .icon { width: 15px; height: 15px; }
.table-title > span { display: inline-flex; align-items: center; gap: 7px; }
.table-title > span > .icon { color: #668c77; }
.modal-title .icon { width: 18px; height: 18px; color: #6e9381; margin-right: 4px; }
.data-table strong > .icon { width: 15px; height: 15px; margin-right: 5px; color: #6f9480; }
.entity-cell { display: flex; align-items: center; gap: 11px; min-width: 155px; }
.entity-avatar { width: 33px; height: 33px; background: #edf3ef; color: #577d67; border: 1px solid #e1eae3; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.entity-cell small { font-size: 9px; margin-top: 4px; }
.data-table tr:nth-child(3n+2) .entity-avatar { background: #eff2f8; border-color: #e4e9f2; color: #7084a6; }
.data-table tr:nth-child(3n) .entity-avatar { background: #f7f2e9; border-color: #eee7d9; color: #9b8b62; }
.tabs-nav { gap: 22px; margin-bottom: 22px; overflow-x: auto; }
.tab-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 13px 2px; flex-shrink: 0; }
.tab-link .icon { width: 16px; height: 16px; }
.table-header > small { max-width: 600px; line-height: 1.6; font-size: 11px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; align-items: start; }
.dashboard-grid .table-header { align-items: flex-start; flex-direction: column; gap: 7px; }
.dashboard-grid .table-card-body { padding: 23px; }
.dashboard-grid .form-help, .dashboard-grid small.text-muted { font-size: 10px; line-height: 1.65; }
.settings-tab-desc { font-size: 12px; line-height: 1.8; }
.settings-checkbox-row label { font-size: 11px; line-height: 1.6; }
.form-control, .form-select, .form-select-full, .form-input { min-height: 42px; }
@media (max-width: 1200px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; gap: 0; }.tabs-nav { gap: 17px; }.tab-link { font-size: 11px; }.dashboard-grid .table-card-body { padding: 20px; }.table-header > small { font-size: 10px; } }

/* Modal Alert & Modal Confirm System */
.modal-alert-dialog {
  max-width: 440px;
  text-align: center;
}

.modal-alert-dialog .modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
  justify-content: center;
  position: relative;
}

.modal-alert-dialog .modal-close-btn {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
}

.modal-alert-dialog .modal-body {
  padding: 0.5rem 2rem 1.75rem;
  text-align: center;
}

.modal-alert-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.modal-alert-icon-wrap.modal-alert-success {
  background-color: #ecfdf5;
  color: #059669;
  border: 2px solid #a7f3d0;
}

.modal-alert-icon-wrap.modal-alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.modal-alert-icon-wrap.modal-alert-info {
  background-color: #eff6ff;
  color: #2563eb;
  border: 2px solid #bfdbfe;
}

.modal-alert-icon-wrap.modal-alert-warning {
  background-color: #fffbeb;
  color: #d97706;
  border: 2px solid #fde68a;
}

.modal-alert-message {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
  word-break: break-word;
}

.modal-alert-dialog .modal-footer {
  justify-content: center;
  border-top: 1px solid var(--border-subtle);
  padding: 1.15rem 1.75rem;
}

.modal-confirm-dialog {
  max-width: 480px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-title-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.modal-confirm-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* Plan Edit Modal Enhancements */
.modal-dialog.modal-lg {
  max-width: 760px;
}
.modal-dialog > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(90vh - 20px);
}
.modal-body {
  overflow-y: auto;
  max-height: calc(90vh - 150px);
}
.video-quota-inputs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

/* Status Toggle Buttons (Aktif / Pasif) */
.btn-status-active {
  background-color: var(--success-subtle);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  font-weight: 600;
}
.btn-status-active:hover {
  background-color: #d1f2de;
  border-color: #92d8ad;
  color: var(--success-text);
}

.btn-status-passive {
  background-color: var(--danger-subtle);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  font-weight: 600;
}
.btn-status-passive:hover {
  background-color: #fce1df;
  border-color: #f7a8a3;
  color: var(--danger-text);
}

/* Explicit Disabled Button Styling */
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
  background-color: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
  box-shadow: none;
}
.btn:disabled:hover,
.btn[disabled]:hover {
  background-color: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
}


/* Support Ticket Conversation Thread */
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.ticket-msg {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.ticket-msg-user {
  border-left: 4px solid var(--primary);
}
.ticket-msg-admin {
  background: #f8faff;
  border-left: 4px solid #4f46e5;
}
.ticket-msg-internal {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.ticket-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.ticket-msg-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-msg-time {
  color: var(--text-muted);
}
.ticket-msg-body {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-main);
}
.ticket-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .ticket-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* EDM E-Fatura / E-Arşiv Yönetim Stilleri */
.edm-error-text {
  max-width: 140px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.edm-action-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* License Security Audit Tab & Banner Styles */
.security-alert-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.security-alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.security-json-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.security-badge-blocked {
  background-color: var(--danger-subtle);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Sürüm Yönetimi ve Log Görüntüleyici */
.release-log-box {
  max-height: 450px;
  overflow-y: auto;
  background-color: var(--bg-card-dark, #1e293b);
  color: var(--text-code, #f8fafc);
  padding: 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
