:root {
  --purple-1: #7b2ff7;
  --purple-2: #a14cf5;
  --purple-3: #6f1fe8;
  --card-bg: linear-gradient(
    135deg,
    var(--purple-1) 0%,
    var(--purple-2) 60%,
    var(--purple-3) 100%
  );
  --glass: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
}
* {
  font-family: "Cairo", sans-serif;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(123, 31, 162, 0.06) 0%,
    rgba(255, 255, 255, 1) 60%
  );
  color: #222;
}
.page-wrap {
  min-height: 100vh;
  display: flex;
}

/* sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #4f0fb5, #812be6);
  color: white;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  box-shadow: 0 10px 40px rgba(80, 20, 200, 0.12);
  position: relative;
  overflow: hidden;
}
.sidebar-top .brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-6px);
  transition: all 0.25s ease;
}

/* main content */
.main-content {
  background: transparent;
}

/* top header */
.top-header {
  background: rgba(255, 255, 255, 0);
  padding: 6px 0;
}
.user-info {
  align-items: center;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(123, 31, 162, 0.12);
}
.welcome-text {
  font-weight: 600;
}

/* title */
.title-large {
  font-size: 22px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.65);
}

/* cards */
.stat-card {
  border-radius: 18px;
  background: var(--card-bg);
  color: white;
  box-shadow: 0 8px 30px rgba(103, 16, 236, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card .card-body {
  min-height: 90px;
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 50px rgba(103, 16, 236, 0.18);
}

/* icon */
.icon-circle {
  background: rgba(255, 255, 255, 0.12);
  padding: 14px;
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* code card */
.code-card {
  border-radius: 22px;
  background: linear-gradient(90deg, #6e20f4, #9c48f7);
  color: white;
  box-shadow: 0 10px 35px rgba(99, 17, 214, 0.15);
}

/* revenue */
.revenue-card {
  border-radius: 22px;
  background: linear-gradient(90deg, #5a12e6, #9b47f6);
  color: white;
  box-shadow: 0 10px 45px rgba(80, 20, 200, 0.12);
}

/* fade-in animation */
.fade-in {
  animation: fadeInUp 0.7s ease both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive adjustments */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
  .page-wrap {
    padding: 0;
  }
  .title-large {
    font-size: 20px;
  }
  .avatar {
    width: 40px;
    height: 40px;
  }
}

/* buttons */
.btn-purple {
  background: linear-gradient(90deg, #7b2ff7, #a14cf5, #6f1fe8);
  color: #fff !important;
  border: none;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-purple:hover {
  background: #a14cf5;
  color: #fff !important;
}
