/* FreelanceIQ — LED Dot Matrix Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --bg-card: rgba(15, 15, 20, 0.7);
  --bg-card-solid: #0d0d12;
  --surface: rgba(20, 20, 25, 0.6);
  --surface-solid: #111115;
  --card: rgba(25, 25, 32, 0.8);
  --card2: rgba(35, 35, 42, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(200, 220, 255, 0.25);
  --white: #ffffff;
  --gray1: #a8a8b8;
  --gray2: #6e6e78;
  --gray3: #3a3a42;
  --accent: #c8dcff;
  --accent-soft: rgba(200, 220, 255, 0.12);
  --accent-dim: rgba(200, 220, 255, 0.05);
  --blue-glow: #7fb5ff;
  --warn: #ffb84d;
  --red: #ff5e5e;
  --green-ok: #5eff9a;
  --r: 14px;
  --r2: 20px;
  --r3: 28px;
  --pill: 980px;
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  direction: rtl;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ═══════ DOT MATRIX BACKGROUND ═══════ */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 1.2px, transparent 1.6px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 0;
  animation: dotPan 60s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at var(--light1-x, 20%) var(--light1-y, 25%),
      rgba(200,220,255,0.55) 0%,
      rgba(127,181,255,0.25) 15%,
      transparent 35%),
    radial-gradient(circle at var(--light2-x, 80%) var(--light2-y, 75%),
      rgba(220,210,255,0.45) 0%,
      rgba(180,200,255,0.15) 20%,
      transparent 40%),
    radial-gradient(circle at var(--light3-x, 50%) var(--light3-y, 50%),
      rgba(255,255,255,0.15) 0%,
      transparent 30%);
  filter: blur(50px);
  mix-blend-mode: screen;
  animation: lightDance 18s ease-in-out infinite;
}

@keyframes dotPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

@keyframes lightDance {
  0%, 100% {
    --light1-x: 20%; --light1-y: 20%;
    --light2-x: 80%; --light2-y: 80%;
    --light3-x: 50%; --light3-y: 50%;
    transform: scale(1);
  }
  25% {
    --light1-x: 70%; --light1-y: 30%;
    --light2-x: 20%; --light2-y: 70%;
    --light3-x: 60%; --light3-y: 40%;
    transform: scale(1.1);
  }
  50% {
    --light1-x: 80%; --light1-y: 70%;
    --light2-x: 30%; --light2-y: 20%;
    --light3-x: 40%; --light3-y: 60%;
    transform: scale(0.95);
  }
  75% {
    --light1-x: 30%; --light1-y: 80%;
    --light2-x: 70%; --light2-y: 30%;
    --light3-x: 50%; --light3-y: 70%;
    transform: scale(1.05);
  }
}

/* Ripple effect on top */
.ripple-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(200,220,255,0.15);
  opacity: 0;
  animation: rippleExpand 8s ease-out infinite;
}
.ripple:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.ripple:nth-child(2) { top: 60%; left: 75%; animation-delay: 2s; }
.ripple:nth-child(3) { top: 40%; left: 50%; animation-delay: 4s; }
.ripple:nth-child(4) { top: 80%; left: 25%; animation-delay: 6s; }

@keyframes rippleExpand {
  0% { width: 0; height: 0; opacity: 0; border-width: 2px; transform: translate(-50%, -50%); }
  20% { opacity: 0.8; }
  100% { width: 800px; height: 800px; opacity: 0; border-width: 0.5px; transform: translate(-50%, -50%); }
}

/* All content above background */
body > *:not(.ripple-bg) { position: relative; z-index: 10; }

a { text-decoration: none; color: var(--accent); }
a:hover { text-decoration: none; color: var(--white); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray2); }

/* ═══════ NAV ═══════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center;
  transition: opacity .2s;
  flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
}
.nav-logo:hover { opacity: 0.85; text-decoration: none; }

.auth-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(255,255,255,0.25));
}

/* Edit portfolio grid (with delete buttons) */
.edit-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.edit-port-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2, #1a1a1a);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}
.edit-port-item img,
.edit-port-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-port-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.92);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .15s, background .15s;
}
.edit-port-del:hover {
  background: #ff453a;
  transform: scale(1.1);
}
.edit-port-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 99px;
  pointer-events: none;
}
@keyframes sparkle {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(90deg); }
}

.nav-tabs { display: flex; gap: 32px; }
.nav-tab {
  font-size: 13px; font-weight: 500; color: var(--gray1);
  padding: 18px 0;
  transition: color .2s;
  position: relative;
}
.nav-tab:hover { color: var(--white); }
.nav-tab.active { color: var(--white); }
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--blue-glow));
  color: #000;
  font-weight: 600; font-size: 13px;
  padding: 9px 20px;
  border-radius: var(--pill);
  border: none; cursor: pointer;
  font-family: inherit;
  transition: all .25s;
  box-shadow: 0 0 0 rgba(200,220,255,0);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(200,220,255,0.4);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-weight: 500; font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--border2);
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notif-btn {
  color: var(--gray1); font-size: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.notif-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* ═══════ MESSAGES BUTTON (nav) ═══════ */
.msg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: var(--pill);
  color: var(--white); font-size: 13px; font-weight: 500;
  cursor: pointer; position: relative;
  transition: all .25s;
  backdrop-filter: blur(10px);
}
.msg-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.msg-btn-icon { font-size: 16px; line-height: 1; }
.msg-btn-text { font-weight: 500; }

.msg-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: var(--pill);
  box-shadow: 0 0 12px rgba(255,77,77,0.6);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,77,77,0.6); }
  50% { box-shadow: 0 0 20px rgba(255,77,77,0.9); transform: scale(1.1); }
}

.msg-btn-pulse {
  animation: btnPulse 0.6s ease-in-out 3;
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); border-color: var(--accent); }
}

@media (max-width: 768px) {
  .msg-btn-text { display: none; }
  .msg-btn { padding: 8px 12px; }
}

.role-badge {
  font-size: 11px; font-weight: 500; color: var(--gray1);
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  backdrop-filter: blur(10px);
}

/* ═══════ LAYOUT ═══════ */
.main { display: flex; min-height: calc(100vh - 60px); }

/* ═══════ SIDEBAR ═══════ */
.sidebar {
  width: 240px; flex-shrink: 0;
  padding: 28px 16px;
  border-left: 1px solid var(--border);
  position: sticky; top: 60px;
  height: calc(100vh - 60px); overflow-y: auto;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.sidebar-section-title {
  font-size: 10px; font-weight: 600; color: var(--gray2);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0 10px; margin-bottom: 10px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--gray1);
  transition: all .2s;
  margin-bottom: 2px;
  cursor: pointer;
  position: relative;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--white);
}
.sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--border-glow);
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 60%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}
.sidebar-icon { font-size: 15px; width: 20px; text-align: center; }
.sidebar-count {
  margin-right: auto; font-size: 10px; font-weight: 600;
  color: var(--gray2);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px; border-radius: 99px;
}
.sidebar-item.active .sidebar-count { background: var(--accent-soft); color: var(--accent); }
.sidebar-divider { height: 1px; background: var(--border); margin: 16px 8px; }

/* ═══════ CONTENT ═══════ */
.content { flex: 1; padding: 48px 56px; overflow-y: auto; }

/* ═══════ HERO ═══════ */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 820px;
  margin: 0 auto 48px;
  position: relative;
}
.hero-overline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-overline::before, .hero-overline::after {
  content: '';
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 6px var(--accent);
}
.hero-overline::after { background: linear-gradient(-90deg, transparent, var(--accent)); }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 0 80px rgba(200,220,255,0.15);
}
.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--blue-glow), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 8s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 18px; font-weight: 400;
  color: var(--gray1);
  line-height: 1.6;
  max-width: 600px; margin: 0 auto 40px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
}
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 0 30px rgba(200,220,255,0.3);
}
.hero-stat-label {
  font-size: 11px; color: var(--gray2);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ═══════ SEARCH ═══════ */
.search-filter-row { display: flex; gap: 10px; margin-bottom: 24px; max-width: 700px; }
.search-wrap {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  backdrop-filter: blur(10px);
  transition: all .2s;
}
.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(200,220,255,0.15);
}
.search-wrap input {
  background: transparent; border: none; outline: none;
  color: var(--white); font-family: inherit;
  font-size: 14px; flex: 1; text-align: right;
}
.search-wrap input::placeholder { color: var(--gray3); }
.search-icon { color: var(--gray2); font-size: 14px; }
.tool-btn {
  padding: 12px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--gray1); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap;
  backdrop-filter: blur(10px);
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════ STATS ROW ═══════ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2); padding: 22px;
  backdrop-filter: blur(20px);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon { font-size: 20px; margin-bottom: 12px; opacity: 0.8; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-num.green { color: var(--accent); text-shadow: 0 0 20px rgba(200,220,255,0.3); }
.stat-label { font-size: 11px; color: var(--gray2); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ═══════ FILTER CHIPS ═══════ */
.filter-chips { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.chip {
  padding: 7px 18px;
  border-radius: var(--pill);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border);
  color: var(--gray1);
  cursor: pointer; transition: all .2s;
  background: rgba(255,255,255,0.02);
  font-family: inherit;
  backdrop-filter: blur(10px);
}
.chip.active {
  background: var(--white); color: #000;
  border-color: var(--white);
  box-shadow: 0 0 20px rgba(255,255,255,0.25);
}
.chip:hover:not(.active) {
  border-color: var(--accent);
  color: var(--white);
}

/* ═══════ SECTION ═══════ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title span { color: var(--gray2); font-weight: 400; }
.see-all { font-size: 13px; color: var(--accent); }

/* ═══════ FREELANCER GRID ═══════ */
.fl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.fl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: all .35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  backdrop-filter: blur(20px);
  position: relative;
}
.fl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r2);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--border-glow), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.fl-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
}
.fl-card:hover::before { opacity: 1; }

.fl-card-top {
  height: 90px; position: relative;
  background:
    radial-gradient(circle at 50% 120%, rgba(200,220,255,0.2), transparent 50%),
    linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,15,0.8));
  overflow: hidden;
}
.fl-card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1.2px);
  background-size: 8px 8px;
  opacity: 0.6;
}
.fl-card-top-gradient { display: none; }
.fl-card-top-circle, .fl-card-top-pattern { display: none; }
.featured-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--warn), #ffd96b);
  color: #000;
  font-size: 10px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--pill);
  z-index: 2;
  box-shadow: 0 0 16px rgba(255,184,77,0.4);
}

.fl-card-body { padding: 22px; }

.fl-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }

.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border2);
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue-glow));
  opacity: 0;
  z-index: -1;
  transition: opacity .3s;
}
.fl-card:hover .avatar::after { opacity: 0.5; filter: blur(8px); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-green { background: var(--accent-soft); color: var(--accent); border-color: var(--border-glow); }
.av-dark { background: var(--surface); color: var(--gray1); }
.av-gray { background: var(--card); color: var(--gray2); }

.fl-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.fl-role { font-size: 12px; color: var(--accent); margin-top: 2px; font-weight: 500; }
.fl-online-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gray2); margin-top: 4px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-online { background: var(--green-ok); box-shadow: 0 0 6px var(--green-ok); }
.dot-offline { background: var(--gray3); }

.fl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tag {
  font-size: 11px; font-weight: 500; padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--gray1);
  border: 1px solid var(--border);
}

.fl-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.fl-meta-item {
  font-size: 11px; font-weight: 500; color: var(--gray1);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}
.fl-meta-item.green-meta { color: var(--accent); border-color: var(--border-glow); background: var(--accent-soft); }

.fl-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.stars { color: var(--warn); font-size: 12px; letter-spacing: -1px; }
.rating-num { font-size: 15px; font-weight: 700; color: var(--white); }
.rating-count { font-size: 11px; color: var(--gray2); }

.fl-divider { height: 1px; background: var(--border); margin-bottom: 16px; }

.fl-footer { display: flex; align-items: center; justify-content: space-between; }
.fl-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.fl-price span { font-size: 11px; font-weight: 400; color: var(--gray2); }

.fl-actions { display: flex; gap: 6px; }
.btn-view {
  background: transparent; color: var(--gray1);
  border: 1px solid var(--border2);
  border-radius: var(--pill);
  padding: 7px 14px; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.btn-view:hover { border-color: var(--accent); color: var(--accent); }
.btn-msg {
  background: var(--white);
  color: #000;
  border: none; border-radius: var(--pill);
  padding: 7px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .25s;
}
.btn-msg:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(200,220,255,0.4);
  color: #000;
}

/* ═══════ PROFILE ═══════ */
.profile-hero {
  text-align: center; padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(200,220,255,0.1), transparent 60%);
  pointer-events: none;
}
.profile-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; font-weight: 700;
  border: 3px solid var(--border2);
  position: relative;
  box-shadow: 0 0 60px rgba(200,220,255,0.2);
}
.profile-avatar::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--blue-glow), transparent, var(--accent));
  opacity: 0.5;
  z-index: -1;
  animation: rotateRing 8s linear infinite;
}
@keyframes rotateRing { 100% { transform: rotate(360deg); } }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.02em;
}
.profile-role { font-size: 17px; color: var(--accent); margin: 4px 0 18px; font-weight: 500; }
.profile-stats { display: flex; justify-content: center; gap: 40px; margin-top: 24px; }
.pstat { text-align: center; }
.pstat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--white);
}
.pstat-label { font-size: 10px; color: var(--gray2); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  margin-bottom: 14px;
  backdrop-filter: blur(20px);
}
.profile-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.profile-section-title::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ═══════ BADGES ═══════ */
.badge {
  display: inline-block; padding: 4px 11px;
  border-radius: var(--pill); font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.badge-green { background: var(--accent-soft); color: var(--accent); border-color: var(--border-glow); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--gray1); border-color: var(--border); }
.badge-red { background: rgba(255,94,94,0.1); color: var(--red); border-color: rgba(255,94,94,0.2); }
.badge-blue { background: var(--accent-soft); color: var(--accent); border-color: var(--border-glow); }

/* ═══════ REVIEWS ═══════ */
.review-card { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
}
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 11px; color: var(--gray3); margin-right: auto; }
.review-text { font-size: 14px; color: var(--gray1); line-height: 1.7; }

/* ═══════ PORTFOLIO GALLERY ═══════ */
.portfolio-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item {
  position: relative; border-radius: var(--r); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(200,220,255,0.2);
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7));
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 13px; }
.gallery-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 36px; color: var(--white);
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
}
.gallery-item:hover .gallery-play-icon { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(20px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 90vw; max-height: 90vh; position: relative; }
.lightbox-content img, .lightbox-content video { max-width: 90vw; max-height: 85vh; border-radius: var(--r); object-fit: contain; }
.lightbox-close {
  position: absolute; top: -44px; left: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border2);
  color: var(--white); font-size: 24px;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════ MESSAGES ═══════ */
.messages-layout { display: flex; height: calc(100vh - 60px); }
.conv-list {
  width: 320px; flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.conv-list-header {
  padding: 22px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .2s;
}
.conv-item:hover { background: rgba(255,255,255,0.03); color: var(--white); }
.conv-item.active { background: var(--accent-soft); }
.conv-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
  border: 1px solid var(--border);
}
.conv-name { font-size: 14px; font-weight: 600; }
.conv-preview { font-size: 12px; color: var(--gray2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.conv-time { font-size: 10px; color: var(--gray3); }
.unread-badge {
  background: var(--accent); color: #000;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  box-shadow: 0 0 8px var(--accent);
}

.chat-area { flex: 1; display: flex; flex-direction: column; }
.chat-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.chat-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 65%;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 14px; line-height: 1.6;
}
.msg-in {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  align-self: flex-start;
  border-radius: 4px var(--r) var(--r) var(--r);
}
.msg-out {
  background: var(--white); color: #000;
  align-self: flex-end;
  border-radius: var(--r) 4px var(--r) var(--r);
  box-shadow: 0 0 24px rgba(255,255,255,0.1);
}
.msg-time { font-size: 10px; color: var(--gray3); margin-top: 4px; }
.msg-out .msg-time { color: rgba(0,0,0,0.5); }

.chat-input-bar {
  padding: 16px 22px; border-top: 1px solid var(--border);
  display: flex; gap: 10px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 12px 20px;
  color: var(--white); font-family: inherit; font-size: 14px;
  outline: none; text-align: right;
  transition: all .2s;
}
.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(200,220,255,0.15);
}
.chat-send-btn {
  background: var(--white); border: none; color: #000;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.chat-send-btn:hover { background: var(--accent); box-shadow: 0 0 20px rgba(200,220,255,0.4); }

/* ═══════ FORMS ═══════ */
.form-page { max-width: 560px; margin: 60px auto; padding: 0 20px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 44px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.form-subtitle { font-size: 14px; color: var(--gray1); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-label {
  font-size: 12px; font-weight: 600;
  color: var(--gray1);
  margin-bottom: 8px; display: block;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 18px;
  color: var(--white);
  font-family: inherit; font-size: 14px;
  outline: none; text-align: right;
  transition: all .2s;
  appearance: none;
  backdrop-filter: blur(10px);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(200,220,255,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray3); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select option { background: var(--bg-card-solid); color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--white), var(--accent));
  color: #000;
  font-weight: 700; font-family: inherit; font-size: 15px;
  border: none; padding: 15px;
  border-radius: 12px;
  cursor: pointer; margin-top: 8px;
  transition: all .25s;
  box-shadow: 0 0 0 rgba(200,220,255,0);
}
.form-submit:hover {
  box-shadow: 0 0 32px rgba(200,220,255,0.4);
  transform: translateY(-1px);
}

.form-link { font-size: 13px; color: var(--gray1); text-align: center; margin-top: 20px; }
.form-link a { color: var(--accent); font-weight: 500; }

.form-error {
  background: rgba(255,94,94,0.08);
  border: 1px solid rgba(255,94,94,0.2);
  color: var(--red);
  border-radius: 10px; padding: 14px 18px;
  font-size: 13px; margin-bottom: 20px;
}

.file-upload-label {
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  border: 2px dashed var(--border2);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--gray1); font-size: 13px; text-align: center;
  transition: all .2s;
  background: rgba(255,255,255,0.02);
}
.file-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ═══════ ROLE CARDS ═══════ */
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 44px 28px; text-align: center;
  cursor: pointer; transition: all .35s;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200,220,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.role-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  color: var(--white);
}
.role-card:hover::before { opacity: 1; }
.role-card-featured {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px rgba(200,220,255,0.1);
}
.role-icon { font-size: 48px; }
.role-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
}
.role-desc { font-size: 13px; color: var(--gray1); line-height: 1.6; max-width: 240px; }
.role-features {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: var(--gray1); text-align: right; width: 100%;
  padding: 16px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.role-btn {
  background: var(--white); color: #000;
  font-weight: 600; font-size: 14px;
  padding: 12px 28px; border-radius: var(--pill);
  margin-top: 8px;
}

/* ═══════ ADMIN ═══════ */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  padding: 24px 12px;
  border-left: 1px solid var(--border);
  position: sticky; top: 60px;
  height: calc(100vh - 60px); overflow-y: auto;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.admin-sidebar-title { font-size: 10px; font-weight: 600; color: var(--gray2); text-transform: uppercase; letter-spacing: 1.5px; padding: 0 10px; margin-bottom: 10px; }
.admin-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--gray1);
  transition: all .2s; margin-bottom: 2px;
  position: relative;
}
.admin-sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.admin-sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--border-glow);
}
.admin-sidebar-icon { font-size: 15px; width: 20px; text-align: center; }

.admin-content { flex: 1; padding: 40px; overflow-y: auto; }
.admin-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 28px;
}

.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2); padding: 24px;
  backdrop-filter: blur(20px);
}
.admin-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  margin-bottom: 18px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.admin-panel-title::before {
  content: ''; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.spec-bar-list { display: flex; flex-direction: column; gap: 10px; }
.spec-bar-row { display: flex; align-items: center; gap: 10px; }
.spec-bar-label { font-size: 12px; font-weight: 500; color: var(--gray1); width: 80px; text-align: right; flex-shrink: 0; }
.spec-bar-track {
  flex: 1; height: 26px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.spec-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue-glow));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 10px; min-width: 36px;
  box-shadow: 0 0 12px rgba(200,220,255,0.3);
}
.spec-bar-num { font-size: 10px; font-weight: 700; color: #000; }
.spec-bar-count { font-size: 12px; font-weight: 600; color: var(--gray1); width: 26px; text-align: center; }

.admin-mini-list { display: flex; flex-direction: column; }
.admin-mini-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-mini-item:last-child { border-bottom: none; }
.admin-mini-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--border);
}
.admin-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-mini-name { font-size: 13px; font-weight: 600; }
.admin-mini-sub { font-size: 11px; color: var(--gray2); }
.admin-mini-end { margin-right: auto; text-align: left; }

.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px; color: var(--gray1);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  flex: 1; min-width: 150px; justify-content: center;
  font-family: inherit;
  backdrop-filter: blur(10px);
}
.quick-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.admin-filter-bar { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 14px;
  color: var(--white); font-family: inherit; font-size: 12px;
  outline: none; appearance: none; cursor: pointer; min-width: 130px; text-align: right;
  transition: border-color .2s;
  backdrop-filter: blur(10px);
}
.admin-select:focus { border-color: var(--accent); }
.admin-select option { background: var(--bg-card-solid); }

.admin-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  backdrop-filter: blur(20px);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: rgba(0,0,0,0.3);
  color: var(--gray2); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 14px 18px; text-align: right;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 18px; font-size: 13px; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-user { display: flex; align-items: center; gap: 10px; }
.table-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; overflow: hidden;
  border: 1px solid var(--border);
}
.table-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.table-user-name { font-size: 13px; font-weight: 600; }
.table-user-email { font-size: 11px; color: var(--gray2); }

.review-arrow { color: var(--gray3); font-size: 12px; padding: 0 4px; }

/* ═══════ MARQUEE ═══════ */
.marquee-strip { overflow: hidden; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--gray3);
  padding: 0 32px; letter-spacing: 4px;
  text-transform: uppercase;
}
.marquee-item::after { content: '✦'; color: var(--accent); padding-right: 32px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════ FOOTER ═══════ */
.footer {
  padding: 28px; display: flex;
  align-items: center; justify-content: center; gap: 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--gray3);
  letter-spacing: 2px;
}
.footer-text { font-size: 12px; color: var(--gray3); }

/* ═══════ EMPTY ═══════ */
.empty-state { text-align: center; padding: 56px 20px; color: var(--gray2); }
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.4; }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.empty-state-text { font-size: 13px; }

/* ═══════ 3D HERO OBJECTS (kept from old, adjusted) ═══════ */
.hero-3d-scene {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero { position: relative; overflow: visible; }
.hero > *:not(.hero-3d-scene) { position: relative; z-index: 1; }
.float-obj {
  position: absolute;
  left: var(--x); top: var(--y);
  transform-style: preserve-3d;
  animation: float3d 7s ease-in-out calc(var(--delay)) infinite;
  opacity: 0.4;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateX(5deg) rotateY(10deg); }
}
.obj-3d { transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(25deg); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  .fl-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 56px; }
}
@media (max-width: 768px) {
  .sidebar, .admin-sidebar { display: none; }
  .fl-grid { grid-template-columns: 1fr; }
  .nav-tabs { display: none; }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 15px; }
  .hero { padding: 50px 20px 40px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 32px; }
  .profile-hero { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .messages-layout { flex-direction: column; }
  .conv-list { width: 100%; max-height: 220px; flex-shrink: 0; border-left: none; border-bottom: 1px solid var(--border); }
  .chat-area { flex: 1; min-height: calc(100vh - 280px); }
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { flex-direction: column; }
  .content { padding: 24px 20px; }
  .admin-content { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════
   COINS / WALLET SYSTEM
   ═══════════════════════════════════════════════════════ */
:root {
  --coin-gold: #fbbf24;
  --coin-purple: #8b5cf6;
  --coin-blue: #3b82f6;
  --coin-teal: #14b8a6;
  --coin-pending: #f59e0b;
  --coin-approved: #30d158;
  --coin-rejected: #ff453a;
}

.wallet-hero {
  text-align: center;
  padding: 48px 28px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 22px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.wallet-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.15), transparent 60%);
  pointer-events: none;
}
.wallet-label { font-size: 14px; color: var(--gray1, #86868b); letter-spacing: 2px; }
.wallet-balance { margin: 12px 0; display: inline-flex; align-items: baseline; gap: 8px; }
.coins-number {
  font-size: 72px; font-weight: 900;
  background: linear-gradient(135deg, var(--coin-gold), #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(251,191,36,0.4));
  letter-spacing: -3px;
}
.coins-unit { font-size: 18px; color: var(--coin-gold); font-weight: 700; }
.wallet-sub-stats { display: flex; justify-content: center; gap: 40px; font-size: 13px; color: var(--gray1, #86868b); }
.wallet-sub-stats span { color: #fff; font-weight: 700; font-size: 18px; display: block; }

.wallet-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-neon-primary {
  background: linear-gradient(135deg, var(--coin-purple), var(--coin-blue));
  color: #fff; border: none; padding: 14px 28px;
  border-radius: 980px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px rgba(139,92,246,0.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-neon-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139,92,246,0.45); }
.btn-neon-outline {
  background: transparent; color: var(--coin-purple);
  border: 1.5px solid rgba(139,92,246,0.4);
  padding: 13px 20px; border-radius: 980px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-neon-outline:hover { border-color: var(--coin-purple); background: rgba(139,92,246,0.08); }

.redeem-form { display: flex; gap: 8px; flex: 1; max-width: 340px; }
.redeem-form input {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 980px; padding: 12px 18px;
  color: #fff; font-family: inherit; font-size: 13px;
  text-align: center; letter-spacing: 1px;
}
.redeem-form input:focus { outline: none; border-color: var(--coin-gold); }

.wallet-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wallet-tab {
  background: transparent; border: none; padding: 12px 20px;
  color: var(--gray1, #86868b); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent;
}
.wallet-tab.active { color: #fff; border-bottom-color: var(--coin-purple); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.tx-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; margin-bottom: 8px;
}
.tx-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; flex-shrink: 0;
}
.tx-icon.credit { background: rgba(48,209,88,0.15); color: var(--coin-approved); }
.tx-icon.debit { background: rgba(255,69,58,0.15); color: var(--coin-rejected); }
.tx-icon.status-pending_verification { background: rgba(245,158,11,0.15); color: var(--coin-pending); }
.tx-icon.status-approved { background: rgba(48,209,88,0.15); color: var(--coin-approved); }
.tx-icon.status-rejected { background: rgba(255,69,58,0.15); color: var(--coin-rejected); }
.tx-body { flex: 1; min-width: 0; }
.tx-reason { font-size: 14px; font-weight: 700; }
.tx-note { font-size: 12px; color: var(--gray1, #86868b); margin-top: 2px; }
.tx-date { font-size: 11px; color: var(--gray2, #6e6e73); margin-top: 4px; }
.tx-rejection { font-size: 12px; color: var(--coin-rejected); margin-top: 4px; }
.tx-amount { font-size: 18px; font-weight: 900; font-family: 'Tajawal', sans-serif; }
.tx-amount.credit { color: var(--coin-approved); }
.tx-amount.debit { color: var(--coin-rejected); }

.status-badge { padding: 5px 12px; border-radius: 980px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-pending_verification { background: rgba(245,158,11,0.15); color: var(--coin-pending); }
.badge-approved { background: rgba(48,209,88,0.15); color: var(--coin-approved); }
.badge-rejected { background: rgba(255,69,58,0.15); color: var(--coin-rejected); }

/* Modal */
.coin-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: flex-start; justify-content: center; z-index: 9999; overflow-y: auto; padding: 40px 16px; backdrop-filter: blur(8px); }
.coin-modal.open { display: flex; }
.coin-modal-content { background: #141420; border: 1px solid rgba(139,92,246,0.25); border-radius: 22px; max-width: 560px; width: 100%; padding: 32px; position: relative; margin: auto; }
.coin-modal-close { position: absolute; top: 16px; left: 16px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.coin-back { background: none; border: none; color: var(--coin-purple); cursor: pointer; font-size: 13px; margin-bottom: 16px; font-family: inherit; }
.coin-step { display: none; }
.coin-step.active { display: block; }
.coin-step h2 { color: #fff; font-size: 22px; margin-bottom: 20px; }

.packages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.package-card { background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; position: relative; transition: all .2s; }
.package-card:hover { border-color: var(--coin-purple); transform: translateY(-2px); }
.package-card.featured { border-color: var(--coin-purple); background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.05)); }
.pkg-badge { position: absolute; top: -10px; right: 14px; background: linear-gradient(135deg, var(--coin-purple), var(--coin-blue)); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 980px; }
.pkg-icon { font-size: 32px; margin-bottom: 10px; }
.pkg-name { font-size: 15px; font-weight: 700; color: #fff; }
.pkg-coins { color: var(--coin-gold); font-weight: 700; font-size: 16px; margin-top: 6px; }
.pkg-price { color: var(--gray1, #86868b); font-size: 13px; margin-top: 2px; }
.package-card.custom { grid-column: 1 / -1; }

.methods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method-card { background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 24px 18px; text-align: center; cursor: pointer; transition: all .2s; }
.method-card:hover { border-color: var(--coin-teal); }
.method-icon { font-size: 40px; margin-bottom: 10px; }
.method-name { font-weight: 700; color: #fff; }

.method-panel { background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.3); border-radius: 14px; padding: 20px; }
.method-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.method-row span { color: var(--gray1, #86868b); }
.method-row strong { color: #fff; flex: 1; letter-spacing: 1px; }
.method-instructions { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: var(--gray1, #86868b); line-height: 1.9; white-space: pre-line; }

.summary-box { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.summary-box > div { padding: 6px 0; font-size: 14px; color: var(--gray1, #86868b); }
.summary-box strong { color: #fff; }

/* Header coin badge */
.header-coin-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 980px; color: var(--coin-gold); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-coin-badge.empty { background: rgba(255,69,58,0.12); border-color: rgba(255,69,58,0.3); color: var(--coin-rejected); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,58,0.4); } 50% { box-shadow: 0 0 0 8px rgba(255,69,58,0); } }

/* Insufficient popup */
.insufficient-popup { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; backdrop-filter: blur(8px); }
.insufficient-popup.open { display: flex; }
.insufficient-box { background: #141420; border: 1px solid rgba(139,92,246,0.3); border-radius: 22px; padding: 36px 28px; max-width: 400px; width: 100%; text-align: center; }
.insufficient-box h2 { color: #fff; font-size: 22px; margin-bottom: 16px; }
.insufficient-box .balance-line { color: var(--coin-gold); font-size: 20px; font-weight: 900; margin: 8px 0; }
.insufficient-box .req-line { color: var(--gray1, #86868b); font-size: 14px; margin-bottom: 22px; }
.insufficient-box .btn-row { display: flex; gap: 10px; flex-direction: column; }

/* ═══════════════════════════════════════════════════════
   ADMIN DASHBOARD ENHANCEMENTS
   ═══════════════════════════════════════════════════════ */
.admin-dashboard-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.alert-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--coin-pending);
  padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  animation: pulse-alert 2s infinite;
}
.alert-banner:hover { background: rgba(245,158,11,0.2); text-decoration: none; }
@keyframes pulse-alert { 0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0.3)} 50%{box-shadow:0 0 0 6px rgba(245,158,11,0)} }

.stat-section { margin-bottom: 22px; }
.stat-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--gray1, #86868b); text-transform: uppercase;
  margin-bottom: 10px; padding-right: 4px;
}
.stat-card .stat-sub {
  font-size: 10px; color: var(--gray2, #6e6e73);
  margin-top: 4px; line-height: 1.4;
}
.revenue-card {
  background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(251,191,36,0.02));
  border-color: rgba(251,191,36,0.15);
}

.urgent-panel {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(255,255,255,0.02));
  border-color: rgba(245,158,11,0.25);
}

/* ═══════════════════════════════════════════════════════
   ADMIN: BIG QUICK ACTIONS GRID
   ═══════════════════════════════════════════════════════ */
.qa-section-title {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--gray1, #86868b); text-transform: uppercase;
  margin-bottom: 12px; padding-right: 4px;
}
.qa-big-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.qa-big {
  background: #1a1a24;
  background-clip: padding-box;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: #fff;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.qa-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(139,92,246,0.22), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.qa-big > * { position: relative; z-index: 1; }
.qa-big:hover {
  transform: translateY(-3px);
  background: #22222e;
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.3);
  text-decoration: none;
  color: #fff;
}
.qa-big:hover::before { opacity: 1; }

.qa-big-icon {
  font-size: 32px;
  margin-bottom: 12px;
  position: relative;
}
.qa-big-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}
.qa-big-sub {
  font-size: 11px;
  color: var(--gray1, #86868b);
  line-height: 1.5;
  position: relative;
}

.qa-urgent {
  background: #2a2015;
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 4px 16px rgba(245,158,11,0.15), 0 0 0 1px rgba(245,158,11,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
.qa-urgent:hover { background: #332818; border-color: rgba(245,158,11,0.7); }
.qa-urgent .qa-big-icon { animation: qa-pulse 2s infinite; }
@keyframes qa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.qa-badge-urgent {
  display: inline-block;
  background: rgba(245,158,11,0.2);
  color: var(--coin-pending, #f59e0b);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 11px;
}

/* ═══════ STATS WRAPPER (all stats inside one card) ═══════ */
.stats-wrapper { padding: 24px; }
.stats-group { margin-bottom: 20px; }
.stats-group:last-child { margin-bottom: 0; }
.stats-group-label {
  font-size: 13px; font-weight: 700;
  color: var(--gray1, #86868b);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

@media (max-width: 1100px) {
  .qa-big-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .qa-big-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-big { padding: 18px 14px; }
  .qa-big-icon { font-size: 28px; }
  .qa-big-title { font-size: 14px; }
}
