/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --orange: #ff6a00;
  --orange-bright: #ff8a32;
  --orange-faint: #ff6a0017;
  --bg: #08090b;
  --surface: #111316;
  --surface-raised: #171a1f;
  --surface-hover: #1c2025;
  --line: #272b31;
  --line-bright: #393f47;
  --text: #f8f9fa;
  --muted: #9ba2aa;
  --shadow: 0 24px 70px #00000055;
  --green: #4caf50;
  --red: #e67474;
  --yellow: #e6b450;
  --blue: #6ab0ff;
}

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

html {
  color-scheme: dark;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  direction: rtl;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ============================================
   BACKGROUND
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(#ffffff0b 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
.side-nav {
  width: 280px;
  background: #0e1013;
  border-left: 1px solid var(--line);
  padding: 28px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a4047 transparent;
  flex-shrink: 0;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
}

.side-nav::-webkit-scrollbar {
  width: 4px;
}

.side-nav::-webkit-scrollbar-thumb {
  background: #3a4047;
  border-radius: 20px;
}

.nav-brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 18px 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px #00000066);
}

.nav-brand span {
  display: grid;
  line-height: 1.2;
}

.nav-brand b {
  font-size: 18px;
  letter-spacing: 2px;
}

.nav-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.nav-section {
  margin-top: 6px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  color: #6c747c;
  letter-spacing: 1.6px;
  padding: 12px 8px 6px 8px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #b9c0c7;
  font-size: 13px;
  font-weight: 500;
  transition: 0.15s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: #f0f3f6;
}

.nav-item.active {
  background: var(--orange-faint);
  color: #ffae78;
  border: 1px solid #ff6a0033;
  box-shadow: inset 0 1px #ffbd8c18;
}

.nav-item .lucide {
  color: #8f969e;
}

.nav-item.active .lucide {
  color: #ff9e5e;
}

.badge {
  margin-right: auto;
  background: #262b31;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: #b1b9c0;
}

.nav-item.active .badge {
  background: #ff6a0022;
  color: #ffb482;
}

.nav-spacer {
  flex: 1;
}

.nav-profile {
  margin-top: 12px;
  padding: 12px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-profile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #ff6a0025;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-profile .info {
  line-height: 1.3;
}

.nav-profile .info b {
  font-size: 13px;
  display: block;
}

.nav-profile .info span {
  font-size: 10px;
  color: #7e868e;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  flex: 1;
  padding: 28px 36px 48px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 80% -10%, #ff6a001c, transparent 30%),
    radial-gradient(circle at 0 90%, #5b270d17, transparent 30%),
    var(--bg);
}

/* ============================================
   APP HEADER
   ============================================ */
.app-header {
  width: min(1580px, calc(100% - 48px));
  height: 82px;
  margin: 20px auto 0;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #101215e8;
  box-shadow: var(--shadow), inset 0 1px #ffffff0b;
  backdrop-filter: blur(22px);
  animation: headerIn .5s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px #0009);
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand b {
  font-size: 20px;
  letter-spacing: 2.5px;
}

.brand small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c1c6cb;
  font-size: 12px;
}

.data-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50d77c;
  box-shadow: 0 0 0 6px #50d77c14;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  width: min(1480px, calc(100% - 48px));
  margin: auto;
  padding: 72px 0 90px;
}

.search-hero {
  max-width: 1050px;
  margin: auto;
  text-align: center;
  animation: riseIn .55s .05s ease both;
}

.eyebrow {
  color: var(--orange-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.hero-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.25;
  letter-spacing: -1px;
}

.hero-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.command-search {
  height: 82px;
  margin-top: 34px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: right;
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: #15181cf2;
  box-shadow: 0 30px 90px #0009, 0 0 45px #ff6a000c, inset 0 1px #ffffff10;
  transition: .2s ease;
}

.command-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 34px 100px #000a, 0 0 0 5px #ff6a0014, 0 0 65px #ff6a0010;
  transform: translateY(-2px);
}

.command-search>.lucide {
  width: 28px;
  height: 28px;
  color: var(--orange-bright);
}

.command-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
}

.command-search input::placeholder {
  color: #767d85;
}

.command-search kbd {
  padding: 7px 12px;
  border: 1px solid #41464d;
  border-radius: 9px;
  background: #24282e;
  color: #a5abb2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 52px;
  overflow-x: auto;
  scrollbar-width: none;
  animation: riseIn .55s .12s ease both;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  min-width: max-content;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: #a3a9b0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.category-tabs button:hover {
  background: #ffffff08;
  color: #fff;
  transform: translateY(-1px);
}

.category-tabs button.active {
  border-color: #ff6a0042;
  background: #ff6a0018;
  color: #ffae78;
  box-shadow: 0 8px 24px #ff6a0012, inset 0 1px #ffbd8c18;
}

.category-tabs button .lucide {
  width: 18px;
  height: 18px;
}

.category-tabs button b {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 20px;
  background: #ffffff09;
  color: #969da4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.category-tabs button.active b {
  background: #ff6a001e;
  color: #ffb482;
}

/* ============================================
   WORKSPACE
   ============================================ */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  animation: riseIn .55s .18s ease both;
}

.catalog-section {
  min-width: 0;
}

.catalog-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 22px;
}

.catalog-toolbar>div:first-child span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.quick-filters {
  display: flex;
  gap: 9px;
}

.quick-filters button,
.quick-filters select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: #b5bbc1;
  font-size: 11px;
  cursor: pointer;
  outline: 0;
}

.quick-filters button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-filters button .lucide {
  width: 16px;
  height: 16px;
}

.quick-filters button:hover,
.quick-filters select:hover {
  border-color: var(--line-bright);
}

.quick-filters button.active {
  border-color: #ff6a0045;
  background: #ff6a0013;
  color: #ffad74;
}

/* ============================================
   DATA SURFACE
   ============================================ */
.data-surface {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111317e8;
  box-shadow: var(--shadow), inset 0 1px #ffffff0a;
  backdrop-filter: blur(16px);
}

.data-head,
.catalog-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(190px, .9fr) 145px 120px;
  gap: 22px;
  align-items: center;
  padding: 0 24px;
}

.data-head {
  height: 52px;
  background: #ffffff04;
  color: #858c94;
  font-size: 11px;
  font-weight: 700;
}

.catalog-list {
  min-height: 520px;
  max-height: 760px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4a5058 transparent;
}

.catalog-row {
  min-height: 72px;
  border-top: 1px solid #ffffff0b;
  transition: .15s ease;
  animation: rowIn .25s calc(var(--row-index) * 20ms) ease both;
}

.catalog-row:hover {
  background: var(--surface-hover);
}

.item-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.item-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #ffffff0c;
  border-radius: 12px;
  background: #ffffff06;
  color: #949ba3;
}

.item-symbol .lucide {
  width: 18px;
  height: 18px;
}

.item-name b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-code {
  overflow: hidden;
  color: #c4c9ce;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}

.type-chip {
  width: max-content;
  padding: 6px 11px;
  border-radius: 20px;
  background: #ffffff07;
  color: #9ba2a9;
  font-size: 10px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.row-actions button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff05;
  color: #9da4ab;
  cursor: pointer;
  transition: .15s ease;
}

.row-actions button .lucide {
  width: 17px;
  height: 17px;
}

.row-actions button:hover {
  border-color: #ff6a0050;
  background: #ff6a0012;
  color: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #ff6a0010;
}

.row-actions .favorite.active {
  color: var(--orange-bright);
}

.row-actions .favorite.active .lucide {
  fill: currentColor;
}

/* ============================================
   PRICE RAIL
   ============================================ */
.price-rail {
  padding: 21px;
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111317e8;
  box-shadow: var(--shadow), inset 0 1px #ffffff0a;
  backdrop-filter: blur(16px);
}

.price-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.price-heading>span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ff6a0015;
  color: var(--orange-bright);
}

.price-heading h2 {
  margin: 0;
  font-size: 16px;
}

.price-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.price-list {
  max-height: 620px;
  padding-top: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 3px;
  border-bottom: 1px solid #ffffff0b;
  font-size: 12px;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  color: #c0c5ca;
}

.price-row b {
  padding: 5px 9px;
  border-radius: 8px;
  background: #ff6a0012;
  color: #ffad75;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.price-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 11px;
  border-radius: 10px;
  background: #ffffff05;
  color: #848b93;
  font-size: 10px;
}

.price-note .lucide {
  width: 15px;
  height: 15px;
}

/* ============================================
   INSIGHT GRID
   ============================================ */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.insight-grid>section {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111317df;
  box-shadow: 0 14px 35px #0002;
}

.insight-grid header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.insight-grid header>.lucide {
  width: 19px;
  height: 19px;
  color: var(--orange-bright);
}

.insight-grid h3 {
  margin: 0;
  font-size: 13px;
}

.insight-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mini-list {
  display: grid;
  gap: 6px;
}

.mini-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #ffffff05;
}

.mini-item span {
  min-width: 0;
  display: grid;
}

.mini-item b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-item code {
  overflow: hidden;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-item button {
  border: 0;
  background: transparent;
  color: var(--orange-bright);
  font-size: 10px;
  cursor: pointer;
}

.mini-empty {
  padding: 16px 4px;
  color: #777e86;
  font-size: 10px;
  text-align: center;
}

/* ============================================
   PLAYER PROFILE
   ============================================ */
.player-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #111317e0;
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow), inset 0 1px #ffffff0a;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ff6a0025;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ff6a0040;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-avatar .lucide {
  width: 40px;
  height: 40px;
  color: #ff9e5e;
}

.player-info {
  flex: 1;
  min-width: 200px;
}

.player-info h1 {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.player-info h1 .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.player-info h1 .status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 6px #4caf5022;
}

.player-info h1 .status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 6px #e6747422;
}

.player-info .sub-info {
  display: flex;
  gap: 24px;
  margin-top: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.player-info .sub-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-info .sub-info .lucide {
  width: 16px;
  height: 16px;
}

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.player-actions button {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s ease;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #d3d9df;
}

.player-actions button:hover {
  border-color: #ff6a0040;
  background: #ff6a0012;
  color: #ffb482;
}

.player-actions button.primary {
  background: #ff6a0022;
  border-color: #ff6a0040;
  color: #ffb482;
}

.player-actions button.primary:hover {
  background: #ff6a0033;
  box-shadow: 0 8px 24px #ff6a0012;
}

.player-actions button.danger {
  border-color: #e6747440;
  color: #e67474;
}

.player-actions button.danger:hover {
  background: #e6747418;
  border-color: #e6747460;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: #111317e0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(4px);
  text-align: center;
}

.stat-card .stat-icon {
  color: var(--orange-bright);
  margin-bottom: 4px;
}

.stat-card .stat-icon .lucide {
  width: 24px;
  height: 24px;
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.full-width {
  grid-column: 1 / -1;
}

/* ============================================
   PANELS
   ============================================ */
.panel {
  background: #111317e0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow), inset 0 1px #ffffff0a;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff0b;
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h2 .lucide {
  color: var(--orange-bright);
}

.panel-header .count-badge {
  background: #ff6a0018;
  color: #ffae78;
  padding: 2px 12px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 600;
}

.panel-header .action-link {
  color: var(--orange-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================
   LICENCE LIST
   ============================================ */
.licence-list {
  display: grid;
  gap: 8px;
}

.licence-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff06;
  border-radius: 12px;
  border: 1px solid #ffffff08;
}

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

.licence-item .licence-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ff6a0015;
  color: var(--orange-bright);
}

.licence-item .licence-icon .lucide {
  width: 16px;
  height: 16px;
}

.licence-item .licence-name {
  font-size: 13px;
  font-weight: 500;
}

.licence-item .licence-status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 40px;
  font-weight: 600;
}

.licence-item .licence-status.active {
  background: #4caf5022;
  color: #7cdb9a;
}

.licence-item .licence-status.inactive {
  background: #e6747422;
  color: #e67474;
}

.licence-item .licence-status.expired {
  background: #e6b45022;
  color: #e6b450;
}

/* ============================================
   INVENTORY
   ============================================ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.inventory-item {
  background: #ffffff06;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #ffffff08;
  text-align: center;
  transition: 0.15s ease;
}

.inventory-item:hover {
  background: #ffffff0c;
  border-color: #ff6a0030;
}

.inventory-item .item-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.inventory-item .item-name {
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.inventory-item .item-count {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* ============================================
   TABLE
   ============================================ */
.table-wrap {
  overflow-x: auto;
}

.table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-mini th {
  text-align: right;
  color: #7e868e;
  font-weight: 600;
  font-size: 11px;
  padding: 8px 10px 10px 10px;
  border-bottom: 1px solid var(--line);
}

.table-mini td {
  padding: 10px;
  border-bottom: 1px solid #1e2227;
}

.table-mini tr:last-child td {
  border-bottom: 0;
}

.table-mini .empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 30px 10px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge.success {
  background: #4caf5022;
  color: #7cdb9a;
}

.status-badge.warn {
  background: #e6b45022;
  color: #e6b450;
}

.status-badge.danger {
  background: #e6747422;
  color: #e67474;
}

.status-badge.info {
  background: #6ab0ff22;
  color: #6ab0ff;
}

/* ============================================
   UTILITY
   ============================================ */
.copy-id-btn {
  background: transparent;
  border: none;
  color: #666688;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.copy-id-btn:hover {
  background: rgba(108, 99, 255, 0.2);
  color: #6c63ff;
  transform: scale(1.1);
}

.copy-id-btn:active {
  transform: scale(0.9);
}

.copy-id-btn.copied {
  color: var(--green);
  background: rgba(76, 175, 80, 0.2);
}

.user-cell,
.admin-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-list {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-list .lucide {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.empty-list b {
  font-size: 15px;
}

.empty-list p {
  margin: 7px 0;
  font-size: 12px;
}

.loading-row {
  height: 62px;
  margin: 11px 20px 0;
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff06;
}

.loading-row::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: 100% 0;
  background: linear-gradient(90deg, transparent, #ffffff10, transparent);
  animation: shimmer 1.2s infinite;
}

/* ============================================
   TOAST
   ============================================ */
.copy-toast {
  position: fixed;
  right: 50%;
  bottom: 32px;
  z-index: 50;
  translate: 50% 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid #ff6a0040;
  border-radius: 13px;
  background: #24160ff5;
  color: #ffc49c;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  box-shadow: 0 20px 55px #0009;
  backdrop-filter: blur(16px);
}

.copy-toast.show {
  translate: 50% 0;
  opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes shimmer {
  to {
    translate: -100% 0;
  }
}

/* ============================================
   HOME PAGE HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  padding: 80px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.05) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.min-vh-75 {
  min-height: 75vh;
}

.gradient-text {
  background: linear-gradient(135deg, #5865F2, #4B5CC4, #7289DA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   HOME PAGE STATS SECTION
   ============================================ */
.stats-section {
  background: #0a0a0a;
}

.stats-section .stat-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stats-section .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(88, 101, 242, 0.2);
}

.stats-section .stat-card h3 {
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HOME PAGE FEATURES SECTION
   ============================================ */
.features-section {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  padding: 80px 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(88, 101, 242, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(88, 101, 242, 0.2);
  transform: scale(1.1);
}

.text-purple {
  color: #9B59B6;
}

/* ============================================
   HOME PAGE DISCORD SECTION
   ============================================ */
.discord-section {
  background: #0a0a0a;
  padding: 80px 0;
}

.discord-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-discord {
  background: #5865F2;
  color: white !important;
  border: none;
  padding: 12px 40px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(88, 101, 242, 0.3);
}

/* ============================================
   HOME PAGE CTA SECTION
   ============================================ */
.cta-section {
  padding: 60px 0;
}

.cta-section .btn-light {
  background: white;
  color: #0a0a0a;
  border: none;
  padding: 14px 45px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .price-rail {
    position: static;
  }

  .price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 22px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .side-nav {
    width: 72px;
    padding: 16px 8px;
  }

  .side-nav .nav-brand span,
  .side-nav .section-label,
  .side-nav .nav-item span:not(.lucide),
  .side-nav .badge,
  .side-nav .nav-profile .info {
    display: none;
  }

  .side-nav .nav-item {
    padding: 12px 10px;
    justify-content: center;
  }

  .side-nav .nav-profile {
    justify-content: center;
  }

  .main {
    padding: 20px 16px;
  }

  .player-header {
    padding: 18px 16px;
    flex-direction: column;
    text-align: center;
  }

  .player-info .sub-info {
    justify-content: center;
  }

  .player-actions {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
    min-height: auto;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .stats-section .stat-card {
    padding: 1rem !important;
  }

  .stats-section .stat-card h3 {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 1.5rem !important;
  }

  .discord-card {
    padding: 2rem !important;
  }

  .cta-section {
    text-align: center;
  }
}

@media (max-width: 700px) {

  .app-header,
  .page {
    width: calc(100% - 22px);
  }

  .app-header {
    height: 70px;
    margin-top: 11px;
    padding: 0 15px;
    border-radius: 17px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .data-status {
    display: none;
  }

  .page {
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-copy p {
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.8;
  }

  .command-search {
    height: 66px;
    padding: 0 15px;
    border-radius: 18px;
  }

  .command-search input {
    font-size: 14px;
  }

  .command-search kbd {
    display: none;
  }

  .category-tabs {
    justify-content: flex-start;
    margin-bottom: 34px;
  }

  .category-tabs button {
    height: 42px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-filters {
    width: 100%;
  }

  .quick-filters button,
  .quick-filters select {
    flex: 1;
  }

  .data-head {
    display: none;
  }

  .catalog-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 84px;
    padding: 13px 14px;
  }

  .item-code {
    grid-column: 1;
    font-size: 11px;
  }

  .type-chip {
    display: none;
  }

  .row-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .price-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 10px 20px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 500px) {
  .side-nav {
    width: 60px;
    padding: 12px 4px;
  }

  .side-nav .nav-item {
    padding: 10px 4px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* for the main use from up */


/* Warning Box */
.warning-box {
  background: rgba(230, 116, 116, 0.05);
  border: 1px solid rgba(230, 116, 116, 0.15);
  border-radius: 16px;
  padding: 24px 30px;
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 18px;

  .icon {
    font-size: 28px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
  }

  .text strong {
    color: var(--red);
  }

  .text .sub {
    color: var(--muted);
    font-size: 13px;
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 768px) {
  .warning-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* ============================================
   SHARED COMPONENTS (migrated from page-level styles)
   ============================================ */

.lucide {
            width: 20px;
            height: 20px;
            stroke-width: 1.8;
            flex-shrink: 0;
        }

.main-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 28px;
            flex-wrap: wrap;
            gap: 12px;
        }

.main-header h1 {
            font-size: 26px;
            font-weight: 700;
        }

.header-actions {
            display: flex;
            gap: 14px;
            align-items: center;
        }

.header-actions button:hover {
            border-color: #ff6a0040;
            background: #ff6a0012;
            color: #ffb482;
        }

.empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #7e868e;
        }

.main-header .sub {
            color: #9ba2aa;
            font-size: 13px;
            margin-top: 4px;
        }

.bg-glow {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

.grid-overlay {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image: 
        linear-gradient(rgba(255, 106, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 106, 0, 0.03) 1px, transparent 1px);
      background-size: 60px 60px;
    }

.btn-primary {
      background: var(--orange);
      border: none;
      padding: 0.9rem 2.8rem;
      border-radius: 60px;
      font-weight: 700;
      font-size: 1rem;
      color: #0b0d0f;
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      box-shadow: 0 8px 35px #ff6a0077;
      transition: 0.3s;
      cursor: pointer;
      text-decoration: none;
      letter-spacing: 0.3px;
    }

.btn-primary:hover {
      transform: translateY(-3px) scale(1.03);
      background: var(--orange-bright);
      box-shadow: 0 12px 50px #ff8a32aa;
    }

.btn-secondary {
      background: transparent;
      border: 1px solid var(--line-bright);
      padding: 0.9rem 2.2rem;
      border-radius: 60px;
      font-weight: 600;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      transition: 0.3s;
      cursor: pointer;
      text-decoration: none;
    }

.btn-secondary:hover {
      border-color: var(--orange);
      background: var(--orange-faint);
      transform: translateY(-3px);
    }
