/* ═══════════════════════════════════════════════════════════
   QANATI PLATFORM UI — Design System
   Extends: qanati.site variables.css + main.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* ─── PLATFORM-SPECIFIC VARIABLES ─── */
:root {
  --bg-black: #000000;
  --bg-deep: #020205;
  --bg-surface: #06060f;
  --bg-card: rgba(10, 10, 20, 0.85);
  --bg-sidebar: rgba(4, 4, 10, 0.97);
  --bg-topbar: rgba(5, 5, 12, 0.95);

  --neon-blue: #00f2ff;
  --neon-purple: #9d00ff;
  --neon-pink: #ff007a;
  --neon-cyan: #00ffd5;
  --neon-green: #14f195;
  --neon-amber: #ffb703;
  --neon-red: #ff3366;

  --glass-bg: rgba(5, 5, 10, 0.8);
  --glass-border: rgba(0, 242, 255, 0.15);
  --glass-blur: 24px;

  --grad-hyper: linear-gradient(135deg, #00f2ff 0%, #0075ff 50%, #9d00ff 100%);
  --grad-text: linear-gradient(180deg, #ffffff 20%, var(--neon-blue) 100%);
  --grad-card: linear-gradient(145deg, rgba(0,242,255,0.04) 0%, rgba(0,117,255,0.02) 100%);

  --font-head: 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --font-mono: 'Courier New', monospace;

  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.4s var(--ease-luxury);
  --transition-fast: 0.2s ease;

  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Status Colors */
  --status-active: #14f195;
  --status-trial: #ffb703;
  --status-expired: #ff3366;
  --status-unverified: #64748b;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-black);
  color: #e2e8f0;
  overflow: hidden;
  direction: rtl;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ─── CYBER GRID BACKGROUND ─── */
.platform-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,117,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(157,0,255,0.05) 0%, transparent 60%),
    #000;
}
.platform-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,242,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── PLATFORM SHELL ─── */
.platform-shell {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR ─── */
.platform-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  transition: transform var(--transition-base);
  backdrop-filter: blur(var(--glass-blur));
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar-brand-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--grad-hyper);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-brand-sub {
  font-size: 0.65rem;
  color: rgba(0,242,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(100,116,139,0.7);
  padding: 12px 10px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(148,163,184,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hyper);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.sidebar-link:hover {
  color: #e2e8f0;
  background: rgba(0,242,255,0.04);
  border-color: rgba(0,242,255,0.1);
}
.sidebar-link.active {
  color: var(--neon-blue);
  background: rgba(0,242,255,0.06);
  border-color: rgba(0,242,255,0.2);
  box-shadow: 0 0 12px rgba(0,242,255,0.05);
}
.sidebar-link.active .link-icon { filter: drop-shadow(0 0 6px var(--neon-blue)); }
.link-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.link-badge {
  margin-right: auto;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 20px;
  background: rgba(157,0,255,0.2);
  color: #bf79ff;
  border: 1px solid rgba(157,0,255,0.3);
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--glass-border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,242,255,0.03);
  border: 1px solid var(--glass-border);
}
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-hyper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-email {
  font-size: 0.72rem;
  color: rgba(148,163,184,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.6rem;
  color: var(--neon-cyan);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,51,102,0.1);
  border: 1px solid rgba(255,51,102,0.2);
  color: var(--neon-red);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sidebar-logout-btn:hover { background: rgba(255,51,102,0.2); }

/* ─── TOPBAR ─── */
.platform-topbar {
  position: fixed;
  top: 0;
  right: var(--sidebar-width);
  left: 0;
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 90;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.topbar-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
}
.topbar-title span {
  display: block;
  font-size: 0.65rem;
  color: rgba(100,116,139,0.8);
  font-weight: 400;
  margin-top: 1px;
}

.topbar-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0,242,255,0.05);
  border: 1px solid var(--glass-border);
  color: rgba(148,163,184,0.9);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.topbar-btn:hover { background: rgba(0,242,255,0.1); color: var(--neon-blue); }

.mobile-sidebar-toggle { display: none; }

/* ─── MAIN CONTENT AREA ─── */
.platform-main {
  margin-right: var(--sidebar-width);
  margin-top: var(--topbar-height);
  flex: 1;
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  padding: 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,242,255,0.2) transparent;
}
.platform-main::-webkit-scrollbar { width: 5px; }
.platform-main::-webkit-scrollbar-track { background: transparent; }
.platform-main::-webkit-scrollbar-thumb { background: rgba(0,242,255,0.2); border-radius: 3px; }

/* ─── STAT CARDS (Dashboard KPIs) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.4;
}
.stat-card.cyan::before { background: var(--neon-blue); }
.stat-card.purple::before { background: var(--neon-purple); }
.stat-card.green::before { background: var(--neon-green); }
.stat-card.amber::before { background: var(--neon-amber); }
.stat-card:hover { border-color: rgba(0,242,255,0.3); transform: translateY(-2px); }

.stat-icon { font-size: 1.4rem; margin-bottom: 10px; }
.stat-label { font-size: 0.72rem; color: rgba(100,116,139,0.9); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.stat-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #f1f5f9; }
.stat-sub { font-size: 0.7rem; color: rgba(100,116,139,0.7); margin-top: 4px; }

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  pointer-events: none;
}
.product-card:hover {
  border-color: rgba(0,242,255,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,242,255,0.1);
  transform: translateY(-3px);
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  background: rgba(0,242,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.product-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.product-name-block { flex: 1; }
.product-name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: #f1f5f9; }
.product-key { font-size: 0.65rem; color: rgba(100,116,139,0.7); font-family: var(--font-mono); text-transform: uppercase; margin-top: 2px; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.status-active { background: rgba(20,241,149,0.12); color: var(--status-active); border: 1px solid rgba(20,241,149,0.25); }
.status-active::before { background: var(--status-active); box-shadow: 0 0 6px var(--status-active); animation: pulse-dot 2s infinite; }
.status-trial { background: rgba(255,183,3,0.12); color: var(--status-trial); border: 1px solid rgba(255,183,3,0.25); }
.status-trial::before { background: var(--status-trial); }
.status-expired { background: rgba(255,51,102,0.1); color: var(--status-expired); border: 1px solid rgba(255,51,102,0.2); }
.status-expired::before { background: var(--status-expired); }
.status-not-verified { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.status-not-verified::before { background: #64748b; }

.product-desc { font-size: 0.8rem; color: rgba(148,163,184,0.8); line-height: 1.5; }

.product-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.meta-chip {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,242,255,0.06);
  color: rgba(100,116,139,0.9);
  border: 1px solid rgba(0,242,255,0.08);
  font-family: var(--font-mono);
}

.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(0,242,255,0.15), rgba(0,117,255,0.15));
  border-color: rgba(0,242,255,0.35);
  color: var(--neon-blue);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,242,255,0.22), rgba(0,117,255,0.22));
  border-color: var(--neon-blue);
  box-shadow: 0 0 16px rgba(0,242,255,0.2);
}
.btn-danger {
  background: rgba(255,51,102,0.08);
  border-color: rgba(255,51,102,0.25);
  color: var(--neon-red);
}
.btn-danger:hover { background: rgba(255,51,102,0.15); }
.btn-ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: rgba(148,163,184,0.9);
}
.btn-ghost:hover { border-color: rgba(0,242,255,0.2); color: var(--neon-blue); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-glow {
  background: var(--grad-hyper);
  color: #000;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 20px rgba(0,242,255,0.3);
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,242,255,0.4); }

/* ─── SECTION HEADERS ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { font-size: 1rem; }
.section-sub { font-size: 0.75rem; color: rgba(100,116,139,0.8); margin-top: 2px; }

/* ─── GLASS CARDS (generic) ─── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  padding: 22px;
  transition: border-color var(--transition-fast);
}
.glass-card:hover { border-color: rgba(0,242,255,0.2); }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(148,163,184,0.9);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-control::placeholder { color: rgba(100,116,139,0.6); }
.form-control:focus {
  border-color: rgba(0,242,255,0.4);
  background: rgba(0,242,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,242,255,0.06);
}

/* ─── TABLE ─── */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.platform-table th {
  padding: 10px 14px;
  text-align: right;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(100,116,139,0.8);
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
}
.platform-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,242,255,0.04);
  color: rgba(226,232,240,0.9);
}
.platform-table tr:hover td { background: rgba(0,242,255,0.02); }
.platform-table tr:last-child td { border-bottom: none; }

/* ─── ALERTS ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-info { background: rgba(0,242,255,0.06); border: 1px solid rgba(0,242,255,0.15); color: #67e8f9; }
.alert-warn { background: rgba(255,183,3,0.08); border: 1px solid rgba(255,183,3,0.2); color: #fbbf24; }
.alert-error { background: rgba(255,51,102,0.08); border: 1px solid rgba(255,51,102,0.2); color: #f87171; }
.alert-success { background: rgba(20,241,149,0.06); border: 1px solid rgba(20,241,149,0.15); color: #4ade80; }

/* ─── LOADING OVERLAY ─── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.loading-overlay.hidden { display: none; }
.loader {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0,242,255,0.15);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text { font-size: 0.8rem; color: rgba(0,242,255,0.7); letter-spacing: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  backdrop-filter: blur(20px);
  animation: slideInToast 0.4s var(--ease-luxury);
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-success { background: rgba(20,241,149,0.1); border: 1px solid rgba(20,241,149,0.3); color: #4ade80; }
.toast-error { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.3); color: #f87171; }
.toast-info { background: rgba(0,242,255,0.08); border: 1px solid rgba(0,242,255,0.2); color: #67e8f9; }
@keyframes slideInToast {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}
.empty-state-icon { font-size: 2.5rem; opacity: 0.5; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: rgba(148,163,184,0.9); }
.empty-state-sub { font-size: 0.8rem; color: rgba(100,116,139,0.7); max-width: 280px; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--glass-border); margin: 20px 0; }

/* ─── PAGE HEADER ─── */
.page-header { margin-bottom: 28px; }
.page-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.page-subtitle { font-size: 0.82rem; color: rgba(100,116,139,0.8); margin-top: 6px; }

/* ─── USER INFO CARD ─── */
.user-info-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}
.user-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-hyper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid rgba(0,242,255,0.2);
  box-shadow: 0 0 20px rgba(0,242,255,0.1);
}
.user-details-block { flex: 1; }
.user-display-email { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: #f1f5f9; }
.user-display-id { font-size: 0.65rem; color: rgba(100,116,139,0.7); font-family: var(--font-mono); margin-top: 3px; }
.user-verify-status { margin-top: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .platform-sidebar {
    transform: translateX(100%);
  }
  .platform-sidebar.open {
    transform: translateX(0);
  }
  .platform-topbar {
    right: 0;
  }
  .platform-main {
    margin-right: 0;
  }
  .mobile-sidebar-toggle {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-overlay {
    display: block;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .platform-main { padding: 16px; }
  .page-title { font-size: 1.2rem; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}

/* ─── SKELETON LOADER ─── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── DETAIL ROW (account info) ─── */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,242,255,0.04);
  font-size: 0.85rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-key { color: rgba(100,116,139,0.8); }
.detail-val { color: rgba(226,232,240,0.9); font-family: var(--font-mono); font-size: 0.8rem; }
