:root {
  --black: #050608;
  --dark: #0a0c10;
  --darker: #070810;
  --card-bg: #0d1018;
  --border: rgba(255,255,255,0.07);
  --blue: #1a8cff;
  --blue-bright: #4da8ff;
  --blue-dim: #0d5fa3;
  --blue-glow: rgba(26,140,255,0.15);
  --white: #ffffff;
  --off-white: #c8d4e8;
  --muted: #7a8aa0;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-cond: 'Outfit', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: default;
  transition: background-color 0.4s ease, color 0.4s ease;

  /* Deterrent: Prevent text selection across the site */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Fix for blurry text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Deterrent: Prevent images from being dragged to the desktop/folders */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* === PAGES === */
.page { display: none; min-height: 100vh; opacity: 0; }
.page.active { 
  display: block; 
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

/* === NAV === */
nav {
  position: fixed; 
  top: 1.5rem; 
  left: 1.5rem;
  right: 1.5rem;
  max-width: 1100px;
  width: auto;
  margin: 0 auto;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 2rem;
  height: 70px;
  transition: var(--transition-smooth);
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 24, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: var(--transition-smooth);
}

/* Desktop Nav Items Wrapper */
.nav-items-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 3rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  cursor: pointer;
  user-select: none;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links li a {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none; background: none; padding: 0;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--blue-bright); }

.nav-user-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-user-details {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-user-details:hover {
  opacity: 0.8;
}
.nav-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.nav-user-icon {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.nav-user-details:hover .nav-user-icon {
  color: var(--white);
  transform: rotate(45deg);
}
.nav-package-badge {
  font-size: 0.6rem;
  color: var(--blue-bright);
  background: rgba(26,140,255,0.05);
  border: 1px solid var(--blue-glow);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-package-badge.pkg-starter {
  color: var(--muted);
  background: rgba(122, 138, 160, 0.1);
  border-color: rgba(122, 138, 160, 0.2);
}
.nav-package-badge.pkg-professional {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.2);
}
.nav-package-badge.pkg-business {
  color: #f1c40f;
  background: rgba(241, 196, 15, 0.1);
  border-color: rgba(241, 196, 15, 0.2);
}
.nav-package-badge.pkg-enterprise {
  color: #9b59b6;
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.2);
}
.nav-logout-btn {
  padding: 0.45rem 1.2rem;
  font-size: 0.7rem;
}
#navUserEmail {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-cond);
}
@media (min-width: 901px) {
  .nav-user-area {
    margin-left: 2rem; border-left: 1px solid var(--border); padding-left: 2rem;
  }
}

.nav-login-area {
  display: flex;
  align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--off-white);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-right: 0.5rem;
  z-index: 1001;
}

.theme-toggle:hover {
  color: var(--blue);
  transform: rotate(15deg) scale(1.1);
}

/* Light Mode Overrides */
body.light-mode {
  --black: #f8f9fa;
  --dark: #ffffff;
  --darker: #f1f3f5;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
  --white: #0a0c10;
  --off-white: #212529;
  --muted: #6c757d;
  --blue-glow: rgba(26,140,255,0.08);
}

body.light-mode nav::before {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-mode .hero-bg {
  filter: brightness(1.2) contrast(0.8);
  opacity: 0.2;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: var(--off-white);
  cursor: pointer;
  z-index: 1001; /* Ensure it's above the mobile menu */
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--black);
}

 .hero-bg {
   position: absolute; inset: 0;
   background:
     url('https://zipline.tmdevelopments.uk/u/ZAA5wF.png') center/cover no-repeat,
     radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,140,255,0.08) 0%, transparent 65%),
     radial-gradient(ellipse 40% 40% at 20% 70%, rgba(26,140,255,0.05) 0%, transparent 60%),
     linear-gradient(180deg, rgba(5,6,8,0.4) 0%, rgba(5,6,8,0.85) 60%, var(--black) 100%);
   opacity: 0.5;
 }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,140,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,140,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block; width: 40px; height: 1px;
  background: var(--blue);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--white);
  text-shadow: 0 0 80px rgba(26,140,255,0.2);
  margin-bottom: 0.3em;
}
.hero-title .blue { color: var(--blue); }

.hero-subtitle {
  font-family: var(--font-cond);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--off-white);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  cursor: pointer;
    transition: var(--transition-smooth);
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); }
  .btn-primary:active { transform: scale(0.96); }

.btn-outline {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  cursor: pointer;
    transition: var(--transition-smooth);
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-bright); }
  .btn-outline:active { transform: scale(0.96); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll span {
  font-family: var(--font-cond);
  font-size: 0.65rem; letter-spacing: 0.25em; color: var(--muted); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; } 50% { opacity: 1; }
}

/* === SECTION === */
section {
  padding: 6rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-full {
  padding: 6rem 4rem;
  width: 100%;
}

.label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.label::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--blue);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}
.section-title .blue { color: var(--blue); }

.section-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--off-white);
  max-width: 680px;
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 4rem;
}

/* === BRANDS STRIP === */
.brands-strip {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.brand-card {
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.brand-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.brand-card:hover { 
  background: rgba(26,140,255,0.04); 
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(26, 140, 255, 0.05);
}
.brand-card:hover::before { transform: scaleX(1); }

.brand-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(26,140,255,0.12);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.brand-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.brand-link {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.2s;
  margin-top: auto;
}
.brand-link:hover { gap: 0.8rem; }
.brand-link::after { content: '→'; }

.brand-status {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.6;
  cursor: not-allowed;
  margin-top: auto;
}

/* === ABOUT SECTION === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image-inner {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.about-image-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.about-image-accent2 {
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  width: 60px; height: 60px;
  background: var(--blue);
  opacity: 0.06;
  z-index: -1;
}

.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}
.tag {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26,140,255,0.08);
  border: 1px solid rgba(26,140,255,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tag:hover {
  background: rgba(26,140,255,0.15);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.tag .remove-tag { opacity: 0.6; transition: opacity 0.2s; font-size: 0.9rem; margin-left: 0.4rem; padding: 0.2rem; }
.tag .remove-tag:hover { opacity: 1; color: #ff4d4d; }

/* === STATS BAR === */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 4rem;
}
.stats-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--blue);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* === ABOUT CARD SECTIONS === */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  margin: 2.5rem auto;
  padding: 5rem 4rem;
  max-width: 1300px;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.about-card:hover {
  border-color: rgba(26, 140, 255, 0.3);
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 11rem 4rem 4rem;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(26,140,255,0.05) 0%, transparent 60%);
}
.page-hero-inner {
  max-width: 1300px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}
.page-hero-title .blue { color: var(--blue); }
.page-hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 500px;
}

/* === LOGIN SECTION === */
.login-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3rem;
  max-width: 450px;
  margin: 2rem auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--blue), transparent);
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.login-form input, .login-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.login-form textarea { resize: vertical; min-height: 120px; }

.login-form input:focus, .login-form textarea:focus {
  border-color: var(--blue);
  background: rgba(26, 140, 255, 0.04);
}

.login-form input::placeholder, .login-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* === UPLOAD / CDN DASHBOARD === */
.upload-container {
  max-width: 1000px;
  margin: 0 auto;
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--blue);
  background: rgba(26, 140, 255, 0.04);
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.upload-dropzone h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.upload-dropzone p {
  color: var(--muted);
  font-size: 0.9rem;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.asset-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 140, 255, 0.3);
}

.asset-preview {
  aspect-ratio: 16/9;
  height: auto;
  background: var(--darker);
  background-image: radial-gradient(circle at center, rgba(26,140,255,0.08) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.asset-format {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.asset-timecode {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.asset-info {
  padding: 1.2rem;
  flex: 1;
}

.asset-name {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.asset-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.btn-icon {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: var(--blue);
  background: rgba(26, 140, 255, 0.05);
}

.btn-icon.delete:hover {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.05);
}

.btn-icon:not(:last-child) {
  border-right: 1px solid var(--border);
}

.form-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--blue); }
.form-select option { background: var(--dark); color: var(--white); }

.staging-list { display: flex; flex-direction: column; gap: 1rem; }
.staging-item {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  padding: 1rem; border-radius: 12px; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.staging-item input {
  flex: 1; min-width: 150px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: var(--white);
  padding: 0.5rem 1rem; border-radius: 8px; font-family: var(--font-body); outline: none;
}
.staging-item input:focus { border-color: var(--blue); }

.asset-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.asset-tag {
  background: rgba(26,140,255,0.1); border: 1px solid rgba(26,140,255,0.2);
  color: var(--blue-bright); font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.asset-tag .remove-tag { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.asset-tag .remove-tag:hover { opacity: 1; color: #ff4d4d; }

.add-tag-btn {
  background: transparent; border: 1px dashed var(--border); color: var(--muted);
  font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.add-tag-btn:hover { border-color: var(--blue); color: var(--blue); }

/* === LOG TAGS === */
.log-tag {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
}
.log-tag-success { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.log-tag-error { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.log-tag-admin { background: rgba(155, 89, 182, 0.15); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.3); }
.log-tag-info { background: rgba(26, 140, 255, 0.15); color: var(--blue-bright); border: 1px solid rgba(26, 140, 255, 0.3); }
.log-tag-warning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.3); }

/* === MANAGEMENT LAYOUT (Sub-categories) === */
.manage-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.manage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manage-nav-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-family: var(--font-cond); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  padding: 1rem 1.2rem; text-align: left; border-radius: 12px;
  cursor: pointer; transition: var(--transition-smooth);
  display: flex; align-items: center; gap: 0.8rem;
}
.manage-nav-btn i { font-size: 1.1rem; width: 20px; text-align: center; }
.manage-nav-btn:hover { background: rgba(255, 255, 255, 0.03); color: var(--off-white); }
.manage-nav-btn.active { background: rgba(26, 140, 255, 0.1); border-color: rgba(26, 140, 255, 0.2); color: var(--blue-bright); }

.manage-content {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 2.5rem; min-height: 500px;
}

.tab-pane { display: none; animation: pageFadeIn 0.3s ease-out forwards; }
.tab-pane.active { display: block; }

/* === USER MANAGEMENT === */
.user-list { display: flex; flex-direction: column; gap: 1rem; }
.user-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: var(--transition-smooth);
}
.user-item:hover { border-color: rgba(26,140,255,0.3); background: rgba(26,140,255,0.03); }
.user-info { display: flex; flex-direction: column; gap: 0.4rem; }
.user-email { font-family: var(--font-cond); font-size: 1.1rem; color: var(--white); font-weight: 600; }
.user-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--muted); }
.user-status {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.status-active { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.status-suspended { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.user-actions { display: flex; gap: 0.5rem; }

/* === CUSTOM MODALS === */
.custom-modal-overlay {
  position: fixed; inset: 0; z-index: 11000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  padding: 1.5rem;
}
.custom-modal-overlay.active { opacity: 1; visibility: visible; }

.custom-modal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 450px;
  transform: translateY(20px); transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); position: relative;
}
.custom-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--blue), transparent);
}
.custom-modal-overlay.active .custom-modal { transform: none; }

.custom-modal-title { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-bottom: 0.5rem; }
.custom-modal-message { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.custom-modal-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.custom-modal-field { display: flex; flex-direction: column; gap: 0.5rem; }
.custom-modal-field label { font-family: var(--font-cond); font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; }
.custom-modal-field input, .custom-modal-field select {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  padding: 0.85rem 1rem; border-radius: 12px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.custom-modal-field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.custom-modal-field select option { background: var(--dark); color: var(--white); }
.custom-modal-field input:focus, .custom-modal-field select:focus { border-color: var(--blue); background: rgba(26, 140, 255, 0.04); }

.custom-modal-actions { display: flex; justify-content: flex-end; gap: 1rem; }
.btn-danger { background: rgba(231, 76, 60, 0.1) !important; color: #e74c3c !important; }
.btn-danger:hover { background: #e74c3c !important; color: white !important; }

/* === CHECKBOXES === */
.permission-checkbox {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; color: var(--off-white); font-size: 0.85rem;
  user-select: none;
}
.permission-checkbox input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 4px; width: 18px; height: 18px; cursor: pointer;
  position: relative; transition: all 0.2s;
}
.checkbox-group-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.permission-checkbox input[type="checkbox"]:checked {
  background: var(--blue); border-color: var(--blue);
}
.permission-checkbox input[type="checkbox"]:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: white; font-size: 0.6rem; font-weight: bold;
}

/* === CHAT & TICKETS === */
.chat-container { display: flex; flex-direction: column; gap: 1rem; height: 350px; overflow-y: auto; padding: 1.5rem; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--border); }
.chat-container::-webkit-scrollbar { width: 6px; }
.chat-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-msg { padding: 0.8rem 1.2rem; border-radius: 12px; max-width: 85%; line-height: 1.5; font-size: 0.85rem; word-wrap: break-word; }
.chat-msg.client { background: rgba(255,255,255,0.05); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.staff { background: rgba(26,140,255,0.15); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-sender { font-family: var(--font-cond); font-size: 0.7rem; margin-bottom: 0.4rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: space-between; gap: 1rem; }
.ticket-meta-bar { display: flex; gap: 1.5rem; align-items: center; background: rgba(255,255,255,0.02); padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }

/* === ROLE PREVIEW BANNER === */
.role-preview-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #9b59b6; color: white; text-align: center; padding: 0.8rem;
  font-family: var(--font-cond); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; z-index: 100000;
  display: flex; justify-content: center; align-items: center; gap: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}
.role-preview-banner button {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.3);
  color: white; padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.75rem;
  cursor: pointer; font-family: var(--font-cond); transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.1em;
}
.role-preview-banner button:hover { background: rgba(0,0,0,0.5); }

/* === UTILIZATION BARS === */
.utilization-bar-bg {
  width: 100%; height: 6px; background: rgba(255, 255, 255, 0.08);
  border-radius: 3px; overflow: hidden; margin-top: 0.6rem;
}
.utilization-bar-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.5s ease; }
.utilization-bar-fill.warning { background: #f1c40f; }
.utilization-bar-fill.danger { background: #e74c3c; }

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed; bottom: 2rem; right: 2rem;
  display: flex; flex-direction: column; gap: 1rem; z-index: 12000;
}
.toast {
  background: var(--card-bg); border: 1px solid var(--border); color: var(--white);
  padding: 1rem 1.5rem; border-radius: 12px; font-family: var(--font-cond); font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0; transform: translateX(20px);
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast i { font-size: 1.1rem; }
.toast.hide { animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes toastIn { to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

@media (max-width: 600px) { .toast-container { left: 1rem; right: 1rem; bottom: 1rem; } .toast { justify-content: center; text-align: center; } }

/* === FOOTER === */
footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--blue); }
.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
  white-space: nowrap;
}
.footer-social-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.footer-social:hover { border-color: var(--blue); color: var(--blue); }

.footer-col-title {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.footer-links { list-style: none; display: flex; flex-direction: row; gap: 1rem; flex-wrap: wrap; }
.footer-links li {
  padding: 0;
  border-bottom: none;
}
.footer-links li a {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-links li a:hover { color: var(--off-white); }

.footer-bottom {
  max-width: 1300px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--blue); }

/* === LOADING SCREEN === */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity 0.8s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }

.loader-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  color: var(--white);
  animation: pulse 1.5s ease-in-out infinite;
}
.loader-title span { color: var(--blue); }

.loader-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.08);
}
.loader-bar {
  height: 100%;
  background: var(--blue);
  animation: loadBar 1.2s ease forwards;
}
@keyframes loadBar {
  0% { width: 0; } 100% { width: 100%; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; } 50% { opacity: 1; }
}

.loader-text {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in-2 { animation-delay: 0.15s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.45s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  nav { 
    width: auto;
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem; 
    padding: 0 1.2rem;
    height: 60px;
  }
  .nav-items-wrapper { margin-left: 0; }

  /* The nav-links and nav-cta are now children of nav-items-wrapper,
     which is hidden by default on mobile. */
  .menu-toggle { display: flex; } /* Show hamburger menu */

  .nav-items-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000; /* Solid black background for full screen */
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center items vertically for easier selection */
    padding: 0;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000; /* Match or exceed nav z-index */
    overflow-y: auto; /* Allow scrolling if many items */
    display: flex; /* Always flex on mobile, but hidden by transform/opacity/visibility */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Hidden by default */
  }

  .nav-items-wrapper.active {
    transform: translateX(0); /* Slide in */
    visibility: visible; /* Show when active */
    opacity: 1; /* Show when active */
  }

  .nav-items-wrapper .nav-links {
    display: flex; /* Ensure it's flex within the wrapper */
    flex-direction: column;
    gap: 1.2rem; /* Reduced gap to ensure the full list fits on one screen */
    width: 100%;
    text-align: center;
    margin-bottom: 0; 
    padding-top: 0; /* Space from top of mobile menu */
  }
  .nav-items-wrapper .nav-links li a {
    padding: 0.8rem 0;
    width: 100%;
    font-size: 1.5rem; /* Reduced size to prevent vertical overflow on smaller devices */
    letter-spacing: 0.2em;
  }
  .nav-items-wrapper .nav-links li {
    width: 100%;
    display: block; /* Ensure each list item takes full width */
    margin-bottom: 1.5rem; /* Space between links */
  }
  
  .nav-user-area {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .nav-user-details {
    justify-content: center;
    margin-bottom: 0.8rem;
  }
  .nav-user-text { align-items: center; }

  .nav-login-area {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
  }

  section, .section-full, .stats-bar, .divider, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .brands-grid { grid-template-columns: 1fr; }
  .brand-card { border-right: none; border-bottom: 1px solid var(--border); }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  
  /* Mobile tweaks for rounded cards */
  .manage-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .manage-content { padding: 1.5rem; min-height: auto; }
  .about-card {
    margin: 1.5rem 1rem;
    padding: 3.5rem 1.5rem;
    border-radius: 32px;
  }
}

/* === COOKIE BANNER REDESIGN === */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: auto;
  min-width: 500px;
  max-width: calc(100% - 2rem);
  background: rgba(13, 16, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 10000;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.cookie-banner.active { transform: translateX(-50%) translateY(0); }

.cookie-text {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  color: var(--off-white);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner .btn-primary {
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.cookie-banner .btn-outline {
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  border-color: rgba(255,255,255,0.1);
}

body.light-mode .cookie-banner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 1.5rem;
    border-radius: 24px;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    min-width: 0;
    width: calc(100% - 2rem);
    text-align: center;
  }
  .cookie-text { white-space: normal; line-height: 1.4; font-size: 0.8rem; }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .cookie-actions button { width: 100%; }
}