/* ══════════════════════════════════════════════════
   سهيل هوست — Theme CSS
   غيّر هذا الملف فقط لتغيير كل التصميم
══════════════════════════════════════════════════ */

:root {
  /* ── الألوان الرئيسية ── */
  --bg:    #060D18;
  --bg2:   #09131F;
  --bg3:   #0D1A28;
  --bg4:   #112030;
  --bg5:   #162840;

  /* ── الألوان المميزة ── */
  --c1:    #2B7FFF;
  --c1-h:  #1a6ee8;
  --c1-l:  #5a9fff;
  --teal:  #00C4B4;
  --green: #00D672;
  --r:     #FF4D4D;
  --y:     #FFB020;
  --purple:#7C6FFF;

  /* ── النصوص ── */
  --t1:    #D8E8F5;
  --t2:    #4E6E8E;
  --t3:    #1E3248;

  /* ── الحدود ── */
  --bd:    #0F1E2E;
  --bd2:   #1a2f45;

  /* ── الخطوط ── */
  --font:  'Tajawal', 'Cairo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ── التأثيرات ── */
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --shadow-c1: 0 4px 24px rgba(43,127,255,.25);
  --shadow-teal: 0 4px 24px rgba(0,196,180,.2);
  --glow:      0 0 40px rgba(43,127,255,.15);
  --radius:    12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--c1) var(--bg2) }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
button { cursor: pointer; font-family: var(--font); border: none; outline: none }
input, textarea, select { font-family: var(--font); outline: none }
ul { list-style: none }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--bg2) }
::-webkit-scrollbar-thumb { background: var(--c1); border-radius: 3px }

/* ══ CUSTOM CURSOR ══ */
.cursor {
  width: 12px; height: 12px;
  background: var(--c1);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform .1s ease, opacity .2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(43,127,255,.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform .15s ease, width .2s, height .2s, opacity .2s;
}
.cursor.hover { transform: scale(2); background: var(--teal) }
.cursor-ring.hover { width: 50px; height: 50px; border-color: rgba(0,196,180,.4) }
@media (max-width: 768px) { .cursor, .cursor-ring { display: none } }

/* ══ LOADING SCREEN ══ */
#loading {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 99997;
  transition: opacity .5s ease, visibility .5s;
}
#loading.hidden { opacity: 0; visibility: hidden }
.loading-logo {
  font-size: 2rem; font-weight: 900;
  color: var(--c1);
  letter-spacing: -1px;
  margin-bottom: 2rem;
  animation: pulse 1.5s infinite;
}
.loading-bar {
  width: 200px; height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--c1), var(--teal));
  border-radius: 2px;
  animation: loading 1.2s infinite ease-in-out;
}
@keyframes loading { 0% { transform: translateX(-100%) } 100% { transform: translateX(350%) } }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

/* ══ SCROLL PROGRESS ══ */
#scroll-progress {
  position: fixed; top: 0; right: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c1), var(--teal));
  z-index: 9999;
  transition: width .1s linear;
}

/* ══ NAV ══ */
.nav {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 900;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(6,13,24,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd2);
}
.nav-inner {
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  display: flex; align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 900;
  color: var(--t1);
  display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.nav-logo span { color: var(--c1) }
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  flex: 1;
}
.nav-links a {
  font-size: .9rem; color: var(--t2);
  transition: var(--transition);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--t1) }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-right: auto }
.nav-user {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; position: relative;
}
.nav-user img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--c1);
  object-fit: cover;
}
.nav-dropdown {
  position: absolute; top: calc(100% + .75rem); left: 0;
  background: var(--bg3);
  border: 1px solid var(--bd2);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 180px;
  display: none;
  box-shadow: var(--shadow);
}
.nav-user:hover .nav-dropdown { display: block }
.nav-dropdown a {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--t2);
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--bg4); color: var(--t1) }
.nav-dropdown .divider { height: 1px; background: var(--bd2); margin: .25rem 0 }

/* ══ ANNOUNCEMENT BAR ══ */
.announcement-bar {
  background: linear-gradient(90deg, var(--c1), var(--teal));
  text-align: center; padding: .5rem 1rem;
  font-size: .8rem; font-weight: 600;
  color: #fff;
  position: relative; z-index: 901;
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  transition: var(--transition);
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--c1);
  color: #fff;
  box-shadow: var(--shadow-c1);
}
.btn-primary:hover {
  background: var(--c1-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(43,127,255,.35);
}
.btn-outline {
  background: transparent;
  color: var(--t1);
  border: 1.5px solid var(--bd2);
}
.btn-outline:hover { border-color: var(--c1); color: var(--c1); background: rgba(43,127,255,.08) }
.btn-teal { background: var(--teal); color: #fff }
.btn-teal:hover { filter: brightness(1.1); transform: translateY(-2px) }
.btn-danger { background: var(--r); color: #fff }
.btn-success { background: var(--green); color: #fff }
.btn-sm { padding: .4rem .9rem; font-size: .8rem }
.btn-lg { padding: .85rem 2rem; font-size: 1rem }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center }
.btn-block { width: 100%; justify-content: center }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important }

/* ══ CARDS ══ */
.card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--bd2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-glow:hover { box-shadow: var(--glow) }

/* ══ BADGE ══ */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .03em;
}
.badge-primary { background: rgba(43,127,255,.15); color: var(--c1) }
.badge-teal    { background: rgba(0,196,180,.15); color: var(--teal) }
.badge-green   { background: rgba(0,214,114,.15); color: var(--green) }
.badge-red     { background: rgba(255,77,77,.15); color: var(--r) }
.badge-yellow  { background: rgba(255,176,32,.15); color: var(--y) }

/* ══ FORM ══ */
.form-group { display: flex; flex-direction: column; gap: .4rem }
.form-label { font-size: .85rem; color: var(--t2); font-weight: 500 }
.form-control {
  background: var(--bg3);
  border: 1.5px solid var(--bd2);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  color: var(--t1);
  font-size: .9rem;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(43,127,255,.1) }
.form-control::placeholder { color: var(--t3) }
textarea.form-control { resize: vertical; min-height: 100px }
select.form-control { cursor: pointer }

/* ══ TOGGLE ══ */
.toggle {
  width: 44px; height: 24px;
  background: var(--bg4);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--bd2);
}
.toggle.on { background: var(--c1); border-color: var(--c1) }
.toggle::after {
  content: '';
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; right: 2px;
  transition: var(--transition);
}
.toggle.on::after { right: calc(100% - 20px) }

/* ══ TABLE ══ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--bd) }
table { width: 100%; border-collapse: collapse; font-size: .875rem }
thead th {
  background: var(--bg3);
  color: var(--t2);
  font-weight: 600;
  padding: .85rem 1rem;
  text-align: right;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bd2);
}
tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--bd);
  color: var(--t1);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(255,255,255,.02) }
tbody tr:last-child td { border-bottom: none }

/* ══ MODAL ══ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible }
.modal {
  background: var(--bg2);
  border: 1px solid var(--bd2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 480px;
  transform: scale(.95) translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0) }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.2rem; font-weight: 700 }
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); cursor: pointer;
  transition: var(--transition); font-size: 1.1rem;
}
.modal-close:hover { background: var(--r); color: #fff }

/* ══ DRAWER ══ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.drawer-overlay.open { opacity: 1; visibility: visible }
.drawer {
  position: fixed; top: 0; left: 0;
  width: 380px; height: 100%;
  background: var(--bg2);
  border-right: 1px solid var(--bd2);
  z-index: 901;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0) }

/* ══ TOAST ══ */
#toast-container {
  position: fixed; top: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 99998;
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
  width: max-content; max-width: 90vw;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn .3s ease forwards;
  pointer-events: all;
  min-width: 260px;
}
.toast.success { background: rgba(0,214,114,.15); border: 1px solid var(--green); color: var(--green) }
.toast.error   { background: rgba(255,77,77,.15);  border: 1px solid var(--r);     color: var(--r) }
.toast.info    { background: rgba(43,127,255,.15); border: 1px solid var(--c1);    color: var(--c1) }
.toast.warning { background: rgba(255,176,32,.15); border: 1px solid var(--y);     color: var(--y) }
.toast.exit { animation: toastOut .3s ease forwards }
@keyframes toastIn  { from { opacity:0; transform:translateY(-10px) } to { opacity:1; transform:translateY(0) } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) } to { opacity:0; transform:translateY(-10px) } }

/* ══ SIDEBAR (لوحة العميل والإدارة) ══ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: 64px;
}
.sidebar {
  background: var(--bg2);
  border-left: 1px solid var(--bd);
  padding: 1.5rem 0;
  position: fixed;
  top: 64px; right: 0;
  width: 240px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 1.5rem }
.sidebar-label {
  font-size: .7rem; font-weight: 700;
  color: var(--t3);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 1.25rem .5rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem;
  color: var(--t2);
  font-size: .875rem; font-weight: 500;
  transition: var(--transition);
  border-right: 2px solid transparent;
  cursor: pointer;
}
.sidebar-link:hover { color: var(--t1); background: rgba(255,255,255,.03) }
.sidebar-link.active { color: var(--c1); border-color: var(--c1); background: rgba(43,127,255,.08) }
.sidebar-link .icon { width: 18px; text-align: center; font-size: .95rem }
.dashboard-content {
  margin-right: 240px;
  padding: 2rem;
  min-height: calc(100vh - 64px);
}
.page-header { margin-bottom: 2rem }
.page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem }
.page-subtitle { color: var(--t2); font-size: .9rem }

/* ══ STATS GRID ══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.stat-label { font-size: .78rem; color: var(--t2); font-weight: 600; letter-spacing: .03em }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1 }
.stat-change { font-size: .78rem }
.stat-change.up   { color: var(--green) }
.stat-change.down { color: var(--r) }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* ══ GRID UTILITIES ══ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem }

/* ══ SECTION ══ */
.section { padding: 5rem 0 }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem }
.section-header { text-align: center; margin-bottom: 3rem }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(43,127,255,.1);
  border: 1px solid rgba(43,127,255,.2);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .78rem; font-weight: 700;
  color: var(--c1);
  margin-bottom: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: .75rem;
}
.section-subtitle { font-size: 1rem; color: var(--t2); max-width: 600px; margin: 0 auto }

/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(43,127,255,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0,196,180,.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--bd) 1px, transparent 1px),
                    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; text-align: center; width: 100% }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--c1), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.1rem; color: var(--t2); max-width: 600px; margin: 0 auto 2.5rem }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 4rem; flex-wrap: wrap;
}
.hero-stat { text-align: center }
.hero-stat-value { font-size: 2rem; font-weight: 900; color: var(--c1) }
.hero-stat-label { font-size: .82rem; color: var(--t2); margin-top: .2rem }

/* ══ BOT CARD ══ */
.bot-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.bot-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(43,127,255,.15) 0%, transparent 70%);
  transition: var(--transition);
}
.bot-card:hover { border-color: var(--c1); transform: translateY(-6px); box-shadow: var(--glow) }
.bot-card:hover::before { width: 120px; height: 120px }
.bot-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.bot-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem }
.bot-card-desc { font-size: .82rem; color: var(--t2); margin-bottom: 1rem; line-height: 1.5 }
.bot-card-features { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.25rem }
.bot-card-feature {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--t2);
}
.bot-card-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0 }
.bot-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: auto;
  padding-top: 1rem; border-top: 1px solid var(--bd);
}
.bot-price { font-size: 1.25rem; font-weight: 800; color: var(--c1) }
.bot-price span { font-size: .8rem; font-weight: 500; color: var(--t2) }

/* ══ VPS CARD ══ */
.vps-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}
.vps-card.featured {
  border-color: var(--c1);
  box-shadow: var(--glow);
}
.vps-card.featured::before {
  content: 'الأكثر طلباً';
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--c1);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .75rem; border-radius: 999px;
}
.vps-card:hover { transform: translateY(-4px); border-color: var(--c1) }
.vps-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem }
.vps-card-cat { font-size: .75rem; color: var(--t2); margin-bottom: 1.25rem }
.vps-specs { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem }
.vps-spec { display: flex; align-items: center; justify-content: space-between }
.vps-spec-label { font-size: .82rem; color: var(--t2); display: flex; align-items: center; gap: .4rem }
.vps-spec-value { font-size: .85rem; font-weight: 600 }
.vps-price { font-size: 1.6rem; font-weight: 900; margin-bottom: 1.25rem }
.vps-price span { font-size: .82rem; font-weight: 500; color: var(--t2) }

/* ══ TABS ══ */
.tabs { display: flex; gap: .5rem; margin-bottom: 2rem }
.tab-btn {
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  color: var(--t2);
  background: var(--bg3);
  border: 1px solid var(--bd2);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { background: var(--c1); color: #fff; border-color: var(--c1) }
.tab-content { display: none }
.tab-content.active { display: block }

/* ══ PANEL LAYOUT (لوحات البوتات) ══ */
.panel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}
.panel-sidebar {
  background: var(--bg2);
  border-left: 1px solid var(--bd);
  padding: 1.5rem 0;
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.panel-content { padding: 2rem; background: var(--bg) }

/* ══ ANIMATIONS ══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) }

@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes spin { to { transform: rotate(360deg) } }

.animate-fadeIn { animation: fadeIn .5s ease forwards }
.animate-slideUp { animation: slideUp .5s ease forwards }
.spin { animation: spin 1s linear infinite }

/* ══ DIVIDER ══ */
.divider { height: 1px; background: var(--bd); margin: 1.5rem 0 }

/* ══ AVATAR ══ */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bd2);
}
.avatar-lg { width: 64px; height: 64px }
.avatar-sm { width: 28px; height: 28px }

/* ══ STATUS DOT ══ */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.status-dot.online  { background: var(--green); box-shadow: 0 0 6px var(--green) }
.status-dot.offline { background: var(--t3) }
.status-dot.error   { background: var(--r) }
.status-dot.warning { background: var(--y) }

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--t2);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5 }
.empty-state-title { font-size: 1.1rem; font-weight: 700; color: var(--t1); margin-bottom: .5rem }
.empty-state-text { font-size: .875rem }

/* ══ SPINNER ══ */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--bd2);
  border-top-color: var(--c1);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ══ FOOTER ══ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand-name { font-size: 1.2rem; font-weight: 900; margin-bottom: .5rem }
.footer-brand-name span { color: var(--c1) }
.footer-brand-desc { font-size: .85rem; color: var(--t2); line-height: 1.6 }
.footer-col-title { font-size: .8rem; font-weight: 700; color: var(--t2); margin-bottom: .75rem; letter-spacing: .08em; text-transform: uppercase }
.footer-link { display: block; font-size: .85rem; color: var(--t2); margin-bottom: .5rem; transition: var(--transition) }
.footer-link:hover { color: var(--c1) }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--t3);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr }
  .sidebar { display: none }
  .dashboard-content { margin-right: 0 }
  .panel-layout { grid-template-columns: 1fr }
  .panel-sidebar { display: none }
  .footer-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 768px) {
  .nav-links { display: none }
  .grid-4 { grid-template-columns: repeat(2, 1fr) }
  .grid-3 { grid-template-columns: repeat(2, 1fr) }
  .grid-2 { grid-template-columns: 1fr }
  .hero-stats { gap: 1.5rem }
  .stats-grid { grid-template-columns: repeat(2, 1fr) }
  .drawer { width: 100% }
  .footer-grid { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr }
  .stats-grid { grid-template-columns: 1fr }
  .hero-actions { flex-direction: column; align-items: center }
}
