/**
 * assets/css/theme.css — Steel Plate Theme Foundation
 * Blueprint v2 · Phase 1 — Traffic Universal
 * Theme: "3D Raised Steel Plate + Hand-Sketched Fusion"
 * "Heavy steel. Light sketch. Instant action."
 */

/* ═══════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg-dark-start:   #121212;
  --bg-dark-end:     #1A1A1A;
  --steel-plate:     #2A2A2A;
  --steel-card:      #333333;
  --inset-bg:        #0F0F0F;

  /* Brand colors */
  --primary:         #E67E22;
  --primary-hover:   #D35400;
  --bamboo:          #A67C45;
  --text-white:      #FFFFFF;
  --text-muted:      #CCCCCC;

  /* Borders */
  --border-solid:         #666666;
  --border-dotted:        #888888;
  --border-dotted-bamboo: #A67C45;

  /* Shape */
  --radius-card:    16px;
  --radius-button:  40px;
  --radius-input:   12px;
  --radius-modal:   16px;

  /* Shadows */
  --shadow-raised:       0 8px 20px rgba(0,0,0,.5);
  --shadow-glow-primary: 0 0 8px #E67E22;
  --shadow-glow-bamboo:  0 0 6px rgba(166,124,69,.4);
  --shadow-inset:        inset 0 2px 4px rgba(0,0,0,.6);

  /* Transitions */
  --transition:      0.2s ease;
  --transition-fast: 0.12s ease;

  /* Layout */
  --header-height:   60px;
  --sidebar-width:   70px;
  --footer-height:   40px;
}


/* ═══════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at center, var(--bg-dark-end) 0%, var(--bg-dark-start) 100%);
  background-attachment: fixed;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }


/* ═══════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════ */

/* Headings — monospace, bamboo, uppercase */
h1, h2, h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--bamboo);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.2;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

/* Sub-headings — Inter */
h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}
h4 { font-size: 15px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; }

p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.text-mono {
  font-family: 'JetBrains Mono', monospace;
}
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-bamboo  { color: var(--bamboo); }
.text-white   { color: var(--text-white); }
.text-danger  { color: #e74c3c; }
.text-success { color: #2ecc71; }

.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-giant {
  font-family: 'JetBrains Mono', monospace;
  font-size: 96px;
  font-weight: 700;
  color: var(--bamboo);
  line-height: 1;
  text-transform: uppercase;
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.35);
}


/* ═══════════════════════════════════════════════════
   4. BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 24px;
  border-radius: var(--radius-button);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

/* Primary — orange fill */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow-primary);
  transform: scale(1.02);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: inset 0 4px 8px rgba(0,0,0,.4);
}

/* Secondary — bamboo dotted outline */
.btn-secondary {
  background: transparent;
  color: var(--bamboo);
  border: 1px dotted var(--border-dotted-bamboo);
}
.btn-secondary:hover {
  border-style: solid;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-secondary:active { transform: scale(0.97); }

/* Tertiary — subtle ghost */
.btn-tertiary {
  background: transparent;
  color: rgba(255,255,255,.45);
  border: 1px solid var(--border-solid);
}
.btn-tertiary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-tertiary:active { transform: scale(0.97); }

/* Danger */
.btn-danger {
  background: rgba(231,76,60,.15);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,.3);
}
.btn-danger:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* Size variants */
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-lg { padding: 12px 32px; font-size: 15px; }

/* Full width */
.btn-block { width: 100%; }

/* Icon button (square) */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Loading state */
.btn-loading {
  opacity: .6;
  pointer-events: none;
  cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════
   5. INPUTS & FORMS
═══════════════════════════════════════════════════ */
.input-field,
.select-field,
.textarea-field {
  width: 100%;
  background: var(--inset-bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input-field::placeholder,
.textarea-field::placeholder { color: rgba(255,255,255,.25); }

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: var(--bamboo);
  box-shadow: var(--shadow-glow-bamboo);
}

.input-field.error,
.select-field.error,
.textarea-field.error {
  border-color: #e74c3c;
  animation: gentleShake .2s ease-in-out 2;
}

.textarea-field {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Select arrow */
.select-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.select-field option {
  background: var(--steel-card);
  color: var(--text-white);
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.4);
}
.form-hint {
  font-size: 11px;
  color: rgba(255,255,255,.25);
}
.form-error {
  font-size: 11px;
  color: #e74c3c;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-group span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-group a { color: var(--bamboo); text-decoration: underline; }
.checkbox-group a:hover { color: var(--primary); }


/* ═══════════════════════════════════════════════════
   6. CARDS
═══════════════════════════════════════════════════ */
.steel-card {
  background: var(--steel-card);
  border: 1px dotted var(--border-dotted);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-raised);
  transition: transform var(--transition);
}
.steel-card:hover { transform: translateY(-2px); }

/* Stat card */
.stat-card {
  background: var(--steel-card);
  border: 1px dotted var(--border-dotted);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card .stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.3);
}
.stat-card .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.stat-card .stat-trend-up   { color: #2ecc71; font-size: 12px; font-weight: 600; }
.stat-card .stat-trend-down { color: #e74c3c; font-size: 12px; font-weight: 600; }

/* Plugin card */
.plugin-card {
  background: var(--steel-card);
  border: 1px dotted var(--border-dotted);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-raised);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.plugin-card:hover { transform: translateY(-2px); }

/* Auth form container */
.auth-card {
  background: var(--steel-card);
  border: 1px dotted var(--border-dotted);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-raised);
  width: 100%;
  max-width: 440px;
}


/* ═══════════════════════════════════════════════════
   7. PLUGIN ICONS
═══════════════════════════════════════════════════ */
.plugin-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--steel-plate);
  border-radius: 12px;
  padding: 8px;
  filter: grayscale(100%) brightness(.9) contrast(1.1);
  transition: filter var(--transition);
  flex-shrink: 0;
}
.plugin-card:hover .plugin-icon {
  filter: grayscale(50%) sepia(1) hue-rotate(30deg) brightness(1.05);
}
.plugin-icon.inactive {
  filter: grayscale(100%) blur(.5px);
  opacity: .5;
}

.plugin-icon-wrapper {
  position: relative;
  display: inline-block;
}
.plugin-icon-wrapper.purchased::after {
  content: "✓";
  position: absolute;
  bottom: -4px; right: -4px;
  background: var(--bamboo);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dotted #fff;
}


/* ═══════════════════════════════════════════════════
   8. TABLES
═══════════════════════════════════════════════════ */
.table-wrapper {
  border: 1px dotted var(--border-dotted);
  background: #222;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  background: var(--inset-bg);
  border-bottom: 1px solid var(--border-solid);
  padding: 12px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-muted);
  vertical-align: middle;
}
.data-table tbody tr + tr td {
  border-top: 1px solid #333;
}
.data-table tbody tr:hover td {
  background: linear-gradient(90deg, #3a3a3a, #2a2a2a);
  color: var(--text-white);
}


/* ═══════════════════════════════════════════════════
   9. BADGES & PILLS
═══════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-primary { background: rgba(230,126,34,.2); color: var(--primary); border: 1px solid rgba(230,126,34,.3); }
.badge-bamboo  { background: rgba(166,124,69,.2);  color: var(--bamboo);  border: 1px solid rgba(166,124,69,.3); }
.badge-success { background: rgba(46,204,113,.15); color: #2ecc71;        border: 1px solid rgba(46,204,113,.3); }
.badge-danger  { background: rgba(231,76,60,.15);  color: #e74c3c;        border: 1px solid rgba(231,76,60,.3); }
.badge-info    { background: rgba(52,152,219,.15); color: #3498db;        border: 1px solid rgba(52,152,219,.3); }
.badge-muted   { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); }


/* ═══════════════════════════════════════════════════
   10. MODALS
═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--steel-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-modal);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  transform: translateY(12px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dotted var(--border-dotted);
}
.modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--bamboo);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.modal-close {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-solid);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(231,76,60,.15); border-color: #e74c3c; color: #e74c3c; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dotted var(--border-dotted);
}


/* ═══════════════════════════════════════════════════
   11. DROPZONE
═══════════════════════════════════════════════════ */
.dropzone {
  border: 2px dotted var(--border-dotted-bamboo);
  border-radius: var(--radius-card);
  background: var(--inset-bg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(230,126,34,.05);
}
.dropzone .dz-icon { font-size: 36px; margin-bottom: 12px; opacity: .5; }
.dropzone .dz-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--bamboo);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dropzone .dz-hint { font-size: 12px; color: rgba(255,255,255,.25); margin-top: 6px; }


/* ═══════════════════════════════════════════════════
   12. PROGRESS BAR
═══════════════════════════════════════════════════ */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width .3s ease;
}
.progress-fill.bamboo { background: var(--bamboo); }
.progress-fill.success { background: #2ecc71; }


/* ═══════════════════════════════════════════════════
   13. ALERTS / FLASH MESSAGES
═══════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  line-height: 1.5;
}
.alert-success { background: rgba(46,204,113,.1);  color: #2ecc71; border-color: rgba(46,204,113,.25); }
.alert-error   { background: rgba(231,76,60,.1);   color: #e74c3c; border-color: rgba(231,76,60,.25); }
.alert-warning { background: rgba(230,126,34,.1);  color: var(--primary); border-color: rgba(230,126,34,.25); }
.alert-info    { background: rgba(52,152,219,.1);  color: #3498db; border-color: rgba(52,152,219,.25); }


/* ═══════════════════════════════════════════════════
   14A. WALLET PILL
   Usage: <div class="wallet-pill"><span>💰</span> NPR 4,200</div>
   Variants: .wallet-pill--low (balance warning)
═══════════════════════════════════════════════════ */
.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--inset-bg);
  border: 1px dotted var(--border-dotted-bamboo);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--bamboo);
  letter-spacing: .3px;
  white-space: nowrap;
  cursor: default;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-inset);
}
.wallet-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow-bamboo);
}
.wallet-pill .wallet-icon {
  font-size: 14px;
  line-height: 1;
}
.wallet-pill .wallet-currency {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .5px;
}
/* Low-balance warning variant */
.wallet-pill--low {
  border-color: rgba(231,76,60,.5);
  color: #e74c3c;
}
.wallet-pill--low:hover {
  border-color: #e74c3c;
  box-shadow: 0 0 6px rgba(231,76,60,.3);
}
/* Clickable / link variant */
a.wallet-pill {
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════
   14B. INFO BOX — BAMBOO
   Usage: <div class="info-box-bamboo"><strong>Note:</strong> text here</div>
   Variants: .info-box-bamboo--warning  .info-box-bamboo--success
═══════════════════════════════════════════════════ */
.info-box-bamboo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(166,124,69,.08);
  border: 1px dotted var(--border-dotted-bamboo);
  border-left: 3px solid var(--bamboo);
  border-radius: var(--radius-card);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
}
.info-box-bamboo strong {
  color: var(--bamboo);
  font-weight: 700;
}
.info-box-bamboo .ib-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
/* Warning variant (orange left bar) */
.info-box-bamboo--warning {
  background: rgba(230,126,34,.08);
  border-color: rgba(230,126,34,.4);
  border-left-color: var(--primary);
}
.info-box-bamboo--warning strong { color: var(--primary); }
/* Success variant (green left bar) */
.info-box-bamboo--success {
  background: rgba(46,204,113,.07);
  border-color: rgba(46,204,113,.3);
  border-left-color: #2ecc71;
}
.info-box-bamboo--success strong { color: #2ecc71; }


/* ═══════════════════════════════════════════════════
   14. LAYOUT UTILITIES
═══════════════════════════════════════════════════ */

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Flex helpers */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end  { justify-content: flex-end; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* Spacing */
.mt-4  { margin-top:  4px; }  .mb-4  { margin-bottom:  4px; }
.mt-8  { margin-top:  8px; }  .mb-8  { margin-bottom:  8px; }
.mt-12 { margin-top: 12px; }  .mb-12 { margin-bottom: 12px; }
.mt-16 { margin-top: 16px; }  .mb-16 { margin-bottom: 16px; }
.mt-20 { margin-top: 20px; }  .mb-20 { margin-bottom: 20px; }
.mt-24 { margin-top: 24px; }  .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }  .mb-32 { margin-bottom: 32px; }

/* Page section heading */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--border-dotted);
}
.section-title h2 { margin: 0; }

/* Divider */
.divider {
  border: none;
  border-top: 1px dotted var(--border-dotted);
  margin: 20px 0;
  opacity: .5;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state .empty-icon { font-size: 40px; opacity: .3; }
.empty-state .empty-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.empty-state .empty-sub { font-size: 13px; color: rgba(255,255,255,.2); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite ease;
  border-radius: 8px;
}

/* Truncate */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cursor */
.cursor-pointer { cursor: pointer; }


/* ═══════════════════════════════════════════════════
   15. ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes shimmerMove {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #333 25%, #555 50%, #333 75%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite ease;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}
.shake { animation: gentleShake .2s ease-in-out 2; }
.input-error {
  animation: gentleShake .2s ease-in-out 2;
  border-color: var(--primary) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .2s ease forwards; }


/* ═══════════════════════════════════════════════════
   16. ACCESSIBILITY
═══════════════════════════════════════════════════ */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.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;
}


/* ═══════════════════════════════════════════════════
   17. RESPONSIVE
═══════════════════════════════════════════════════ */

/* ── Mobile < 768px ── */
@media (max-width: 767px) {
  :root {
    --header-height: 50px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 17px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2          { grid-template-columns: 1fr; }

  .steel-card  { box-shadow: none; }
  .auth-card   { padding: 24px 18px; }

  /* No hover scale on touch */
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-tertiary:hover { transform: none; }

  .steel-card:hover  { transform: none; }
  .plugin-card:hover { transform: none; }
  .plugin-card:hover .plugin-icon {
    filter: grayscale(100%) brightness(.9) contrast(1.1);
  }

  .text-giant { font-size: 64px; }
}

/* ── Tablet 768–1023px ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --sidebar-width: 60px;
  }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop ≥ 1024px ── */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ═══════════════════════════════════════════════════
   18. REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}