/*
================================================================================
TradeRune — Phase 4: Core Utility CSS
================================================================================
BEM-inspired utility classes to replace inline styles across all pages.
Usage: add class="u-*" instead of style="..." in HTML
================================================================================

ORGANIZATION:
1. Layout (u-flex, u-grid, u-spacer)
2. Spacing (u-mt-*, u-p-*, u-gap-*)
3. Typography (u-text-*, u-font-*, u-label-*)
4. Colors (u-color-*, u-bg-*)
5. Border/Radius (u-border-*, u-rounded-*)
6. Interactive (u-btn-*, u-input-*)
7. Display (u-show, u-hide, u-visible)
8. Shadows & Glow (u-shadow-*, u-glow-*)
================================================================================

/* ── 1. LAYOUT ──────────────────────────────────────────────────────────── */

.u-flex          { display: flex; }
.u-flex-col      { display: flex; flex-direction: column; }
.u-flex-center   { display: flex; align-items: center; justify-content: center; }
.u-flex-between  { display: flex; align-items: center; justify-content: space-between; }
.u-flex-end      { display: flex; align-items: center; justify-content: flex-end; }
.u-flex-wrap     { flex-wrap: wrap; }
.u-flex-1        { flex: 1; }
.u-flex-none     { flex: none; }
.u-inline-flex   { display: inline-flex; }
.u-grid          { display: grid; }
.u-block         { display: block; }
.u-inline-block  { display: inline-block; }
.u-inline        { display: inline; }
.u-hidden        { display: none !important; }
.u-relative      { position: relative; }
.u-absolute      { position: absolute; }
.u-fixed        { position: fixed; }
.u-sticky       { position: sticky; }
.u-overflow-hidden { overflow: hidden; }
.u-overflow-auto   { overflow: auto; }
.u-overflow-y-auto { overflow-y: auto; }
.u-w-full       { width: 100%; }
.u-h-full       { height: 100%; }
.u-min-h-full   { min-height: 100vh; }
.u-z-1          { z-index: 1; }
.u-z-10         { z-index: 10; }
.u-z-100        { z-index: 100; }
.u-z-1000       { z-index: 1000; }
.u-z-modal      { z-index: 99999; }

/* ── 2. SPACING — MARGIN ──────────────────────────────────────────────── */

.u-m-0   { margin: 0; }
.u-m-4   { margin: 4px; }
.u-m-8   { margin: 8px; }
.u-m-12  { margin: 12px; }
.u-m-16  { margin: 16px; }
.u-m-24  { margin: 24px; }
.u-m-32  { margin: 32px; }
.u-m-auto { margin: auto; }

.u-mt-2  { margin-top: 2px; }
.u-mt-4  { margin-top: 4px; }
.u-mt-8  { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-mt-48 { margin-top: 48px; }

.u-mb-2  { margin-bottom: 2px; }
.u-mb-4  { margin-bottom: 4px; }
.u-mb-8  { margin-bottom: 8px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-24 { margin-bottom: 24px; }
.u-mb-32 { margin-bottom: 32px; }

.u-ml-4  { margin-left: 4px; }
.u-ml-8  { margin-left: 8px; }
.u-ml-12 { margin-left: 12px; }
.u-ml-16 { margin-left: 16px; }
.u-ml-auto { margin-left: auto; }

.u-mr-4  { margin-right: 4px; }
.u-mr-8  { margin-right: 8px; }
.u-mr-16 { margin-right: 16px; }
.u-mr-auto { margin-right: auto; }

.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-my-auto { margin-top: auto; margin-bottom: auto; }

/* ── 3. SPACING — PADDING ──────────────────────────────────────────────── */

.u-p-0   { padding: 0; }
.u-p-4   { padding: 4px; }
.u-p-8   { padding: 8px; }
.u-p-12  { padding: 12px; }
.u-p-16  { padding: 16px; }
.u-p-20  { padding: 20px; }
.u-p-24  { padding: 24px; }
.u-p-32  { padding: 32px; }

.u-px-8  { padding-left: 8px; padding-right: 8px; }
.u-px-12 { padding-left: 12px; padding-right: 12px; }
.u-px-16 { padding-left: 16px; padding-right: 16px; }
.u-px-20 { padding-left: 20px; padding-right: 20px; }
.u-px-24 { padding-left: 24px; padding-right: 24px; }
.u-px-32 { padding-left: 32px; padding-right: 32px; }

.u-py-8  { padding-top: 8px; padding-bottom: 8px; }
.u-py-12 { padding-top: 12px; padding-bottom: 12px; }
.u-py-16 { padding-top: 16px; padding-bottom: 16px; }
.u-py-20 { padding-top: 20px; padding-bottom: 20px; }
.u-py-24 { padding-top: 24px; padding-bottom: 24px; }

.u-pt-8  { padding-top: 8px; }
.u-pt-16 { padding-top: 16px; }
.u-pt-24 { padding-top: 24px; }
.u-pt-32 { padding-top: 32px; }

.u-pb-8  { padding-bottom: 8px; }
.u-pb-16 { padding-bottom: 16px; }
.u-pb-24 { padding-bottom: 24px; }
.u-pb-32 { padding-bottom: 32px; }

.u-pl-8  { padding-left: 8px; }
.u-pl-16 { padding-left: 16px; }
.u-pl-24 { padding-left: 24px; }

.u-pr-8  { padding-right: 8px; }
.u-pr-16 { padding-right: 16px; }

.u-gap-4  { gap: 4px; }
.u-gap-8  { gap: 8px; }
.u-gap-12 { gap: 12px; }
.u-gap-16 { gap: 16px; }
.u-gap-24 { gap: 24px; }
.u-gap-32 { gap: 32px; }

/* ── 4. TYPOGRAPHY ────────────────────────────────────────────────────── */

.u-text-xs   { font-size: .65rem; }
.u-text-sm   { font-size: .75rem; }
.u-text-base { font-size: .85rem; }
.u-text-md   { font-size: 1rem; }
.u-text-lg   { font-size: 1.1rem; }
.u-text-xl   { font-size: 1.25rem; }
.u-text-2xl  { font-size: 1.5rem; }
.u-text-3xl  { font-size: 2rem; }

.u-font-400  { font-weight: 400; }
.u-font-500  { font-weight: 500; }
.u-font-600  { font-weight: 600; }
.u-font-700  { font-weight: 700; }
.u-font-800  { font-weight: 800; }
.u-font-900  { font-weight: 900; }

.u-text-left   { text-align: left; }
.u-text-center { text-align: center; }
.u-text-right  { text-align: right; }

.u-uppercase  { text-transform: uppercase; }
.u-lowercase  { text-transform: lowercase; }
.u-capitalize { text-transform: capitalize; }

.u-tracking-wide { letter-spacing: 1px; }
.u-tracking-wider { letter-spacing: 2px; }
.u-tracking-widest { letter-spacing: 3px; }

.u-leading-tight  { line-height: 1.25; }
.u-leading-normal { line-height: 1.5; }
.u-leading-relaxed { line-height: 1.7; }

.u-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-whitespace-nowrap { white-space: nowrap; }

/* ── 5. TYPOGRAPHY COLORS ─────────────────────────────────────────────── */

.u-color-white     { color: #ffffff; }
.u-color-black     { color: #000000; }
.u-color-gray      { color: #9ca3af; }
.u-color-muted     { color: #71717a; }
.u-color-secondary { color: #a1a1aa; }

.u-color-purple  { color: #a855f7; }
.u-color-violet  { color: #c084fc; }
.u-color-cyan    { color: #00e5ff; }
.u-color-green   { color: #4ade80; }
.u-color-red     { color: #ef5350; }
.u-color-gold    { color: #fbbf24; }
.u-color-orange  { color: #fb923c; }

.u-color-positive { color: #4ade80; }
.u-color-negative { color: #ef5350; }
.u-color-neutral  { color: #a1a1aa; }

/* ── 6. BACKGROUND COLORS ────────────────────────────────────────────── */

.u-bg-transparent { background: transparent; }
.u-bg-white       { background: #ffffff; }
.u-bg-black       { background: #000000; }
.u-bg-dark        { background: #0a0a0f; }
.u-bg-darker      { background: #050505; }

.u-bg-purple   { background: #a855f7; }
.u-bg-violet  { background: #c084fc; }
.u-bg-cyan    { background: #00e5ff; }
.u-bg-green   { background: #4ade80; }
.u-bg-red     { background: #ef5350; }
.u-bg-gold    { background: #fbbf24; }
.u-bg-orange  { background: #fb923c; }

.u-bg-glass {
  background: rgba(20, 15, 35, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.u-bg-glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.u-bg-card {
  background: rgba(20, 15, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

/* ── 7. BORDER ────────────────────────────────────────────────────────── */

.u-border-none   { border: none !important; }
.u-border        { border: 1px solid rgba(255, 255, 255, 0.08); }
.u-border-cyan   { border: 1px solid rgba(0, 229, 255, 0.4); }
.u-border-purple { border: 1px solid rgba(168, 85, 247, 0.4); }
.u-border-green  { border: 1px solid rgba(74, 222, 128, 0.4); }
.u-border-red    { border: 1px solid rgba(239, 83, 80, 0.4); }
.u-border-gold   { border: 1px solid rgba(251, 191, 36, 0.4); }
.u-border-white  { border: 1px solid rgba(255, 255, 255, 0.1); }

.u-border-top    { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.u-border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.u-border-left   { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.u-border-right  { border-right: 1px solid rgba(255, 255, 255, 0.08); }

/* ── 8. BORDER RADIUS ────────────────────────────────────────────────── */

.u-rounded-none  { border-radius: 0; }
.u-rounded-sm   { border-radius: 4px; }
.u-rounded      { border-radius: 8px; }
.u-rounded-md   { border-radius: 12px; }
.u-rounded-lg   { border-radius: 16px; }
.u-rounded-xl   { border-radius: 20px; }
.u-rounded-2xl  { border-radius: 24px; }
.u-rounded-full { border-radius: 9999px; }

/* ── 9. SHADOWS ────────────────────────────────────────────────────────── */

.u-shadow-none   { box-shadow: none; }
.u-shadow        { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.u-shadow-md     { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.u-shadow-lg     { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.u-shadow-xl     { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }

.u-shadow-purple {
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}
.u-shadow-purple-lg {
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}
.u-shadow-cyan {
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}
.u-shadow-green {
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}
.u-shadow-red {
  box-shadow: 0 4px 16px rgba(239, 83, 80, 0.3);
}

/* ── 10. TEXT SHADOW / GLOW ───────────────────────────────────────────── */

.u-glow-purple  { text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
.u-glow-cyan    { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
.u-glow-green   { text-shadow: 0 0 15px rgba(74, 222, 128, 0.4); }
.u-glow-red     { text-shadow: 0 0 15px rgba(239, 83, 80, 0.4); }

/* ── 11. BUTTONS ─────────────────────────────────────────────────────── */

.u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  font-family: inherit;
  text-decoration: none;
}

.u-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.u-btn-primary {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.u-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.u-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.u-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.4);
}

.u-btn-danger {
  background: rgba(239, 83, 80, 0.1);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.3);
}
.u-btn-danger:hover:not(:disabled) {
  background: rgba(239, 83, 80, 0.2);
  box-shadow: 0 4px 15px rgba(239, 83, 80, 0.3);
}

.u-btn-ghost {
  background: transparent;
  color: #a1a1aa;
  border: none;
}
.u-btn-ghost:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.u-btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: .9rem;
}
.u-btn-icon:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.u-btn-sm {
  padding: 6px 14px;
  font-size: .75rem;
}

.u-btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.u-btn-full { width: 100%; }

/* ── 12. INPUTS ───────────────────────────────────────────────────────── */

.u-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: .85rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}

.u-input::placeholder { color: #71717a; }

.u-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.u-input-lg {
  padding: 14px 18px;
  font-size: 1rem;
}

.u-textarea {
  resize: vertical;
  min-height: 80px;
}

.u-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.u-label {
  font-size: .7rem;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── 13. CARDS ────────────────────────────────────────────────────────── */

.u-card {
  background: rgba(20, 15, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all .3s;
}

.u-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.u-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.u-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.u-card-subtitle {
  font-size: .75rem;
  color: #71717a;
  margin: 4px 0 0;
}

/* ── 14. BADGES & PILLS ──────────────────────────────────────────────── */

.u-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.u-badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.u-badge-cyan   { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }
.u-badge-green  { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.u-badge-red    { background: rgba(239, 83, 80, 0.15); color: #ef5350; }
.u-badge-gold   { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.u-badge-gray   { background: rgba(255, 255, 255, 0.08); color: #a1a1aa; }

/* Win/Loss pills — use these in journal */
.u-pill-win  { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 100px; padding: 2px 10px; font-size: .7rem; font-weight: 700; }
.u-pill-loss { background: rgba(239, 83, 80, 0.15); color: #ef5350; border: 1px solid rgba(239, 83, 80, 0.3); border-radius: 100px; padding: 2px 10px; font-size: .7rem; font-weight: 700; }
.u-pill-be   { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 100px; padding: 2px 10px; font-size: .7rem; font-weight: 700; }

.u-pill-long  { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 100px; padding: 2px 10px; font-size: .7rem; font-weight: 700; }
.u-pill-short { background: rgba(239, 83, 80, 0.15); color: #ef5350; border: 1px solid rgba(239, 83, 80, 0.3); border-radius: 100px; padding: 2px 10px; font-size: .7rem; font-weight: 700; }

/* Grade pills */
.u-grade-a-plus { color: #00e5ff; font-weight: 800; }
.u-grade-a      { color: #4ade80; font-weight: 800; }
.u-grade-b      { color: #fbbf24; font-weight: 800; }
.u-grade-c      { color: #ef5350; font-weight: 800; }
.u-grade-f      { color: #ef5350; font-weight: 900; font-size: 1.1em; }

/* PnL display */
.u-pnl-positive { color: #4ade80; font-weight: 700; }
.u-pnl-negative { color: #ef5350; font-weight: 700; }
.u-pnl-zero     { color: #a1a1aa; font-weight: 600; }

/* ── 15. MODALS ──────────────────────────────────────────────────────── */

.u-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.u-modal-box {
  background: #0f0b1a;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.u-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.u-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
  color: #fff;
}

.u-modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
}
.u-modal-close:hover { color: #ef5350; }

.u-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 16. TABLES ─────────────────────────────────────────────────────── */

.u-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.u-table th {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #71717a;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.u-table td {
  padding: 12px 14px;
  color: #a1a1aa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.u-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

/* ── 17. PROGRESS BARS ───────────────────────────────────────────────── */

.u-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.u-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 100px;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.u-progress-fill-green  { background: linear-gradient(90deg, #22c55e, #4ade80); }
.u-progress-fill-red   { background: linear-gradient(90deg, #dc2626, #ef5350); }
.u-progress-fill-cyan  { background: linear-gradient(90deg, #0891b2, #00e5ff); }
.u-progress-fill-gold  { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* ── 18. TABS ───────────────────────────────────────────────────────── */

.u-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
}

.u-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #71717a;
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .2s;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.u-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.u-tab.active {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border-bottom-color: #a855f7;
}

/* ── 19. DIVIDERS ───────────────────────────────────────────────────── */

.u-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}

.u-divider-lg {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

/* ── 20. EMPTY STATES ────────────────────────────────────────────────── */

.u-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: #71717a;
}

.u-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.u-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #a1a1aa;
  margin: 0 0 8px;
}

.u-empty-text {
  font-size: .85rem;
  color: #71717a;
  margin: 0;
  max-width: 300px;
}

/* ── 21. ANIMATIONS ──────────────────────────────────────────────────── */

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

@keyframes popIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.u-animate-fade-in   { animation: fadeIn .4s cubic-bezier(.4, 0, .2, 1) forwards; }
.u-animate-pop-in    { animation: popIn .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.u-animate-slide-left { animation: slideInLeft .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.u-animate-pulse     { animation: pulseGlow 2s infinite; }

/* ── 22. SCROLLBAR ───────────────────────────────────────────────────── */

.u-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.u-scroll::-webkit-scrollbar-track { background: transparent; }
.u-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.u-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.4);
}

/* ── 23. OPACITY / VISIBILITY ────────────────────────────────────────── */

.u-opacity-0    { opacity: 0; }
.u-opacity-25   { opacity: 0.25; }
.u-opacity-50   { opacity: 0.5; }
.u-opacity-75   { opacity: 0.75; }
.u-opacity-100  { opacity: 1; }
.u-pointer-none { pointer-events: none; }
.u-select-none  { user-select: none; }
.u-select-text  { user-select: text; }

/* ── 24. CURSOR ──────────────────────────────────────────────────────── */

.u-cursor-pointer { cursor: pointer; }
.u-cursor-default { cursor: default; }
.u-cursor-not-allowed { cursor: not-allowed; }
.u-cursor-grab   { cursor: grab; }

/* ── 25. OVERFLOW / TEXT ──────────────────────────────────────────────── */

.u-overflow-x-auto { overflow-x: auto; }
.u-overflow-hidden  { overflow: hidden; }

/* ── 26. TRANSITIONS ──────────────────────────────────────────────────── */

.u-transition {
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.u-transition-fast {
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
}

.u-transition-slow {
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
}

/* ── 27. GRID TEMPLATES ──────────────────────────────────────────────── */

.u-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.u-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.u-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .u-grid-2, .u-grid-3, .u-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .u-grid-4 { grid-template-columns: repeat(2, 1fr); }
}