﻿/* ==============================
   Font
============================== */
@font-face {
    font-family: "ArbFONTS-LamaSans-SemiBold";
    src: url("../../fonts/ArbFONTS-LamaSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

/* ==============================
   CSS Reset & Global
============================== */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: "ArbFONTS-LamaSans-SemiBold";
}

:root {
    --primary: #7e3cb7;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary: #06d6a0;
    --accent: #ff6b6b;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary-light), var(--primary));
    --gradient-light: linear-gradient( 135deg, var(--primary-light) 0%, var(--secondary) 100% );
    --border-gray: #ebebeb;
}

body {
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 200px;
}

@media (max-width: 992px) {
    body {
        padding-top: 100px
    }
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

/* ==============================
   Typography
============================== */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
body {
    font-family: "ArbFONTS-LamaSans-SemiBold";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.8rem;
  color: var(--darker);
}

h3 {
  font-size: 1.8rem;
  color: var(--dark);
}

p {
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.1rem;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-primary {
    color: var(--primary) !important
}

.bg-gradient {
    background: var(--gradient) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn i {
  position: relative;
  z-index: 2;
}

.btn:hover {
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.4);
}

.btn:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #06b893 100%);
  box-shadow: 0 6px 20px rgba(6, 214, 160, 0.3);
}

.btn-secondary::before {
  background: linear-gradient(135deg, #06b893 0%, var(--secondary) 100%);
}

.btn-secondary:hover {
  box-shadow: 0 12px 25px rgba(6, 214, 160, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8e8e 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.btn-accent::before {
  background: linear-gradient(135deg, #ff8e8e 0%, var(--accent) 100%);
}

.btn-accent:hover {
  box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline::before {
  background: var(--primary);
}

.btn-outline:hover {
  color: white;
  border-color: var(--primary)
}

/* Custom hover styles for buttons */
.btn-primary:hover {
    background-color: var(--primary);
    color: #fff
}


/* ==============================
   Layout
============================== */
header {
  background-color: #fff;
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header .header-contact {
    padding: 0 5%;
    height: 75px;
    background: var(--primary);
    transition: all 0.3s ease;
}

header .header-contact.hidden {
    margin-top: -75px
}

header .header-contact .badge {
    width: 35px;
    height: 35px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}


header .logo img {
    width: 220px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 10px 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
  padding: 8px 0;
  font-size: 1.05rem;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  width: 100%;
}

.header-actions .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn i {
  font-size: 0.9rem;
}

.header-actions .btn-outline {
  background: var(--gradient);
  color: var(--light);
  border: none;
  box-shadow: none;
}

.header-actions .btn-outline::before {
  background: var(--primary);
}

.header-actions .btn-outline:hover {
  color: white;
  border-color: var(--primary);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-login-item {
  display: none;
  margin-top: 10px
}

header .mega-menu {
    display: none !important;
}

header .nav-item:hover > .mega-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

header .nav-item.open > .mega-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
header .nav-links {
    border: 1px solid var(--border-gray);
    border-radius: 100px;
}

header ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

header ul li {
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

header .dropdown-link .small-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

header .dropdown-link:hover .small-arrow {
    transform: rotate(180deg);
}

header .dropdown-box {
    width: 300px;
    background-color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease 0.1s;
    position: absolute;
    border: 1px solid #ebebeb;
    border-radius: 15px;
    top: 45px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: start;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
}

header .dropdown-box li {
    flex: 0 0 50%;
    padding: 10px;
    text-align: center;
    cursor: pointer
}

header .dropdown-box li .icon {
    font-size: 25px;
    color: var(--primary);
    height: 45px;
}

header .dropdown-link:hover + .dropdown-box,
header .dropdown-box:hover {
    opacity: 1;
    visibility: visible;
    padding: 10px;
}

header .mega-menu {
    position: absolute;
    top: 95%;
    right: 0;
    left: 0;
    margin: auto;
    width: 1200px;
    max-width: 95vw;
    background: #fff;
    padding: 40px 45px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(5px);
    z-index: 999;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 20px; /* منطقة أمان */
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.mega-box h5 {
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 15px;
  color: #1e293b;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-box h5 i {
  color: var(--primary);
  font-size: 16px;
}

.mega-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 500;
}

.mega-box a i {
  font-size: 13px;
  width: 18px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.mega-box a:hover {
  color: var(--primary);
  background-color: rgba(124, 58, 237, 0.05);
  padding-right: 16px;
  transform: translateX(-4px);
}

.mega-box a:hover i {
  color: var(--primary);
}

/* Header responsive */
@media (max-width: 992px) {
  nav#mainNav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: none;
    z-index: 999;
    border: none;
    border-radius: 0;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.83, 0.11, 0, 1.14);
    visibility: hidden;
  }

  nav#mainNav.open {
    background: rgb(0 0 0 / 50%);
    visibility: visible;
  }

  nav#mainNav.open ul {
    left: 0
  }

  nav#mainNav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
    width: 330px;
    position: absolute;
    left: -330px;
    background: #fff;
    top: 0;
    overflow-y: auto;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.83, 0.11, 0, 1.14);
  }

  nav#mainNav ul li a {
    display: block;
    padding: 14px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.5rem;
  }

  nav#mainNav ul li:last-child a {
    border-bottom: none;
  }

  .mobile-login-item {
    display: block !important;
  }

  .mobile-login-item a {
    background: var(--gradient);
    color: var(--light);
    border: none;
    box-shadow: none;
    padding: 15px 25px !important;
    font-size: 18px !important;
  }

  .mobile-login-item .icon {
    margin-left: 5px
  }

  header .dropdown-box,
  header .dropdown-link .small-arrow {
      display: none!important
  }
}

/* Contact Floating Icons */
.quick-contact {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
}

.wa-float {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
}

    .wa-float img {
        width: 28px;
        height: 28px;
    }

.telegram-float {
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
}

    .telegram-float img {
        width: 52px;
        height: 52px;
    }

/* ==============================
   Main Content
============================== */
/* Systems Section */
.systems-section {
    background-color: white;
    scroll-margin-top: 50px;
}

.systems-section .section-content {
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #d7d7d7 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 5px 25px;
}

.systems-header-main {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

    .systems-header-main h2 {
        font-size: 42px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 15px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .systems-header-main p {
        font-size: 16px;
        color: var(--gray);
        font-weight: 500;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

.systems-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.systems-section .temp-offer .btn {
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* Simple Card Style - Creative with Motion */
.system-card-simple {
    background: var(--gradient);
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

/* نافس card special style */
.system-card-nafes {
    background: linear-gradient(135deg, #bd6900 0%, #c19f00 50%, #7e694d 100% 100%) !important;
    animation: nafesGlow 3s ease infinite, fadeInUp 0.6s ease backwards !important;
    border: none;
    box-shadow: 0 5px 25px rgba(247,151,30,0.5) !important;
}

    .system-card-nafes:hover {
        box-shadow: 0 15px 45px rgba(247,151,30,0.7) !important;
    }

@keyframes nafesGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nafes-logo {
    position: relative;
    display: inline-block;
}

.nafes-trophy {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: trophyBounce 1.5s ease-in-out infinite;
}

.nafes-stars {
    position: absolute;
    top: -12px;
    right: -15px;
    font-size: 14px;
    animation: starSpin 2s linear infinite;
}

@keyframes trophyBounce {
    0%, 100% {
        transform: translateY(3);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nafes-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.35);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    letter-spacing: 1px;
}

.system-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.system-card-simple:hover::before {
    left: 0;
}

.system-card-simple:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.system-icon-simple {
    font-size: 55px;
    margin-bottom: 10px;
    color: white;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.system-card-simple h4 {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .systems-grid-main {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .systems-grid-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .systems-section {
        padding: 50px 0
    }

    .systems-header-main h2 {
        font-size: 32px;
    }

    .systems-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .system-card-simple {
        padding: 25px 12px;
    }

    .system-icon-simple {
        font-size: 38px;
    }

    .system-card-simple h4 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .systems-grid-main {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(124, 58, 237, 0) 70%
  );
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 214, 160, 0.1) 0%,
    rgba(6, 214, 160, 0) 70%
  );
  border-radius: 50%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--dark);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 600;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 18px;
  width: 320px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.floating-card:nth-child(1) {
  top: 7%;
  left: 25%;
  animation-delay: 0s;
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

.floating-card:nth-child(2) {
  bottom: 0%;
  right: 0%;
  animation-delay: 2s;
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

.floating-card:nth-child(3) {
  top: 42%;
  left: 0%;
  animation-delay: 4s;
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.card-content h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--darker);
}

.card-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

.hero-main-visual {
  width: 450px;
  height: 450px;
  background: var(--gradient);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 6rem;
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.3);
  animation: morph 10s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-content {
    flex-direction: column;
    gap: 80px;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .hero-main-visual {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: white;
  scroll-margin-top: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  border-radius: 24px;
  padding: 45px 35px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 20px;
}
.feature-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FCFCFD;
  border: 2px solid #ffffff;
  box-shadow: 0px 5px 20px rgba(46, 35, 94, 0.12);
  border-radius: 16px 50px 50px 16px;
  padding: 18px 16px;
  gap: 16px;
  margin-right: 30px;
  transition: all 0.5s;
}

.feature-box::after {
  position: absolute;
  content: '';
  width: 40px;
  height: calc(100% + 4px);
  border-left: 1px dashed rgba(0, 2, 72, 0.2);
  left: -1px;
  border-top: 1px dashed rgba(0, 2, 72, 0.2);
  border-bottom: 1px dashed rgba(0, 2, 72, 0.2);
  border-radius: 10px;
  top: -1px;
  bottom: 0;
}

.feature-box .feature-icon {
  position: relative;
  min-width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -48px;
  font-size: 30px;
  color: var(--primary);
}

.feature-box .feature-icon::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  right: 0;
  top: 0;
  box-shadow: 3px 4px 5px rgba(46, 35, 94, 0.11), inset 3px 0px 1px rgba(204, 204, 215, 0.5);
  border-radius: 100%;
}

.feature-box .feature-icon img {
  width: 40px;
  height: 40px;
}

.framework-box .feature-details {
  position: relative;
  text-align: right;
}

.feature-box .feature-details p {
  opacity: 0.7;
  margin-bottom: 0;
}

.feature-box .feature-details::before,
.feature-box .feature-details::after {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  background: #FEFEFF;
  border: 1px solid rgba(0, 2, 72, 0.2);
  border-radius: 100%;
  left: 17px;
}

.feature-box .feature-details::before {
  top: -23px;
}

.feature-box .feature-details::after {
  bottom: -24px;
}

@media (max-width: 768px) {
  .features-section {
    padding: 50px 0
  }
    .features-section .section-header h2 {
        font-size: 32px;
    }
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    scroll-margin-top: 50px;
}

.section-header-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
}

.course-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.course-image {
  height: 220px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.course-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.course-content {
  padding: 30px;
}

.course-category {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.course-info {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--gray);
}

.course-rating {
  color: #ffc107;
  font-weight: 700;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: white;
    scroll-margin-top: 50px;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 45px 35px 100px 35px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 2px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 35px;
  padding-top: 20px;
}

.pricing-icon {
  width: 75px;
  height: 75px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--darker);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.price-currency {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1rem;
  color: var(--gray);
}

.pricing-header p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 35px;
  text-align: right;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i.fa-check {
  color: var(--success);
  font-size: 0.85rem;
}

.pricing-features li i.fa-times {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.pricing-features li.disabled {
  color: #cbd5e1;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card .actions {
    position: absolute;
    right: 0;
    bottom: 30px;
    width: 100%;
    padding: 0 30px;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: white;
  margin-bottom: 25px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 50px;
}

.cta .btn {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn::before {
  background: rgba(255, 255, 255, 0.9);
}

.cta .btn:hover {
  color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--darker);
  color: white;
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  margin-bottom: 70px;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  color: white;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Books Page */
.books-page .main-container {
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
}

.books-page .content-wrapper {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 0.95rem;
}

    .breadcrumb a {
        color: #667eea;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.3s ease;
    }

        .breadcrumb a:hover {
            color: #764ba2;
        }

    .breadcrumb i {
        font-size: 0.9rem;
    }

    .breadcrumb .separator {
        color: #ccc;
        margin: 0 5px;
    }

    .breadcrumb .current {
        color: #999;
        font-weight: 500;
    }

/* Content style */
.books-page .page-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.books-page .page-title .title-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.books-page .steps-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.books-page .step-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-gray)
}

.books-page .step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.books-page .step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.books-page .step-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.books-page .step-header h3 i {
    color: var(--primary);
    margin-left: 10px;
}

.books-page .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding-right: 65px;
}

.books-page .choice-button {
    padding: 12px 30px;
    background: white;
    color: #555;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.books-page .choice-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.books-page .choice-button:hover::before {
    width: 300px;
    height: 300px;
}

.books-page .choice-button:hover {
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.books-page .choice-button.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.books-page .choice-button.active i {
    color: white;
}

.books-page .books-section {
    margin-top: 50px;
    position: relative;
}

.books-page .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f2f5;
}

.books-page .section-title i {
    font-size: 2rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    padding: 15px;
    border-radius: 15px;
}

.books-page .section-title h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.books-page .section-title span {
    color: #667eea;
    font-size: 1rem;
    background: #f0f2f5;
    padding: 5px 15px;
    border-radius: 50px;
    margin-right: auto;
}

.books-page .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* ✅ Pagination بره الـ grid */
.books-page #pagination-area {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.books-page #pagination-area .pagination {
    display: flex;
    flex-direction: row !important; /* ✅ ده هو الحل */
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.books-page #pagination-area .page-link {
    border-radius: 10px !important;
    border: 2px solid #d1d9e6;
    color: #667eea;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.books-page #pagination-area .page-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.books-page #pagination-area .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.books-page #pagination-area .page-item.disabled .page-link {
    color: #aaa;
    border-color: #eee;
    background: #f8f9fa;
    pointer-events: none;
}

.books-page .book-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: relative;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
}

.books-page .book-subject {
    background: var(--gradient);
    color: white;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.books-page .book-subject i {
    font-size: 1rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.books-page .book-subject span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.books-page .book-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 20px 16px;
    background: linear-gradient(160deg, #f8f9ff 0%, #eef0fb 100%);
}

.books-page .book-icon-wrap .file-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(102,126,234,0.25));
}

.books-page .book-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.books-page .book-title {
    color: #2d2d3a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.books-page .book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.books-page .btn-download {
    flex: 1;
    padding: 11px 14px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

.books-page .btn-download i {
    font-size: 1rem;
}

.books-page .btn-preview {
    padding: 11px 15px;
    background: #f0f2f8;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-preview i {
    font-size: 1rem;
}

.books-page .no-books {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    border-radius: 20px;
    color: #666;
    grid-column: 1 / -1;
}

.books-page .no-books i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.5;
    display: block;
}

.books-page .no-books p {
    font-size: 1.2rem;
    margin: 0;
}

.books-page .loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.books-page .loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

.books-page .loading p {
    margin-top: 10px;
    color: #666;
}

/* Loading Spinner */
.books-page .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.books-page .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 576px) {
    .books-page .page-title h2 {
        font-size: 30px
    }

    .books-page .step-header h3 {
        font-size: 18px
    }

    .books-page .step-number {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .books-page .page-title h2 {
        font-size: 35px
    }
}

/* Systems page */
.systems-container {
    padding: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #d7d7d7 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 5px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

    .systems-container .systems-header {
        text-align: center;
        margin-bottom: 60px;
    }

.systems-container .systems-header h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.systems-container .systems-header p {
    font-size: 18px;
    color: var(--gray);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
}

.systems-container .system-card {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.systems-container .system-card.parent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.systems-container .system-card.marketer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.35), 0 0 0 2px rgba(255, 200, 50, 0.4);
    animation: marketerPulse 3s ease-in-out infinite;
}

.systems-container .system-card.marketer::before {
    background: linear-gradient(135deg, rgba(255,200,50,0.08) 0%, rgba(255,100,0,0.05) 100%) !important;
}

.systems-container .system-card.marketer .system-icon {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.7));
    font-size: 50px;
}

.systems-container .system-card.marketer h3 {
    background: linear-gradient(90deg, #ffd200, #f7971e, #ffd200);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: marketerShine 2.5s linear infinite;
    text-shadow: none;
}

.systems-container .system-card.marketer p {
    color: rgba(255, 220, 150, 0.9);
    text-shadow: none;
}

.systems-container .system-card.marketer .marketer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.systems-container .system-card.marketer:hover {
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.55), 0 0 0 2px rgba(255, 200, 50, 0.7);
    transform: translateY(-5px);
}

@keyframes marketerPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(255,165,0,0.35), 0 0 0 2px rgba(255,200,50,0.4); }
    50%       { box-shadow: 0 8px 30px rgba(255,165,0,0.6),  0 0 0 2px rgba(255,200,50,0.7); }
}

@keyframes marketerShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.systems-container .system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.systems-container .system-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.systems-container .system-card.success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.systems-container .system-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.systems-container .system-card.warning {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.systems-container .system-icon {
    font-size: 45px;
    color: white;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.systems-container .system-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.systems-container .system-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.systems-container .system-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.systems-container .back-btn {
    text-align: center;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease;
}

    .systems-container .back-btn a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: white;
        color: #667eea;
        padding: 12px 30px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* ==============================
   Auth pages
============================== */
.auth-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 50px
    }

    .auth-container .auth-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        max-width: 400px;
        width: 100%;
        padding: 25px;
        text-align: center;
    }

    .auth-container .auth-header {
        margin-bottom: 30px;
    }

        .auth-container .auth-header .icon {
            font-size: 50px;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .auth-container .auth-header h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .auth-container .auth-header p {
            color: #666;
            font-size: 13px;
        }

    .auth-container .auth-options {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .auth-container .divider {
        display: flex;
        align-items: center;
        margin-top: 10px;
        color: #999;
    }

    .auth-container .divider::before,
    .auth-container .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #ddd;
    }

    .auth-container .divider span {
        padding: 0 15px;
        font-size: 14px;
    }

    .auth-container .password-field-wrapper {
        position: relative;
    }

    .auth-container .password-toggle-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
    }

        .auth-container .password-toggle-icon:hover {
            color: var(--primary);
        }

/* Custom colors for different auth types */
.teachers-auth .auth-options .auth-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.teachers-auth .auth-header .icon,
.teachers-auth .auth-options .register-link a {
    color: #f5576c
}

.teachers-auth .auth-options .auth-btn::before,
.teachers-auth .back-btn .btn::before {
    background: #f5576c;
}

.teachers-auth .back-btn .btn {
    color: #f5576c;
    border-color: #f5576c
}

.teachers-auth .back-btn .btn:hover {
    color: #fff
}

.supervisor-auth .auth-options .auth-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.supervisor-auth .auth-header .icon,
.supervisor-auth .auth-options .register-link a {
    color: #4facfe
}

.supervisor-auth .auth-options .auth-btn::before,
.supervisor-auth .back-btn .btn::before {
    background: #4facfe;
}

.supervisor-auth .back-btn .btn {
    color: #4facfe;
    border-color: #4facfe
}

.supervisor-auth .back-btn .btn:hover {
    color: #fff
}

/* Login pages */
.login-wrapper .auth-options {
    text-align: right
}

.login-wrapper .auth-options label {
    margin
}

/* Register pages */
.register-wrapper {
    display: flex;
    padding: 0 20px 40px;
    align-items: center;
    justify-content: center;
}

.register-wrapper .register-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 50px;
    width: 100%;
    max-width: 1100px;
}

.register-wrapper .form-section-title {
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--primary);
    font-size: 20px;
}

.register-wrapper .form-control {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.register-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.2);
}

.register-wrapper .radio-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.register-wrapper .radio-card input[type="radio"] {
    display: none;
}

.register-wrapper .radio-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e0f0ff, #f3e8ff);
    font-weight: 600;
}

.register-wrapper .btn-register {
    background: linear-gradient(45deg, #ff758c, #ff7eb3);
    border: none;
    border-radius: 15px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.register-wrapper .progress {
    height: 8px;
    border-radius: 10px;
}

.register-wrapper .toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: all .3s ease
}

.register-wrapper .toggle-password:hover {
    color: var(--primary);
}

