/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD SHARED STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --line: 2px;
  --danger: #dc2626;
  --danger-light: #fef2f2;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
}

code, pre, .mono { font-family: 'JetBrains Mono', monospace; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--white);
  border-right: var(--line) solid var(--black);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 20px;
  border-bottom: var(--line) solid var(--black);
}

.sidebar-logo {
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-section {
  padding: 0 12px;
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  padding: 8px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.1s;
}

.nav-item:hover { background: var(--gray-100); color: var(--black); }
.nav-item.active { background: var(--black); color: var(--white); }
.nav-item i { width: 18px; text-align: center; }

.nav-item-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-200);
  padding: 2px 8px;
  border-radius: 10px;
}

.nav-item.active .nav-item-badge { background: var(--white); color: var(--black); }

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

.user-info { display: flex; align-items: center; gap: 12px; }

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-details { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 14px; }
.user-plan { font-size: 11px; color: var(--gray-500); }

.plan-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--black);
  color: var(--white);
}

/* User Menu Dropdown */
.user-info {
  cursor: pointer;
  position: relative;
}

.user-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: var(--line) solid var(--black);
  margin-bottom: 8px;
  z-index: 60;
}

.user-menu.open { display: block; }

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
}

.user-menu-item:last-child { border-bottom: none; }
.user-menu-item:hover { background: var(--gray-50); }
.user-menu-item i { width: 16px; color: var(--gray-500); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item.danger i { color: var(--danger); }

/* Main */
.main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

.main-header {
  background: var(--white);
  border-bottom: var(--line) solid var(--black);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  flex-wrap: wrap;
}

.main-title { font-size: 20px; font-weight: 700; }
.main-actions { display: flex; gap: 12px; align-items: center; }
.main-content { padding: 32px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: var(--line) solid var(--black);
  cursor: pointer;
  transition: all 0.1s;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}

.btn:hover { background: var(--black); color: var(--white); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-secondary { background: var(--white); color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-ghost { border: none; background: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.card {
  background: var(--white);
  border: var(--line) solid var(--black);
}

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

.card-title { font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: var(--line) solid var(--black);
  background: var(--white);
  transition: all 0.1s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--gray-200);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-checkbox-group { display: flex; align-items: center; gap: 8px; }
.form-checkbox { width: 18px; height: 18px; accent-color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: var(--line) solid var(--black);
  background: var(--white);
}

.search-box i { color: var(--gray-400); }
.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 200px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

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

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: var(--line) solid var(--black);
  background: var(--gray-50);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr.tool-row { cursor: pointer; }
.data-table tr.tool-row:hover { background: var(--gray-50); }

.tool-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: var(--line) solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  flex-shrink: 0;
}

.tool-name { font-weight: 600; font-size: 14px; }
.tool-desc { font-size: 13px; color: var(--gray-500); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES & TAGS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--gray-200);
  color: var(--gray-600);
}

.badge-dark { background: var(--black); color: var(--white); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: var(--danger-light); color: var(--danger); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTER TABS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.filter-tabs { display: flex; gap: 8px; }

.filter-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  border: var(--line) solid var(--gray-300);
  cursor: pointer;
  transition: all 0.1s;
}

.filter-tab:hover { border-color: var(--black); }
.filter-tab.active { background: var(--black); color: var(--white); border-color: var(--black); }
.filter-count { opacity: 0.7; margin-left: 4px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.tabs {
  display: flex;
  border-bottom: var(--line) solid var(--black);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: var(--line) solid transparent;
  margin-bottom: calc(-1 * var(--line));
  transition: all 0.1s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.tab:hover { color: var(--black); }
.tab.active { color: var(--black); border-bottom-color: var(--black); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DROPDOWNS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.dropdown { position: relative; }

.dropdown-toggle {
  background: none;
  border: 1px solid var(--gray-300);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-600);
}

.dropdown-toggle:hover { border-color: var(--black); color: var(--black); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: var(--line) solid var(--black);
  min-width: 160px;
  z-index: 50;
  margin-top: 4px;
}

.dropdown.open .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODALS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  background: var(--white);
  border: var(--line) solid var(--black);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}

.modal-close:hover { color: var(--black); }
.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOASTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.2s ease;
  max-width: 360px;
}

.toast.error { background: var(--danger); }
.toast.info { background: var(--gray-600); }

.toast-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  opacity: 0.7;
  font-size: 18px;
}

.toast-close:hover { opacity: 1; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATS GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--line) solid var(--black);
  background: var(--white);
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border-right: var(--line) solid var(--black);
}

.stat-card:last-child { border-right: none; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-change { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LISTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--gray-50); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   USAGE INFO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.usage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: 14px;
}

.usage-info a { color: var(--black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mobile-header {
  display: none;
  background: var(--white);
  border-bottom: var(--line) solid var(--black);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.mobile-logo {
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILITY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.text-muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--gray-100);
  padding: 2px 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: var(--line) solid var(--black); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .mobile-header { display: block; }
  .main { margin-left: 0; }
  .main-header { padding: 16px; flex-direction: column; align-items: flex-start; }
  .main-actions { width: 100%; flex-wrap: wrap; }
  .main-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 24px; }
  .filter-tabs { flex-wrap: wrap; }
  .search-box input { width: 140px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: var(--line) solid var(--black); }
  .stat-card:last-child { border-bottom: none; }
  .main-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .data-table th, .data-table td { padding: 12px 8px; font-size: 12px; }
  .tool-cell { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tool-icon { display: none; }
  .plans-grid { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BREADCRUMB
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb i { font-size: 10px; color: var(--gray-400); }
.breadcrumb span { font-weight: 600; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOOL DETAIL HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.tool-header-info { display: flex; gap: 16px; align-items: center; }

.tool-header-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border: var(--line) solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-600);
}

.tool-header-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.tool-header-desc { color: var(--gray-500); }
.tool-header-meta { display: flex; align-items: center; gap: 12px; }
.tool-header-version { font-size: 14px; }

.tool-stats-row {
  display: flex;
  padding: 16px 24px;
  gap: 32px;
}

.tool-stat { text-align: center; }
.tool-stat-value { font-size: 20px; font-weight: 700; display: block; }
.tool-stat-label { font-size: 12px; color: var(--gray-500); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILE UPLOAD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.file-upload {
  border: 2px dashed var(--gray-300);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.1s;
}

.file-upload:hover { border-color: var(--black); }
.file-upload i { font-size: 32px; color: var(--gray-400); margin-bottom: 12px; }
.file-upload p { font-weight: 500; margin-bottom: 4px; }
.file-upload-hint { font-size: 12px; color: var(--gray-500); }

.file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.file-selected i { color: var(--gray-600); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INFO BANNERS & ALERTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.info-banner {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-100);
  border: var(--line) solid var(--gray-300);
}

.info-banner i { color: var(--gray-500); margin-top: 2px; }
.info-banner strong { display: block; margin-bottom: 4px; }
.info-banner p { font-size: 14px; color: var(--gray-600); margin: 0; }

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
}

.alert-warning { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }
.alert-danger { background: var(--danger-light); border: 1px solid var(--danger); color: var(--danger); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOKEN & CODE ELEMENTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.token-cell { display: flex; align-items: center; gap: 12px; }
.token-cell i { color: var(--gray-400); }
.token-name { font-weight: 600; }
.token-prefix { font-size: 12px; color: var(--gray-500); }
.token-expired { opacity: 0.6; }

.token-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-100);
  border: var(--line) solid var(--black);
}

.token-display code {
  flex: 1;
  font-size: 14px;
  background: none;
  padding: 0;
}

.code-block {
  background: var(--gray-100);
  border: var(--line) solid var(--black);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block code { background: none; padding: 0; white-space: pre; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHART PLACEHOLDER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.chart-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  margin: 20px;
  color: var(--gray-400);
}

.chart-placeholder i { font-size: 40px; margin-bottom: 12px; }
.chart-placeholder.chart-lg { height: 300px; }

.chart-legend { display: flex; gap: 16px; font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-color { width: 12px; height: 12px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LISTS & LIST ITEMS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.list-item-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.list-item-icon { width: 32px; height: 32px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.list-item-title { font-weight: 600; font-size: 14px; }
.list-item-subtitle { font-size: 12px; color: var(--gray-500); }
.list-item-value { font-weight: 600; font-size: 14px; min-width: 100px; text-align: right; }

.progress-bar {
  width: 100px;
  height: 8px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-fill { height: 100%; background: var(--black); }

.region-flag {
  width: 28px;
  height: 20px;
  background: var(--gray-200);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SETTINGS ITEMS & TOGGLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.settings-item:last-child { border-bottom: none; }
.settings-item-info { display: flex; align-items: center; gap: 12px; }
.settings-item-info p { font-size: 13px; color: var(--gray-500); margin: 0; }
.settings-item-info > div > strong { display: block; margin-bottom: 2px; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  transition: 0.2s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  transition: 0.2s;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DANGER ZONE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.card-danger { border-color: var(--danger); }
.card-danger .card-header { border-bottom-color: var(--danger); }
.card-danger .card-title { color: var(--danger); }

.danger-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.danger-action:last-child { border-bottom: none; }
.danger-action p { font-size: 13px; color: var(--gray-500); margin: 4px 0 0; }

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCOUNT PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.profile-header { display: flex; justify-content: center; }

.avatar-upload { text-align: center; }

.avatar-preview {
  width: 80px;
  height: 80px;
  background: var(--black);
  color: var(--white);
  font-size: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.input-group { display: flex; }
.input-prefix {
  padding: 10px 12px;
  background: var(--gray-100);
  border: var(--line) solid var(--black);
  border-right: none;
  font-size: 14px;
  color: var(--gray-500);
}

.input-group .form-input { border-left: none; }

.checkbox-group { display: flex; flex-direction: column; gap: 12px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input { width: 18px; height: 18px; accent-color: var(--black); margin-top: 2px; }

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--gray-400);
}

.session-list { display: flex; flex-direction: column; gap: 12px; }

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.session-info { display: flex; align-items: center; gap: 12px; }
.session-info i { font-size: 20px; color: var(--gray-400); }
.session-info p { font-size: 12px; color: var(--gray-500); margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BILLING & PLANS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.plan-current {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.plan-info { flex: 1; }
.plan-price { margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 700; }
.price-period { font-size: 14px; color: var(--gray-500); }

.plan-usage { flex: 1; }

.usage-item { margin-bottom: 16px; }
.usage-item:last-child { margin-bottom: 0; }

.usage-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.plan-usage .progress-bar { width: 100%; height: 6px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.plan-card {
  padding: 24px;
  border-right: 1px solid var(--gray-200);
  position: relative;
}

.plan-card:last-child { border-right: none; }

.plan-card-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 12px;
}

.plan-card-current { background: var(--gray-50); }
.plan-card-featured .plan-card-badge { background: var(--black); }

.plan-card-header { text-align: center; margin-bottom: 20px; padding-top: 20px; }
.plan-card-header h4 { font-size: 18px; margin-bottom: 8px; }
.plan-card-price .price-amount { font-size: 28px; }

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li i { width: 16px; }
.plan-features li.disabled { color: var(--gray-400); }
.plan-features li.disabled i { color: var(--gray-300); }

.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--white); color: var(--black); }

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-card { display: flex; align-items: center; gap: 16px; }
.payment-card i { color: #1a1f71; }
.payment-details p { font-size: 13px; color: var(--gray-500); margin: 0; }
.payment-actions { display: flex; gap: 8px; }

.cancel-section {
  text-align: center;
  padding: 20px;
}

.cancel-section a { color: var(--gray-500); font-size: 14px; }
.cancel-section a:hover { color: var(--danger); }

.cancel-notes {
  list-style: disc;
  padding-left: 20px;
  color: var(--gray-600);
}

.cancel-notes li { padding: 4px 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   README CONTENT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.readme-content { padding: 24px; }
.readme-content h1 { font-size: 24px; margin-bottom: 16px; }
.readme-content h2 { font-size: 18px; margin: 24px 0 12px; }
.readme-content p { margin-bottom: 12px; color: var(--gray-600); }

.readme-content pre {
  background: var(--gray-100);
  border: var(--line) solid var(--black);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.readme-content code { background: var(--gray-100); padding: 2px 6px; }
.readme-content pre code { background: none; padding: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STAT CARDS (Analytics)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stat-title { font-size: 12px; color: var(--gray-500); text-transform: uppercase; font-weight: 600; }
.stat-header i { color: var(--gray-400); }
.stat-change.positive { color: #16a34a; }
.stat-change.negative { color: var(--danger); }
.stat-change.neutral { color: var(--gray-500); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GRID LAYOUTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTON ICON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-icon {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--gray-500);
}

.btn-icon:hover { color: var(--black); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DEPRECATED / EXPIRED ROWS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.deprecated { opacity: 0.6; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL LARGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.modal-lg { max-width: 600px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ADDITIONAL UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-3 { margin-top: 12px; }
.form-select-sm { padding: 6px 10px; font-size: 12px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE (ADDITIONAL)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card:nth-child(2) { border-right: none; }
  .plan-card:nth-child(1), .plan-card:nth-child(2) { border-bottom: 1px solid var(--gray-200); }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-current { flex-direction: column; }
}

@media (max-width: 768px) {
  .tool-header { flex-direction: column; gap: 16px; }
  .tool-stats-row { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .payment-method { flex-direction: column; gap: 12px; align-items: flex-start; }
  .settings-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .danger-action { flex-direction: column; align-items: flex-start; gap: 12px; }
}
