/* PUFF N PURL - Desktop Baseline Recovery */

/* STEP 1: STOP THE BLEEDING - Remove centering and height rules */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: #fff;
}

/* STEP 2: DESKTOP BASELINE - Simple block layout like admin */
.user-layout {
  min-height: 100vh;
  display: block; /* Changed from flex to block for better centering */
  padding-top: 100px; /* Add space below the sticky navbar */
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: rgba(10, 10, 20, 0.95);
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.user-content {
  width: 90%; /* More responsive percentage like admin */
  max-width: 1400px;
  background: transparent;
  margin: 0 auto;
  padding: 2%; /* Changed to percentage like admin */
}

/* STEP 3: SAFE CENTERING - Center inside containers */
.page-container {
  max-width: 1400px; /* Match admin panel */
  margin: 0 auto;
  width: 100%;
}

/* STEP 4: RESTORE HEADER - Force header back */
.navbar {
  background: rgba(26, 31, 58, 0.98);
  border-bottom: 3px solid #ff1493;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.9), 0 0 15px rgba(0, 255, 255, 0.9);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  margin: 0 1rem;
  border-radius: 0 0 15px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.burger-btn {
  display: block !important;
  background: rgba(255, 92, 255, 0.1);
  border: 1px solid rgba(255, 92, 255, 0.3);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 1100;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 92, 255, 0.2);
  flex-shrink: 0;
}

.burger-btn:hover {
  background: rgba(255, 92, 255, 0.2);
  border-color: rgba(255, 92, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 92, 255, 0.4);
  transform: scale(1.05);
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #00fff7;
  box-shadow: 0 0 6px #00fff7;
  transition: all 0.3s ease;
  border-radius: 1px;
  position: relative;
}

.burger-btn span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
}

.burger-btn:hover span {
  background: #ff5cff;
  box-shadow: 0 0 8px #ff5cff;
}

.burger-btn:hover span::before {
  background: #ff5cff;
}

/* Hide burger button on desktop */
@media (min-width: 1025px) {
  .burger-btn {
    display: block !important;
  }
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.logo-text {
  font-family: 'Valorax', 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(45deg,
    #ff1493 0%,
    #ff0080 20%,
    #ff00ff 40%,
    #da70d6 60%,
    #00ffff 80%,
    #00bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 20px rgba(255, 20, 147, 0.9),
    0 0 40px rgba(255, 20, 147, 0.9),
    0 0 60px rgba(255, 20, 147, 0.9),
    0 0 20px rgba(0, 255, 255, 0.9);
  letter-spacing: 4px;
  filter: brightness(1.3);
}

.logo-subtitle {
  font-size: 1rem;
  color: #ff69b4;
  letter-spacing: 4px;
  margin-top: -8px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  margin: 4px 8px;
}

.sidebar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 255, 255, 0.2),
    transparent
  );
  transition: left 0.4s ease;
}

.sidebar a:hover::before {
  left: 100%;
}

.sidebar a:hover {
  background: linear-gradient(135deg,
    rgba(0, 255, 255, 0.1),
    rgba(255, 92, 255, 0.1)
  );
  color: #00ffff;
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Sidebar Footer - Logout Button Container */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

/* Enhanced Logout Button with Effects */
.logout-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 15px;
  border: 2px solid #ff5cff;
  background: linear-gradient(135deg,
    rgba(255, 92, 255, 0.15),
    rgba(143, 0, 255, 0.15),
    rgba(0, 255, 255, 0.1)
  );
  color: #ff5cff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 0 20px rgba(255, 92, 255, 0.3),
    0 0 40px rgba(255, 92, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: cyberPulse 3s ease-in-out infinite;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 92, 255, 0.4),
    rgba(0, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.logout-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    #ff5cff,
    #00ffff,
    #ff0080,
    #8000ff,
    #ff5cff
  );
  background-size: 400% 400%;
  animation: borderGlow 3s ease infinite;
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:hover::after {
  opacity: 1;
}

.logout-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 30px rgba(255, 92, 255, 0.6),
    0 0 60px rgba(255, 92, 255, 0.4),
    0 0 90px rgba(0, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #00ffff;
  background: linear-gradient(135deg,
    rgba(255, 92, 255, 0.25),
    rgba(143, 0, 255, 0.25),
    rgba(0, 255, 255, 0.2)
  );
  animation: none;
}

.logout-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 0 20px rgba(255, 92, 255, 0.5),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

.logout-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px #ff5cff);
  animation: iconGlow 2s ease-in-out infinite alternate;
}

.logout-btn:hover .logout-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 12px #00ffff);
  animation: iconPulse 0.6s ease-in-out;
}

/* Cyberpunk Animations */
@keyframes cyberPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 92, 255, 0.3),
      0 0 40px rgba(255, 92, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 92, 255, 0.4),
      0 0 50px rgba(255, 92, 255, 0.3),
      0 0 75px rgba(0, 255, 255, 0.1);
  }
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iconGlow {
  0% { filter: drop-shadow(0 0 8px #ff5cff); }
  100% { filter: drop-shadow(0 0 12px #00ffff); }
}

@keyframes iconPulse {
  0% { transform: scale(1.2) rotate(10deg); }
  50% { transform: scale(1.3) rotate(-10deg); }
  100% { transform: scale(1.2) rotate(10deg); }
}

/* Overlay (Click Outside to Close Sidebar) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Content Centering (THIS FIXES EDGE ISSUE) */
.content {
  max-width: 1200px;
  margin: 70px auto 40px;
  padding: 20px;
}

/* Service Cards (Uniform Size – No Cut Text) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 92, 255, 0.2);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 92, 255, 0.2);
}

.service-card h3 {
  white-space: normal;
  word-break: break-word;
  margin: 0 0 10px 0;
  color: #ff5cff;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile & Landscape Support */
@media (max-width: 768px) {
  .content {
    margin: 80px auto 20px;
    padding: 16px;
  }

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

  .topbar {
    padding: 0 16px;
  }

  .site-title {
    font-size: 1.5rem;
  }
}

/* MOBILE PORTRAIT (CRITICAL) */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    height: 70px;
  }

  .navbar-toggler {
    margin-left: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  .nav-brand {
    flex: 1;
    text-align: center;
    margin: 0 0.5rem;
  }

  .logo-text {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  .logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .user-content, .content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .nav-links {
    display: none;
  }

  /* Show floating logout button on mobile - REMOVED */
}

/* MOBILE LANDSCAPE */
@media (max-width: 1024px) and (orientation: landscape) {
  .user-content, .content {
    padding: 10px;
    width: 100%;
  }

  .sidebar {
    width: 220px;
  }

  .nav-container {
    height: 60px;
    padding: 0.5rem;
  }

  .logo-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .logo-subtitle {
    font-size: 0.6rem;
  }
}

/* VERY SMALL MOBILE SCREENS */
@media (max-width: 480px) {
  .nav-container {
    height: 65px;
    padding: 0.5rem;
  }

  .navbar-toggler {
    margin-right: 0.25rem;
  }

  .nav-brand {
    margin: 0 0.25rem;
  }

  .logo-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
}

/* DESKTOP OVERRIDE - Keep burger button, sidebar overlays */
@media (min-width: 1025px) {
  .navbar-toggler {
    display: block; /* Keep burger button visible */
  }

  .sidebar {
    position: fixed; /* Keep fixed positioning for overlay */
    left: -260px; /* Hidden by default */
    width: 260px;
    height: 100vh;
    transition: left 0.3s ease;
  }

  .sidebar.sidebar-open {
    left: 0; /* Show when active */
  }

  .user-content, .content {
    margin-left: 0; /* No margin, sidebar overlays */
    width: 90%; /* Full width */
    max-width: 1400px;
    margin: 0 auto;
    padding: 2%;
  }

  .nav-links {
    display: none; /* Hide nav links, use burger menu */
  }
}

/* BASE SIDEBAR STYLES (All screen sizes) */
.sidebar {
  background: rgba(0, 0, 0, 0.82);
  border-right: 2px solid var(--cyber-cyan);
  padding: 20px 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.sidebar-logo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(0, 243, 255, 0.6);
  border: 2px solid rgba(0, 243, 255, 0.55);
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-title {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--cyber-text-dim);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 0;
}

.sidebar-link {
  color: var(--cyber-cyan);
  text-decoration: none;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  transition: background 0.3s;
  display: block;
}

.sidebar-link:hover {
  background: rgba(0, 255, 255, 0.1);
}
.sidebar-link:first-child {
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.sidebar-divider {
  height: 1px;
  background: rgba(0, 255, 255, 0.3);
  margin: 10px 20px;
}

.sidebar-logout {
  color: #ff6b6b !important;
  border-bottom: 1px solid rgba(255, 107, 107, 0.3);
}

.sidebar-logout:hover {
  background: rgba(255, 107, 107, 0.1) !important;
}

/* Floating Logout Button - REMOVED (now in sidebar) */

.user-content {
  flex: 1;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(0, 243, 255, 0.06), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(255, 0, 255, 0.06), transparent 30%),
              linear-gradient(135deg, rgba(10, 14, 39, 0.55), rgba(8, 10, 28, 0.6));
}

/* Profile page */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.profile-card {
  background: rgba(12, 16, 36, 0.45);
  border: 2px solid rgba(0, 243, 255, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 36px rgba(0, 243, 255, 0.12), 0 0 22px rgba(255, 0, 255, 0.08);
}

.profile-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.4);
}

.profile-avatar.image {
  width: 72px;
  height: 72px;
}

.profile-meta {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 0.5rem;
  row-gap: 0.3rem;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 10px;
}

.profile-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: var(--cyber-text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-value {
  font-family: 'Orbitron', sans-serif;
  color: var(--cyber-text);
  letter-spacing: 1px;
}

.profile-value.balance {
  color: var(--cyber-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.profile-actions {
  background: linear-gradient(135deg, rgba(32, 20, 52, 0.58), rgba(16, 38, 66, 0.6));
  border: 2px solid rgba(255, 0, 255, 0.38);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 32px rgba(255, 0, 255, 0.14), 0 0 18px rgba(0, 243, 255, 0.1);
}

.profile-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.action-btn {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 243, 255, 0.4);
  background: rgba(0, 243, 255, 0.08);
  color: var(--cyber-text);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(0, 243, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.3);
}

.action-btn.action-primary {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.5);
  color: var(--cyber-text);
}

.action-btn.action-primary:hover {
  background: rgba(0, 243, 255, 0.18);
}

.profile-hint {
  margin-top: 0.75rem;
  color: var(--cyber-text-dim);
  font-size: 0.9rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.profile-form label {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyber-text-dim);
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form input[type="file"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyber-text);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-preview img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(0, 243, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.25);
}

.profile-avatar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.image {
  padding: 0.15rem;
  background: rgba(0, 243, 255, 0.08);
}

.profile-avatar.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Navbar styles (user-facing) */
.navbar {
  background: rgba(10, 14, 39, 0.95);
  border-bottom: 2px solid var(--cyber-cyan);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.45);
}

.logo-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--cyber-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--cyber-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-link:hover {
  background: rgba(0, 255, 255, 0.1);
  color: var(--cyber-cyan);
}

.nav-logout {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.nav-logout:hover {
  background: rgba(255, 0, 0, 0.2);
}

.nav-user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 243, 255, 0.4);
  background: rgba(0, 243, 255, 0.08);
  text-decoration: none;
  color: var(--cyber-green);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.nav-user-button:hover {
  background: rgba(0, 243, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.35);
  color: var(--cyber-green);
}

.nav-user {
  color: var(--cyber-green);
  font-weight: bold;
}

/* Burger Menu Button */
.navbar-toggler {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(0, 255, 255, 0.1);
}

.navbar-burger {
  display: block;
  width: 24px;
  height: 20px;
  position: relative;
}

.navbar-burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cyber-cyan);
  border-radius: 1px;
  position: absolute;
  transition: all 0.3s ease;
}

.navbar-burger-line:nth-child(1) {
  top: 0;
}

.navbar-burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-burger-line:nth-child(3) {
  bottom: 0;
}

.navbar-toggler:not(.collapsed) .navbar-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler:not(.collapsed) .navbar-burger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .navbar-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Global dropdown styling across user pages */
body.user select,
body.user .select-wrapper select {
  background: #000;
  color: var(--cyber-cyan);
  border: 1px solid rgba(0, 243, 255, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.22);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.user select:focus,
body.user .select-wrapper select:focus,
body.user select:hover,
body.user .select-wrapper select:hover {
  border-color: rgba(0, 243, 255, 0.85);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.35);
}

/* Flash messages */
.flash-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.flash {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.28), rgba(8, 10, 28, 0.22));
  backdrop-filter: blur(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.flash-success {
  background: rgba(0, 255, 65, 0.1);
  border-left-color: var(--cyber-green);
  color: var(--cyber-green);
}

.flash-error {
  background: rgba(255, 0, 0, 0.1);
  border-left-color: #ff4444;
  color: #ff4444;
}

.flash-warning {
  background: rgba(255, 165, 0, 0.1);
  border-left-color: var(--cyber-orange);
  color: var(--cyber-orange);
}

.flash-info {
  background: rgba(0, 243, 255, 0.1);
  border-left-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
}

.flash-close {
  float: right;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* Services Page */
.services-container {
    padding: 2rem 0;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.balance-card {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid var(--cyber-green);
    border-radius: 12px;
    padding: 1rem 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.balance-label {
    color: var(--cyber-text-dim);
    margin-right: 1rem;
}

.balance-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--cyber-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.service-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-icon {
    font-size: 2.5rem;
}

.category-subtitle {
    font-size: 1rem;
    color: var(--cyber-text-dim);
    font-weight: 400;
    margin-left: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}



.service-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-row .form-group:only-child {
    grid-column: 1 / -1;
}

.estimated-cost {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--cyber-green);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--cyber-green);
    font-weight: 700;
    text-align: center;
}

/* Desktop centering */
@media (min-width: 1025px) {
  .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Page container - centers all content */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

@media (min-width: 1400px) {
  .page-container {
    max-width: 1320px;
  }
}

/* Sidebar footer and logout button */
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-footer {
  margin-top: auto;
  padding: 15px;
}

.sidebar-logout-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff004c, #ff6a00);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 0, 76, 0.7);
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(255, 0, 76, 1);
}

/* MOBILE SAFETY RULES */
img, div {
  max-width: 100%;
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .page-container {
    padding: 14px;
  }
}

/* BURGER MENU - Mobile/Tablet Styles */
@media (max-width: 1024px) {
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .user-layout {
    position: relative;
  }

  .user-content {
    width: 100%;
    padding: 20px;
  }
}

/* Height-aware mobile breakpoints */
@media (max-height: 600px) {
  .user-content {
    padding: 10px;
  }

  .sidebar {
    overflow-y: auto;
  }
}

/* Order / Add Funds card styles (ensure Add Funds matches Create Order) */

