
    :root {
      --bg-main: #F4F7F6; /* Main dashboard background */
      --surface: #FFFFFF; /* Cards and elements background */
      --border: #E2E8F0;
      --border-h: #20968E;
      
      /* Theme Colors */
      --primary: #116ffc;
      --primary-light: #2180f4;
      --primary-dark: #3896f4;
      --grad: linear-gradient(135deg, #20968E, #45B3AB);
      
      --sidebar-bg: #001524; /* Teal from image */
      --sidebar-text: #FFFFFF;
      --sidebar-muted: rgba(255,255,255,0.7);

      --neon: #6366f1;
      --neon2: #8b5cf6;
      --green: #10b981;
      --red: #ef4444;
      --amber: #f59e0b;
      
      /* Text Colors flipped for Light Mode */
      --text: #1E293B; 
      --text-secondary: #475569;
      --muted: #64748b;
      --muted2: #94a3b8;
      
      --nav-h: 72px;
      --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --font-condensed: 'Roboto Condensed', sans-serif;
    }

    * { margin:0; padding:0; box-sizing:border-box; }
    html { scroll-behavior:smooth; }

    body {
      font-family: var(--font-primary);
      background: var(--bg-main);
      color: var(--text);
      min-height: 100vh;
      font-weight: 400;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow: hidden;
    }

    h1, h2, h3, h4, h5, h6,
    .section-title, .page-title, .brand-name,
    .pc-title, .stat-value, .star-num {
      font-family: var(--font-condensed);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    ::-webkit-scrollbar { display: none; }
    ::-webkit-scrollbar-track { display: none; }
    ::-webkit-scrollbar-thumb { display: none; }
    ::-webkit-scrollbar-thumb:hover { display: none; }

    .glow-orb { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
    .glow-orb--1 { top: -10%; left: -8%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(32,150,142,0.08) 0%, transparent 70%); animation: float 22s ease-in-out infinite alternate; }
    .glow-orb--2 { bottom: -18%; right: -8%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(32,150,142,0.05) 0%, transparent 70%); animation: float-slow 28s ease-in-out infinite alternate-reverse; }
    .glow-orb--3 { top: 40%; left: 50%; width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(32,150,142,0.03) 0%, transparent 70%); animation: float 18s ease-in-out infinite alternate; }

    @keyframes float { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(4%,6%) scale(1.05); } }
    @keyframes float-slow { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-4%,-6%) scale(1.05); } }

    .grid-overlay {
      position: fixed; inset: 0; z-index: -1; pointer-events: none;
      background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
    }

    /* Common Card Styles for Light Mode */
    .glass-card, .stat-box, .chart-container, .project-card, .profile-card, 
    .profile-form-box, .event-card, .exam-card, .req-card, .app-row, .lp-step, 
    .budget-filter-section, .sub-info-strip {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.02);
      transition: all 0.3s ease;
    }

    .shell { display: flex; height: 100vh; overflow: hidden; position: relative; z-index: 1; }

    .sidebar {
      width: 280px;
      flex-shrink: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--sidebar-bg);
      border-right: none;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 50;
      transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    }
    
    .sidebar-brand {
      height: var(--nav-h);
      display: flex;
      align-items: center;
      padding: 0 24px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
        .sidebar-mobile-close {
          display: none;
          width: 40px;
          height: 40px;
          align-items: center;
          justify-content: center;
          border: 1px solid rgba(255,255,255,0.16);
          border-radius: 10px;
          background: rgba(255,255,255,0.08);
          color: #e5efff;
          font-size: 18px;
          cursor: pointer;
        }
    .sidebar-brand img { height: 56px; width: 180px; max-width:100%; object-fit: cover; object-position:center; margin-right: 12px; }

    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      padding: 18px 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .nav-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .sidebar-nav .nav-section {
      font-size: 11px;
      line-height: 1.1;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: rgba(160, 176, 197, 0.92);
      padding: 10px 10px 8px;
      margin-top: 2px;
      font-weight: 700;
    }
    
    .nav-btn {
      display: flex; align-items: center; gap: 12px;
      width: 100%;
      padding: 11px 12px;
      border-radius: 12px;
      color: #dce9ff;
      cursor: pointer; transition: all 0.2s ease; font-weight: 500; border: 1px solid transparent; background: transparent; text-align: left;
      font-family: var(--font-primary); font-size: 14px; position: relative;
    }
    .nav-btn i {
      width: 18px;
      text-align: center;
      font-size: 17px;
      color: rgba(220,233,255,0.7);
      transition: color 0.2s ease;
    }
    .nav-btn:hover {
      background: rgba(255,255,255,0.04);
      color: #ffffff;
      border-color: rgba(97, 156, 255, 0.2);
    }
    .nav-btn:hover i { color: #ffffff; }
    
    .nav-btn.active {
      background: rgba(97, 156, 255, 0.14);
      color: #edf5ff;
      border-color: rgba(97, 156, 255, 0.28);
      box-shadow: inset 3px 0 0 rgba(97, 156, 255, 1);
      font-weight: 700;
    }
    .nav-btn.active i { color: #7bb2ff; }

    .sidebar-streak-card {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 8px 12px 18px;
      padding: 12px 12px;
      border: 1px solid rgba(148, 163, 184, 0.15);
      background: rgba(17, 31, 50, 0.8);
      border-radius: 12px;
      color: var(--sidebar-text);
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
      text-align: left;
    }
    .sidebar-streak-card:hover {
      background: rgba(21, 36, 58, 0.92);
      border-color: rgba(97, 156, 255, 0.28);
      transform: translateY(-1px);
    }
    .sidebar-streak-card .streak-icon {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(247,184,79,0.12);
      color: #f5b94a;
      flex-shrink: 0;
    }
    .sidebar-streak-card .streak-icon svg,
    .sidebar-streak-card .streak-arrow svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
      display: block;
    }
    .streak-copy {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .streak-copy strong {
      font-size: 13px;
      line-height: 1.2;
      color: #f3f7ff;
      font-weight: 700;
    }
    .streak-copy small {
      color: #a5b9d4;
      font-size: 11px;
      line-height: 1.3;
      font-weight: 500;
    }
    .streak-arrow {
      color: rgba(220,233,255,0.75);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .nav-btn .badge { margin-left: auto; font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.2); color: #fff; padding: 2px 8px; border-radius: 12px; }
    .nav-btn.active .badge { background: var(--primary-light); color: #fff; }
    .nav-btn .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; animation: pulseSoft 2s infinite; }

    .sidebar-user { padding: 20px; }
    .sidebar-user .user-card {
      display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
      background: rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; cursor: pointer;
    }
    .sidebar-user .user-card:hover { background: rgba(0,0,0,0.2); }
    .sidebar-user .user-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.4); flex-shrink: 0; }
    .sidebar-user .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .sidebar-user .user-info { flex: 1; min-width: 0; }
    .sidebar-user .user-info .name { font-weight: 700; font-size: 14px; color: #fff; }
    .sidebar-user .user-info .role { font-size: 12px; color: rgba(255,255,255,0.7); }

    .main-wrap { flex: 1; margin-left: 280px; display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg-main); }

    .main-header {
      height: var(--nav-h); padding: 0 32px; display: flex; align-items: center; justify-content: space-between;
      background: rgba(244,247,246,0.9); backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border); flex-shrink: 0; position: relative; /* or sticky/fixed if it stays at the top */
  z-index: 1000; /* Must be higher than your cards */
    }
    .header-actions { display: flex; align-items: center; gap: 12px; }
    
    .avail-pill {
      display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 40px;
      font-size: 13px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
    }
    .avail-pill.on { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.1); color: var(--green); }
    .avail-pill.off { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); color: var(--red); }
    .avail-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
    .avail-pill.on .dot { background: var(--green); }
    .avail-pill.off .dot { background: var(--red); }

    .hamburger-btn {
      display: none; width: 40px; height: 40px; border-radius: 12px;
      background: rgba(32,150,142,0.1); border: 1px solid rgba(32,150,142,0.2);
      color: var(--primary); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; transition: all 0.2s;
    }
    .hamburger-btn:hover { background: rgba(32,150,142,0.2); }

    .avatar-wrapper { position: relative; z-index: 1000; }
    .avatar-btn {
      width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
      border: 2px solid var(--primary); cursor: pointer; transition: all 0.2s;
    }
    .avatar-btn:hover { border-color: var(--primary-light); box-shadow: 0 0 10px rgba(32,150,142,0.2); }
    .avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

    .pc-dropdown-menu {
      position: absolute; top: calc(100% + 12px); right: 0; width: 240px;
      background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px; padding: 8px; display: none; z-index: 9999; 
      box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    .pc-dropdown-menu.visible { display: block; }
    .pc-dropdown-header { padding: 8px 14px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); font-size: 13px; }
    .pc-dropdown-item {
      display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
      font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
    }
    .pc-dropdown-item i { width: 20px; color: var(--primary); }
    .pc-dropdown-item:hover { background: rgba(32,150,142,0.08); color: var(--primary-dark); }
    .logout-red:hover { background: rgba(239,68,68,0.1); color: var(--red); }
    .logout-red:hover i { color: var(--red); }

    .scroll-content { flex: 1; overflow-y: auto; padding: 28px 32px; padding-bottom: 40px; }
    .page { display: none; }
    .page.active { display: block; animation: slideUp 0.35s ease; }
    @keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

    .page-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
    .page-title i { color: var(--primary); margin-right: 10px; }
    .page-sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

    .community-feed-shell {
      display: grid;
      grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.8fr);
      gap: 28px;
      align-items: start;
      padding: 8px 4px 8px;
      border-radius: 28px;
      background: linear-gradient(180deg, rgba(8, 18, 34, 0.98) 0%, rgba(10, 21, 38, 0.96) 100%);
      box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08), 0 40px 80px rgba(3, 10, 20, 0.25);
      border: 1px solid rgba(96, 120, 168, 0.18);
      overflow: hidden;
    }

    .feed-main-col,
    .feed-sidebar {
      min-width: 0;
    }

    .community-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 18px 18px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }
    .community-title-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }
    .community-title-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(98, 104, 255, 0.18), rgba(67, 194, 255, 0.08));
      box-shadow: inset 0 0 0 1px rgba(132, 175, 255, 0.18);
      color: #eef3ff;
      font-size: 20px;
    }
    .community-heading {
      margin: 0;
      font-size: clamp(2rem, 2.5vw, 2.7rem);
      line-height: 1.1;
      font-weight: 800;
      letter-spacing: -0.04em;
      color: #eef4ff;
    }
    .community-subtitle {
      margin: 6px 0 0;
      color: rgba(202, 216, 238, 0.82);
      font-size: 15px;
      line-height: 1.5;
    }
    .community-badge {
      flex-shrink: 0;
      width: 86px;
      height: 82px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: linear-gradient(180deg, rgba(142, 143, 255, 0.28), rgba(66, 72, 95, 0.14));
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #f4f8ff;
      font-size: 2.2rem;
      font-weight: 800;
      box-shadow: inset 0 0 32px rgba(111, 86, 255, 0.12);
    }

    .feed-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 20px 18px 18px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.12);
      flex-wrap: wrap;
    }
    .feed-filter-pills {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .feed-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(16, 27, 44, 0.9);
      color: rgba(223, 232, 250, 0.8);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    }
    .feed-pill i {
      font-size: 12px;
      opacity: 0.9;
    }
    .feed-pill.active {
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.26), rgba(133, 92, 255, 0.18));
      border-color: rgba(122, 145, 255, 0.4);
      color: #eff5ff;
      box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1), 0 10px 24px rgba(85, 98, 240, 0.14);
    }
    .feed-admin-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }
    .feed-save-btn,
    .feed-create-btn {
      min-height: 42px;
      border: 1px solid rgba(156, 163, 175, 0.18);
      border-radius: 999px;
      background: rgba(11, 20, 34, 0.9);
      color: #edf4ff;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      padding: 0 16px;
      transition: all 0.2s ease;
    }
    .feed-save-btn:hover,
    .feed-create-btn:hover,
    .feed-pill:hover {
      transform: translateY(-1px);
      border-color: rgba(129, 164, 255, 0.42);
    }
    .feed-create-btn {
      background: linear-gradient(135deg, #4f7cff, #9c6bff);
      border-color: rgba(140, 160, 255, 0.85);
      box-shadow: 0 12px 30px rgba(89, 112, 255, 0.28);
    }

    .post-composer {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 18px 14px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }
    .composer-avatar {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(135, 161, 255, 0.35);
      flex-shrink: 0;
    }
    .composer-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .composer-box {
      flex: 1;
      min-width: 0;
    }
    .composer-box input {
      width: 100%;
      border: 1px solid rgba(148, 163, 184, 0.12);
      background: rgba(14, 25, 41, 0.9);
      color: #ecf3ff;
      min-height: 62px;
      border-radius: 18px;
      padding: 18px 20px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .composer-box input::placeholder {
      color: rgba(182, 196, 219, 0.78);
    }
    .composer-box input:focus {
      border-color: rgba(108, 141, 255, 0.7);
      box-shadow: 0 0 0 3px rgba(82, 107, 255, 0.15);
    }

    .composer-tools {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 18px 18px;
      flex-wrap: wrap;
    }
    .tool-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.16);
      background: rgba(10, 18, 30, 0.7);
      color: rgba(221, 231, 250, 0.9);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .tool-btn i { font-size: 12px; }
    .post-publish-btn {
      margin-left: auto;
      min-width: 118px;
      min-height: 42px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #7a6cff, #7b8dff);
      color: white;
      font-weight: 800;
      letter-spacing: 0.02em;
      cursor: pointer;
      box-shadow: 0 14px 32px rgba(113, 114, 255, 0.24);
    }

    .community-post {
      margin: 0 18px 20px;
      border: 1px solid rgba(148, 163, 184, 0.12);
      background: rgba(10, 22, 37, 0.8);
      border-radius: 22px;
      padding: 18px 18px 12px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    }
    .featured-post {
      background: rgba(10, 22, 37, 0.78);
    }
    .post-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .compact-header {
      margin-bottom: 10px;
    }
    .post-author {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .post-author img {
      width: 48px;
      height: 48px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid rgba(141, 162, 255, 0.24);
    }
    .post-author-name {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #eef6ff;
      font-size: 15px;
      font-weight: 800;
    }
    .post-meta {
      color: rgba(181, 196, 222, 0.76);
      font-size: 12px;
      margin-top: 2px;
    }
    .verified-mark {
      color: #66d9ff;
      font-size: 13px;
    }
    .mini-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(96, 214, 164, 0.26);
      background: rgba(40, 164, 118, 0.12);
      color: #7ae6bf;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .mini-tag.gold {
      border-color: rgba(245, 184, 90, 0.32);
      background: rgba(209, 094, 00, 0.08);
      color: #f5be68;
    }

    .post-title {
      margin: 0 0 8px;
      font-size: clamp(1.5rem, 2vw, 2.1rem);
      line-height: 1.25;
      letter-spacing: -0.035em;
      color: #f5f8ff;
      font-weight: 800;
    }
    .sparkle {
      color: #ffdc84;
    }
    .post-copy {
      margin: 0;
      color: rgba(214, 227, 248, 0.8);
      font-size: 15px;
      line-height: 1.75;
      max-width: 920px;
    }

    .project-card-demo {
      margin-top: 18px;
      border: 1px solid rgba(145, 168, 214, 0.2);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(31, 22, 62, 0.95), rgba(24, 33, 68, 0.94));
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(186, 168, 255, 0.06);
    }
    .project-demo-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid rgba(159, 166, 192, 0.18);
    }
    .project-demo-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #edf1ff;
      font-weight: 700;
    }
    .project-demo-icon {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      font-size: 12px;
      background: rgba(133, 162, 255, 0.18);
      color: #9fc4ff;
    }
    .project-demo-close {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      color: rgba(255,255,255,0.75);
      cursor: pointer;
    }
    .project-demo-body {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 18px;
      padding: 18px;
      min-height: 170px;
      align-items: stretch;
    }
    .project-demo-panel {
      position: relative;
      padding: 18px 16px 16px;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(70, 38, 124, 0.62), rgba(31, 45, 82, 0.4));
      border: 1px solid rgba(181, 162, 255, 0.16);
      display: flex;
      align-items: flex-end;
    }
    .project-demo-info {
      width: 100%;
    }
    .mini-label {
      display: inline-block;
      color: rgba(214, 230, 255, 0.8);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .project-demo-info h3 {
      margin: 0 0 12px;
      color: #ffffff;
      font-size: clamp(1.6rem, 2vw, 2.1rem);
      font-weight: 800;
      letter-spacing: -0.03em;
    }
    .project-demo-links {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.8);
      font-size: 12px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 999px;
      padding: 7px 10px;
    }
    .project-demo-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      align-content: center;
    }
    .project-demo-stats > div {
      text-align: center;
      background: rgba(26, 38, 69, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.1);
      border-radius: 16px;
      padding: 18px 12px 14px;
    }
    .project-demo-stats .value {
      font-size: clamp(1.5rem, 2vw, 2.4rem);
      font-weight: 900;
      color: #f5f8ff;
      line-height: 1;
      margin-bottom: 8px;
    }
    .project-demo-stats .label {
      color: rgba(213, 226, 247, 0.75);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.07em;
    }
    .project-demo-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px 16px;
      background: rgba(8, 16, 28, 0.4);
    }
    .tag-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .tag-row span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.13);
      color: rgba(225, 234, 252, 0.8);
      background: rgba(255,255,255,0.02);
      font-size: 11px;
      font-weight: 600;
    }
    .connect-inline-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 0 14px;
      border: 1px solid rgba(140, 161, 255, 0.25);
      border-radius: 999px;
      background: rgba(113, 118, 255, 0.12);
      color: #eff5ff;
      font-weight: 700;
      cursor: pointer;
    }

    .post-footer {
      padding-top: 14px;
      border-top: 1px solid rgba(148, 163, 184, 0.12);
      margin-top: 16px;
    }
    .post-reactions {
      display: flex;
      align-items: center;
      gap: 18px;
      color: rgba(218, 230, 249, 0.78);
      font-size: 13px;
      font-weight: 600;
      flex-wrap: wrap;
    }
    .post-reactions span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .post-reactions .fa-heart { color: #ff6b87; }
    .post-reactions .fa-comment { color: #7ac7ff; }
    .post-reactions .fa-share { color: #7fc7ff; }
    .post-reactions .fa-bookmark { color: #f6d27a; }

    .simple-post-copy {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-top: 6px;
      color: #f0f2ff;
      font-size: 1.05rem;
      font-weight: 600;
    }
    .callout-dot {
      width: 26px;
      height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: #ff6b7f;
      background: rgba(255, 108, 122, 0.08);
      border: 1px solid rgba(255, 108, 122, 0.18);
      font-size: 11px;
    }

    .feed-sidebar {
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding: 10px 0 0;
    }
    .side-panel {
      background: rgba(12, 22, 39, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.12);
      border-radius: 20px;
      padding: 18px 18px 16px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    }
    .side-panel h3 {
      margin: 0 0 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #ecf4ff;
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .side-panel h3 i { color: #8ab6ff; }
    .pulse-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .pulse-item {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 68px;
      padding: 12px 10px;
      border-radius: 14px;
      border: 1px solid rgba(141, 165, 202, 0.12);
      background: rgba(18, 31, 49, 0.7);
    }
    .pulse-icon {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      color: #9ec4ff;
      background: rgba(81, 112, 255, 0.12);
      flex-shrink: 0;
    }
    .pulse-item strong {
      display: block;
      font-size: 1.1rem;
      color: #f3f8ff;
      line-height: 1.2;
    }
    .pulse-item small {
      display: block;
      color: rgba(195, 209, 233, 0.7);
      font-size: 11px;
      margin-top: 2px;
      line-height: 1.3;
    }

    .trending-panel h3 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .trending-panel h3 a {
      color: rgba(184, 204, 255, 0.8);
      font-size: 12px;
      text-decoration: none;
      font-weight: 600;
    }
    .trending-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .trending-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      color: #edf4ff;
      font-size: 13px;
    }
    .tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(114, 121, 255, 0.12);
      color: #dfeaff;
      border: 1px solid rgba(170, 184, 255, 0.14);
      font-weight: 700;
    }
    .tag-hot {
      background: rgba(255, 101, 136, 0.12);
      border-color: rgba(255, 107, 140, 0.18);
      color: #ffb3c2;
    }
    .trending-row strong {
      font-size: 12px;
      color: #e9f4ff;
    }
    .trending-row small {
      color: rgba(197, 214, 236, 0.72);
      font-size: 11px;
    }

    .people-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .person-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .person-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .person-meta img {
      width: 42px;
      height: 42px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid rgba(146, 169, 255, 0.25);
    }
    .person-meta strong {
      display: block;
      color: #edf4ff;
      font-size: 14px;
      line-height: 1.2;
    }
    .person-meta small {
      display: block;
      color: rgba(188, 205, 232, 0.75);
      font-size: 11px;
      line-height: 1.3;
      margin-top: 2px;
    }
    .person-item button {
      min-height: 36px;
      border: 1px solid rgba(156, 163, 175, 0.18);
      border-radius: 999px;
      background: rgba(16, 26, 40, 0.9);
      color: #edf4ff;
      padding: 0 14px;
      font-weight: 700;
      cursor: pointer;
      flex-shrink: 0;
    }
    .view-all-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 18px;
      color: #b7cbff;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
    }

    @media (max-width: 1120px) {
      .community-feed-shell {
        grid-template-columns: 1fr;
      }
      .feed-sidebar {
        padding-top: 0;
      }
    }

    @media (max-width: 680px) {
      .community-header {
        align-items: flex-start;
      }
      .community-badge {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
      }
      .community-title-wrap {
        gap: 12px;
      }
      .community-heading {
        font-size: 2rem;
      }
      .feed-filter-pills,
      .feed-admin-actions,
      .composer-tools {
        gap: 8px;
      }
      .feed-pill,
      .tool-btn,
      .feed-save-btn,
      .feed-create-btn {
        font-size: 12px;
      }
      .project-demo-body {
        grid-template-columns: 1fr;
      }
      .project-demo-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .pulse-grid {
        grid-template-columns: 1fr;
      }
    }

/* ===== Components ===== */

/* Stats Row – cleaner */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.3s;
}
.stat-box:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
  color: var(--text);
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Chart – Bar Chart */
.chart-container {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
}
.chart-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 12px;
  justify-content: space-around;
}
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.chart-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 6px 6px 0 0;
  background: var(--grad);
  transition: height 0.5s;
  min-height: 4px;
}
.chart-bar-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Project Card – like booking card */
.project-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.pc-cat {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(93,36,214,0.2);
  color: var(--primary-light);
  border: 1px solid rgba(93,36,214,0.3);
}
.pc-budget {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.pc-title {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pc-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.pc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.skill-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.pc-host {
  font-size: 12px;
  color: var(--muted2);
}
.pc-host strong { color: var(--text-secondary); }

/* Unlock overlay */
.unlock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,18,0.6);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 12px;
}
.unlock-icon { font-size: 40px; color: var(--amber); }
.unlock-msg { font-size: 13px; color: var(--muted); }
.btn-unlock {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-unlock:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

/* Buttons */
.btn-primary {
  padding: 12px 24px;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 20px rgba(93,36,214,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(93,36,214,0.4);
}
.btn-outline {
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-outline:hover {
  border-color: var(--border-h);
  background: rgba(93,36,214,0.08);
  color: var(--text);
}
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-apply {
  padding: 8px 20px;
  background: rgba(93,36,214,0.15);
  border: 1px solid rgba(93,36,214,0.3);
  color: var(--primary-light);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-apply:hover {
  background: rgba(93,36,214,0.25);
  color: #fff;
}
.btn-applied {
  padding: 8px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
  border-radius: 12px;
  cursor: default;
  font-weight: 500;
}

/* Ad Strip */
.ad-strip {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(93,36,214,0.2);
  margin-bottom: 28px;
  height: 100px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
}
.ad-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.ad-slide.visible { opacity: 1; }
.ad-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ad-content p { font-size: 12px; color: var(--muted); }
.ad-cta {
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ad-cta-blue { background: var(--grad); color: #fff; }
.ad-cta-amber { background: linear-gradient(135deg, var(--amber), #d97706); color: #fff; }
.ad-cta-purple { background: linear-gradient(135deg, #7B4DE8, #5D24D6); color: #fff; }
.ad-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s;
}
.ad-dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* Premium Badge */
.premium-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: #fbbf24;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: premGlow 2s ease-in-out infinite alternate;
}
@keyframes premGlow {
  from { box-shadow: 0 0 10px rgba(245,158,11,0.15); }
  to { box-shadow: 0 0 30px rgba(245,158,11,0.3); }
}

/* Budget Filter */
.budget-filter-section {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.budget-filter-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.budget-slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.budget-info-box {
  background: rgba(93,36,214,0.08);
  border: 1px solid rgba(93,36,214,0.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.budget-info-icon { font-size: 28px; color: var(--amber); }
.budget-info-content { flex: 1; }
.budget-info-content h4 { font-weight: 700; margin-bottom: 4px; }
.budget-info-content p { font-size: 13px; color: var(--muted); }
.budget-badge-free {
  background: var(--green);
  color: #fff;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
}
.budget-badge-premium {
  background: var(--amber);
  color: #fff;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
}
.free-projects-count, .premium-projects-count {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}
.free-projects-count {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
}
.premium-projects-count {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--amber);
}

/* Subscription Info Strip */
.sub-info-strip {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sub-info-strip p { font-size: 13px; color: var(--muted); flex: 1; }
#browseSubStrip {
  flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px;
}
#browseSubStrip .browse-sub-crown {
  display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(245, 180, 64, .48); border-radius: 12px;
  background: linear-gradient(145deg, #f6c453, #df941d); color: #172235;
  font-size: 17px; cursor: pointer; box-shadow: 0 6px 16px rgba(217, 153, 37, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#browseSubStrip .browse-sub-crown:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 9px 20px rgba(217, 153, 37, .3); }
#browseSubStrip .browse-sub-crown:focus-visible { outline: 3px solid #f6c453; outline-offset: 3px; }
#browseSubStrip .browse-sub-highlight {
  min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid rgba(245, 180, 64, .24);
  border-radius: 12px; background: rgba(245, 158, 11, .11); color: #f3cf78;
  font-size: clamp(13px, 1.15vw, 15px); font-weight: 750; line-height: 1.45;
}
.sub-price {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 700;
  color: #fbbf24;
}
.sub-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.btn-subscribe {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-subscribe:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 30px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 13px;
}
.filter-chip:hover,
.filter-chip.active {
  border-color: var(--primary);
  background: rgba(93,36,214,0.15);
  color: var(--text);
}
@media (max-width: 640px) {
  #projectFilters.filter-bar {
    width: 100%; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    padding: 2px 2px 8px; scrollbar-width: thin; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  #projectFilters .filter-chip {
    flex: 0 0 auto; min-height: 40px; padding: 8px 13px;
    font-size: 12px; white-space: nowrap; scroll-snap-align: start;
  }
}

/* Hire Requests – card style */
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.2s;
}
.req-card:hover { border-color: var(--border-h); background: rgba(255,255,255,0.06); }
.req-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.req-info { flex: 1; }
.req-info h4 { font-weight: 600; margin-bottom: 4px; }
.req-info h4 i { color: var(--primary-light); margin-right: 6px; }
.req-info p { font-size: 13px; color: var(--muted); }
.req-project { font-size: 12px; color: var(--neon); margin-top: 4px; }
.req-actions { display: flex; gap: 8px; }
.btn-accept {
  padding: 8px 16px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-accept:hover { background: rgba(16,185,129,0.2); }
.btn-reject {
  padding: 8px 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  color: var(--red);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-reject:hover { background: rgba(239,68,68,0.15); }
.status-pill {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}
.sp-pending { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.sp-accepted { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.sp-rejected { background: rgba(239,68,68,0.08); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }

/* My Applications */
.app-row {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.app-row-info { flex: 1; }
.app-row-info h4 { font-weight: 600; }
.app-row-info p { font-size: 12px; color: var(--muted); }

/* --- Course Cards Grid --- */
.course-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.course-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(93,36,214,0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.course-level {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  display: inline-block;
  width: max-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.level-beginner { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.level-intermediate { background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.level-advanced { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

.course-title { font-family: var(--font-condensed); font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.course-meta { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- Module List View Transitions & Utilities --- */
#moduleListView {
  animation: fadeSlideIn 0.3s ease-in-out;
}
#courseCardsGrid {
  animation: fadeSlideIn 0.3s ease-in-out;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-back-course {
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-back-course:hover {
  background: rgba(93,36,214,0.08);
  border-color: var(--primary);
  color: var(--primary);
}
/* --- Role Path Header --- */
.role-path-header {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.role-path-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(93,36,214,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-path-icon i { 
  font-size: 32px; 
  color: var(--primary-light); 
}

.role-path-info { 
  flex: 1; 
}

.role-path-info h3 { 
  font-size: 20px; 
  font-weight: 700; 
  color: var(--text); 
  margin-bottom: 4px; 
}

.role-path-info p { 
  color: var(--muted); 
  font-size: 14px; 
}

.role-path-progress {
  background: rgba(93,36,214,0.05);
  border: 1px solid rgba(93,36,214,0.15);
  padding: 12px 24px;
  border-radius: 20px;
  text-align: center;
  min-width: 120px;
}

.role-path-progress .rp-num { 
  font-size: 28px; 
  font-weight: 700; 
  color: var(--primary-light); 
  line-height: 1; 
  margin-bottom: 4px; 
}

.role-path-progress .rp-sub { 
  font-size: 11px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  color: var(--muted); 
}
/* --- Learning Path Modules --- */
.learning-path {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-step {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.lp-step:hover {
  border-color: var(--primary);
  transform: translateX(6px);
}

.lp-step.completed { 
  border-color: rgba(16,185,129,0.3); 
  background: rgba(16,185,129,0.05); 
}

.lp-step.locked { 
  opacity: 0.6; 
  background: rgba(0,0,0,0.02);
}

.lp-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(93,36,214,0.05);
  border: 1px solid rgba(93,36,214,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.lp-step.completed .lp-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.lp-body { flex: 1; }
.lp-body h4 { font-weight: 700; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;}
.lp-body h4 i { color: var(--primary-light); }
.lp-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lp-tag {
  padding: 4px 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.certificate-card {
  background: linear-gradient(135deg, rgba(93,36,214,0.06), rgba(123,77,232,0.06));
  border: 1px solid rgba(93,36,214,0.15);
  border-radius: 28px;
  padding: 32px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.certificate-icon i { font-size: 64px; color: var(--amber); }
.certificate-content { flex: 1; }
.certificate-content h3 { font-size: 22px; font-weight: 700; }
.certificate-content p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.certificate-btn {
  padding: 12px 28px;
  background: var(--grad);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.certificate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93,36,214,0.3); }
.certificate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Badges */
.badges-hero {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(93,36,214,0.06));
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.badges-hero-icon i { font-size: 48px; color: #fbbf24; animation: spin3d 4s linear infinite; }
@keyframes spin3d { 0%{transform:rotateY(0)}100%{transform:rotateY(360deg)} }
.badges-hero h3 { font-size: 22px; font-weight: 700; }
.badges-hero p { color: var(--muted); font-size: 14px; }
.star-count { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.star-num { font-size: 40px; font-weight: 700; color: #fbbf24; }

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.exam-card {
  background: #FFFFFF;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 239, 239, 0.08);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s;
}
.exam-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.exam-card.passed { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); }
.ec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ec-icon i { font-size: 28px; color: var(--primary-light); }
.ec-star {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ec-star.earned { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 0 16px rgba(251,191,36,0.5); }
.ec-star.earned i { color: #fff; }
.ec-star.not-earned { background: rgba(255,255,255,0.03); border: 2px dashed rgba(255,255,255,0.15); }
.ec-star.not-earned i { color: var(--muted2); }
.ec-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.ec-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ec-progress { margin-bottom: 16px; }
.ec-pbar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.ec-pfill { height: 100%; background: var(--grad); border-radius: 3px; transition: width 0.5s; }
.ec-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.btn-take-exam {
  width: 100%;
  padding: 10px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #fbbf24;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-take-exam:hover { background: rgba(245,158,11,0.15); }
.btn-passed {
  width: 100%;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(16,185,129,0.15);
  color: var(--green);
  border-radius: 12px;
  cursor: default;
  font-weight: 500;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  height: fit-content;
}
.profile-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid rgba(93,36,214,0.3);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { font-size: 20px; font-weight: 700; }
.profile-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.profile-upgrade-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(123, 92, 246, .34);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(91, 62, 194, .18), rgba(38, 91, 150, .13));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.profile-upgrade-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(144, 117, 255, .7);
  box-shadow: 0 10px 24px rgba(48, 34, 111, .2);
}
.profile-upgrade-trigger:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
.profile-upgrade-crown {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8c85b, #e99731);
  color: #382008;
}
.profile-upgrade-copy { display: grid; min-width: 0; gap: 3px; }
.profile-upgrade-eyebrow { color: #d7c8ff; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.profile-upgrade-copy strong { font-size: 14px; line-height: 1.25; }
.profile-upgrade-copy > span:last-child { color: var(--text-secondary); font-size: 11px; line-height: 1.35; }
.profile-upgrade-arrow { flex: 0 0 auto; margin-left: auto; color: #c6b8ff; font-size: 13px; }
body:has(#themeToggle:checked) .profile-upgrade-trigger { background: linear-gradient(120deg, #f5f0ff, #edf5ff); border-color: #d6c6ff; }
body:has(#themeToggle:checked) .profile-upgrade-eyebrow { color: #6546b5; }
body:has(#themeToggle:checked) .profile-upgrade-copy > span:last-child { color: #526179; }

.avail-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.toggle-switch {
  appearance: none;
  padding: 0;
  border: 0;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--green); }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: left 0.3s;
}
.toggle-switch.on::after { left: 23px; }

.profile-premium-modal {
  width: min(100%, 860px);
  max-width: 860px;
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.profile-premium-modal [hidden] { display: none !important; }
.profile-premium-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.profile-premium-kicker { color: var(--primary-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.profile-premium-modal-head h3 { margin: 7px 0 5px; font-size: clamp(20px, 3vw, 26px); }
.profile-premium-modal-head p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.profile-premium-close { flex: 0 0 auto; padding: 7px 10px; }
.profile-premium-status { margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.profile-premium-plans { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
.profile-premium-plan { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.profile-premium-plan-featured { border-color: rgba(143, 111, 255, .55); background: linear-gradient(145deg, rgba(94, 65, 183, .15), rgba(34, 68, 109, .12)); }
.profile-premium-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.profile-premium-plan-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.profile-premium-plan h4 { margin: 4px 0 0; font-size: 17px; }
.profile-premium-plan-head > strong { flex: 0 0 auto; font-size: 18px; }
.profile-premium-plan-head > strong span { color: var(--muted); font-size: 10px; font-weight: 500; }
.profile-premium-plan-badge { padding: 5px 8px; border-radius: 999px; background: rgba(247, 185, 71, .15); color: #ffd980; font-size: 10px; font-weight: 700; white-space: nowrap; }
.profile-premium-plan ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.profile-premium-plan li { display: flex; align-items: flex-start; gap: 9px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.profile-premium-plan li > i { flex: 0 0 14px; margin-top: 2px; color: var(--green); }
.profile-premium-plan li em { display: inline-block; margin-left: 4px; color: #e8bc69; font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.profile-premium-pricing { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.profile-premium-pricing > div { display: flex; align-items: baseline; gap: 7px; }
.profile-premium-pricing > div strong { color: var(--text); font-size: 26px; }
.profile-premium-pricing > div span { color: var(--muted); font-size: 12px; }
.profile-premium-pricing p { margin: 4px 0 6px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.profile-premium-pricing small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-premium-consent { margin-top: 14px; }
.profile-premium-consent label { display: flex; align-items: flex-start; gap: 9px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; cursor: pointer; }
.profile-premium-consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--primary); }
.profile-premium-message { min-height: 18px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-premium-message.is-error { color: #ef858b; }
.profile-premium-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.profile-premium-actions button { min-height: 42px; }
.profile-premium-actions .btn-primary { min-width: 190px; }
body:has(#themeToggle:checked) .profile-premium-plan-featured { background: linear-gradient(145deg, #f6f1ff, #eff6ff); }
body:has(#themeToggle:checked) .profile-premium-plan-badge { color: #80500e; }
body:has(#themeToggle:checked) .profile-premium-plan li em { color: #80500e; }

.profile-form-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: var(--font-primary);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: rgba(93,36,214,0.04);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: #0a0a12; color: var(--text); }
.skills-input-row { display: flex; gap: 8px; }
.skills-input-row input { flex: 1; }
.btn-add-skill {
  padding: 10px 16px;
  background: rgba(93,36,214,0.12);
  border: 1px solid rgba(93,36,214,0.2);
  color: var(--primary-light);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-add-skill:hover { background: rgba(93,36,214,0.2); }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.skill-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(93,36,214,0.08);
  border: 1px solid rgba(93,36,214,0.15);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}
.skill-tag .remove {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.skill-tag .remove:hover { opacity: 1; }

/* Events */
.event-category-title {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.event-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s;
}
.event-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.event-image {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.event-image i { font-size: 48px; color: rgba(255,255,255,0.3); }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-title { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.event-subtitle { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.event-register-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.event-register-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.3); }

/* Event Modal */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.event-modal.active { display: flex; }
.event-modal-card {
  background: var(--surface); /* Changed from rgba(10,10,18,0.8) */
  backdrop-filter: blur(24px);
  border: 1px solid var(--border); /* Changed from rgba(255,255,255,0.1) */
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); /* Lightened shadow */
  position: relative;
  color: var(--text); /* Added */
}

.event-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255,255,255,0.8); /* Changed to a light frosted background */
  border: 1px solid var(--border); /* Changed to use platform border */
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text); /* Changed from #fff to dark text */
  transition: all 0.2s;
}

.event-close:hover { 
  background: var(--surface); 
}
.event-banner {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.event-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}
.event-banner-overlay h2 { font-size: 22px; font-weight: 700; color: #fff; }
.event-banner-overlay p { font-size: 13px; color: rgba(255,255,255,0.7); }
.event-body { padding: 24px; }
.event-info-grid { display: flex; gap: 12px; margin-bottom: 16px; }
.event-info-box {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.event-info-box i { color: var(--primary-light); }
.event-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.event-section h4 { font-size: 14px; font-weight: 700; color: var(--primary-light); margin-bottom: 6px; }
.event-section ul { padding-left: 20px; font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.event-warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: #fbbf24;
  text-align: center;
  margin-bottom: 16px;
}
.event-final-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.event-final-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93,36,214,0.3); }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); /* Changed from rgba(10,10,18,0.8) */
  backdrop-filter: blur(24px);
  border: 1px solid var(--border); /* Changed from rgba(255,255,255,0.1) */
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); /* Lightened shadow */
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1);
  color: var(--text); /* Added to ensure dark text on light background */
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal h3 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal h3 i { color: var(--primary-light); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Subscription Modal Steps */
.sub-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.sub-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: 0.3s;
}
.sub-step-dot.done { background: var(--grad); box-shadow: 0 0 12px rgba(93,36,214,0.5); }
.sub-step-content { display: none; animation: fadeIn 0.3s ease; }
.sub-step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.benefits-list { list-style: none; padding: 0; margin: 10px 0 20px; }
.benefits-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.benefits-list i { color: var(--green); margin-top: 2px; }
.sub-modal-price .price { font-size: 28px; font-weight: 800; color: #fbbf24; }
.sub-modal-price .period { font-size: 12px; color: var(--muted); }
.coupon-section { text-align: center; }
.coupon-input-group { display: flex; gap: 8px; margin-top: 12px; }
.coupon-input-group input { flex: 1; }
.coupon-input-group button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Referral */
.referral-link { display: flex; gap: 8px; }
.referral-link input { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; color: var(--text); }
.btn-copy { padding: 10px 16px; background: rgba(93,36,214,0.1); border: 1px solid rgba(93,36,214,0.2); color: var(--primary-light); border-radius: 10px; cursor: pointer; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  background: rgba(255,255,255,0.9); /* Changed from rgba(10,10,18,0.8) */
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary); /* Changed from rgba(93,36,214,0.3) */
  color: var(--text); /* Changed from #fff */
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  animation: toastIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Lightened shadow */
}
@keyframes toastIn { from { transform: translateY(24px) translateX(-50%); opacity: 0; } to { transform: translateY(0) translateX(-50%); opacity: 1; } }

/* Mobile Menu – now slides from LEFT */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open { visibility: visible; opacity: 1; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 280px;
  height: 100vh;
  background: #001524;
  padding: 20px 16px;
  transition: transform 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu-header > div { flex: 1 1 auto; min-width: 0; }
.mobile-menu-header img { display: block; width: min(180px, 100%); height: 56px; object-fit: cover; object-position: center; }
.mobile-menu-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.2); }
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
  font-weight: 500;
}
.mobile-menu-item i { width: 20px; color: rgba(255,255,255,0.6); }
.mobile-menu-item:hover { background: rgba(255,255,255,0.15); color: #fff; }
.mobile-menu-item.active { background: rgba(255,255,255,0.2); color: #fff; }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 16px 0; }
.mobile-contact-section {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.mobile-contact-item {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}
.mobile-contact-item:last-child { border-bottom: none; }
.mobile-contact-item strong { display: block; color: rgba(255,255,255,0.9); font-size: 10px; text-transform: uppercase; }
.mobile-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrap {
    margin-left: 0;
  }
  .hamburger-btn {
    display: flex;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .learning-path-header {
    flex-direction: column;
    text-align: center;
  }
  .learning-path-selector {
    width: 100%;
  }
  .role-path-header {
    flex-direction: column;
    text-align: center;
  }
  .role-path-progress {
    margin-left: 0;
  }
  .badges-hero {
    flex-direction: column;
    text-align: center;
  }
  .star-count {
    margin-left: 0;
  }
  .event-info-grid {
    flex-direction: column;
  }
  .ad-strip {
    height: auto;
    min-height: 100px;
  }
  .ad-slide {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px;
  }
  .ad-cta {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 0 16px;
  }
  .avail-pill {
    display: none;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .exams-grid {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .scroll-content {
    padding: 16px;
  }
  .modal {
    padding: 20px;
  }
}
/* ==================== NEW COURSE CARD DESIGN ==================== */
.course-category-section {
  margin-bottom: 40px;
}
.course-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.course-category-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text); /* Fixed from white */
}
/* Forces the courses into horizontal rows */
.course-grid-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  align-items: stretch;
}

/* Ensures the cards stretch beautifully to fill the row */
.modern-course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  width: 100%;
  height: 100%; /* Forces equal height in rows */
}

.modern-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.modern-course-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f1f5f9;
}

.modern-course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.modern-course-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.modern-course-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* Adjusted badge colors for light theme */
.badge-green { background: rgba(16, 185, 129, 0.1); color: #059669; } 
.badge-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }

/* ==================== FIX LOCKED MODULES ==================== */
.lp-step.locked {
  opacity: 1 !important; 
  filter: none !important;
  background: rgba(0,0,0,0.02);
  border: 1px dashed var(--border);
}
.btn-go-to-module.btn-locked {
  background: rgba(0,0,0,0.03) !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  cursor: not-allowed;
}
/* ==================== COURSE PREVIEW & ENROLLMENT UI ==================== */
.preview-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .preview-layout { grid-template-columns: 1fr; }
}

/* Left Sidebar */
.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.preview-video-box {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.preview-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.preview-video-overlay i {
  font-size: 40px;
  margin-bottom: 8px;
}
.preview-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.preview-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.btn-enroll-lg {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn-enroll-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.btn-continue-lg {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Instructor & Details Lists */
.instructor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.instructor-row img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.preview-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-list i { color: var(--primary); width: 16px; text-align: center; }

/* Right Main Area */
.preview-main h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.preview-main h2 {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
}
.preview-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Tabs */
.preview-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.preview-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.preview-tab.active {
  background: var(--text);
  color: var(--surface);
}

/* What you'll learn Grid */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.learn-item i {
  color: var(--text);
  margin-top: 3px;
}

/* Certificate Box */
.cert-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.cert-graphic {
  width: 140px;
  height: 100px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cert-graphic i { font-size: 24px; color: var(--text); margin-bottom: 8px; }
.cert-graphic div { width: 60%; height: 4px; background: #e2e8f0; border-radius: 2px; }

/* Enrolled Module List Adjustments */
.outline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.outline-item.locked {
  background: rgba(0,0,0,0.02);
  color: var(--muted);
}
/* Fix Footer / Blank Space Issue */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-main);
}
.main-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.scroll-content {
  flex: 1;
  padding-bottom: 60px; /* Provides organic breathing room instead of a hard cut */
}

/* Fix Mobile Hamburger Menu */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block; /* Shown on mobile */
  }
}
/* ==================== COUPON & PRICING ==================== */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.coupon-box input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}
.coupon-box input:focus {
  border-color: var(--primary);
}
.coupon-box button {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.coupon-box button:hover {
  background: var(--primary);
  color: white;
}
.price-original {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 16px;
  margin-right: 8px;
  font-weight: 500;
}
/* Fill in the Blank Code Container */
.fill-code-container {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 2.2;
  color: #e6edf3;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Inline Blank Input Fields */
.blank-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-bottom: 2px solid #6366f1;
  border-radius: 4px;
  padding: 2px 10px;
  margin: 0 4px;
  min-width: 90px;
  max-width: 140px;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.blank-input:focus {
  background: rgba(99, 102, 241, 0.15);
  border-bottom-color: #a855f7;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Validation Feedback States */
.blank-input.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-bottom-color: #10b981 !important;
  color: #34d399 !important;
}

.blank-input.incorrect {
  background: rgba(239, 68, 68, 0.15) !important;
  border-bottom-color: #ef4444 !important;
  color: #f87171 !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
/* ========================================================================== 
   Dashboard workspace refresh — presentation overrides only
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-main: #0b1220;
  --surface: #111c2e;
  --surface-2: #162338;
  --surface-3: #1c2b42;
  --border: #273750;
  --border-h: #467cc6;
  --primary: #6ea8fe;
  --primary-light: #8bbaff;
  --primary-dark: #4e8de8;
  --grad: linear-gradient(135deg, #4389ed, #70b7f7);
  --sidebar-bg: #0e192a;
  --sidebar-text: #f3f7fc;
  --sidebar-muted: #a5b4c8;
  --neon: #75a9f6;
  --neon2: #9abcf5;
  --green: #55c99a;
  --red: #fb7b82;
  --amber: #f2b95e;
  --text: #edf3fb;
  --text-secondary: #bdc9d9;
  --muted: #91a2b8;
  --muted2: #74869e;
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-condensed: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --workspace-sidebar-width: 264px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg-main); color: var(--text); }
::selection { background: rgba(91, 153, 239, .35); color: #fff; }
::-webkit-scrollbar { display: initial; width: 9px; height: 9px; }
::-webkit-scrollbar-track { display: initial; background: transparent; }
::-webkit-scrollbar-thumb { display: initial; background: #31425a; border: 2px solid var(--bg-main); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { display: initial; background: #4b6382; }
.glow-orb { display: none; }
.grid-overlay { opacity: .14; background-image: linear-gradient(rgba(155, 183, 219, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 183, 219, .08) 1px, transparent 1px); }

.sidebar {
  width: var(--workspace-sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  transition: width .24s ease, transform .24s ease;
}
.sidebar-brand { height: 76px; min-height: 76px; padding: 0 16px 0 20px; gap: 10px; border-color: var(--border); }
.sidebar-brand img { display: block; flex: 0 1 auto; min-width: 0; width: min(190px, calc(100% - 44px)); height: 52px; object-fit: cover; object-position: center; margin: 0; filter: drop-shadow(0 2px 9px rgba(0,0,0,.25)); }
.sidebar-collapse-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sidebar-collapse-toggle {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  margin-left: auto; border: 1px solid transparent; border-radius: 10px; color: var(--muted);
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sidebar-collapse-toggle:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.sidebar-collapse-input:focus-visible + .sidebar-collapse-toggle { outline: 3px solid var(--primary); outline-offset: 2px; }
.sidebar-collapse-toggle i { transition: transform .22s ease; }
.sidebar-nav { padding: 18px 12px; scrollbar-color: #31425a transparent; scrollbar-width: thin; }
.sidebar-nav .nav-section { padding: 14px 12px 8px; margin: 0; color: #788ba5; font-size: 10px; letter-spacing: .12em; }
.nav-btn {
  width: 100%; min-height: 44px; padding: 10px 12px; margin: 2px 0; gap: 12px;
  border-radius: 10px; color: var(--sidebar-muted); font-size: 13px; font-weight: 500;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-btn i { width: 20px; flex: 0 0 20px; font-size: 15px; text-align: center; color: inherit; }
.nav-btn:hover { background: rgba(122, 164, 221, .10); color: #f4f8ff; }
.nav-btn.active { background: rgba(76, 137, 222, .17); color: #a9ccff; box-shadow: inset 3px 0 #77adfb; font-weight: 700; }
.nav-btn.active i { color: #9ec5ff; }
.nav-btn.active::before, .nav-btn.active::after { content: none; }
.nav-btn .badge { padding: 3px 7px; background: #274b78; color: #c8e0ff; }
.nav-btn.active .badge { background: #355e91; color: #e5f1ff; }
.nav-btn .badge-dot { margin-left: auto; }
.sidebar-user { padding: 12px; border-top: 1px solid var(--border); }
.sidebar-user .user-card { min-height: 64px; background: rgba(255,255,255,.035); border-color: var(--border); border-radius: 12px; }
.sidebar-user .user-card:hover { background: var(--surface-2); }
.sidebar-user .user-avatar { border: 2px solid #385273; }

.main-wrap { margin-left: var(--workspace-sidebar-width); width: calc(100% - var(--workspace-sidebar-width)); background: var(--bg-main); transition: margin-left .24s ease, width .24s ease; }
.main-header {
  min-height: 72px; height: auto; padding: 12px clamp(18px, 3vw, 40px);
  background: rgba(11, 18, 32, .92); border-color: var(--border); backdrop-filter: blur(18px);
}
.main-header:has(.notification-popover.is-open) { backdrop-filter: none; }
.header-section-search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 360px; min-width: 180px; max-width: 560px;
  min-height: 44px; margin-inline: clamp(8px, 2vw, 24px); padding: 0 12px;
  border: 1px solid rgba(112, 145, 188, .3); border-radius: 12px; background: rgba(15, 27, 44, .82);
  color: #8ea6c3; box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.header-section-search[hidden] { display: none; }
.header-section-search > i { flex: 0 0 auto; font-size: 14px; }
.main-header .header-section-search input {
  width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 8px 0;
  border: 0; outline: 0; background: transparent; color: var(--text); font: 500 13px/1.4 var(--font-primary);
}
.header-section-search input::placeholder { color: #8497b1; opacity: 1; }
.header-section-search:focus-within { border-color: #6ea8fe; box-shadow: 0 0 0 3px rgba(110,168,254,.13); }
.header-section-search button {
  display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #a9bfd9; font-size: 20px; cursor: pointer;
}
.header-section-search button:hover { background: rgba(110,168,254,.12); color: var(--text); }
.header-section-search button[hidden] { display: none; }
.header-actions { gap: 10px; }
.header-actions > button { color: var(--muted) !important; border-radius: 10px; }
.header-actions > button:hover { background: var(--surface-2); color: var(--text) !important; }
.notification-center { position: relative; }
.notification-trigger {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted);
  font-size: 19px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.notification-trigger:hover, .notification-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.notification-trigger:active { transform: scale(.96); }
.notification-trigger:focus-visible, .notification-close:focus-visible, .notification-filters button:focus-visible,
.notification-actions button:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.notification-unread-dot {
  position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border: 2px solid var(--bg-main);
  border-radius: 50%; background: #35d39a; animation: notification-pulse 1.8s ease-in-out infinite;
}
.notification-unread-dot[hidden] { display: none; }
@keyframes notification-pulse { 50% { box-shadow: 0 0 0 4px rgba(53,211,154,.16); } }
.notification-popover {
  position: absolute; z-index: 1200; top: calc(100% + 10px); right: 0; display: flex; flex-direction: column;
  width: min(410px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 104px)); overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px; background: #101b2c; color: var(--text);
  box-shadow: 0 24px 64px rgba(0,0,0,.48); opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.99);
  transform-origin: top right; transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.notification-popover[hidden] { display: none; }
.notification-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.notification-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; }
.notification-header h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.35; }
.notification-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notification-header p.is-error { color: #ff9a9a; }
.notification-close {
  flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 9px; color: var(--muted); cursor: pointer;
}
.notification-close:hover { color: var(--text); background: var(--surface-2); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 12px; }
.notification-unread-count { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.notification-actions { display: flex; gap: 10px; }
.notification-actions button { padding: 4px 0; border: 0; background: none; color: var(--primary-light); font-size: 11px; font-weight: 600; cursor: pointer; }
.notification-actions button:disabled { color: var(--muted2); cursor: not-allowed; }
.notification-filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.notification-filters button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.notification-filters button:hover { color: var(--text); background: var(--surface-2); }
.notification-filters button[aria-pressed="true"] { color: #b7d5ff; background: rgba(110,168,254,.13); border-color: rgba(110,168,254,.22); }
.notification-list { min-height: 180px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--border); scrollbar-color: #31425a transparent; scrollbar-width: thin; }
.notification-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.notification-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--primary-light); font-size: 17px; }
.notification-empty strong { color: var(--text); font-size: 13px; }
.notification-empty p { max-width: 290px; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notification-item {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) 7px; align-items: center; gap: 11px;
  padding: 12px 16px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); background: transparent;
  color: var(--text); text-align: left; cursor: pointer; transition: background .16s ease;
}
.notification-item:hover, .notification-item:focus-visible { background: rgba(110,168,254,.09); outline: none; }
.notification-item.is-unread { background: rgba(72,137,211,.07); }
.notification-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #1d2c41; color: #a9ccff; }
.notification-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notification-avatar-fallback { border: 1px solid rgba(110,168,254,.18); }
.notification-content { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notification-item-heading { color: var(--text); font-size: 12px; font-weight: 700; }
.notification-item-description { color: var(--text-secondary); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.notification-item-time { color: var(--muted); font-size: 10px; }
.notification-item-unread { width: 7px; height: 7px; border-radius: 50%; background: #35d39a; }
.notification-item:not(.is-unread) .notification-item-unread { visibility: hidden; }
.pf-notification-target-highlight { outline: 2px solid #65a8ff !important; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(101,168,255,.16) !important; }
.avail-pill { padding: 7px 12px; }
.avatar-btn { border-color: #528bd8; }
.pc-dropdown-menu { background: var(--surface); border-color: var(--border); box-shadow: 0 18px 42px rgba(0,0,0,.38); }
.pc-dropdown-header { color: var(--text); border-color: var(--border); }
.pc-dropdown-item { color: var(--text-secondary); }
.pc-dropdown-item:hover { background: rgba(110,168,254,.12); color: var(--primary-light); }
.scroll-content { padding: clamp(20px, 3vw, 38px) clamp(18px, 3vw, 42px) 48px; scrollbar-color: #31425a transparent; scrollbar-width: thin; }
.scroll-content > .page { max-width: 1480px; }
.page-title { color: var(--text); }
.page-title i { color: var(--primary-light); background: rgba(90,148,222,.13); }
.page-sub { color: var(--muted); }

.glass-card, .stat-box, .chart-container, .project-card, .profile-card, .profile-form-box,
.event-card, .exam-card, .req-card, .app-row, .lp-step, .budget-filter-section, .sub-info-strip,
.daily-streak-hero, .daily-challenge-card, .rewards-section, .pf-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16); color: var(--text);
}
.stat-box, .chart-container, .profile-form-box, .profile-card, .daily-streak-hero, .daily-challenge-card, .rewards-section { padding: 20px; }
.stat-box:hover, .exam-card:hover, .project-card:hover, .event-card:hover, .lp-step:hover { border-color: #456c9d; box-shadow: 0 12px 28px rgba(0,0,0,.24); transform: translateY(-2px); }
.stats-row { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-label, .stat-sub, .chart-bar-label, .pc-host, .pc-desc { color: var(--muted); }
.stat-value { color: var(--text); }
.cards-grid, .events-grid, .exams-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.course-grid-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; gap: 16px !important; }
.modern-course-card { background: var(--surface); border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.modern-course-img { background: var(--surface-2); }
.modern-course-title { color: var(--text); }
.badge-green { color: #8de1b9; }
.badge-blue { color: #a9ccff; }
.badge-amber { color: #f4c46d; }
.project-card { padding: 20px; }
.pc-title, .chart-title, .course-category-header h3, .profile-card h3 { color: var(--text); }
.pc-cat { color: #b8d5ff; background: rgba(91,145,213,.14); border-color: rgba(110,168,254,.24); }
.skill-chip { background: var(--surface-2); border-color: var(--border); color: var(--text-secondary); }
.req-card, .app-row, .lp-step { border-radius: 13px; }
.req-card:hover { background: var(--surface-2); }
.lp-step.completed { border-color: rgba(85,201,154,.4); background: rgba(37,104,82,.15); }
.lp-step.locked { background: #101a29; }

.btn-primary, .btn-apply, .btn-outline, .btn-subscribe, .btn-unlock, .btn-copy,
.btn-add-skill, .btn-secondary, .btn-continue-lg, .btn-enroll-lg, .btn-take-exam,
.challenge-actions button, .filter-chip, .lang-btn, .pf-tab, .pf-btn-ghost {
  min-height: 40px; border-radius: 10px; font-family: var(--font-primary); transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn-primary { background: var(--grad); box-shadow: 0 5px 15px rgba(55,111,189,.2); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(55,111,189,.3); }
.btn-outline, .btn-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text-secondary); }
.btn-outline:hover, .btn-secondary:hover { color: var(--text); border-color: #57769d; background: var(--surface-3); }
.filter-chip { background: var(--surface); border-color: var(--border); color: var(--text-secondary); }
.filter-chip:hover, .filter-chip.active { background: rgba(110,168,254,.15); border-color: #5a8bc7; color: #c6ddff; }
.btn-apply { color: #bbd7ff; background: rgba(93,145,214,.14); border-color: rgba(110,168,254,.28); }
.btn-apply:hover { background: rgba(93,145,214,.28); }
.btn-applied { color: #8ce0bd; background: rgba(47,144,104,.14); border-color: rgba(85,201,154,.25); }
button:disabled, [aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.field label, .field label *, label { color: var(--text-secondary); }
.field label { font-size: 12px; letter-spacing: .035em; text-transform: none; }
.field input, .field select, .field textarea, .main-header input, .referral-link input,
.page textarea, .page input[type="text"], .page input:not([type]), .page input[type="number"],
.page input[type="url"], .page input[type="datetime-local"], .page select {
  color: var(--text); background: #0d1727; border: 1px solid #30435d; border-radius: 10px;
}
.field input::placeholder, .field textarea::placeholder, input::placeholder, textarea::placeholder { color: #74869e; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus,
.page input:focus, .page textarea:focus, .page select:focus { border-color: var(--primary); background: #101d30; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary-dark); }

.daily-streak-hero, .daily-challenge-card, .rewards-section { box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.daily-challenge-card .challenge-examples, .daily-challenge-card .challenge-constraints,
.rewards-grid .reward-item, .streak-calendar .day-box { background: var(--surface-2); border-color: var(--border); }
.daily-challenge-card .challenge-examples .example-code { background: #0b1422; color: #d5e4f8; }
.daily-challenge-card .challenge-title, .daily-streak-hero .streak-number, .daily-streak-hero .streak-stat-item .num,
.rewards-grid .reward-item .reward-name { color: var(--text); }
.challenge-actions .btn-submit-solution { background: var(--grad) !important; }
.challenge-status.done, .difficulty-easy, .streak-calendar .day-box.completed { color: #83ddb6 !important; }
.challenge-status.pending, .difficulty-medium { color: #f4c46d !important; }
.difficulty-hard { color: #ff969c !important; }
.challenge-type-badge {
  display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid rgba(110,168,254,.25);
  border-radius: 999px; color: #b8d5ff; background: rgba(68,119,190,.14); font-size: 11px; font-weight: 750;
}
.challenge-type-badge.is-qa { color: #d3c4ff; border-color: rgba(161,129,244,.28); background: rgba(110,79,180,.16); }
.challenge-description.is-qa { white-space: pre-wrap; }
#languageSelector[hidden], #codeEditorWrap[hidden], #qaAnswerWrap[hidden], #testResults[hidden],
.challenge-actions .btn-reset-code[hidden], .challenge-submission-message[hidden] { display: none !important; }
.daily-qa-answer {
  display: grid; gap: 8px; margin: 0 0 16px; padding: 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}
.daily-qa-answer label { color: var(--text); font-size: 13px; font-weight: 750; }
.daily-qa-answer textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  background: var(--surface); font: inherit; line-height: 1.55;
}
.daily-qa-answer textarea:focus { outline: 2px solid rgba(110,168,254,.24); border-color: var(--primary-light); }
.daily-qa-answer small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.challenge-submission-message {
  margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(110,168,254,.24);
  border-radius: 12px; color: #c9dcf5; background: rgba(68,119,190,.12); font-size: 13px; line-height: 1.55;
}
.challenge-submission-message.is-approved { color: #9be3c2; border-color: rgba(85,201,154,.35); background: rgba(47,144,104,.14); }
.challenge-submission-message.is-rejected, .challenge-submission-message.is-error { color: #ffb0b4; border-color: rgba(251,123,130,.32); background: rgba(166,57,66,.14); }
.challenge-submission-message.is-pending { color: #f4d28d; border-color: rgba(242,185,94,.3); background: rgba(176,128,44,.12); }
.challenge-actions button:disabled { opacity: .7; cursor: not-allowed; }
.streak-calendar .day-box.completed { background: rgba(47,144,104,.18) !important; border-color: rgba(85,201,154,.35) !important; }
.language-selector-row .lang-btn { color: var(--text-secondary); background: var(--surface-2); }
.language-selector-row .lang-btn.active { color: #c8ddfb; background: rgba(110,168,254,.14); }

.modal-overlay { background: rgba(3,8,16,.76); padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.modal { background: #111c2e; border-color: #344861; color: var(--text); box-shadow: 0 24px 72px rgba(0,0,0,.5); }
.modal h3, .modal h4, .modal strong { color: var(--text); }
.modal p, .modal li { color: var(--text-secondary); }
.mobile-menu { background: var(--sidebar-bg); border-right: 1px solid var(--border); padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.mobile-menu-item { min-height: 44px; }
.toast { color: var(--text); background: #16243a; border-color: #456b9b; box-shadow: 0 12px 35px rgba(0,0,0,.4); }
#testResults { background: var(--surface) !important; }
#page-dashboard > .flex.items-center.justify-between { border-color: var(--border); }
#page-dashboard > .flex.items-center.justify-between h3 { color: var(--text); }
#page-dashboard > .flex.items-center.justify-between button { color: var(--primary-light); }
.pf-card { background: var(--surface); }
.pf-note, .pf-chip, .pf-muted { background: var(--surface-2); }
.pf-tabs .pf-tab.active { background: #315f97; border-color: #477ab5; }
.pf-loading, .pf-empty { color: var(--muted); }
.pf-empty { border-color: var(--border); }
.pf-error { color: #ff9a9f; background: rgba(196,60,70,.14); }
.pf-ok { color: #8de1b9; }
.pf-warn { color: #f5c76e; }
.pf-bad { color: #ff969c; }
a, .pf-links a { color: #8bbaff; }
a:hover, .pf-links a:hover { color: #bed8ff; }
.exam-opt { width: 100%; min-height: 44px; margin: 5px 0; padding: 11px 14px; text-align: left; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.exam-opt:hover { border-color: #5b83b3; background: var(--surface-3); }
.exam-opt.correct { color: #9be3c2; background: rgba(43,135,94,.18); border-color: rgba(85,201,154,.48); }
.exam-opt.wrong { color: #ffa2a6; background: rgba(166,57,66,.18); border-color: rgba(251,123,130,.42); }
.exam-card, .exam-card.passed { background: var(--surface); }
.btn-take-exam { color: #f4cd82; background: rgba(176,128,44,.13); border-color: rgba(242,185,94,.28); }
.btn-passed { color: #8de1b9; background: rgba(47,144,104,.14); border-color: rgba(85,201,154,.25); }

/* Native, keyboard-operable compact navigation control. */
@media (min-width: 769px) {
  body:has(#sidebarCollapseToggle:checked) { --workspace-sidebar-width: 80px; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-brand { padding-inline: 12px; justify-content: center; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-brand img { display: none; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-collapse-toggle { margin: 0; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-collapse-toggle i { transform: rotate(180deg); }
  body:has(#sidebarCollapseToggle:checked) .sidebar-nav { padding-inline: 10px; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-nav .nav-section { overflow: hidden; height: 10px; padding: 0; font-size: 0; }
  body:has(#sidebarCollapseToggle:checked) .nav-btn { justify-content: center; gap: 0; padding-inline: 8px; font-size: 0; }
  body:has(#sidebarCollapseToggle:checked) .nav-btn i { font-size: 17px; }
  body:has(#sidebarCollapseToggle:checked) .nav-btn .badge { position: absolute; top: 2px; right: 3px; margin: 0; padding: 1px 4px; font-size: 8px; }
  body:has(#sidebarCollapseToggle:checked) .nav-btn .badge-dot { position: absolute; top: 7px; right: 8px; margin: 0; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-user { padding: 10px; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-user .user-card { justify-content: center; padding: 8px; }
  body:has(#sidebarCollapseToggle:checked) .sidebar-user .user-info,
  body:has(#sidebarCollapseToggle:checked) .sidebar-user .user-card > i { display: none; }
  .sidebar-collapse-input:checked + .sidebar-collapse-toggle { color: #a9ccff; }
}

@media (max-width: 1100px) {
  :root { --workspace-sidebar-width: 238px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-grid { grid-template-columns: minmax(0,1fr); }
  .sidebar { width: var(--workspace-sidebar-width); }
  .main-wrap { margin-left: var(--workspace-sidebar-width); width: calc(100% - var(--workspace-sidebar-width)); }
}
@media (max-width: 768px) {
  .sidebar {
    top: 8px;
    left: 8px;
    width: 25vw;
    height: calc(100dvh - 16px);
    transform: translateX(-110%);
    z-index: 1101;
    box-shadow: 18px 0 48px rgba(0,0,0,.36);
    border: 1px solid rgba(111, 176, 255, .55);
    border-radius: 14px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand { flex: 0 0 var(--nav-h); justify-content: space-between; padding-inline: 16px; }
  .sidebar-brand img {
    width: min(220px, calc(100% - 56px));
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
  }
  .sidebar-mobile-close { display: inline-flex; flex: 0 0 40px; }
  .sidebar-nav {
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .55) transparent;
  }
  .sidebar-nav::-webkit-scrollbar { display: block; width: 6px; }
  .sidebar-nav::-webkit-scrollbar-thumb { display: block; background: rgba(148, 163, 184, .55); border-radius: 6px; }
  .sidebar-streak-card { flex: 0 0 auto; }
  #sidebarOverlay { z-index: 1050; }
  .main-wrap { margin-left: 0; width: 100%; }
  .sidebar-collapse-input, .sidebar-collapse-toggle { display: none; }
  .main-header { min-height: 64px; padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .header-section-search { order: 3; flex: 1 0 100%; max-width: none; min-height: 42px; margin: 0; }
  .header-actions { gap: 6px; }
  .scroll-content { padding: 22px 20px 36px; }
  .profile-grid { grid-template-columns: minmax(0,1fr); }
  .form-row { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .main-header { padding: 10px 12px; }
  .main-header .flex.items-center.gap-4 { gap: 8px; min-width: 0; flex: 1; }
  .header-actions { flex: 0 0 auto; }
  .header-section-search { flex-basis: 100%; }
  #browseSubStrip { gap: 9px; padding: 11px; }
  #browseSubStrip .browse-sub-crown { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
  #browseSubStrip .browse-sub-highlight { padding: 8px 10px; font-size: 12px; }
  .header-actions > button { padding: 8px !important; }
  .notification-popover {
    position: fixed; top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px); max-height: min(74dvh, 560px); transform-origin: bottom right;
  }
  .avatar-btn { width: 36px; height: 36px; }
  .scroll-content { padding: 18px 14px 30px; }
  .stats-row, .cards-grid, .events-grid, .exams-grid, .rewards-grid,
  .course-grid-row { grid-template-columns: minmax(0,1fr) !important; }
  .page-title { font-size: 25px; }
  .page-title i { width: 38px; height: 38px; flex-basis: 38px; }
  .daily-streak-hero, .daily-challenge-card, .rewards-section, .profile-form-box { padding: 17px; }
  .modal-overlay { align-items: flex-end; padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); padding: 20px; border-radius: 18px; }
  .modal-footer, .coupon-input-group, .referral-link { flex-wrap: wrap; }
  .modal-footer > *, .coupon-input-group > *, .referral-link > * { min-width: 0; }
  .toast { width: calc(100vw - 28px); text-align: center; bottom: max(14px, env(safe-area-inset-bottom)); padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.fa-spin), *:not(.fa-spin)::before, *:not(.fa-spin)::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* Hidden state checkbox keeps the legacy light-theme CSS selectors in sync. */
.theme-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body:has(#themeToggle:checked) .header-section-search { border-color: #cfdae8; background: #fff; color: #647891; }
body:has(#themeToggle:checked) .main-header .header-section-search input { color: #26364c; background: transparent; }
body:has(#themeToggle:checked) .header-section-search input::placeholder { color: #7a8da6; }
body:has(#themeToggle:checked) #browseSubStrip .browse-sub-highlight { color: #81570e; background: rgba(245, 158, 11, .1); }

body:has(#themeToggle:checked) {
  color-scheme: light;
  --bg-main: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --surface-3: #eaf0f8;
  --border: #d9e2ee;
  --border-h: #8fb2df;
  --primary: #286dcc;
  --primary-light: #3478d7;
  --primary-dark: #1c5fb9;
  --grad: linear-gradient(135deg, #286dcc, #4f97e6);
  --green: #16835d;
  --red: #c64652;
  --amber: #a56b12;
  --text: #172337;
  --text-secondary: #40516a;
  --muted: #60738d;
  --muted2: #7b8ca2;
}
body:has(#themeToggle:checked),
body:has(#themeToggle:checked) .main-wrap { background: var(--bg-main); color: var(--text); }
body:has(#themeToggle:checked) .main-header { background: rgba(255,255,255,.94); border-color: var(--border); }
body:has(#themeToggle:checked) .header-actions > button { color: var(--muted) !important; }
body:has(#themeToggle:checked) .header-actions > button:hover { color: var(--text) !important; background: var(--surface-2); }
body:has(#themeToggle:checked) .glass-card,
body:has(#themeToggle:checked) .stat-box,
body:has(#themeToggle:checked) .chart-container,
body:has(#themeToggle:checked) .project-card,
body:has(#themeToggle:checked) .profile-card,
body:has(#themeToggle:checked) .profile-form-box,
body:has(#themeToggle:checked) .event-card,
body:has(#themeToggle:checked) .exam-card,
body:has(#themeToggle:checked) .req-card,
body:has(#themeToggle:checked) .app-row,
body:has(#themeToggle:checked) .lp-step,
body:has(#themeToggle:checked) .budget-filter-section,
body:has(#themeToggle:checked) .sub-info-strip,
body:has(#themeToggle:checked) .daily-streak-hero,
body:has(#themeToggle:checked) .daily-challenge-card,
body:has(#themeToggle:checked) .rewards-section,
body:has(#themeToggle:checked) .pf-card,
body:has(#themeToggle:checked) .modern-course-card,
body:has(#themeToggle:checked) .preview-card {
  background: var(--surface); border-color: var(--border); color: var(--text);
  box-shadow: 0 5px 18px rgba(23,35,55,.055);
}
body:has(#themeToggle:checked) .stat-box:hover,
body:has(#themeToggle:checked) .exam-card:hover,
body:has(#themeToggle:checked) .project-card:hover,
body:has(#themeToggle:checked) .event-card:hover,
body:has(#themeToggle:checked) .lp-step:hover { box-shadow: 0 10px 25px rgba(23,35,55,.10); border-color: #a9c2e2; }
body:has(#themeToggle:checked) .pc-cat { color: #205ca9; background: #edf4fd; border-color: #d5e4f7; }
body:has(#themeToggle:checked) .skill-chip { color: var(--text-secondary); background: var(--surface-2); border-color: var(--border); }
body:has(#themeToggle:checked) .field input,
body:has(#themeToggle:checked) .field select,
body:has(#themeToggle:checked) .field textarea,
body:has(#themeToggle:checked) .referral-link input,
body:has(#themeToggle:checked) .page input[type="text"],
body:has(#themeToggle:checked) .page input:not([type]),
body:has(#themeToggle:checked) .page input[type="number"],
body:has(#themeToggle:checked) .page input[type="url"],
body:has(#themeToggle:checked) .page input[type="datetime-local"],
body:has(#themeToggle:checked) .page textarea,
body:has(#themeToggle:checked) .page select { color: var(--text); background: #fff; border-color: #c9d6e6; }
body:has(#themeToggle:checked) .field input:focus,
body:has(#themeToggle:checked) .field select:focus,
body:has(#themeToggle:checked) .field textarea:focus,
body:has(#themeToggle:checked) .page input:focus,
body:has(#themeToggle:checked) .page textarea:focus,
body:has(#themeToggle:checked) .page select:focus { background: #fff; border-color: var(--primary); }
body:has(#themeToggle:checked) .field label { color: var(--text-secondary); }
body:has(#themeToggle:checked) .btn-outline,
body:has(#themeToggle:checked) .btn-secondary { color: var(--text-secondary); background: var(--surface-2); border-color: var(--border); }
body:has(#themeToggle:checked) .btn-outline:hover,
body:has(#themeToggle:checked) .btn-secondary:hover { color: var(--text); background: var(--surface-3); }
body:has(#themeToggle:checked) .btn-apply { color: #205ca9; background: #edf4fd; border-color: #d1e2f7; }
body:has(#themeToggle:checked) .btn-applied { color: #176c4d; background: #e9f7f0; border-color: #c5e9d7; }
body:has(#themeToggle:checked) .filter-chip { color: var(--text-secondary); background: var(--surface); border-color: var(--border); }
body:has(#themeToggle:checked) .filter-chip:hover,
body:has(#themeToggle:checked) .filter-chip.active { color: #205ca9; background: #edf4fd; border-color: #a9c6e9; }
body:has(#themeToggle:checked) .daily-challenge-card .challenge-examples,
body:has(#themeToggle:checked) .daily-challenge-card .challenge-constraints,
body:has(#themeToggle:checked) .rewards-grid .reward-item,
body:has(#themeToggle:checked) .streak-calendar .day-box { background: var(--surface-2); border-color: var(--border); }
body:has(#themeToggle:checked) .daily-challenge-card .challenge-examples .example-code { background: #eaf0f8; color: #213149; }
body:has(#themeToggle:checked) .daily-qa-answer { background: var(--surface-2); border-color: var(--border); }
body:has(#themeToggle:checked) .daily-qa-answer textarea { color: var(--text); background: #fff; border-color: var(--border); }
body:has(#themeToggle:checked) .daily-qa-answer label { color: var(--text); }
body:has(#themeToggle:checked) .challenge-submission-message { color: #31557e; background: #edf4fd; border-color: #c9def6; }
body:has(#themeToggle:checked) .challenge-submission-message.is-approved { color: #176c4d; background: #e9f7f0; border-color: #b8e3cf; }
body:has(#themeToggle:checked) .challenge-submission-message.is-rejected,
body:has(#themeToggle:checked) .challenge-submission-message.is-error { color: #a92f3a; background: #fff0f0; border-color: #efc2c5; }
body:has(#themeToggle:checked) .challenge-submission-message.is-pending { color: #80500e; background: #fff7e6; border-color: #f0dfb8; }
body:has(#themeToggle:checked) .challenge-type-badge { color: #205ca9; background: #edf4fd; border-color: #c5dbf5; }
body:has(#themeToggle:checked) .challenge-type-badge.is-qa { color: #5a43a8; background: #f3efff; border-color: #d9cff8; }
body:has(#themeToggle:checked) .code-editor-wrap { background: #101a29; }
body:has(#themeToggle:checked) .modal { color: var(--text); background: #fff; border-color: var(--border); box-shadow: 0 20px 60px rgba(23,35,55,.2); }
body:has(#themeToggle:checked) .modal h3,
body:has(#themeToggle:checked) .modal h4,
body:has(#themeToggle:checked) .modal strong { color: var(--text); }
body:has(#themeToggle:checked) .modal p,
body:has(#themeToggle:checked) .modal li { color: var(--text-secondary); }
body:has(#themeToggle:checked) .pc-dropdown-menu { background: #fff; border-color: var(--border); box-shadow: 0 12px 35px rgba(23,35,55,.16); }
body:has(#themeToggle:checked) .pc-dropdown-header { color: var(--text); border-color: var(--border); }
body:has(#themeToggle:checked) .pc-dropdown-item { color: var(--text-secondary); }
body:has(#themeToggle:checked) .toast { color: var(--text); background: #fff; border-color: #94b6e2; box-shadow: 0 8px 28px rgba(23,35,55,.18); }
body:has(#themeToggle:checked) .exam-opt { color: var(--text-secondary); background: var(--surface-2); border-color: var(--border); }
body:has(#themeToggle:checked) .exam-opt:hover { background: var(--surface-3); }
body:has(#themeToggle:checked) .exam-opt.correct { color: #176c4d; background: #e9f7f0; border-color: #a7ddc3; }
body:has(#themeToggle:checked) .exam-opt.wrong { color: #a92f3a; background: #fff0f0; border-color: #efc2c5; }
body:has(#themeToggle:checked) .pf-note,
body:has(#themeToggle:checked) .pf-chip,
body:has(#themeToggle:checked) .pf-muted { background: var(--surface-2); }
body:has(#themeToggle:checked) .pf-error { color: #a92f3a; background: #fff0f0; }
body:has(#themeToggle:checked) .pf-ok { color: #176c4d; }
body:has(#themeToggle:checked) .pf-warn { color: #80500e; }
body:has(#themeToggle:checked) .pf-bad { color: #a92f3a; }
body:has(#themeToggle:checked) a,
body:has(#themeToggle:checked) .pf-links a { color: #205ca9; }
body:has(#themeToggle:checked) a:hover,
body:has(#themeToggle:checked) .pf-links a:hover { color: #154981; }
/* Developer Exhibition feed controls and reveal panels. */
.exhibition-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.exhibition-action {
  min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text-secondary); font: 700 13px/1.35 var(--font-primary);
  text-align: center; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.exhibition-action i { color: var(--primary-light); }
.exhibition-action:hover { background: var(--surface-2); border-color: var(--border-h); color: var(--text); transform: translateY(-1px); }
.exhibition-action[aria-expanded="true"] { background: rgba(80,139,215,.15); border-color: var(--primary); color: var(--text); box-shadow: inset 0 0 0 1px rgba(110,168,254,.12); }
.exhibition-action-primary { justify-content: flex-start; background: var(--surface); color: var(--text); }
.exhibition-action-primary i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--grad); color: #fff; }
.exhibition-action-primary[aria-expanded="true"] i { transform: rotate(45deg); }
.exhibition-panel[hidden] { display: none !important; }
.exhibition-panel { min-width: 0; animation: slideUp .2s ease; }
.exhibition-panel > .pf-card:first-child { margin-top: 0; }
body:has(#themeToggle:checked) .exhibition-action { background: #fff; color: var(--text-secondary); border-color: var(--border); }
body:has(#themeToggle:checked) .exhibition-action:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-h); }
body:has(#themeToggle:checked) .exhibition-action[aria-expanded="true"] { background: #edf4fd; color: #205ca9; border-color: #8fb2df; }
body:has(#themeToggle:checked) .exhibition-action-primary { color: var(--text); }
@media (max-width: 560px) {
  .exhibition-switcher { gap: 7px; }
  .exhibition-action { min-height: 54px; flex-direction: column; gap: 5px; padding: 8px 6px; font-size: 11px; }
  .exhibition-action-primary { justify-content: center; }
  .exhibition-action-primary i { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibition-panel { animation: none; }
}

/* Explore follows the reference layout: title and section controls share a row. */
.explore-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.explore-header .pf-head { flex: 1 1 auto; min-width: 240px; margin: 0; }
.explore-header .pf-head .page-title { margin-bottom: 5px; }
.explore-header .pf-head .page-sub { margin: 0; }
.explore-header .pf-tabs { flex: 0 1 auto; justify-content: flex-end; gap: 8px; margin: 4px 0 0; }
.explore-header .pf-tab { min-height: 42px; padding: 9px 14px; white-space: nowrap; }
.explore-header .explore-daily-tab i { color: var(--primary-light); }
#page-pf-explore #page-daily { width: 100%; max-width: none; margin: 0; }
#page-pf-explore #exBody[hidden] { display: none !important; }
body:has(#themeToggle:checked) .explore-header .pf-tab { color: var(--text-secondary); background: #fff; border-color: var(--border); }
body:has(#themeToggle:checked) .explore-header .pf-tab.active { color: #fff; background: #315f97; border-color: #477ab5; }
body:has(#themeToggle:checked) .explore-header .pf-tab.active i { color: #fff; }
@media (max-width: 920px) {
  .explore-header { display: block; }
  .explore-header .pf-tabs { justify-content: flex-start; margin-top: 16px; }
}
@media (max-width: 560px) {
  .explore-header .pf-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .explore-header .pf-tab { min-height: 42px; padding: 8px 9px; white-space: normal; }
}

/* Dev Connect: a focused people directory and clean conversation surfaces. */
#page-pf-connect { --connect-accent: #79adf6; }
#page-pf-connect > .pf-head { align-items: center; margin-bottom: 20px; }
#page-pf-connect > .pf-head .page-title { margin-bottom: 5px; }
#page-pf-connect > .pf-head .page-sub { max-width: 620px; margin-bottom: 0; }
#page-pf-connect > .pf-head .page-title i { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 13px; }
#page-pf-connect > .pf-tabs {
  display: flex; width: fit-content; max-width: 100%; gap: 5px; padding: 5px; margin: 0 0 22px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(17,28,46,.78);
}
#page-pf-connect > .connect-tabs { flex-wrap: nowrap; }
#page-pf-connect > .pf-tabs .pf-tab {
  min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
  color: var(--muted); white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
#page-pf-connect > .connect-tabs .pf-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#page-pf-connect > .connect-tabs .pf-tab i { flex: 0 0 auto; font-size: 13px; }
#page-pf-connect > .pf-tabs .pf-tab:hover { color: var(--text); background: var(--surface-2); }
#page-pf-connect > .pf-tabs .pf-tab.active { color: #eaf3ff; background: #244a78; border-color: #3d679b; box-shadow: inset 0 1px rgba(255,255,255,.06); }
#page-pf-connect > .pf-tabs .pf-tab:focus-visible { outline: 2px solid var(--connect-accent); outline-offset: 2px; }
#page-pf-connect #pfConnectBody { min-width: 0; }
#page-pf-connect #pfDevGrid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
#page-pf-connect .pf-dev {
  min-width: 0; margin: 0; padding: 18px 20px; gap: 12px;
  border-radius: 16px; background: linear-gradient(155deg, rgba(25,40,62,.97), rgba(17,28,46,.98));
  box-shadow: 0 8px 24px rgba(0,0,0,.13); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#page-pf-connect .pf-dev:hover { transform: translateY(-2px); border-color: #456b9b; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
#page-pf-connect .connect-person-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
#page-pf-connect .connect-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
#page-pf-connect .connect-person-copy { display: grid; min-width: 0; gap: 3px; }
#page-pf-connect .connect-person strong,
#page-pf-connect .pf-item-main > strong,
#page-pf-connect .pf-item > strong { color: var(--text); font-size: 15px; line-height: 1.35; }
#page-pf-connect .connect-person .pf-hint { color: #a9bfd9; font-size: 12px; }
#page-pf-connect .connect-avatar {
  display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border: 1px solid rgba(153,190,238,.35); border-radius: 50%; color: #e7f1ff;
  background: linear-gradient(145deg, #426fa9, #263f64); box-shadow: inset 0 1px rgba(255,255,255,.12);
  font-size: 13px; font-weight: 800; letter-spacing: .03em;
}
#page-pf-connect button.connect-avatar { padding:0; overflow:hidden; cursor:zoom-in; }
#page-pf-connect .connect-avatar img { display:block; width:100%; height:100%; border-radius:inherit; object-fit:cover; }
#page-pf-connect .connect-avatar:focus-visible { outline:2px solid var(--connect-accent); outline-offset:3px; }
#page-pf-connect .pf-dev > .pf-text { margin: 0; color: var(--text-secondary); font-size: 13px; }
#page-pf-connect .pf-dev .pf-chips { gap: 6px; margin: 0; }
#page-pf-connect .pf-dev .pf-chip { padding: 4px 9px; border-color: #30445f; border-radius: 7px; color: #c1d3e9; background: #15243a; font-size: 11px; }
#page-pf-connect .pf-dev .pf-links { gap: 14px; margin: auto 0 0; padding-top: 4px; font-size: 12px; }
#page-pf-connect .pf-dev .pf-row { flex: 0 0 auto; justify-content: flex-start; flex-wrap: nowrap; gap: 8px; margin-top: 0; }
#page-pf-connect .pf-dev .pf-row .btn-primary { flex: 0 1 auto; min-width: 0; }
#page-pf-connect .pf-dev .pf-row .pf-btn-ghost:not(.connect-details-toggle) { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; padding: 8px; }
#page-pf-connect .pf-dev .pf-row .pf-btn-ghost:not(.connect-details-toggle)::after { content: "Message"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#page-pf-connect .pf-dev .pf-row button.pf-btn-ghost:not(.connect-details-toggle) { position:static; width:auto; min-width:110px; gap:8px; padding:8px 13px; border-color:#3d679b; color:#b8d8ff; background:rgba(63,112,171,.12); }
#page-pf-connect .pf-dev .pf-row button.pf-btn-ghost:not(.connect-details-toggle)::after { content:none; }
#page-pf-connect .connect-request-section { margin:0 0 26px; }
#page-pf-connect .connect-request-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; padding:2px 0; }
#page-pf-connect .connect-request-heading .pf-h3 { margin:3px 0 2px; font-size:18px; }
#page-pf-connect .connect-request-heading p { margin:0; color:var(--muted); font-size:12px; }
#page-pf-connect .connect-request-kicker { color:#83b8f8; font-size:10px; font-weight:800; letter-spacing:.12em; }
#page-pf-connect .connect-request-count { display:inline-flex; align-items:center; min-height:30px; padding:5px 11px; border:1px solid rgba(121,173,246,.3); border-radius:999px; background:rgba(61,103,155,.18); color:#c2dcff; font-size:11px; font-weight:750; white-space:nowrap; }
#page-pf-connect .connect-request-card { align-items:center; border-color:rgba(105,137,180,.22); background:linear-gradient(125deg,rgba(28,45,68,.98),rgba(16,27,44,.98)); box-shadow:0 7px 20px rgba(0,0,0,.12); }
#page-pf-connect .connect-request-card:hover { border-color:#456b9b; background:linear-gradient(125deg,#1c2f49,#142238); }
#page-pf-connect .connect-request-card .pf-item-main { grid-template-columns:48px minmax(0,1fr); column-gap:13px; }
#page-pf-connect .connect-request-card .connect-avatar { width:48px; height:48px; flex-basis:48px; }
#page-pf-connect .connect-request-card .pf-item-main > strong { font-size:15px; }
#page-pf-connect .connect-request-card .pf-item-main > .pf-text { margin-top:9px; }
#page-pf-connect .connect-request-card .connect-request-no-note { color:var(--muted); font-style:italic; }
#page-pf-connect .connect-request-card .pf-col { gap:8px; }
#page-pf-connect .connect-request-card .pf-col .btn-primary,
#page-pf-connect .connect-request-card .pf-col .pf-btn-ghost { min-width:104px; min-height:40px; }
#page-pf-connect .connect-sent-section { padding-top:4px; }
#page-pf-connect .connect-sent-card { min-height:78px; }
#page-pf-connect .connect-request-status { flex:0 0 auto; }
#page-pf-connect .connect-details-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
#page-pf-connect .connect-details-toggle i { color: var(--primary-light); transition: transform .2s ease; }
#page-pf-connect .connect-details-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
#page-pf-connect .connect-details-panel { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-3px); transition: max-height .24s ease, opacity .18s ease, transform .18s ease; }
#page-pf-connect .connect-details-panel[hidden] { display: none; }
#page-pf-connect .connect-details-panel.is-open { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); opacity: 1; transform: none; }
#page-pf-connect .connect-details-panel > .pf-text { max-width: 1000px; margin: 0 0 12px; overflow-wrap: anywhere; }
#page-pf-connect .connect-details-panel > .pf-chips { margin: 10px 0; }
#page-pf-connect .connect-details-panel > .pf-links { margin: 10px 0 0; }
#page-pf-connect .connect-profile-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#page-pf-connect .connect-profile-facts[hidden] { display: none; }
#page-pf-connect .connect-fact { display: grid; gap: 2px; min-width: 140px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
#page-pf-connect .connect-fact span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
#page-pf-connect .connect-fact strong { color: var(--text-secondary); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
#page-pf-connect .pf-h3 { margin: 24px 0 10px; color: var(--text); font-size: 14px; letter-spacing: .02em; }
#page-pf-connect .pf-h3:first-child { margin-top: 0; }
#page-pf-connect .pf-list { gap: 9px; }
#page-pf-connect .pf-list > .pf-card.pf-item,
#page-pf-connect .pf-list > .pf-item {
  min-width: 0; margin: 0; padding: 15px 17px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: border-color .16s ease, background .16s ease;
}
#page-pf-connect .pf-list > .pf-card.pf-item:hover,
#page-pf-connect .pf-list > .pf-item:hover { border-color: #3b587d; background: #142238; }
#page-pf-connect .pf-item-main { display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 12px; align-items: start; }
#page-pf-connect .pf-item-main > .connect-avatar { grid-row: 1 / span 3; }
#page-pf-connect .pf-item-main > strong { align-self: center; }
#page-pf-connect .pf-item-main > .pf-hint { grid-column: 2; }
#page-pf-connect .pf-item-main > .pf-text { grid-column: 2; margin-top: 5px; }
#page-pf-connect .pf-item-main:has(> .pf-hint) > .pf-text {
  max-width: 900px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px; background: var(--surface-2); color: var(--text-secondary);
}
#page-pf-connect .pf-list > .pf-item > .connect-avatar { margin-right: 1px; }
#page-pf-connect .pf-list > .pf-item > span:not(.connect-avatar) { color: var(--text); font-weight: 700; }
#page-pf-connect .pf-col { flex-direction: row; align-items: center; gap: 8px; }
#page-pf-connect .pf-col .btn-primary,
#page-pf-connect .pf-col .pf-btn-ghost { min-width: 90px; }
#page-pf-connect .pf-list > .pf-card.pf-item > .pf-btn-ghost,
#page-pf-connect .pf-list > .pf-card.pf-item > .pf-col { flex: 0 0 auto; }
#page-pf-connect .pf-empty { padding: 38px 18px; background: rgba(17,28,46,.5); }
#page-pf-connect .pf-empty i { color: var(--primary-light); }
#page-pf-connect .pf-error { border: 1px solid rgba(251,123,130,.24); border-radius: 13px; }

body:has(#themeToggle:checked) #page-pf-connect > .pf-tabs { background: #f8faff; }
body:has(#themeToggle:checked) #page-pf-connect > .pf-tabs .pf-tab { color: #53647a; }
body:has(#themeToggle:checked) #page-pf-connect > .pf-tabs .pf-tab:hover { color: #1f3148; background: #edf3fb; }
body:has(#themeToggle:checked) #page-pf-connect > .pf-tabs .pf-tab.active { color: #fff; background: #315f97; border-color: #477ab5; }
body:has(#themeToggle:checked) #page-pf-connect .pf-dev { background: linear-gradient(155deg, #fff, #f7faff); box-shadow: 0 8px 24px rgba(23,35,55,.07); }
body:has(#themeToggle:checked) #page-pf-connect .pf-dev:hover { background: #fff; border-color: #9db9dd; box-shadow: 0 12px 28px rgba(23,35,55,.12); }
body:has(#themeToggle:checked) #page-pf-connect .connect-person .pf-hint { color: #657790; }
body:has(#themeToggle:checked) #page-pf-connect .pf-dev .pf-chip { color: #405774; background: #f0f5fc; border-color: #d8e2ef; }
body:has(#themeToggle:checked) #page-pf-connect .pf-list > .pf-card.pf-item,
body:has(#themeToggle:checked) #page-pf-connect .pf-list > .pf-item { background: #fff; }
body:has(#themeToggle:checked) #page-pf-connect .pf-list > .pf-card.pf-item:hover,
body:has(#themeToggle:checked) #page-pf-connect .pf-list > .pf-item:hover { background: #f7faff; border-color: #c4d5eb; }
body:has(#themeToggle:checked) #page-pf-connect .pf-empty { background: #fff; }
body:has(#themeToggle:checked) #page-pf-connect .pf-item-main:has(> .pf-hint) > .pf-text { background: #f1f5fb; }
body:has(#themeToggle:checked) #page-pf-connect .connect-request-card { background:linear-gradient(125deg,#fff,#f6f9fe); box-shadow:0 8px 22px rgba(23,35,55,.07); }
body:has(#themeToggle:checked) #page-pf-connect .connect-request-card:hover { background:#fff; }
body:has(#themeToggle:checked) #page-pf-connect .connect-request-count { color:#315f97; background:#eff5fd; }
body:has(#themeToggle:checked) #page-pf-connect .connect-request-kicker { color:#315f97; }
body:has(#themeToggle:checked) #page-pf-connect .pf-dev .pf-row button.pf-btn-ghost:not(.connect-details-toggle) { color:#315f97; background:#f1f6fd; }

@media (max-width: 760px) {
  #page-pf-connect > .pf-tabs:not(.connect-tabs) { width: 100%; overflow-x: auto; scrollbar-width: thin; }
  #page-pf-connect > .connect-tabs { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; overflow: visible; }
  #page-pf-connect > .connect-tabs .pf-tab { min-width: 0; min-height: 40px; padding: 8px 5px; font-size: 12px; }
  #page-pf-connect .connect-person-row { align-items: stretch; flex-direction: column; gap: 13px; }
  #page-pf-connect .pf-dev .pf-row { width: 100%; flex-wrap: wrap; gap: clamp(6px, 1.5vw, 8px); }
  #page-pf-connect .pf-dev .pf-row .connect-details-toggle,
  #page-pf-connect .pf-dev .pf-row .btn-primary,
  #page-pf-connect .pf-dev .pf-row button.pf-btn-ghost:not(.connect-details-toggle) {
    flex: 1 1 120px; width: auto; min-width: 0; min-height: clamp(36px, 5.5vw, 42px);
    padding: clamp(6px, 1.5vw, 9px) clamp(8px, 2.2vw, 13px);
    font-size: clamp(12px, 1.8vw, 14px); line-height: 1.2; text-align: center; white-space: normal;
  }
}
@media (max-width: 560px) {
  #page-pf-connect > .pf-head { align-items: flex-start; }
  #page-pf-connect > .connect-tabs .pf-tab { padding: 8px 4px; }
  #page-pf-connect > .connect-tabs .connect-tab-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  #page-pf-connect .pf-dev { padding: 15px; }
  #page-pf-connect .pf-item { align-items: center; }
  #page-pf-connect .pf-item-main { flex-basis: 100%; }
  #page-pf-connect .pf-col { width: 100%; }
  #page-pf-connect .pf-col > * { flex: 1 1 0; }
  #page-pf-connect .pf-list > .pf-card.pf-item > .pf-btn-ghost { margin-left: auto; }
  #page-pf-connect .connect-request-heading { align-items:flex-start; }
  #page-pf-connect .connect-request-card { align-items:stretch; }
  #page-pf-connect .connect-request-card .pf-col { width:100%; }
  #page-pf-connect .connect-request-card .pf-col > * { flex:1 1 0; }
  #page-pf-connect .connect-sent-card { align-items:flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #page-pf-connect .pf-dev,
  #page-pf-connect .pf-list > .pf-card.pf-item,
  #page-pf-connect .pf-list > .pf-item,
  #page-pf-connect > .pf-tabs .pf-tab,
  #page-pf-connect .connect-details-panel,
  #page-pf-connect .connect-details-toggle i { transition: none; }
}

@media (max-width: 640px) {
  .profile-premium-plans { grid-template-columns: minmax(0, 1fr); }
  .profile-premium-modal { max-height: calc(100dvh - 16px); }
}
@media (max-width: 480px) {
  .profile-card { padding: 20px; }
  .profile-upgrade-trigger { gap: 9px; padding: 12px; }
  .profile-upgrade-crown { width: 36px; height: 36px; flex-basis: 36px; }
  .profile-premium-plan { padding: 14px; }
  .profile-premium-actions { flex-wrap: wrap; }
  .profile-premium-actions button { flex: 1 1 130px; }
  .profile-premium-actions .btn-primary { min-width: 0; }
}

/* Dev Connect discovery refresh */
#page-pf-connect .connect-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 190px; overflow: hidden; margin: 0 0 22px; padding: 30px clamp(22px, 4vw, 44px);
  border: 1px solid rgba(133, 177, 235, .24); border-radius: 24px;
  background:
    radial-gradient(ellipse at 86% 30%, rgba(108, 168, 255, .22), transparent 38%),
    linear-gradient(120deg, #10213a, #172b49 58%, #1b3556);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .18), inset 0 1px rgba(255,255,255,.07);
}
#page-pf-connect .connect-hero::after {
  position: absolute; inset: auto -6% -110px 42%; height: 200px; border: 1px solid rgba(176, 207, 248, .12);
  border-radius: 50%; content: ""; transform: rotate(-12deg); pointer-events: none;
}
#page-pf-connect .connect-hero-copy { position: relative; z-index: 1; max-width: 720px; }
#page-pf-connect .connect-hero-eyebrow,
#page-pf-connect .connect-section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: #a9ceff; font-size: 10px;
  font-weight: 850; letter-spacing: .15em;
}
#page-pf-connect .connect-hero h1 { margin: 12px 0 8px; color: #f5f9ff; font-size: clamp(27px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
#page-pf-connect .connect-hero h1 span { color: #8dbdff; }
#page-pf-connect .connect-hero p { max-width: 600px; margin: 0; color: #c1d2e8; font-size: 14px; line-height: 1.65; }
#page-pf-connect .connect-hero-mark { position: relative; z-index: 1; display: grid; width: 118px; height: 118px; flex: 0 0 118px; place-items: center; border: 1px solid rgba(194,218,250,.27); border-radius: 34px; color: #c7e0ff; background: linear-gradient(145deg, rgba(174,209,255,.19), rgba(92,141,203,.08)); box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 38px rgba(0,0,0,.15); transform: rotate(4deg); }
#page-pf-connect .connect-hero-mark i { font-size: 43px; }
#page-pf-connect .connect-hero-mark span { position: absolute; top: 16px; right: 15px; width: 10px; height: 10px; border-radius: 50%; background: #88e0c1; box-shadow: 0 0 18px rgba(136,224,193,.8); }
#page-pf-connect > .connect-tabs { margin-bottom: 20px; border-color: rgba(144,173,211,.18); border-radius: 15px; background: rgba(12,22,37,.62); box-shadow: inset 0 1px rgba(255,255,255,.035); }
#page-pf-connect .connect-discovery-intro,
#page-pf-connect .connect-connections-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
#page-pf-connect .connect-discovery-intro h2,
#page-pf-connect .connect-connections-heading h2 { margin: 5px 0 4px; color: var(--text); font-size: clamp(19px, 2vw, 24px); letter-spacing: -.025em; }
#page-pf-connect .connect-discovery-intro p,
#page-pf-connect .connect-connections-heading p { margin: 0; color: var(--muted); font-size: 13px; }
#page-pf-connect .connect-directory-count { display: inline-flex; align-items: center; min-height: 34px; flex: 0 0 auto; padding: 7px 12px; border: 1px solid rgba(121,173,246,.23); border-radius: 999px; color: #c8dfff; background: rgba(61,103,155,.13); font-size: 11px; font-weight: 750; }
#page-pf-connect .connect-discovery-panel { margin-bottom: 19px; }
#page-pf-connect .connect-discovery-toggle { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid rgba(121,173,246,.25); border-radius: 16px; color: #edf5ff; background: radial-gradient(ellipse at 0 0,rgba(89,149,228,.16),transparent 58%),linear-gradient(145deg,rgba(20,34,54,.96),rgba(15,27,45,.92)); box-shadow: inset 0 1px rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.1); cursor: pointer; list-style: none; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
#page-pf-connect .connect-discovery-toggle::-webkit-details-marker { display: none; }
#page-pf-connect .connect-discovery-toggle:hover { border-color: rgba(121,173,246,.48); transform: translateY(-1px); }
#page-pf-connect .connect-discovery-toggle:focus-visible { outline: 2px solid #79adf6; outline-offset: 3px; }
#page-pf-connect .connect-discovery-toggle-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(121,173,246,.25); border-radius: 13px; color: #b9d8ff; background: rgba(79,127,188,.18); font-size: 17px; }
#page-pf-connect .connect-discovery-toggle-copy { display: grid; min-width: 0; gap: 3px; }
#page-pf-connect .connect-discovery-toggle-copy strong { overflow: hidden; color: inherit; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
#page-pf-connect .connect-discovery-toggle-copy small { overflow: hidden; color: #9eb4d0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#page-pf-connect .connect-discovery-toggle-action { display: inline-flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(121,173,246,.22); border-radius: 10px; color: #c5ddfc; background: rgba(79,127,188,.12); font-size: 11px; font-weight: 750; white-space: nowrap; }
#page-pf-connect .connect-discovery-toggle-action [data-state="close"],
#page-pf-connect .connect-discovery-panel[open] .connect-discovery-toggle-action [data-state="open"] { display: none; }
#page-pf-connect .connect-discovery-panel[open] .connect-discovery-toggle-action [data-state="close"] { display: inline; }
#page-pf-connect .connect-discovery-toggle-action i { color: #92b8e9; transition: transform .16s ease; }
#page-pf-connect .connect-discovery-panel[open] .connect-discovery-toggle-action i { transform: rotate(180deg); }
#page-pf-connect .connect-discovery-tools { margin-bottom: 19px; padding: 14px; border: 1px solid rgba(137,165,204,.18); border-radius: 18px; background: linear-gradient(145deg, rgba(20,34,54,.88), rgba(15,27,45,.8)); box-shadow: 0 12px 30px rgba(0,0,0,.1), inset 0 1px rgba(255,255,255,.035); }
#page-pf-connect .connect-discovery-panel > .connect-discovery-tools { margin: 12px 0 0; }
#page-pf-connect .connect-search { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 13px; border: 1px solid rgba(132,165,211,.24); border-radius: 13px; color: #9dbbe2; background: rgba(7,16,29,.46); }
#page-pf-connect .connect-search:focus-within { border-color: #6fa8f1; box-shadow: 0 0 0 3px rgba(95,154,229,.13); }
#page-pf-connect .connect-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 13px; }
#page-pf-connect .connect-search input::placeholder { color: #8193aa; }
#page-pf-connect .connect-search button { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 0; border-radius: 8px; color: #c4d9f4; background: rgba(137,165,204,.14); font-size: 20px; cursor: pointer; }
#page-pf-connect .connect-discovery-actions { display: flex; justify-content: flex-end; margin: 10px 0; }
#page-pf-connect .connect-collab-toggle,
#page-pf-connect .connect-reset-filters { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(131,164,207,.23); border-radius: 10px; color: #b7cbe4; background: rgba(115,150,197,.07); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: .16s ease; }
#page-pf-connect .connect-collab-toggle:hover,
#page-pf-connect .connect-reset-filters:hover { border-color: rgba(121,173,246,.48); color: #e7f2ff; background: rgba(79,127,188,.15); }
#page-pf-connect .connect-collab-toggle[aria-pressed="true"] { border-color: rgba(104,207,168,.48); color: #b5f0d7; background: rgba(43,143,108,.15); }
#page-pf-connect .connect-filter-drawer { border-top: 1px solid rgba(137,165,204,.14); }
#page-pf-connect .connect-filter-drawer > summary { display: flex; align-items: center; gap: 9px; width: fit-content; padding: 13px 2px 10px; color: #bbcee7; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
#page-pf-connect .connect-filter-drawer > summary::-webkit-details-marker { display: none; }
#page-pf-connect .connect-filter-drawer > summary i:last-child { margin-left: 3px; color: #8198b6; font-size: 10px; transition: transform .16s ease; }
#page-pf-connect .connect-filter-drawer[open] > summary i:last-child { transform: rotate(180deg); }
#page-pf-connect .connect-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 2px 0 12px; }
#page-pf-connect .connect-filter-field { display: grid; min-width: 0; gap: 6px; color: #91a7c2; font-size: 10px; font-weight: 750; }
#page-pf-connect .connect-filter-field select { width: 100%; min-width: 0; height: 39px; padding: 0 28px 0 10px; border: 1px solid rgba(133,163,203,.21); border-radius: 9px; color: #d7e4f5; background: #14243a; font: inherit; font-size: 11px; }
#page-pf-connect .connect-filter-field select:focus-visible { outline: 2px solid #79adf6; outline-offset: 2px; }
#page-pf-connect .connect-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; border-top: 1px solid rgba(137,165,204,.12); padding-top: 10px; }
#page-pf-connect .connect-active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#page-pf-connect .connect-active-filters:empty { display: none; }
#page-pf-connect .connect-filter-chip { max-width: 100%; overflow: hidden; padding: 5px 9px; border: 1px solid rgba(121,173,246,.22); border-radius: 999px; color: #bfd9fb; background: rgba(74,119,178,.12); font: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
#page-pf-connect .connect-filter-chip:hover { background: rgba(74,119,178,.24); }
#page-pf-connect .connect-reset-filters { min-height: 32px; flex: 0 0 auto; padding: 5px 9px; font-size: 10px; }
#page-pf-connect #pfDevGrid.connect-developer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 15px; }
#page-pf-connect #pfDevGrid.connect-developer-grid > .pf-dev[hidden],
#page-pf-connect #connectNoResults[hidden],
#page-pf-connect #connectSearchClear[hidden],
#page-pf-connect #connectConnectionsEmpty[hidden],
#page-pf-connect #connectConnectionsNoMatches[hidden] { display: none !important; }
#page-pf-connect #pfDevGrid .pf-dev { display: flex; min-height: 100%; flex-direction: column; gap: 12px; padding: 17px; border-color: rgba(132,165,209,.17); border-radius: 17px; background: linear-gradient(150deg, rgba(24,40,62,.98), rgba(15,27,44,.99)); }
#page-pf-connect #pfDevGrid .pf-dev:hover { border-color: rgba(116,164,226,.52); }
#page-pf-connect .connect-person-row { align-items: stretch; flex-direction: column; gap: 13px; }
#page-pf-connect .connect-person { align-items: flex-start; }
#page-pf-connect .connect-person-copy { flex: 1; gap: 4px; }
#page-pf-connect .connect-details-toggle { border-color: var(--border); color: var(--connect-accent); background: var(--surface-2, var(--surface)); font-size: 11px; }
#page-pf-connect .connect-details-toggle:hover { border-color: var(--connect-accent); color: var(--text); }
#page-pf-connect .connect-availability { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 3px; color: #a6b6cc; font-size: 10px; }
#page-pf-connect .connect-availability.is-available { color: #83dcb6; }
#page-pf-connect .connect-availability i { font-size: 11px; }
#page-pf-connect #pfDevGrid .pf-dev > .pf-text { min-height: 40px; line-height: 1.55; }
#page-pf-connect #pfDevGrid .pf-dev > .pf-chips { display: flex; flex-wrap: wrap; }
#page-pf-connect #pfDevGrid .pf-dev > .pf-links { margin-top: auto; padding-top: 4px; }
#page-pf-connect #pfDevGrid .pf-dev .connect-project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#page-pf-connect #pfDevGrid .pf-dev .connect-project-tags > span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid rgba(106,161,230,.2); border-radius: 999px; color: #b8d5fa; background: rgba(69,117,175,.12); font-size: 10px; }
#page-pf-connect #pfDevGrid .pf-dev .connect-project-tags i { color: #8fbcf6; }
#page-pf-connect #pfDevGrid .pf-dev .pf-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; gap: 7px; }
#page-pf-connect #pfDevGrid .pf-dev .pf-row > * {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 42px;
  padding: 7px 8px; border-radius: 9px; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal;
}
#page-pf-connect #pfDevGrid .pf-dev .pf-row .connect-message-button { gap: 6px; }
#page-pf-connect .connect-details-panel { width: 100%; }
#page-pf-connect .connect-no-results { margin-top: 12px; }
#page-pf-connect .connect-discovery-meta { display: grid; justify-items: end; gap: 7px; }
#page-pf-connect .connect-skill-match-summary {
  display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2, var(--surface)); color: var(--primary-hover);
  font-size: 11px; font-weight: 800;
}
#page-pf-connect .connect-skill-match-summary[hidden],
#page-pf-connect .connect-skill-guidance[hidden] { display: none !important; }
#page-pf-connect .connect-skill-guidance { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
#page-pf-connect .connect-skill-match {
  display: grid; gap: 5px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2, var(--surface)); color: var(--text-secondary); font-size: 11px;
}
#page-pf-connect .connect-skill-match-heading { color: var(--primary-hover); font-size: 11px; font-weight: 800; }
#page-pf-connect .connect-skill-match p { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; line-height: 1.45; }
#page-pf-connect .connect-skill-match p b { color: var(--text); font-weight: 750; }
#page-pf-connect .connect-request-card .pf-text { white-space: pre-line; overflow-wrap: anywhere; }
#page-pf-connect .connect-connections { display: grid; gap: 13px; }
#page-pf-connect .connect-connections-heading { margin-bottom: 3px; }
#page-pf-connect .connect-connections-search { max-width: 520px; }
#page-pf-connect .connect-connections-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
#page-pf-connect .connect-connection-card { align-items: center; gap: 14px; }
#page-pf-connect .connect-connection-card .pf-item-main { flex: 1; min-width: 0; }
#page-pf-connect .connect-connection-card > .pf-btn-ghost { flex: 0 0 auto; }
#page-pf-connect .connect-no-results .pf-empty { margin: 0; }
#pfCollabRequestModal .pf-collab-request-card { width: min(100%, 700px); }
#pfCollabRequestModal .pf-collab-request-card form { gap: 12px; }
#pfCollabRequestModal .pf-collab-request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#pfCollabRequestModal .pf-collab-field {
  display: grid; min-width: 0; gap: 6px; color: var(--text-secondary);
  font-size: 12px; font-weight: 750;
}
#pfCollabRequestModal .pf-collab-field span { color: var(--muted); font-size: 11px; font-weight: 500; }
#pfCollabRequestModal .pf-collab-field--wide { grid-column: 1 / -1; }
#pfCollabRequestModal .pf-collab-field input,
#pfCollabRequestModal .pf-collab-field select,
#pfCollabRequestModal .pf-collab-field textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2, var(--surface)); color: var(--text);
  font: inherit; font-size: 13px;
}
#pfCollabRequestModal .pf-collab-field textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
#pfCollabRequestModal .pf-collab-field input:focus-visible,
#pfCollabRequestModal .pf-collab-field select:focus-visible,
#pfCollabRequestModal .pf-collab-field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#pfCollabRequestModal .pf-collab-request-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero { border-color: #d3e2f5; background: radial-gradient(ellipse at 86% 30%, rgba(108,168,255,.22),transparent 38%), linear-gradient(120deg,#f3f7fd,#e9f1fb 58%,#e0ebf9); box-shadow: 0 20px 46px rgba(33,58,91,.08), inset 0 1px #fff; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero h1 { color: #1d2f47; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero h1 span { color: #315f97; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero p { color: #566a84; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero-eyebrow,
body:has(#themeToggle:checked) #page-pf-connect .connect-section-eyebrow { color: #315f97; }
body:has(#themeToggle:checked) #page-pf-connect .connect-hero-mark { border-color: #c8d9ef; color: #315f97; background: linear-gradient(145deg,#fff,#e3edf9); }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-tools { border-color: #dce5f1; background: linear-gradient(145deg,#fff,#f5f8fc); box-shadow: 0 12px 30px rgba(23,35,55,.05); }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-toggle { border-color: #d5e1f0; color: #253b58; background: radial-gradient(ellipse at 0 0,rgba(90,148,220,.12),transparent 58%),linear-gradient(145deg,#fff,#f5f8fc); box-shadow: inset 0 1px #fff,0 10px 24px rgba(23,35,55,.05); }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-toggle-icon { border-color: #d8e4f2; color: #376ba5; background: #edf5ff; }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-toggle-copy small { color: #687e98; }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-toggle-action { border-color: #d8e4f2; color: #376ba5; background: #f0f6fd; }
body:has(#themeToggle:checked) #page-pf-connect .connect-discovery-toggle-action i { color: #557ba8; }
body:has(#themeToggle:checked) #page-pf-connect .connect-search { border-color: #d5e0ee; color: #617894; background: #f7f9fc; }
body:has(#themeToggle:checked) #page-pf-connect .connect-search input { color: #1f3148; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-drawer { border-color: #e3eaf3; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-drawer > summary { color: #405774; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-field { color: #61748d; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-field select { border-color: #d7e1ee; color: #30455f; background: #f8fafd; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-footer { border-color: #e3eaf3; }
body:has(#themeToggle:checked) #page-pf-connect .connect-filter-chip { color: #315f97; background: #eff5fd; }
body:has(#themeToggle:checked) #page-pf-connect .connect-collab-toggle,
body:has(#themeToggle:checked) #page-pf-connect .connect-reset-filters { border-color: #d5e0ee; color: #536983; background: #f8fafd; }
body:has(#themeToggle:checked) #page-pf-connect .connect-collab-toggle[aria-pressed="true"] { border-color: #a9d8c6; color: #21744f; background: #effaf5; }
body:has(#themeToggle:checked) #page-pf-connect #pfDevGrid .pf-dev { border-color: #e0e8f2; background: linear-gradient(150deg,#fff,#f7faff); box-shadow: 0 9px 24px rgba(23,35,55,.06); }
body:has(#themeToggle:checked) #page-pf-connect #pfDevGrid .pf-dev:hover { border-color: #a9c5e8; }
body:has(#themeToggle:checked) #page-pf-connect .connect-availability { color: #697d96; }
body:has(#themeToggle:checked) #page-pf-connect .connect-availability.is-available { color: #23885c; }
body:has(#themeToggle:checked) #page-pf-connect #pfDevGrid .pf-dev .connect-project-tags > span { border-color: #d9e6f5; color: #405e81; background: #f1f6fc; }
body:has(#themeToggle:checked) #page-pf-connect .connect-details-toggle { color: #315f97; }
body:has(#themeToggle:checked) #page-pf-connect .connect-directory-count { color: #315f97; background: #eff5fd; }
@media (max-width: 1080px) {
  #page-pf-connect #pfDevGrid.connect-developer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #page-pf-connect .connect-filter-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1600px) {
  #page-pf-connect #pfDevGrid .pf-dev .pf-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  #page-pf-connect #pfDevGrid .pf-dev .pf-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #page-pf-connect #pfDevGrid .pf-dev .pf-row .connect-details-toggle { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  #page-pf-connect #pfDevGrid.connect-developer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #page-pf-connect .connect-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-pf-connect .connect-hero { min-height: 160px; }
  #page-pf-connect .connect-hero-mark { width: 86px; height: 86px; flex-basis: 86px; border-radius: 26px; }
  #page-pf-connect .connect-hero-mark i { font-size: 32px; }
  #page-pf-connect .connect-connections-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  #page-pf-connect .connect-hero { display: none; min-height: 0; padding: 23px 19px; border-radius: 18px; }
  #page-pf-connect .connect-hero-mark { width: 58px; height: 58px; flex-basis: 58px; border-radius: 19px; }
  #page-pf-connect .connect-hero-mark i { font-size: 23px; }
  #page-pf-connect .connect-discovery-intro { display: none; }
  #page-pf-connect .connect-discovery-toggle { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; padding: 10px; }
  #page-pf-connect .connect-discovery-toggle-icon { width: 38px; height: 38px; border-radius: 11px; }
  #page-pf-connect .connect-discovery-toggle-copy strong { font-size: 12px; }
  #page-pf-connect .connect-discovery-toggle-copy small { font-size: 10px; }
  #page-pf-connect .connect-discovery-toggle-action { padding: 8px; }
  #page-pf-connect .connect-discovery-toggle-action [data-state] { display: none !important; }
  #page-pf-connect .connect-filter-drawer > summary { width: 100%; min-height: 44px; justify-content: space-between; padding: 10px 4px; }
  #page-pf-connect .connect-discovery-intro,
  #page-pf-connect .connect-connections-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  #page-pf-connect .connect-discovery-meta { justify-items: start; }
#page-pf-connect .connect-directory-count { min-height: 28px; }
  #page-pf-connect .connect-filter-grid { gap: 8px; }
  #page-pf-connect #pfDevGrid.connect-developer-grid { grid-template-columns: minmax(0,1fr); }
  #page-pf-connect #pfDevGrid .pf-dev { min-height: 0; }
  #page-pf-connect .connect-filter-footer { align-items: flex-start; flex-direction: column; }
  #page-pf-connect .connect-reset-filters { align-self: flex-end; }
  #page-pf-connect .connect-discovery-tools { padding: 11px; }
  #pfCollabRequestModal .pf-collab-request-fields { grid-template-columns: minmax(0, 1fr); }
  #pfCollabRequestModal .pf-collab-field--wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #page-pf-connect .connect-hero-mark,
  #page-pf-connect .connect-discovery-toggle,
  #page-pf-connect .connect-discovery-toggle-action i,
  #page-pf-connect .connect-filter-chip,
  #page-pf-connect .connect-collab-toggle,
  #page-pf-connect .connect-reset-filters,
  #page-pf-connect .connect-filter-drawer > summary i:last-child { transition: none; }
}

.header-insights {
  display: grid;
  flex: 0 1 360px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 5px;
  width: min(100%, 360px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.header-insight {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid rgba(145, 185, 255, .32);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(50, 102, 165, .28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.header-insight:hover { border-color: rgba(150, 195, 255, .58); transform: translateY(-1px); }
.header-insight > i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--primary-light);
  background: rgba(80, 139, 215, .16);
  font-size: 12px;
  text-align: center;
}
.header-insight:nth-child(2) > i { color: #ff8296; background: rgba(255, 105, 135, .13); }
.header-insight:nth-child(3) > i { color: #f0c46a; background: rgba(240, 196, 106, .14); }
.header-insight-copy {
  display: grid;
  grid-template-rows: 10px 15px 10px;
  align-content: center;
  min-width: 0;
  gap: 1px;
  line-height: 1.15;
}
.header-insight-label {
  color: var(--muted);
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-insight-value {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-insight-xp {
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 650;
  line-height: 10px;
  white-space: nowrap;
}
body:has(#themeToggle:checked) .header-insights {
  border-color: transparent;
  background: transparent;
}
body:has(#themeToggle:checked) .header-insight {
  border-color: rgba(49, 95, 151, .22);
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48)), rgba(233, 242, 253, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
body:has(#themeToggle:checked) .header-insight-label { color: #60738d; }

@media (max-width: 1100px) {
  .main-header { flex-wrap: wrap; }
  .main-header .flex.items-center.gap-4 { order: 1; flex: 1 1 auto; }
  .header-actions { order: 2; margin-left: auto; }
  .header-insights { order: 3; flex: 0 1 360px; width: min(100%, 360px); max-width: 360px; }
  .main-header .header-section-search { order: 4; flex: 1 0 100%; max-width: none; margin: 0; }
}
@media (max-width: 520px) {
  .header-insights { gap: 4px; padding: 3px; }
  .header-insight {
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 4px;
    min-height: 40px;
    padding: 3px 4px;
    text-align: left;
  }
  .header-insight > i { width: 19px; height: 19px; justify-self: center; font-size: 9px; }
  .header-insight-copy { grid-template-rows: 9px 13px 9px; justify-items: start; width: 100%; gap: 0; }
  .header-insight-label { font-size: 7px; letter-spacing: 0; line-height: 9px; }
  .header-insight-value { font-size: 10px; line-height: 13px; }
  .header-insight-xp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header-insight { transition: none; }
}
