@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================================================================
   ROOT VARIABLES & BASICS (MODERN CREATOR THEME)
   =========================================================================== */

:root {
  /* Dark Cinematic Theme (Video Background) */
  --bg-color: transparent;
  --bg-gradient: none;
  --text-primary: #f1f5ff;
  --text-secondary: #b8c5e0;
  --surface-light-bg: #f8fafc;
  --surface-light-panel: #ffffff;
  --surface-light-text: #0f172a;
  --surface-light-muted: #475569;
  
  /* Primary Accent Colors */
  --primary-bg: #6366f1;
  --primary-hover: #4f46e5;
  --primary-text: #ffffff;
  
  /* Secondary Element Colors */
  --secondary-bg: rgba(15, 20, 40, 0.6);
  --secondary-text: #f1f5ff;
  --secondary-border: rgba(255,255,255,0.12);
  --secondary-hover: rgba(255,255,255,0.08);
  
  /* Success & Danger */
  --success-bg: #10b981;
  --success-text: #ffffff;
  --danger-bg: #ef4444;
  --danger-text: #ffffff;
  
  /* Sidebar */
  --sidebar-bg: rgba(8, 10, 22, 0.88);
  --sidebar-active-bg: #6366f1;
  --sidebar-active-text: #ffffff;
  --sidebar-inactive-text: #94a3b8;
  --sidebar-hover-bg: rgba(255,255,255,0.07);
  
  /* Dashboard Cards */
  --card-bg: rgba(15, 20, 45, 0.55);
  --card-border: rgba(255,255,255,0.1);
  --card-radius: 16px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  
  /* Form Fields */
  --field-bg: rgba(255,255,255,0.07);
  --field-border: rgba(255,255,255,0.15);
  --field-focus-border: #6366f1;
  --field-focus-shadow: rgba(99, 102, 241, 0.3);
  
  /* Accent Neons */
  --neon-cyan: #6366f1;
  --neon-magenta: #ec4899;
  --neon-green: #10b981;
  --neon-yellow: #f59e0b;
  
  --youtube-red: #ff0000;
  --tiktok-cyan: #06b6d4;
  --tiktok-pink: #db2777;
  --meta-blue: #1877f2;

  /* Glass (dark frosted) */
  --glass-bg: rgba(10, 14, 35, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-alt: 'Manrope', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: default;
  margin: 0;
  padding-top: 74px; /* Clear fixed navbar */
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GLOBAL BACKGROUND VIDEO
   ============================================================ */
#global-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

#global-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Very subtle dark vignette — video fully visible, just edges softened */
#global-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 8, 0.38) 100%
  );
  z-index: 1;
}

/* Global Text Contrast & Visibility Overrides */
.text-secondary, .text-muted {
  color: var(--text-secondary) !important;
}
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
p {
  color: var(--text-secondary);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Light surfaces embedded in the video-backed app need their own contrast rules. */
.surface-light,
.bg-light,
.modal-cyberpunk .modal-content,
.post-platform-card,
.illustration-frame {
  color: var(--surface-light-text) !important;
  text-shadow: none !important;
}

.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light h4,
.surface-light h5,
.surface-light h6,
.surface-light p,
.surface-light span:not(.badge),
.surface-light small,
.surface-light label,
.surface-light li,
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-light p,
.bg-light span:not(.badge),
.bg-light small,
.bg-light label,
.bg-light li,
.modal-cyberpunk .modal-content h1,
.modal-cyberpunk .modal-content h2,
.modal-cyberpunk .modal-content h3,
.modal-cyberpunk .modal-content h4,
.modal-cyberpunk .modal-content h5,
.modal-cyberpunk .modal-content h6,
.modal-cyberpunk .modal-content p,
.modal-cyberpunk .modal-content span:not(.badge),
.modal-cyberpunk .modal-content small,
.modal-cyberpunk .modal-content label,
.modal-cyberpunk .modal-content li,
.post-platform-card h1,
.post-platform-card h2,
.post-platform-card h3,
.post-platform-card h4,
.post-platform-card h5,
.post-platform-card h6,
.post-platform-card p,
.post-platform-card span:not(.badge),
.post-platform-card small,
.post-platform-card label,
.post-platform-card li,
.illustration-frame h1,
.illustration-frame h2,
.illustration-frame h3,
.illustration-frame h4,
.illustration-frame h5,
.illustration-frame h6,
.illustration-frame p,
.illustration-frame span:not(.badge),
.illustration-frame small,
.illustration-frame label,
.illustration-frame li {
  color: var(--surface-light-text) !important;
  text-shadow: none !important;
}

.surface-light .text-secondary,
.surface-light .text-muted,
.bg-light .text-secondary,
.bg-light .text-muted,
.modal-cyberpunk .modal-content .text-secondary,
.modal-cyberpunk .modal-content .text-muted,
.post-platform-card .text-secondary,
.post-platform-card .text-muted,
.illustration-frame .text-secondary,
.illustration-frame .text-muted {
  color: var(--surface-light-muted) !important;
  text-shadow: none !important;
}

.surface-light .text-white:not(.badge),
.bg-light .text-white:not(.badge),
.modal-cyberpunk .modal-content .text-white:not(.badge),
.post-platform-card .text-white:not(.badge),
.illustration-frame .text-white:not(.badge) {
  color: var(--surface-light-text) !important;
}

.surface-light .badge,
.bg-light .badge,
.modal-cyberpunk .modal-content .badge,
.post-platform-card .badge,
.illustration-frame .badge,
.surface-light .btn,
.bg-light .btn,
.modal-cyberpunk .modal-content .btn,
.post-platform-card .btn,
.illustration-frame .btn {
  text-shadow: none !important;
}

/* Lenis smooth scroll configuration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

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

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

::selection {
  background: var(--neon-cyan);
  color: #000;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 10px;
}

/* Custom Cursor */
#cursor {
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

#cursor-blur {
  width: 300px;
  height: 300px;
  background: rgba(0, 243, 255, 0.08);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  filter: blur(60px);
  will-change: transform;
}

/* Ensure default mouse cursor is always visible on desktop and all devices */
@media (min-width: 768.1px) {
  body {
    cursor: default !important;
  }
  a, button, input, select, textarea, .btn, .btn-magnetic, .upload-zone, .platform-switch, .pw-toggle, .social-glow-btn, .footer-link {
    cursor: pointer !important;
  }
}

/* ===========================================================================
   TEMPLATE STYLINGS (CLEANED UP)
   =========================================================================== */

/* ===========================================================================
   MediaFusion CORE APP COMPONENT STYLINGS
   =========================================================================== */

/* Base Logo */
.brand-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--neon-cyan));
  transition: filter 0.3s ease;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 10px var(--neon-magenta));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.text-gradient-cyan {
  background: linear-gradient(90deg, var(--neon-cyan), #0088ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-magenta {
  background: linear-gradient(90deg, var(--neon-magenta), #ff0088);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Glassmorphism Navbar */
.navbar-glass {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand i {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* Magnetic Buttons */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  text-decoration: none;
}

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

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

.btn-magnetic:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.2);
  color: #fff;
}

/* Glass Cards */
.glass-card {
  -webkit-backdrop-filter: blur(10px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Platform Switches */
.platform-switch-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.platform-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.platform-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  transition: 0.4s;
  border: 1px solid var(--glass-border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Platform Specific Switch Colors */
input:checked + .slider.yt { background-color: rgba(255, 0, 0, 0.2); border-color: var(--youtube-red); }
input:checked + .slider.yt:before { background-color: var(--youtube-red); transform: translateX(26px); box-shadow: 0 0 10px var(--youtube-red); }

input:checked + .slider.tt { background-color: rgba(0, 242, 254, 0.2); border-color: var(--tiktok-cyan); }
input:checked + .slider.tt:before { background-color: var(--tiktok-cyan); transform: translateX(26px); box-shadow: 0 0 10px var(--tiktok-cyan); }

input:checked + .slider.meta { background-color: rgba(24, 119, 242, 0.2); border-color: var(--meta-blue); }
input:checked + .slider.meta:before { background-color: var(--meta-blue); transform: translateX(26px); box-shadow: 0 0 10px var(--meta-blue); }

input:checked + .slider.fb { background-color: rgba(24, 119, 242, 0.2); border-color: var(--meta-blue); }
input:checked + .slider.fb:before { background-color: var(--meta-blue); transform: translateX(26px); box-shadow: 0 0 10px var(--meta-blue); }

input:checked + .slider.ig { background-color: rgba(220, 39, 67, 0.2); border-color: #e1306c; }
input:checked + .slider.ig:before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); transform: translateX(26px); box-shadow: 0 0 10px #e1306c; }

.platform-icon {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color 0.3s, text-shadow 0.3s;
}

input:checked ~ .platform-icon.yt   { color: var(--youtube-red); text-shadow: 0 0 10px var(--youtube-red); }
input:checked ~ .platform-icon.tt   { color: var(--text-primary); text-shadow: -2px -2px 0 var(--tiktok-cyan), 2px 2px 0 var(--tiktok-pink); }
input:checked ~ .platform-icon.meta { color: var(--meta-blue); text-shadow: 0 0 10px var(--meta-blue); }
input:checked ~ .platform-icon.fb   { color: var(--meta-blue); text-shadow: 0 0 10px var(--meta-blue); }
input:checked ~ .platform-icon.ig   { color: #e1306c; text-shadow: 0 0 10px #e1306c, 0 0 20px rgba(240, 148, 51, 0.4); }

/* Custom Inputs */
.form-control-cyber {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5ff;
  padding: 1rem;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control-cyber::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-control-cyber:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
  color: #ffffff;
  outline: none;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.05);
}

.upload-zone i {
  font-size: 4rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

/* Progress Bar */
.progress-cyber {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
  display: none;
}

.progress-bar-cyber {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--neon-magenta);
}

/* Loader */
.neon-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 243, 255, 0.1);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Video Background */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.video-bg-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Orbit Hero (Index page specific) */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  /* background video handled globally */
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), inset 0 0 20px rgba(0, 243, 255, 0.2);
  z-index: 10;
}

.orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.orbit-icon {
  -webkit-backdrop-filter: blur(10px);
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation: rotate-reverse 20s linear infinite;
}

.orbit-icon.yt { top: -30px; left: 170px; color: var(--youtube-red); text-shadow: 0 0 10px var(--youtube-red); }
.orbit-icon.tt { top: 170px; right: -30px; color: #fff; text-shadow: -2px -2px 0 var(--tiktok-cyan), 2px 2px 0 var(--tiktok-pink); }
.orbit-icon.fb { bottom: -30px; left: 170px; color: var(--meta-blue); text-shadow: 0 0 10px var(--meta-blue); }
.orbit-icon.ig { top: 170px; left: -30px; color: #e1306c; text-shadow: 0 0 10px #e1306c; }

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes rotate-reverse { 100% { transform: rotate(-360deg); } }

/* Video Preview */
#videoPreviewContainer {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: none;
  background: #000;
}

video:not(#global-video-bg video) {
  width: 100%;
  display: block;
}

/* History Table */
.table-cyber {
  --bs-table-bg: rgba(15, 20, 45, 0.72);
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-striped-color: var(--text-primary);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-table-hover-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table-cyber th {
  background: rgba(15, 20, 45, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 1rem;
}

.table-cyber td {
  background: rgba(15, 20, 45, 0.72) !important;
  color: var(--text-primary);
  padding: 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.table-cyber tr td:first-child { border-left: 1px solid rgba(255, 255, 255, 0.08); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.table-cyber tr td:last-child { border-right: 1px solid rgba(255, 255, 255, 0.08); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-live { background: rgba(0, 255, 102, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); box-shadow: 0 0 10px rgba(0, 255, 102, 0.2); }
.status-uploading { background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); display: flex; align-items: center; gap: 8px; }
.status-failed { background: rgba(255, 0, 0, 0.1); color: #ff4444; border: 1px solid #ff4444; }

/* Utility */
.mb-6 { margin-bottom: 4rem; }

/* Auth Portals */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* background video handled globally */
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 8, 0.28);
  z-index: 0;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 2;
}

.auth-toggle {
  cursor: pointer;
  color: var(--neon-cyan);
  text-decoration: underline;
}

.portal-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  position: relative;
  /* background video handled globally */
}

.portal-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 8, 0.22);
  z-index: 1;
}

.portal-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 243, 255, 0.012) 2px, rgba(0, 243, 255, 0.012) 4px);
  pointer-events: none;
  z-index: 2;
}

.portal-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  animation: fadeUp .6s cubic-bezier(.23, 1, .32, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card.card-cyan {
  border-color: rgba(0, 243, 255, 0.22);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.glass-card.card-magenta {
  border-color: rgba(255, 0, 255, 0.22);
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.portal-logo {
  height: 64px;
  animation: logoPulse 3s ease-in-out infinite;
}

.portal-logo-cyan {
  filter: drop-shadow(0 0 12px var(--neon-cyan));
}

.portal-logo-magenta {
  filter: drop-shadow(0 0 12px var(--neon-magenta));
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px currentColor); }
  50% { filter: drop-shadow(0 0 22px currentColor); }
}

.ig-icon-cyan {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-right: none;
  color: var(--neon-cyan);
}

.ig-icon-magenta {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-right: none;
  color: var(--neon-magenta);
}

.form-control-cyber {
  border-left: none !important;
}

.form-control-cyber.magenta-focus:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.15) !important;
}

.cyber-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 3px solid #ef4444;
  color: #b91c1c;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.pw-toggle {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-left: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.pw-toggle-cyan:hover { color: var(--neon-cyan); }
.pw-toggle-magenta:hover { color: var(--neon-magenta); }

.auth-link {
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow 0.3s;
}

.auth-link-cyan { color: var(--neon-cyan); }
.auth-link-cyan:hover { text-shadow: 0 0 10px var(--neon-cyan); color: var(--neon-cyan); }

.auth-link-magenta { color: var(--neon-magenta); }
.auth-link-magenta:hover { text-shadow: 0 0 10px var(--neon-magenta); color: var(--neon-magenta); }

.cyber-hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 1.4rem 0;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.4s, background 0.4s;
}

/* Profile Page */
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(255, 0, 255, 0.15));
  border: 2px solid rgba(0, 243, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
  margin: 0 auto;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  text-align: center;
}

.stat-badge .stat-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
}

.stat-badge .stat-key {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.success-alert {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.4);
  border-left: 3px solid var(--neon-green);
  color: #047857;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.danger-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 3px solid #ef4444;
  color: #b91c1c;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Studio & Interactive Image Editor */
.studio-range-input::-webkit-slider-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
}

.studio-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.avatar-frame:hover .avatar-overlay {
  opacity: 1 !important;
}

.avatar-frame:hover {
  border-color: var(--neon-magenta) !important;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.45) !important;
}

/* Footer Styling Overrides */
footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 252, 0.95)) !important;
  border-top: 2px solid var(--neon-cyan) !important;
  position: relative;
  overflow: hidden;
  /* Footer renders outside .content-wrapper, so offset it past the fixed 260px sidebar */
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
  box-sizing: border-box;
}

/* On mobile the sidebar is offcanvas — footer takes full viewport width */
@media (max-width: 991.98px) {
  footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.5;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 0.35rem 0;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.footer-link:hover::after {
  width: 100%;
}

.social-glow-btn {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.02);
}

.social-glow-btn:hover {
  border-color: currentColor;
  background: rgba(15, 23, 42, 0.05);
}

.social-yt:hover { color: #ff0000 !important; filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8)); }
.social-tt:hover { color: var(--neon-cyan) !important; filter: drop-shadow(0 0 12px rgba(0, 243, 255, 0.8)); }
.social-fb:hover { color: #1877f2 !important; filter: drop-shadow(0 0 12px rgba(24, 119, 242, 0.8)); }
.social-ig:hover { color: #e1305c !important; filter: drop-shadow(0 0 12px rgba(225, 48, 92, 0.8)); }

.status-badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .status-badge-list { align-items: center; }
}

.status-badge-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.status-badge-item:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .status-badge-item:hover { transform: translateX(0); }
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  background: #39ff14;
  border-radius: 50%;
  box-shadow: 0 0 8px #39ff14, 0 0 12px rgba(57, 255, 20, 0.4);
  display: inline-block;
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px #39ff14, 0 0 12px rgba(57, 255, 20, 0.4); }
  50% { box-shadow: 0 0 12px #39ff14, 0 0 18px rgba(57, 255, 20, 0.6); }
}

/* About Us and Tutorial Page Styling */
.text-gradient-cyan-magenta {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.glowing-title {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.35);
}

.tutorial-player-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
  transition: all 0.3s ease;
}

.tutorial-player-wrapper:hover {
  border-color: rgba(255, 0, 255, 0.4);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.illustration-frame {
  height: 160px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-timeline-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  width: 80%;
}

.mock-timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 3px;
  position: absolute;
  left: 20%;
  width: 50%;
}

.mock-timeline-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--neon-cyan);
  position: absolute;
  top: -4px;
  cursor: pointer;
}

.mock-node {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  z-index: 2;
}

.mock-node-center {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px dashed var(--neon-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
  animation: rotateDashed 10s linear infinite;
  z-index: 2;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  width: 60px;
  z-index: 1;
  opacity: 0.5;
}

.mock-bar {
  width: 12px;
  background: linear-gradient(to top, var(--neon-cyan), var(--neon-magenta));
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
  transition: height 0.5s ease;
}

/* Interactive Image Editor Photoshop Workspace */
.img-editor-canvas-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.18);
  background: #0a0a0e;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 243, 255, 0.02);
  transition: border-color 0.3s;
}

.img-editor-canvas-wrap:hover {
  border-color: rgba(0, 243, 255, 0.35);
}

.img-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
  flex-wrap: wrap;
}

.img-editor-toolbar-left,
.img-editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.img-editor-tool-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.img-editor-tool-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.1);
}

.img-editor-tool-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--neon-cyan);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.15);
}

.img-editor-separator {
  width: 1px;
  height: 20px;
  background: rgba(15, 23, 42, 0.1);
  margin: 0 4px;
}

.img-editor-zoom-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 42px;
  text-align: center;
  font-family: var(--font-heading);
}

.img-editor-viewport {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  cursor: crosshair;
  background-image:
    linear-gradient(45deg, #1a1a1f 25%, transparent 25%),
    linear-gradient(-45deg, #1a1a1f 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1a1f 75%),
    linear-gradient(-45deg, transparent 75%, #1a1a1f 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #111115;
}

.img-editor-viewport canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#imgEditorCanvas { z-index: 1; }
#imgCropOverlay { z-index: 2; }

.img-editor-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--text-secondary);
  pointer-events: none;
}

.img-editor-infobar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.62rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  gap: 12px;
  flex-wrap: wrap;
}

.img-editor-infobar span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.img-editor-infobar i {
  color: var(--neon-cyan);
  font-size: 0.58rem;
}

.img-editor-aspect-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.img-aspect-btn {
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.img-aspect-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.2);
}

.img-aspect-btn.active {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(0, 243, 255, 0.35);
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.12);
}

.img-editor-viewport.cursor-move { cursor: grab; }
.img-editor-viewport.cursor-move:active { cursor: grabbing; }
.img-editor-viewport.cursor-nw-resize { cursor: nw-resize; }
.img-editor-viewport.cursor-ne-resize { cursor: ne-resize; }
.img-editor-viewport.cursor-sw-resize { cursor: sw-resize; }
.img-editor-viewport.cursor-se-resize { cursor: se-resize; }
.img-editor-viewport.cursor-n-resize  { cursor: n-resize;  }
.img-editor-viewport.cursor-s-resize  { cursor: s-resize;  }
.img-editor-viewport.cursor-e-resize  { cursor: e-resize;  }
.img-editor-viewport.cursor-w-resize  { cursor: w-resize;  }
.img-editor-viewport.cursor-crop-move { cursor: move;      }

/* Small Screen Responsive Editor */
@media (max-width: 575.98px) {
  .img-editor-viewport { height: 260px; }
  .img-editor-toolbar { padding: 4px 6px; }
  .img-editor-tool-btn { width: 28px; height: 28px; font-size: 0.75rem; }
  .img-editor-aspect-btns { gap: 4px; }
  .img-aspect-btn { padding: 4px 10px; font-size: 0.65rem; }
}

/* Large Screen Responsive Editor Layout */
@media (min-width: 992px) {
  .img-editor-viewport { height: 480px; }
  .img-editor-canvas-wrap {
    position: sticky;
    top: 100px;
    z-index: 100;
  }
}

/* Tool Dock */
.studio-tool-dock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 8px;
  background: #050508;
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 243, 255, 0.05);
  position: sticky;
  top: 110px;
  z-index: 100;
  align-items: center;
}

.tool-dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #5d606b;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-dock-btn:hover {
  color: #00f3ff;
  background: rgba(0, 243, 255, 0.06);
  border-color: rgba(0, 243, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.tool-dock-btn.active {
  color: #00f3ff;
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.35);
}

/* GSAP Hero Text Reveal Styles */
.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
}

/* ===========================================================================
   MODERN CREATOR THEME RULES (SIDEBAR, TYPOGRAPHY, CARDS, INPUTS & SPACING)
   =========================================================================== */

/* Typography */
h1 {
  font-family: var(--font-heading) !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.5px !important;
  text-transform: none !important;
}

h2 {
  font-family: var(--font-heading) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.5px !important;
  text-transform: none !important;
}

h3 {
  font-family: var(--font-heading) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-transform: none !important;
}

body {
  font-family: var(--font-main) !important;
  font-size: 16px !important;
  background-color: var(--bg-color) !important;
  background-image: var(--bg-gradient) !important;
  color: var(--text-primary) !important;
}

small, .small {
  font-size: 14px !important;
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--sidebar-bg) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem 1rem !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1045 !important;
  height: 100vh !important;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--sidebar-inactive-text) !important;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Active & Hover States */
.sidebar-link.active {
  background-color: var(--sidebar-active-bg) !important;
  color: var(--sidebar-active-text) !important;
}

.sidebar-link:hover:not(.active) {
  background-color: var(--sidebar-hover-bg) !important;
  color: #ffffff !important;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 1.25rem;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--sidebar-inactive-text) !important;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.logout-link:hover {
  background-color: var(--sidebar-hover-bg) !important;
  color: #ffffff !important;
}

/* Layout Wrappers */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-color);
}

.content-wrapper {
  flex-grow: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
  padding: 2rem;
  background-color: var(--bg-color);
  overflow-x: hidden; /* Prevent horizontal scroll from footer negative margins */
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out !important;
  }
  .sidebar.show {
    transform: translateX(0) !important;
  }
  .content-wrapper {
    margin-left: 0 !important;
    padding-top: 90px !important; /* spacing below mobile header navbar */
  }
}

/* Dashboard Cards Styling */
.glass-card, .dashboard-card, .auth-card, .portal-card {
  background-color: var(--card-bg) !important;
  background-image: none !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  padding: 2rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  color: var(--text-primary) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.glass-card:hover, .dashboard-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(15,23,42,.12) !important;
}

/* Primary Button Styling */
.btn-primary, .btn-magnetic, button[type="submit"] {
  background-color: var(--primary-bg) !important;
  color: var(--primary-text) !important;
  border: 1px solid var(--primary-bg) !important;
  border-radius: 12px !important; /* Buttons: 12px */
  padding: 0.8rem 1.8rem !important;
  font-family: var(--font-alt) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important;
}

.btn-primary:hover, .btn-magnetic:hover, button[type="submit"]:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
}

/* Secondary Button Styling */
.btn-secondary, .btn-outline-light, .btn-outline-secondary {
  background-color: var(--secondary-bg) !important;
  color: var(--secondary-text) !important;
  border: 1px solid var(--secondary-border) !important;
  border-radius: 12px !important; /* Buttons: 12px */
  padding: 0.8rem 1.8rem !important;
  font-family: var(--font-alt) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.btn-secondary:hover, .btn-outline-light:hover, .btn-outline-secondary:hover {
  background-color: var(--secondary-hover) !important;
  border-color: var(--secondary-border) !important;
  color: var(--secondary-text) !important;
}

/* Form Fields Styling */
input[type="text"], input[type="password"], input[type="email"], select, textarea, .form-control, .form-control-cyber {
  background-color: var(--field-bg) !important;
  border: 1px solid var(--field-border) !important;
  color: var(--text-primary) !important;
  border-radius: 11px !important; /* Inputs: 10-12px */
  padding: 0.8rem 1rem !important;
  font-family: var(--font-main) !important;
  transition: all 0.2s ease !important;
}

input:focus, select:focus, textarea:focus, .form-control:focus, .form-control-cyber:focus {
  border-color: var(--field-focus-border) !important;
  box-shadow: 0 0 0 3px var(--field-focus-shadow) !important;
  outline: none !important;
  background-color: #ffffff !important;
}

.input-group-text {
  background-color: #f1f5f9 !important;
  border: 1px solid var(--field-border) !important;
  color: var(--text-secondary) !important;
  border-radius: 11px 0 0 11px !important;
}

.input-group input {
  border-radius: 0 11px 11px 0 !important;
}

/* Alerts & Notifications */
.alert, .cyber-alert, .success-alert, .danger-alert {
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  font-weight: 500 !important;
  font-family: var(--font-main) !important;
  border: none !important;
}

.alert-success, .success-alert {
  background-color: var(--success-bg) !important;
  color: var(--success-text) !important;
}

.alert-danger, .danger-alert, .cyber-alert {
  background-color: var(--danger-bg) !important;
  color: var(--danger-text) !important;
}

.alert-info {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

.alert-warning {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}

/* Generous section margins */
section, .py-5, .mb-6 {
  margin-bottom: 28px !important;
}
.navbar-glass {
  background-color: rgba(255, 255, 255, 0.8) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.brand-logo {
  filter: none !important;
}
.brand-logo:hover {
  filter: none !important;
}
