/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  background: #0f172a;
  color: #f1f5f9;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: #111827;
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.logo {
  font-weight: bold;
  font-size: 22px;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

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

.menu-toggle {
  display: none;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

.hidden {
  display: none !important;
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  height: 40px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0 10px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar-img,
.user-avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #0ea5e9;
  color: #fff;
}

.user-display-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 210px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: none;
  z-index: 1200;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: right;
}

.user-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
}

.user-dropdown-item.danger {
  color: #fda4af;
}

/* ====== BUTTONS ====== */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.btn-outline:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-ghost {
  background: transparent;
  color: #94a3b8;
}

.full-width {
  width: 100%;
}

/* ====== HERO ====== */
.hero {
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.hero-text p {
  color: #cbd5e1;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-highlights span {
  margin-left: 15px;
  font-size: 14px;
  color: #94a3b8;
}

.hero-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero-card h3 {
  margin-bottom: 15px;
  color: #38bdf8;
}

.hero-list {
  list-style: none;
}

.hero-list li {
  margin-bottom: 10px;
  color: #cbd5e1;
}

/* ====== FEATURES ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-hidden {
  display: none !important;
}

.services-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.services-more-btn {
  border-radius: 999px;
  padding-inline: 20px;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.55);
}

.feature-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
  transition: 0.3s;
  border: 1px solid transparent;
}

.feature-cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 12px;
  display: block;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.feature-card p {
  color: #cbd5e1;
}

.service-card {
  overflow: hidden;
}

.service-cover {
  width: 80px;
  height: 80px;
  margin: 0 0 0.8rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: block;
}

.service-image-preview {
  margin-top: 10px;
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
}

.service-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.service-image-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.55);
  color: #e2e8f0;
  padding: 8px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  text-align: center;
}

.service-image-item:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.service-image-item img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
}

.service-image-item span {
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  color: #7dd3fc;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.about-text {
  display: grid;
  gap: 14px;
}

.about-card {
  text-align: center;
}

.about-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(56, 189, 248, 0.4);
  margin-bottom: 14px;
}

.social-links {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-btn {
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #cbd5e1;
  background: #111827;
  transition: 0.2s ease;
}

.social-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.packages-grid,
.works-grid,
.videos-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.packages-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.works-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-payment-icons {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.home-payment-item {
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(30, 41, 59, 0.72);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
}

.home-payment-item i {
  color: #38bdf8;
  font-size: 1.05rem;
}

.package-card {
  display: grid;
  gap: 10px;
}

.package-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #38bdf8;
}

.package-features {
  padding-right: 20px;
  display: grid;
  gap: 6px;
  color: #d5e2f5;
}

.work-card {
  overflow: hidden;
  padding: 0;
}

.work-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.work-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.video-card {
  display: grid;
  gap: 10px;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ====== STEPS ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.step {
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #3b82f6;
  margin-bottom: 10px;
}

/* ====== CONTACT ====== */
.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #1e293b;
  padding: 40px;
  border-radius: 16px;
}

.contact-form {
  display: flex;
  gap: 10px;
}

.contact-form input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1e293b;
  width: 100%;
  max-width: 450px;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  left: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
/* ====== GLOBAL GLOW ====== */
.glow {
  position: relative;
}
.btn {
  position: relative;
  overflow: hidden;
}
body.home-page.reveal-ready .section,
body.home-page.reveal-ready .feature-card,
body.home-page.reveal-ready .step {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}
.animated-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(6,182,212,0.15), transparent 40%);
  animation: moveBg 10s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes moveBg {
  0% { background-position: 20% 20%, 80% 80%; }
  100% { background-position: 30% 30%, 70% 70%; }
}
.visible {
  opacity: 1;
  transform: translateY(0);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.6s;
}

.btn:hover::before {
  right: 100%;
}

.btn:active {
  transform: scale(0.95);
}
/* ====== HERO ANIMATION ====== */
.hero-text,
.hero-card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}
.feature-card,
.step,
.hero-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.feature-card:hover,
.step:hover,
.hero-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.hero-card {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  z-index: -1;
  filter: blur(20px);
  opacity: 0;
  transition: 0.4s;
}

.glow:hover::after {
  opacity: 0.5;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

/* ====== FOOTER ====== */
.footer {
  background: #0b1220;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    flex-direction: column;
    width: 100%;
  }

  .contact-form input {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-highlights {
    display: grid;
    gap: 8px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}
/* ====== LOADING SCREEN ====== */
#loader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 30px;
  animation: pulse 2s infinite ease-in-out;
}
.modal {
  display: none !important;
}
:root {
  --bg-color: #0f172a;
  --text-color: #ffffff;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #000000;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .hero {
  background: radial-gradient(circle at top right, #e8eef7, #f8fafc);
}

[data-theme="light"] .section-alt {
  background: #f3f7fc;
}

[data-theme="light"] .card,
[data-theme="light"] .hero-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .step,
[data-theme="light"] .about-card,
[data-theme="light"] .about-text,
[data-theme="light"] .package-card,
[data-theme="light"] .video-card,
[data-theme="light"] .work-card,
[data-theme="light"] .contact-box,
[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .logo,
[data-theme="light"] .nav-links a,
[data-theme="light"] .hero-text h1,
[data-theme="light"] .hero-card h3,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .step h3,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  color: #0f172a;
}

[data-theme="light"] .hero-text p,
[data-theme="light"] .hero-list li,
[data-theme="light"] .feature-card p,
[data-theme="light"] .step p,
[data-theme="light"] .small-text,
[data-theme="light"] .muted,
[data-theme="light"] .contact-box p,
[data-theme="light"] .footer {
  color: #334155;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .menu-toggle,
[data-theme="light"] .user-menu-toggle,
[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .social-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .social-btn:hover {
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}
.modal.show {
  display: flex !important;
  background: rgba(0,0,0,0.7);
}
.loader-logo span {
  color: #38bdf8;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

.loader-bar {
  width: 220px;
  height: 6px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#3b82f6,#06b6d4);
  animation: loading 2s ease forwards;
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ====== DASHBOARD PROFESSIONAL STYLES ====== */
.dashboard-page {
  background: radial-gradient(1200px 500px at 90% -10%, rgba(56, 189, 248, 0.18), transparent 60%), var(--bg-color);
}

.dashboard-section {
  margin-bottom: 2rem;
}

.section-title.small {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-collapse-btn {
  margin-inline-start: 0.45rem;
}

.section-collapse-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.section-collapse-btn-icon:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

.section-content {
  display: block;
}

.dashboard-section.collapsed .section-content {
  display: none;
}

.user-chip {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2f6ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.theme-toggle {
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  margin-inline: 8px;
}

.lang-toggle {
  border: 1px solid #334155;
  background: transparent;
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  margin-inline: 8px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: #38bdf8;
}

.notify-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notify-menu {
  position: relative;
}

.notify-count {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notify-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 290px;
  max-width: 340px;
  max-height: 340px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #111827;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: none;
  z-index: 1200;
}

.notify-dropdown.show {
  display: block;
}

.notify-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
  background: rgba(30, 41, 59, 0.6);
}

.notify-item:last-child {
  margin-bottom: 0;
}

.notify-item-title {
  font-size: 0.84rem;
  margin-bottom: 4px;
}

.notify-item-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.stats-grid.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.stat-label {
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(170deg, rgba(30, 41, 59, 0.95), rgba(16, 24, 39, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-header h3 {
  font-size: 1rem;
}

.card-body {
  display: grid;
  gap: 0.4rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.btn-xs {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.badges-inline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.role-client { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.35); color: #38bdf8; }
.role-admin { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.35); color: #fbbf24; }

.type-service { background: rgba(14, 165, 233, 0.16); border-color: rgba(14, 165, 233, 0.35); color: #7dd3fc; }
.type-package { background: rgba(168, 85, 247, 0.16); border-color: rgba(168, 85, 247, 0.35); color: #d8b4fe; }

.service-active { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.35); color: #4ade80; }
.service-inactive { background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

.status-in_progress { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }
.status-completed { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.status-pending { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.status-new { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }
.status-in_review { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.status-approved { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.status-closed { background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

.life-active { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.life-expiring_soon { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.life-renewed { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.life-expired { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }

.invoice-paid { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.invoice-unpaid { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.invoice-overdue { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.invoice-canceled { background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

.table-wrapper {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  overflow: auto;
  background: rgba(15, 23, 42, 0.5);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.7rem 0.8rem;
  text-align: right;
  vertical-align: middle;
  font-size: 0.9rem;
}

.table th {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.65);
  position: sticky;
  top: 0;
}

.table-select,
.table-date,
.table-input,
.inline-form input,
.inline-form select,
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.7rem;
  align-items: center;
}

.content-editor-form {
  padding: 1rem;
}

.content-editor-sections {
  display: grid;
  gap: 0.9rem;
}

.content-block {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  padding: 0.85rem;
}

.content-block-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.content-block-grid {
  gap: 0.7rem;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.content-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.8rem;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.7rem;
}

.request-form-grid textarea,
.request-form-grid button {
  grid-column: 1 / -1;
}

.mailbox-card p {
  margin: 0;
}

.mailbox-table-wrap {
  overflow-x: auto;
}

.mailbox-tools {
  margin-bottom: 10px;
}

.mailbox-search-input {
  width: 100%;
  max-width: 420px;
}

.mailbox-table .card-actions {
  justify-content: flex-start;
}

.mailbox-row {
  cursor: pointer;
}

.mailbox-row-unread td {
  font-weight: 700;
}

.mailbox-row-unread {
  background: rgba(56, 189, 248, 0.08);
}

.mailbox-modal-content {
  max-width: 760px;
}

.mailbox-print-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.mailbox-site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.5);
  padding: 4px;
}

.mailbox-message-preview {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.mailbox-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.22);
  padding-bottom: 8px;
}

.mailbox-message-head h4 {
  margin: 0;
}

.mailbox-message-body {
  line-height: 1.9;
  color: #dbeafe;
  white-space: pre-wrap;
}

.mailbox-signature {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  display: flex;
  gap: 8px;
  align-items: center;
}

.mailbox-modal-actions {
  margin-top: 12px;
}

.mailbox-reply-composer {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.mailbox-reply-composer textarea {
  width: 100%;
  margin-top: 6px;
  resize: vertical;
  min-height: 94px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  padding: 10px;
}

.client-profile-grid,
.admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.7rem;
}

.client-profile-grid button,
.admin-profile-grid button {
  grid-column: 1 / -1;
}

.payment-icons-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #7dd3fc;
}

.payment-icons-row span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
}

.catalog-cycle-select {
  margin-top: 6px;
}

.mailbox-unread {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2) inset;
}

.section-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.editor-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.editor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.45rem;
  align-items: center;
}

.editor-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.editor-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.editor-row input {
  width: 100%;
}

.legacy-editor-hidden {
  display: none;
}

.profile-form {
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
}

.inline-check {
  display: flex;
  align-items: center;
}

.small-text {
  font-size: 0.82rem;
  color: #94a3b8;
}

.muted {
  color: #94a3b8;
}

.center {
  text-align: center;
}

.error {
  color: #f87171;
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem;
}

.alert-card {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.65);
}

.alert-card p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #dbeafe;
}

.alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.alert-delete-btn {
  padding: 0.2rem 0.55rem;
}

.alert-card.warning { border-color: rgba(245, 158, 11, 0.45); background: rgba(120, 53, 15, 0.35); }
.alert-card.danger { border-color: rgba(239, 68, 68, 0.45); background: rgba(127, 29, 29, 0.35); }
.alert-card.success { border-color: rgba(34, 197, 94, 0.45); background: rgba(20, 83, 45, 0.35); }
.alert-card.info,
.alert-card.subscription,
.alert-card.invoice,
.alert-card.custom { border-color: rgba(59, 130, 246, 0.45); background: rgba(30, 58, 138, 0.35); }

@media (max-width: 1024px) {
  .nav-container {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar nav {
    width: 100%;
    order: 4;
    display: none;
  }

  .navbar nav.open {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 12px 0 4px;
  }

  .nav-links li a {
    display: block;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 12px;
    background: #111827;
  }

  .nav-actions {
    margin-inline-start: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .inline-form,
  .content-editor-grid,
  .profile-form,
  .request-form-grid,
  .client-profile-grid,
  .admin-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: 92%;
  }

  .section {
    padding: 56px 0;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .contact-box {
    padding: 24px 18px;
  }

  .modal-content {
    max-width: calc(100% - 24px);
    padding: 20px 16px;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn,
  .nav-actions .theme-toggle {
    flex: 1 1 auto;
  }
}

.invoice-modal-content {
  max-width: 560px;
}

.request-modal-content {
  max-width: 620px;
}

.invoice-preview {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
  margin-top: 0.8rem;
  background: rgba(15, 23, 42, 0.55);
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 0.92rem;
}

.invoice-line span {
  color: #94a3b8;
}

.analytics-summary-card {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.analytics-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.5rem 0;
}

.analytics-line span {
  color: #94a3b8;
}

.analytics-line strong {
  color: #e2e8f0;
}

.invoice-total {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #7dd3fc;
}

/* ====== PANEL LAYOUT ====== */
.panel-layout {
  --panel-sidebar-width: 260px;
  --scrollbar-thumb: rgba(56, 189, 248, 0.72);
  --scrollbar-thumb-hover: rgba(14, 165, 233, 0.86);
  --scrollbar-track: rgba(15, 23, 42, 0.58);
  min-height: 100vh;
  overflow: hidden;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.panel-content::-webkit-scrollbar,
.panel-sidebar::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track,
.panel-sidebar::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb,
.panel-sidebar::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover,
.panel-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.panel-shell {
  display: block;
  min-height: 100vh;
}

.panel-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: var(--panel-sidebar-width);
  overflow-y: auto;
  background: linear-gradient(180deg, #1f2a44, #172033);
  border-inline-start: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 950;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.panel-brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
}

.panel-brand span {
  color: #38bdf8;
}

.panel-side-profile {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
}

.side-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
  font-size: 1.2rem;
  overflow: hidden;
}

.panel-side-profile p {
  margin: 0;
  color: #dbeafe;
  font-size: 0.95rem;
}

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

.panel-side-nav {
  display: grid;
  gap: 6px;
}

.panel-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.panel-side-nav a:hover,
.panel-side-logout:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.45);
}

.panel-side-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(127, 29, 29, 0.22);
  cursor: pointer;
  transition: 0.2s ease;
  font: inherit;
}

.panel-side-footer {
  margin-top: auto;
  padding: 12px 10px 6px;
  text-align: center;
  color: #93c5fd;
  font-size: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.panel-main {
  display: grid;
  grid-template-rows: auto 1fr;
  margin-inline-start: var(--panel-sidebar-width);
  min-height: 100vh;
  height: 100vh;
  min-width: 0;
}

.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
}

.panel-search {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.65);
  color: #94a3b8;
}

.panel-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #f8fafc;
}

.panel-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-content {
  overflow: auto;
  padding: 18px 20px 40px;
  display: grid;
  gap: 12px;
}

.panel-layout .navbar,
.panel-layout .footer {
  display: none;
}

@media (max-width: 1100px) {
  .panel-layout {
    --panel-sidebar-width: 88px;
  }

  .panel-brand,
  .panel-side-profile p,
  .panel-side-nav a span {
    display: none;
  }

  .panel-side-nav a {
    justify-content: center;
    padding: 10px;
  }

  .panel-side-logout {
    justify-content: center;
    padding: 10px;
  }
}

@media (max-width: 780px) {
  .panel-layout {
    --panel-sidebar-width: 0px;
  }

  .panel-sidebar {
    position: static;
    width: auto;
    overflow: visible;
    border-inline-start: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 10px;
  }

  .panel-main {
    margin-inline-start: 0;
    height: auto;
    min-height: 0;
  }

  .panel-brand,
  .panel-side-profile,
  .panel-side-footer {
    display: none;
  }

  .panel-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .panel-side-nav a {
    justify-content: center;
    padding: 9px 8px;
  }

  .panel-side-nav a span {
    display: none;
  }

  .panel-side-logout span {
    display: none;
  }

  .panel-topbar {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .panel-search {
    max-width: 100%;
    order: 2;
    width: 100%;
  }

  .panel-top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .panel-content {
    padding: 12px;
  }
}

/* ====== DASHBOARD REDESIGN V2 ====== */
.panel-layout {
  --dash-bg: #eef1f8;
  --dash-bg-accent: rgba(42, 171, 238, 0.1);
  --dash-sidebar-bg: #2f3f63;
  --dash-sidebar-2: #263553;
  --dash-sidebar-border: rgba(255, 255, 255, 0.12);
  --dash-surface: #ffffff;
  --dash-surface-2: #f8faff;
  --dash-border: #dde3f0;
  --dash-title: #1f2937;
  --dash-text: #5b677f;
  --dash-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --dash-input-bg: #ffffff;
  --dash-input-border: #d7deef;
  --dash-table-head: #f4f7fd;
}

[data-theme="dark"] .panel-layout {
  --dash-bg: #0b1120;
  --dash-bg-accent: rgba(56, 189, 248, 0.12);
  --dash-sidebar-bg: #1f2a44;
  --dash-sidebar-2: #172033;
  --dash-sidebar-border: rgba(148, 163, 184, 0.2);
  --dash-surface: #111a2c;
  --dash-surface-2: #15213a;
  --dash-border: rgba(148, 163, 184, 0.2);
  --dash-title: #e5ecff;
  --dash-text: #9fb0d0;
  --dash-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  --dash-input-bg: #0f172a;
  --dash-input-border: #334155;
  --dash-table-head: rgba(30, 41, 59, 0.75);
}

[data-theme="light"] .panel-layout {
  --scrollbar-thumb: rgba(79, 70, 229, 0.52);
  --scrollbar-thumb-hover: rgba(79, 70, 229, 0.78);
  --scrollbar-track: rgba(148, 163, 184, 0.16);
}

.dashboard-page.panel-layout {
  background:
    radial-gradient(1200px 520px at 88% -16%, var(--dash-bg-accent), transparent 62%),
    var(--dash-bg);
}

.panel-shell {
  background: transparent;
}

.panel-sidebar {
  background: linear-gradient(180deg, var(--dash-sidebar-bg), var(--dash-sidebar-2));
  border-inline-start: 1px solid var(--dash-sidebar-border);
}

.panel-brand {
  color: #f8fbff;
}

.panel-side-profile {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(6, 11, 28, 0.25);
}

.panel-side-profile p {
  color: #deebff;
}

.panel-side-nav a {
  color: #c7d6ef;
  border-radius: 12px;
}

.panel-side-nav a:hover,
.panel-side-logout:hover {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.24);
}

.panel-side-logout {
  border-radius: 12px;
  color: #ffd4d8;
}

.panel-main {
  background: transparent;
}

.panel-topbar {
  background: var(--dash-surface);
  border-bottom: 1px solid var(--dash-border);
  padding: 14px 20px;
  backdrop-filter: blur(10px);
}

.panel-search {
  border-radius: 14px;
  border-color: var(--dash-input-border);
  background: var(--dash-input-bg);
  color: var(--dash-text);
}

.panel-search input {
  color: var(--dash-title);
}

.panel-content {
  padding: 20px;
  gap: 14px;
}

.dashboard-section {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--dash-shadow);
}

.section-title.small {
  color: var(--dash-title);
}

.small-text,
.muted {
  color: var(--dash-text);
}

.section-header {
  margin-bottom: 0.9rem;
}

.stats-grid.dashboard {
  gap: 0.75rem;
}

.stat-card {
  border: 0;
  color: #fff;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 15px;
  width: 48px;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 6px,
    transparent 6px 12px
  );
}

.stats-grid.dashboard .stat-card:nth-child(1) { background: linear-gradient(135deg, #ff9a66, #ff7e60); }
.stats-grid.dashboard .stat-card:nth-child(2) { background: linear-gradient(135deg, #2fd185, #1fbfbb); }
.stats-grid.dashboard .stat-card:nth-child(3) { background: linear-gradient(135deg, #ff6d9d, #ff7e7e); }
.stats-grid.dashboard .stat-card:nth-child(4) { background: linear-gradient(135deg, #2ea8ff, #33c6d6); }

.stat-number,
.stat-label {
  color: #fff;
}

.stat-number {
  font-size: 1.7rem;
}

.stat-label {
  opacity: 0.92;
}

.card,
.table-wrapper,
.content-block {
  background: var(--dash-surface-2);
  border-color: var(--dash-border);
  box-shadow: none;
}

.table-wrapper {
  border-radius: 12px;
}

.table th {
  color: var(--dash-title);
  background: var(--dash-table-head);
}

.table td {
  color: var(--dash-title);
}

.table th,
.table td {
  border-bottom: 1px solid var(--dash-border);
}

.table-select,
.table-date,
.table-input,
.inline-form input,
.inline-form select,
.form-group select,
.form-group input,
.form-group textarea {
  background: var(--dash-input-bg);
  border-color: var(--dash-input-border);
  color: var(--dash-title);
}

.notify-dropdown {
  background: var(--dash-surface);
  border-color: var(--dash-border);
}

.notify-item {
  background: var(--dash-surface-2);
  border-color: var(--dash-border);
}

.notify-item-desc {
  color: var(--dash-text);
}

.invoice-preview {
  background: var(--dash-surface-2);
  border-color: var(--dash-border);
}

.analytics-line strong {
  color: var(--dash-title);
}

.dashboard-user-menu .user-menu-toggle {
  background: var(--dash-input-bg);
  border-color: var(--dash-input-border);
  color: var(--dash-title);
}

[data-theme="light"] .panel-sidebar {
  box-shadow: 6px 0 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 780px) {
  .dashboard-section {
    padding: 12px;
    border-radius: 14px;
  }

  .panel-topbar {
    padding: 10px 12px;
  }
}

/* ====== DASHBOARD RESPONSIVE FIXES ====== */
.dashboard-page .table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-page .card-actions > .btn,
.dashboard-page .card-actions > button,
.dashboard-page .inline-form > * {
  min-width: 0;
}

.dashboard-page .card-actions > .btn,
.dashboard-page .card-actions > button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .dashboard-page .panel-content {
    padding: 16px;
  }

  .dashboard-page .cards-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .dashboard-page .inline-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 992px) {
  .dashboard-page .panel-topbar {
    flex-wrap: wrap;
  }

  .dashboard-page .panel-search {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-page .panel-top-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .dashboard-page .section-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dashboard-page .stats-grid.dashboard {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .dashboard-page .table {
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  .dashboard-page.panel-layout {
    --panel-sidebar-width: 0px;
  }

  .dashboard-page .panel-shell {
    min-height: auto;
  }

  .dashboard-page .panel-sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    inset-inline-start: auto;
    width: 100%;
    z-index: 980;
    border-inline-start: 0;
    border-bottom: 1px solid var(--dash-border);
    padding: 8px 10px;
    gap: 8px;
  }

  .dashboard-page .panel-brand,
  .dashboard-page .panel-side-profile,
  .dashboard-page .panel-side-footer {
    display: none;
  }

  .dashboard-page .panel-side-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .dashboard-page .panel-side-nav a,
  .dashboard-page .panel-side-logout {
    flex: 0 0 auto;
    display: inline-flex;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .dashboard-page .panel-side-nav a span,
  .dashboard-page .panel-side-logout span {
    display: none;
  }

  .dashboard-page .panel-main {
    margin-inline-start: 0;
    min-height: auto;
    height: auto;
  }

  .dashboard-page .panel-topbar {
    position: static;
    padding: 10px;
    gap: 8px;
  }

  .dashboard-page .panel-content {
    padding: 10px;
    gap: 10px;
  }

  .dashboard-page .dashboard-section {
    padding: 12px;
    border-radius: 12px;
  }

  .dashboard-page .cards-list {
    grid-template-columns: 1fr;
  }

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

  .dashboard-page .inline-form,
  .dashboard-page .content-editor-grid,
  .dashboard-page .request-form-grid,
  .dashboard-page .client-profile-grid,
  .dashboard-page .admin-profile-grid,
  .dashboard-page .profile-form {
    grid-template-columns: 1fr;
  }

  .dashboard-page .inline-form .btn,
  .dashboard-page .request-form-grid .btn,
  .dashboard-page .client-profile-grid .btn,
  .dashboard-page .admin-profile-grid .btn,
  .dashboard-page .card-actions .btn {
    width: 100%;
  }

  .dashboard-page .table {
    min-width: 680px;
  }

  .dashboard-page .table th,
  .dashboard-page .table td {
    white-space: nowrap;
  }

  .dashboard-page .notify-dropdown,
  .dashboard-page .user-dropdown {
    max-width: calc(100vw - 20px);
    min-width: 240px;
  }

  .dashboard-page .modal-content {
    width: calc(100% - 18px);
    max-width: calc(100% - 18px);
    max-height: 88vh;
  }
}

@media (max-width: 480px) {
  .dashboard-page .panel-top-actions {
    justify-content: space-between;
  }

  .dashboard-page .section-title.small {
    font-size: 1.05rem;
  }

  .dashboard-page .table {
    min-width: 620px;
  }

  .dashboard-page .btn {
    padding: 9px 12px;
  }

  .dashboard-page .btn-xs {
    font-size: 0.75rem;
  }
}

/* ====== MOBILE WIDTH SAFETY (EXTRA) ====== */
.dashboard-page,
.dashboard-page .panel-main,
.dashboard-page .panel-content,
.dashboard-page .dashboard-section,
.dashboard-page .section-content,
.dashboard-page .card,
.dashboard-page .table-wrapper {
  min-width: 0;
}

.dashboard-page .dashboard-section h1,
.dashboard-page .dashboard-section h2,
.dashboard-page .dashboard-section h3,
.dashboard-page .dashboard-section h4,
.dashboard-page .dashboard-section p,
.dashboard-page .dashboard-section span,
.dashboard-page .dashboard-section strong,
.dashboard-page .card h1,
.dashboard-page .card h2,
.dashboard-page .card h3,
.dashboard-page .card h4,
.dashboard-page .card p,
.dashboard-page .card span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  html,
  body,
  .dashboard-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-page .panel-content > * {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-page .dashboard-section {
    margin-bottom: 10px;
    padding: 10px;
  }

  .dashboard-page .section-title.small {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .dashboard-page .card {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .dashboard-page .card-header {
    gap: 0.45rem;
    margin-bottom: 0.45rem;
  }

  .dashboard-page .card-header h3 {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .dashboard-page .small-text,
  .dashboard-page .muted {
    font-size: 0.78rem;
  }

  .dashboard-page .badge {
    font-size: 0.7rem;
    padding: 0.14rem 0.45rem;
  }

  .dashboard-page .stats-grid.dashboard {
    gap: 0.55rem;
  }

  .dashboard-page .stat-card {
    padding: 0.75rem 0.75rem 0.7rem;
    border-radius: 10px;
  }

  .dashboard-page .stat-number {
    font-size: 1.25rem;
  }

  .dashboard-page .stat-label {
    font-size: 0.76rem;
    margin-top: 0.22rem;
  }

  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .dashboard-page .card-actions {
    gap: 0.35rem;
  }

  .dashboard-page .card-actions .btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .dashboard-page .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

  .dashboard-page .table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .dashboard-page .panel-content {
    padding: 8px;
    gap: 8px;
  }

  .dashboard-page .dashboard-section {
    padding: 8px;
    border-radius: 10px;
  }

  .dashboard-page .card {
    padding: 0.62rem;
    border-radius: 10px;
  }

  .dashboard-page .stat-number {
    font-size: 1.1rem;
  }

  .dashboard-page .section-title.small {
    font-size: 0.94rem;
  }

  .dashboard-page .table {
    min-width: 520px;
  }
}

/* ====== HOME REDESIGN (WESERVE-STYLE) ====== */
body.home-page {
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(132, 55, 255, 0.26), transparent 58%),
    radial-gradient(760px 420px at 96% 0%, rgba(42, 174, 255, 0.2), transparent 62%),
    #06081a;
  color: #eef2ff;
}

body.home-page .container {
  max-width: 1260px;
}

body.home-page .animated-bg {
  background:
    radial-gradient(circle at 15% 22%, rgba(137, 87, 255, 0.2), transparent 38%),
    radial-gradient(circle at 86% 72%, rgba(39, 172, 255, 0.16), transparent 36%);
  animation: homeBgMove 14s infinite alternate ease-in-out;
  opacity: 0.9;
}

@keyframes homeBgMove {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -10px, 0) scale(1.04); }
}

body.home-page .navbar {
  background: rgba(8, 10, 33, 0.78);
  border-bottom: 1px solid rgba(173, 184, 255, 0.14);
  backdrop-filter: blur(14px);
}

body.home-page .nav-container {
  height: 78px;
}

body.home-page .logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

body.home-page .logo span {
  color: #8559ff;
}

body.home-page .nav-links a {
  color: #b8bed9;
  font-size: 0.95rem;
}

body.home-page .nav-links a:hover {
  color: #ffffff;
}

body.home-page .theme-toggle,
body.home-page .menu-toggle,
body.home-page .lang-toggle {
  background: #111737;
  border: 1px solid rgba(173, 184, 255, 0.24);
  color: #eaf0ff;
}

body.home-page .lang-toggle {
  height: 34px;
  min-width: 72px;
  border-radius: 999px;
}

body.home-page .btn {
  border-radius: 12px;
  font-weight: 700;
}

body.home-page .btn-primary {
  background: linear-gradient(135deg, #6f39ff, #8f53ff);
  box-shadow: 0 10px 28px rgba(111, 57, 255, 0.35);
}

body.home-page .btn-primary:hover {
  box-shadow: 0 14px 34px rgba(111, 57, 255, 0.42);
}

body.home-page .btn-outline {
  background: rgba(17, 23, 55, 0.72);
  border: 1px solid rgba(173, 184, 255, 0.24);
  color: #dbe3ff;
}

body.home-page .hero {
  background: transparent;
  padding-top: 106px;
}

body.home-page .hero-grid {
  gap: 36px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

body.home-page .hero-text h1 {
  font-size: clamp(2rem, 5vw, 4.05rem);
  line-height: 1.12;
  font-weight: 900;
  margin-bottom: 16px;
  color: #f5f7ff;
  max-width: 15ch;
}

body.home-page .hero-text p {
  color: #aab3d6;
  font-size: 1.05rem;
  max-width: 60ch;
}

body.home-page .hero-actions {
  margin: 26px 0 16px;
}

body.home-page .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.home-page .hero-highlights span {
  margin-left: 0;
  font-size: 0.83rem;
  color: #c7cff1;
  background: rgba(17, 23, 55, 0.85);
  border: 1px solid rgba(173, 184, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

body.home-page .hero-card {
  background:
    linear-gradient(165deg, rgba(15, 20, 48, 0.98), rgba(8, 10, 28, 0.96)),
    #0d1336;
  border: 1px solid rgba(173, 184, 255, 0.2);
  border-radius: 28px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}

body.home-page .hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 89, 255, 0.42), transparent 68%);
  inset-inline-end: -70px;
  top: -70px;
}

body.home-page .hero-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
}

body.home-page .hero-list li {
  color: #bac4ea;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(173, 184, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 9px;
}

body.home-page .section {
  padding: 88px 0;
}

body.home-page .section-alt {
  background: linear-gradient(180deg, rgba(9, 12, 35, 0.92), rgba(6, 8, 26, 0.7));
  border-top: 1px solid rgba(173, 184, 255, 0.1);
  border-bottom: 1px solid rgba(173, 184, 255, 0.1);
}

body.home-page .card,
body.home-page .about-text,
body.home-page .about-card,
body.home-page .feature-card,
body.home-page .step,
body.home-page .package-card,
body.home-page .work-card,
body.home-page .video-card,
body.home-page .contact-box,
body.home-page .home-payment-item {
  background: linear-gradient(165deg, rgba(16, 22, 52, 0.95), rgba(9, 12, 32, 0.95));
  border: 1px solid rgba(173, 184, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.home-page .feature-card:hover,
body.home-page .step:hover,
body.home-page .hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.46);
}

body.home-page .feature-card h3,
body.home-page .package-price,
body.home-page .step-number,
body.home-page h2.section-title {
  color: #f2f4ff;
}

body.home-page .service-icon {
  background: linear-gradient(150deg, rgba(112, 65, 255, 0.28), rgba(95, 160, 255, 0.22));
  border-color: rgba(157, 130, 255, 0.52);
  color: #dfd2ff;
}

body.home-page .small-text,
body.home-page .feature-card p,
body.home-page .work-body p,
body.home-page .video-card p,
body.home-page .package-features {
  color: #aab4d9;
}

body.home-page .step-number {
  background: linear-gradient(140deg, #6f39ff, #9f61ff);
  color: #fff;
}

body.home-page .contact-box {
  background:
    linear-gradient(135deg, rgba(111, 57, 255, 0.24), rgba(24, 36, 92, 0.86)),
    #0f1538;
  border-radius: 22px;
  padding: 42px;
}

body.home-page .contact-form input {
  background: rgba(7, 10, 31, 0.84);
  border: 1px solid rgba(173, 184, 255, 0.22);
}

body.home-page .footer {
  background: #06081a;
  color: #97a3d1;
  border-top: 1px solid rgba(173, 184, 255, 0.12);
}

@media (max-width: 1020px) {
  body.home-page .nav-container {
    gap: 12px;
  }

  body.home-page .nav-actions {
    gap: 8px;
  }

  body.home-page .hero-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .hero-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body.home-page .section {
    padding: 72px 0;
  }

  body.home-page .hero {
    padding-top: 82px;
  }

  body.home-page .hero-text h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 9vw, 2.3rem);
  }

  body.home-page .contact-box {
    padding: 22px;
  }
}

/* ====== HOME LIGHT THEME FIX ====== */
[data-theme="light"] body.home-page {
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(128, 90, 255, 0.16), transparent 58%),
    radial-gradient(760px 420px at 96% 0%, rgba(56, 189, 248, 0.14), transparent 62%),
    #f4f6ff;
  color: #111827;
}

[data-theme="light"] body.home-page .animated-bg {
  background:
    radial-gradient(circle at 15% 22%, rgba(124, 58, 237, 0.12), transparent 38%),
    radial-gradient(circle at 86% 72%, rgba(2, 132, 199, 0.1), transparent 36%);
  opacity: 0.9;
}

[data-theme="light"] body.home-page .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

[data-theme="light"] body.home-page .logo,
[data-theme="light"] body.home-page .hero-text h1,
[data-theme="light"] body.home-page h2,
[data-theme="light"] body.home-page h3 {
  color: #0f172a;
}

[data-theme="light"] body.home-page .nav-links a {
  color: #334155;
}

[data-theme="light"] body.home-page .nav-links a:hover {
  color: #4f46e5;
}

[data-theme="light"] body.home-page .theme-toggle,
[data-theme="light"] body.home-page .menu-toggle,
[data-theme="light"] body.home-page .lang-toggle,
[data-theme="light"] body.home-page .btn-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(79, 70, 229, 0.22);
}

[data-theme="light"] body.home-page .btn-primary {
  background: linear-gradient(135deg, #5b3bf3, #7c4dff);
  color: #ffffff;
}

[data-theme="light"] body.home-page .hero-text p,
[data-theme="light"] body.home-page .small-text,
[data-theme="light"] body.home-page .feature-card p,
[data-theme="light"] body.home-page .work-body p,
[data-theme="light"] body.home-page .video-card p,
[data-theme="light"] body.home-page .package-features {
  color: #475569;
}

[data-theme="light"] body.home-page .hero-highlights span {
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(79, 70, 229, 0.18);
}

[data-theme="light"] body.home-page .card,
[data-theme="light"] body.home-page .about-text,
[data-theme="light"] body.home-page .about-card,
[data-theme="light"] body.home-page .feature-card,
[data-theme="light"] body.home-page .step,
[data-theme="light"] body.home-page .package-card,
[data-theme="light"] body.home-page .work-card,
[data-theme="light"] body.home-page .video-card,
[data-theme="light"] body.home-page .contact-box,
[data-theme="light"] body.home-page .home-payment-item,
[data-theme="light"] body.home-page .hero-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.96));
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] body.home-page .hero-card::before {
  background: radial-gradient(circle, rgba(124, 77, 255, 0.24), transparent 68%);
}

[data-theme="light"] body.home-page .hero-list li {
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.14);
}

[data-theme="light"] body.home-page .section-alt {
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.9), rgba(239, 244, 255, 0.9));
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

[data-theme="light"] body.home-page .service-icon {
  background: linear-gradient(150deg, rgba(124, 77, 255, 0.16), rgba(56, 189, 248, 0.16));
  border-color: rgba(124, 77, 255, 0.35);
  color: #5b3bf3;
}

[data-theme="light"] body.home-page .step-number,
[data-theme="light"] body.home-page .package-price {
  color: #5b3bf3;
}

[data-theme="light"] body.home-page .contact-form input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.22);
}

[data-theme="light"] body.home-page .footer {
  background: #eef2ff;
  color: #475569;
  border-top: 1px solid rgba(99, 102, 241, 0.14);
}
