
/* =========================================================
   Popxev Games Personalized Theme
   هوية بصرية مستوحاة من شعار القناة:
   أسود / أزرق ليلي / سماوي نيون / إحساس Gaming Tech
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --bg-0: #02070d;
  --bg-1: #06121d;
  --bg-2: #0a1f2c;

  --card: rgba(5, 18, 30, 0.82);
  --card-strong: rgba(8, 28, 44, 0.92);
  --card-hover: rgba(9, 42, 62, 0.94);

  --cyan: #20e7ff;
  --cyan-2: #71f4ff;
  --blue: #0b8dff;
  --deep-blue: #064f91;

  --text: #f4fbff;
  --muted: #91adc2;
  --muted-2: #668296;

  --border: rgba(32, 231, 255, 0.22);
  --border-strong: rgba(32, 231, 255, 0.42);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 35px rgba(32, 231, 255, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(32, 231, 255, 0.18), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(11, 141, 255, 0.14), transparent 32%),
    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 45%, #02060a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(120deg, transparent 0%, rgba(32, 231, 255, 0.035) 45%, transparent 70%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.42) 78%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* خلفية منظمة بدل الألوان العشوائية */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(32, 231, 255, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 231, 255, 0.48) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

.glow {
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(95px);
  opacity: 0.28;
  pointer-events: none;
}

.glow-1 {
  top: -150px;
  right: -110px;
  background: #20e7ff;
}

.glow-2 {
  bottom: -170px;
  left: -140px;
  background: #0b8dff;
}

/* Header */
.header {
  max-width: 1180px;
  margin: auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(32, 231, 255, 0.55);
  box-shadow:
    0 0 0 6px rgba(32, 231, 255, 0.06),
    var(--glow);
}

.brand h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.3px;
}

.brand h1 span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(32, 231, 255, 0.55);
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 22px;
  padding: 12px 20px;
  border: 1px solid rgba(32, 231, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 12, 21, 0.62);
  backdrop-filter: blur(14px);
  color: #c8e5f2;
  font-weight: 900;
  font-size: 14px;
  box-shadow: inset 0 0 18px rgba(32, 231, 255, 0.035);
}

.nav a {
  position: relative;
  transition: 0.2s;
}

.nav a:hover,
.nav a:first-child {
  color: var(--cyan-2);
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 9px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: 0.22s;
}

.nav a:hover::after,
.nav a:first-child::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: linear-gradient(135deg, var(--cyan), #90f8ff);
  color: #001018;
  border: 0;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 22px;
  font-weight: 1000;
  box-shadow: var(--glow);
}

.subscribe,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 13px 22px;
  font-weight: 1000;
  transition: 0.25s;
  border: 0;
  cursor: pointer;
}

.subscribe,
.primary {
  background: linear-gradient(135deg, var(--cyan), #88f8ff);
  color: #001014;
  box-shadow: 0 0 30px rgba(32, 231, 255, 0.26);
}

.subscribe:hover,
.btn:hover {
  transform: translateY(-3px);
}

.secondary,
.admin-btn {
  border: 1px solid rgba(32, 231, 255, 0.26);
  background: rgba(32, 231, 255, 0.07);
  color: #ddfbff;
}

/* Hero */
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 52px 22px 62px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(32, 231, 255, 0.08);
  color: #d8fbff;
  font-weight: 1000;
  font-size: 14px;
  box-shadow: inset 0 0 20px rgba(32, 231, 255, 0.045);
}

.hero h2 {
  margin: 0;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero h2 span {
  display: inline-block;
  color: var(--cyan);
  text-shadow:
    0 0 10px rgba(32, 231, 255, 0.65),
    0 0 34px rgba(32, 231, 255, 0.38);
}

.hero-text > p {
  margin: 24px 0 0;
  max-width: 650px;
  color: #bfd5e5;
  line-height: 2;
  font-size: 18px;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
}

.stats div {
  padding: 18px 12px;
  border: 1px solid rgba(32, 231, 255, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(32, 231, 255, 0.06), rgba(255, 255, 255, 0.018));
  text-align: center;
  box-shadow: inset 0 0 22px rgba(32, 231, 255, 0.035);
}

.stats strong {
  display: block;
  font-size: 24px;
  color: #ecfdff;
}

.stats small {
  color: var(--muted);
}

/* Profile card */
.hero-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(7, 27, 42, 0.88), rgba(2, 9, 15, 0.92));
  box-shadow: var(--shadow), 0 0 60px rgba(32, 231, 255, 0.11);
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--cyan);
}

.window-dots span:nth-child(2) {
  background: #2bb8ff;
}

.window-dots span:nth-child(3) {
  background: #0b5d9e;
}

.profile-card {
  padding: 42px 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 231, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(32, 231, 255, 0.08), rgba(255, 255, 255, 0.026));
  text-align: center;
  border: 1px solid rgba(32, 231, 255, 0.15);
}

.profile-logo-img {
  width: 132px;
  height: 132px;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(32, 231, 255, 0.65);
  box-shadow:
    0 0 0 10px rgba(32, 231, 255, 0.06),
    0 0 48px rgba(32, 231, 255, 0.36);
}

.profile-card h3 {
  margin: 24px 0 8px;
  font-size: 36px;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
}

.mini-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-cards div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(32, 231, 255, 0.06);
  border: 1px solid rgba(32, 231, 255, 0.11);
  font-weight: 900;
}

/* Sections */
.section {
  max-width: 1180px;
  margin: auto;
  padding: 48px 22px;
}

.section-title {
  margin-bottom: 26px;
}

.section-title p,
.cta > p,
.admin-home-card p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 1000;
  text-shadow: 0 0 16px rgba(32, 231, 255, 0.35);
}

.section-title h2,
.cta h2,
.admin-home-card h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.section-title span,
.admin-home-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.video-grid,
.category-grid,
.links-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Cards */
.video-card,
.category,
.social-card,
.form-card {
  border: 1px solid rgba(32, 231, 255, 0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 27, 42, 0.84), rgba(3, 12, 20, 0.86));
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.video-card:hover,
.category:hover,
.social-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 34px rgba(32, 231, 255, 0.14);
}

.thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(113, 244, 255, 0.85), transparent 28%),
    linear-gradient(135deg, #082c42, #0b8dff 48%, #03101a);
}

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

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.75));
}

.duration,
.tag,
.play {
  position: absolute;
  z-index: 1;
}

.duration,
.tag {
  top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  background: rgba(0, 12, 20, 0.72);
  border: 1px solid rgba(32, 231, 255, 0.16);
}

.duration {
  left: 16px;
}

.tag {
  right: 16px;
}

.play {
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(0, 12, 20, 0.76);
  color: var(--cyan);
  font-size: 30px;
  box-shadow: 0 0 32px rgba(32, 231, 255, 0.44);
}

.video-card h3,
.video-card p {
  padding-inline: 20px;
}

.video-card h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.video-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.category {
  padding: 28px;
}

.icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(32, 231, 255, 0.08);
  border: 1px solid rgba(32, 231, 255, 0.13);
  font-size: 34px;
  box-shadow: inset 0 0 20px rgba(32, 231, 255, 0.045);
}

.category h3 {
  margin: 20px 0 10px;
  font-size: 25px;
}

.category p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.social-card {
  padding: 25px;
  text-align: center;
  font-weight: 1000;
  color: #dffcff;
}

/* Forms */
.form-card {
  padding: 26px;
}

.form-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.form-card label {
  display: block;
  margin-bottom: 16px;
  color: #d7e8f4;
  font-weight: 900;
}

.form-card input,
.form-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(32, 231, 255, 0.18);
  border-radius: 16px;
  background: rgba(1, 9, 15, 0.72);
  color: white;
  padding: 14px 16px;
  font: inherit;
  outline: 0;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(32, 231, 255, 0.08);
}

.form-status {
  color: var(--cyan);
  font-weight: 900;
  line-height: 1.7;
}

/* CTA + admin home section */
.cta,
.admin-home-card {
  max-width: 1180px;
  margin: 38px auto 60px;
  padding: 42px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(100deg, rgba(32, 231, 255, 0.12), transparent 58%),
    rgba(3, 16, 25, 0.78);
  box-shadow: var(--shadow);
}

.admin-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.cta-text {
  max-width: 760px;
  color: #c5d3df;
  line-height: 1.9;
  margin-bottom: 26px;
}

/* Footer */
.footer {
  max-width: 1180px;
  margin: auto;
  padding: 28px 22px;
  border-top: 1px solid rgba(32, 231, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.socials a:hover {
  color: var(--cyan);
}

/* Admin */
.admin-grid {
  grid-template-columns: 1fr 1fr;
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: 480px;
  overflow: auto;
}

.admin-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(32, 231, 255, 0.045);
  border: 1px solid rgba(32, 231, 255, 0.11);
  line-height: 1.7;
  color: #d7e8f4;
}

.page {
  min-height: 60vh;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 86px;
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    border-radius: 24px;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .subscribe {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-card {
    order: -1;
  }

  .video-grid,
  .category-grid,
  .links-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-home-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-home-card .btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
