  /* ===== UNIVERSAL IXE BERG MUSIC STYLES ===== */

  /* === 1. Root Design System (from view.html) === */
  :root {
    --bg: #000000;
    --card: #111111;
    --muted: #666666;
    --accent: #ffffff;
    --accent-2: #dddddd;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.15);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #ffd166;
    --radius: 14px;
    --radius-small: 10px;
  }

  /* === 2. Base & Body === */
  * {
    box-sizing: border-box;
    scroll-behavior: smooth;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: #e6eef6;
    user-select: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Decorative background glows (from view.html) */
  body::before,
  body::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    width: 45vmax;
    height: 45vmax;
    border-radius: 50%;
    z-index: -1;
    filter: blur(150px);
    opacity: 0.6;
  }

  /* === 3. Typography === */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--accent);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
  }

  p,
  li {
    color: #f1f1f1;
    line-height: 1.6;
  }

  a {
    color: #f1f1f1;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
  }

  a:hover {
    color: var(--accent);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }

  ul {
    list-style: none;
    padding: 0;
  }

  ul li {
    background: var(--glass-light);
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    transition: background 0.25s;
  }

  ul li:hover {
    background: var(--glass-hover);
  }

  label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--muted);
  }

  /* === 4. Layout (Header, Nav, Footer, Containers) === */
/* === 4. Layout (Header, Nav, Footer, Containers) === */

/* 1. Modify the HEADER to be the main flex container */
header {
  /* Positioning to make it the sticky bar */
  position: sticky;
  top: 0;
  z-index: 1000;
  
  /* Flexbox to align the h1 vertically */
  display: flex;
  align-items: center;
  
  /* Styling (adjusted padding for a single bar) */
  padding: 15px 20px; 
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-strong);
}
/* 2. Add this new class for the branding wrapper */
.header-branding {
  flex-shrink: 0; /* Prevents it from shrinking on small-medium screens */
  margin-right: 20px; /* Adds space between it and the nav links */
}

header h1 a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

/* 3. Adjust header p margins for the new layout */
header p {
  color: #ccc;
  margin: 4px 0 0 0; /* Adjusted from margin-top: 8px */
  font-size: 0.9em;
}

/* 4. Simplify the NAV element */
nav {
  /* This "lifts" the nav and positions it 
     relative to the <header> */
  position: absolute;
  top: 50%;            /* Aligns top edge to the middle */
  right: 20px;         /* Aligns to the right padding */
  transform: translateY(-50%); /* Shifts it up to be perfectly centered */
  
  /* Keep these to lay out the links */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  /* All original sticky/background properties are removed */
}

  nav a {
    color: var(--accent);
    font-weight: 600;
    font-size: 1em;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
  }

  nav a:hover,
  nav a.active {
    background: var(--glass-hover);
  }

  nav .auth-status {
    margin-left: auto;
    /* Pushes to the right */
    font-size: 0.9em;
    color: #ccc;
    font-weight: 500;
  }

  nav .auth-status strong {
    color: var(--accent);
  }

  footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #aaa;
    margin-top: 50px;
    border-top: 1px solid var(--border);
  }

  .powered,
  #powered-text {
    font-family: monospace;
    font-size: 12px;
    color: var(--accent);
  }

  .container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: var(--glass);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
  }

  section {
    margin-bottom: 40px;
  }

  section h2,
  section h3 {
    border-bottom: 2px solid var(--border-strong);
    padding-bottom: 6px;
  }

  /* Main App Layout (from view.html) */
  .app {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .sidebar {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    align-self: start;
  }

  .main {
    order: 1;
  }

  .main-content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .right-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .page-content {
    display: none;
  }

  .page-content.active {
    display: block;
  }

  /* === 5. Components (Cards, Buttons, Inputs, Modals) === */

  /* --- Cards (Generic) --- */
  .card,
  .info,
  .notice,
  .stat {
    background: rgba(17, 17, 17, 0.6);
    /* --card / --glass */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.25s, transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  }

  .card:hover,
  .info:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .info a.infolink {
    text-decoration: none;
    font-weight: normal;
    color: #f1f1f1;
  }

  .stat {
    padding: 12px;
    min-width: 120px;
    text-align: center;
  }

  .stat h3 {
    margin: 0;
    font-size: 18px
  }

  .stat p {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 13px
  }

  /* --- Buttons --- */
  button,
  .btn {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-small);
    background: var(--glass-hover);
    color: var(--accent);
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
    display: inline-block;
  }

  button:hover,
  .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
  }

  .btn.primary,
  button[type="submit"] {
    background: var(--accent);
    color: black;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
  }

  .btn.primary:hover,
  button[type="submit"]:hover {
    filter: brightness(0.9);
    background: var(--accent);
  }

  /* --- Inputs & Forms --- */
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    color: #e6eef6;
    box-sizing: border-box;
  }

  input:focus,
  select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  }

  /* --- Login Box (from view.html) --- */
  .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .login-box {
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 32px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    text-align: center;
  }

  .login-box .input-group {
    margin-bottom: 16px;
    text-align: left;
  }

  #login-error {
    color: var(--danger);
    margin-top: 16px;
    min-height: 20px;
    font-size: 14px;
  }

  /* --- Modal (from view.html) --- */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
  }

  .modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
  }

  .modal-content {
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
  }

  .modal-backdrop.visible .modal-content {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .modal-close {
    background: none;
    font-size: 24px;
    color: var(--muted);
  }

  .modal-body {
    padding-top: 16px;
  }

  .modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  /* --- Tabs (from view.html) --- */
  .tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 8px;
  }

  .tab {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
  }

  .tab:hover {
    background: var(--glass);
    color: white;
  }

  .tab.active {
    background: var(--accent);
    color: black;
    border-color: transparent;
  }

  /* --- Custom Select (from view.html) --- */
  .custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
  }

  .custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    cursor: pointer;
  }

  .custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
  }

  .custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
  }

  .custom-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
  }

  .custom-option:hover {
    background-color: var(--glass-hover);
  }

  .option-initials {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #333333, #555555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
  }

  /* --- Progress / Status Bars --- */
  .progress-wrap {
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    overflow: hidden;
  }

  .progress {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
  }

  .status-bar,
  .mobile-status-bar,
  .live-bar-container {
    height: 6px;
    border-radius: 5px;
    margin-bottom: 12px;
    background: var(--glass-light);
  }

  .status-bar,
  .mobile-status-bar {
    background-color: #28A745;
    animation: blink 1.5s infinite;
  }

  .live-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #00ff9d, #00c6ff);
    border-radius: 5px;
    animation: livePulse 2.2s infinite ease-in-out;
  }

  .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 1.5s infinite;
  }

  /* --- Loaders --- */
  .shimmer-line,
  .loading-bar {
    height: 12px;
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.4s infinite linear;
  }

  .loading-overlay {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  /* === 6. Utility & Helper Classes === */

  /* --- Badges & Tags --- */
  .top,
  .new,
  .pop,
  .tag,
  .role-tag {
    background: var(--glass-hover);
    color: var(--accent);
    font-size: 0.8em;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 6px;
    display: inline-block;
  }

  .role-tag {
    color: #0ff;
    background: rgba(0, 255, 255, 0.1);
  }

  /* --- Text Helpers --- */
  .muted {
    color: var(--muted);
    font-size: 13px;
  }

  .muted-small {
    color: var(--muted);
    font-size: 13px;
  }

  .tiny {
    font-size: 12px;
    color: var(--muted);
  }

  .Started-soon {
    color: var(--warning);
  }

  .overStarted {
    color: var(--danger);
  }

  /* --- Scrollbar --- */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* === 7. Keyframes === */
  @keyframes blink {
    50% {
      opacity: 0.3;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInFooter {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes pulse {
    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.3);
      opacity: 0.6;
    }
  }

  @keyframes livePulse {
    0%,
    100% {
      filter: brightness(1);
    }
    50% {
      filter: brightness(1.5);
    }
  }

  /* === 8. Responsive === */
  @media (max-width: 1200px) {
    .main-content-area {
      grid-template-columns: 1fr;
    }
    .right-col {
      margin-top: 20px;
    }
  }

  @media (max-width: 980px) {
    body {
      overflow-y: auto;
    }
    .app {
      grid-template-columns: 1fr;
    }
    .sidebar {
      order: 2;
      margin-top: 20px;
    }
    .main {
      order: 1
    }
    .header {
      flex-direction: column;
      align-items: flex-start;
    }
    .stats {
      flex-wrap: wrap;
    }
  }
@media (max-width: 768px) {
  
  header {
    /* Change back to a horizontal row layout */
    flex-direction: row;
    align-items: center;
  }

  .header-branding {
    margin-right: 20px; /* Add space between branding and nav */
    margin-bottom: 0;   /* Remove the mobile stacking margin */
  }

  /* * This is YOUR original desktop layout.
   * We restore it here, safely, for large screens.
  */
  nav {
    display: none;
  }
}
  @media (max-width: 600px) {
    .container {
      margin: 20px;
      padding: 15px;
    }
    .projects-grid {
      grid-template-columns: 1fr;
    }
    .login-box {
      padding: 24px;
      border: none;
      box-shadow: none;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }