 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: system-ui, -apple-system, sans-serif; background: #f0f2f5; color: #1f2937; min-height: 100vh; }

    /* ── TOP NAV ── */
    header {
      background: #ffffff;
      border-bottom: 1px solid #e4e6ea;
      position: sticky;
      top: 0;
      z-index: 200;
      height: 56px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      flex-shrink: 0;
    }
    .nav-logo img {
      height: 38px;
      width: auto;
      max-width: 140px;
      object-fit: contain;
    }
    .nav-logo-fallback {
      display: none;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
      font-size: 16px;
    }
    .nav-logo-text {
      font-size: 16px;
      font-weight: 700;
      color: #4f46e5;
      white-space: nowrap;
    }
    .nav-search {
      flex: 1;
      max-width: 280px;
      margin-left: auto;
      position: relative;
    }
    .nav-search input {
      width: 100%;
      background: #f0f2f5;
      border: 1px solid #e4e6ea;
      border-radius: 20px;
      padding: 7px 14px 7px 36px;
      font-size: 13px;
      color: #1f2937;
      outline: none;
      transition: border-color 0.2s;
    }
    .nav-search input::placeholder { color: #9ca3af; }
    .nav-search input:focus { border-color: #4f46e5; background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
    .nav-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
    .nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .icon-btn {
      background: #f0f2f5;
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #6b7280;
      transition: background 0.15s, color 0.15s;
      position: relative;
      text-decoration: none;
    }
    .icon-btn:hover { background: #e4e6ea; color: #4f46e5; }
    .icon-btn .badge {
      position: absolute;
      top: 2px; right: 2px;
      background: #e53e3e;
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      border-radius: 10px;
      padding: 1px 4px;
      min-width: 16px;
      text-align: center;
      line-height: 14px;
    }
    .nav-menu { display: flex; align-items: center; gap: 2px; }
    .nav-menu a {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 500;
      color: #6b7280;
      text-decoration: none;
      border-radius: 8px;
      white-space: nowrap;
      transition: background 0.15s, color 0.15s;
    }
    .nav-menu a:hover { background: #f0f2f5; color: #4f46e5; }
    .nav-menu a.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
      border-radius: 8px;
      margin-left: auto;
    }
    .hamburger span { display: block; width: 22px; height: 2px; background: #6b7280; border-radius: 2px; transition: all 0.3s; }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-nav {
      display: none;
      position: fixed;
      top: 56px; left: 0; right: 0;
      background: #ffffff;
      border-bottom: 1px solid #e4e6ea;
      z-index: 199;
      padding: 8px 0;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      max-height: calc(100vh - 56px);
      overflow-y: auto;
    }
    .mobile-nav.open { display: block; }
    .mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; color: #6b7280; text-decoration: none; transition: background 0.15s, color 0.15s; }
    .mobile-nav a:hover { background: #f0f2f5; color: #4f46e5; }
    .mobile-nav a.active { color: #4f46e5; background: #eef2ff; font-weight: 600; }

    /* ── MOBILE TIMELINE DROPDOWN ── */
    .mobile-nav-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 20px;
      font-size: 14px;
      color: #6b7280;
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      cursor: pointer;
      background: none;
      border: none;
      width: 100%;
      text-align: left;
      font-family: inherit;
    }
    .mobile-nav-dropdown-toggle:hover { background: #f0f2f5; color: #4f46e5; }
    .mobile-nav-dropdown-toggle.active { color: #4f46e5; background: #eef2ff; font-weight: 600; }
    .mobile-nav-dropdown-toggle .mobile-dropdown-arrow {
      margin-left: auto;
      width: 14px;
      height: 14px;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    .mobile-nav-dropdown-toggle.open .mobile-dropdown-arrow { transform: rotate(180deg); }
    .mobile-nav-submenu {
      display: none;
      background: #f8f9ff;
      border-top: 1px solid #eef2ff;
      border-bottom: 1px solid #eef2ff;
    }
    .mobile-nav-submenu.open { display: block; }
    .mobile-nav-submenu a {
      padding: 10px 20px 10px 44px;
      font-size: 13px;
      border-bottom: none;
    }
    .mobile-nav-submenu a:last-child { border-bottom: none; }

    /* ── TIMELINE DROPDOWN ── */
    .nav-dropdown {
      position: relative;
    }
    .nav-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 500;
      color: #6b7280;
      background: transparent;
      text-decoration: none;
      border-radius: 8px;
      white-space: nowrap;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: background 0.15s, color 0.15s;
    }
    .nav-dropdown-toggle:hover { background: #f0f2f5; color: #4f46e5; }
    .nav-dropdown.open .nav-dropdown-toggle { background: #eef2ff; color: #4f46e5; font-weight: 600; }
    .nav-dropdown-toggle .dropdown-arrow {
      width: 12px;
      height: 12px;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    .nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      background: #ffffff;
      border: 1px solid #e4e6ea;
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      min-width: 180px;
      z-index: 300;
      padding: 6px;
      animation: dropdownFadeIn 0.18s ease;
    }
    @keyframes dropdownFadeIn {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 500;
      color: #374151;
      text-decoration: none;
      border-radius: 7px;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .nav-dropdown-menu a:hover { background: #eef2ff; color: #4f46e5; }
    .nav-dropdown-menu a.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }

    /* ── GOOGLE USER PILL & LOGIN BUTTON ── */
    .btn-login-trigger {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #4f46e5;
      color: #fff;
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-login-trigger:hover { background: #4338ca; }

    .google-user-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #f0f2f5;
      border: 1px solid #e4e6ea;
      border-radius: 24px;
      padding: 4px 12px 4px 4px;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
      font-family: inherit;
      position: relative;
    }
    .google-user-pill:hover { background: #eef2ff; border-color: #a5b4fc; }
    .google-user-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #c4b5fd;
      flex-shrink: 0;
    }
    .google-user-name {
      font-size: 13px;
      font-weight: 600;
      color: #1f2937;
      white-space: nowrap;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .google-user-badge {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    /* ── THEMES BAR ── */
    .themes-bar {
      background: #ffffff;
      border-bottom: 1px solid #e4e6ea;
      padding: 0 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      scrollbar-width: none;
      height: 44px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .themes-bar::-webkit-scrollbar { display: none; }
    .themes-label {
      font-size: 11px;
      font-weight: 600;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      white-space: nowrap;
      flex-shrink: 0;
      margin-right: 4px;
    }
    .theme-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 13px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
      cursor: pointer;
      border: none;
      transition: opacity 0.15s, transform 0.15s;
    }
    .theme-chip:hover { opacity: 0.85; transform: translateY(-1px); }
    .theme-chip.active { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .tc-indigo  { background: #eef2ff; color: #4f46e5; }
    .tc-rose    { background: #fff1f2; color: #e11d48; }
    .tc-amber   { background: #fffbeb; color: #d97706; }
    .tc-emerald { background: #ecfdf5; color: #059669; }
    .tc-sky     { background: #f0f9ff; color: #0284c7; }
    .tc-violet  { background: #f5f3ff; color: #7c3aed; }
    .tc-pink    { background: #fdf2f8; color: #db2777; }
    .tc-teal    { background: #f0fdfa; color: #0d9488; }
    .tc-orange  { background: #fff7ed; color: #ea580c; }
    .tc-indigo.active  { background: #4f46e5; color: #fff; }
    .tc-rose.active    { background: #e11d48; color: #fff; }
    .tc-amber.active   { background: #d97706; color: #fff; }
    .tc-emerald.active { background: #059669; color: #fff; }
    .tc-sky.active     { background: #0284c7; color: #fff; }
    .tc-violet.active  { background: #7c3aed; color: #fff; }
    .tc-pink.active    { background: #db2777; color: #fff; }
    .tc-teal.active    { background: #0d9488; color: #fff; }
    .tc-orange.active  { background: #ea580c; color: #fff; }

    /* ── LAYOUT ── */
    .page-wrap {
      display: flex;
      max-width: 1100px;
      margin: 0 auto;
      padding: 20px 16px;
      gap: 20px;
      align-items: flex-start;
    }

    /* Left sidebar */
    .sidebar-left {
      width: 230px;
      flex-shrink: 0;
      position: sticky;
      top: 108px;
    }
    .sidebar-card {
      background: #ffffff;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .sidebar-card h3 {
      font-size: 11px;
      font-weight: 600;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 10px;
    }
    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 8px;
      font-size: 13px;
      color: #6b7280;
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      margin-bottom: 2px;
    }
    .sidebar-link:hover { background: #f0f2f5; color: #4f46e5; }
    .sidebar-link.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }
    .sidebar-link svg { flex-shrink: 0; color: #9ca3af; }
    .sidebar-link:hover svg, .sidebar-link.active svg { color: #4f46e5; }
    .stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
    .stat-row:last-child { border-bottom: none; }
    .stat-label { font-size: 12px; color: #6b7280; }
    .stat-val { font-size: 13px; font-weight: 700; color: #1f2937; }

    /* Right sidebar */
    .sidebar-right {
      width: 260px;
      flex-shrink: 0;
      position: sticky;
      top: 108px;
    }
    .widget-title { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
    .recent-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid #f3f4f6;
      text-decoration: none;
    }
    .recent-item:last-child { border-bottom: none; }
    .recent-icon {
      width: 36px; height: 36px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }
    .recent-info { flex: 1; min-width: 0; }
    .recent-name { font-size: 13px; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .recent-sub { font-size: 11px; color: #9ca3af; }
    .recent-item:hover .recent-name { color: #4f46e5; }

    /* ── MAIN CONTENT ── */
    .main-content { flex: 1; min-width: 0; }

    /* Hero banner */
    .hero-banner {
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
      border-radius: 16px;
      padding: 32px 28px;
      margin-bottom: 20px;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .hero-banner::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 200px; height: 200px;
      background: rgba(255,255,255,0.07);
      border-radius: 50%;
    }
    .hero-banner::after {
      content: '';
      position: absolute;
      bottom: -60px; left: -20px;
      width: 160px; height: 160px;
      background: rgba(255,255,255,0.05);
      border-radius: 50%;
    }
    .hero-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
    .hero-sub { font-size: 14px; opacity: 0.85; margin-bottom: 18px; position: relative; z-index: 1; }
    .hero-stats { display: flex; gap: 24px; position: relative; z-index: 1; }
    .hero-stat { text-align: center; }
    .hero-stat-val { font-size: 22px; font-weight: 800; }
    .hero-stat-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

    /* Filter / search bar */
    .filter-bar {
      background: #fff;
      border-radius: 12px;
      padding: 12px 16px;
      margin-bottom: 20px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }
    .filter-search {
      flex: 1;
      min-width: 180px;
      position: relative;
    }
    .filter-search input {
      width: 100%;
      background: #f0f2f5;
      border: 1px solid #e4e6ea;
      border-radius: 20px;
      padding: 8px 14px 8px 36px;
      font-size: 13px;
      color: #1f2937;
      outline: none;
      transition: border-color 0.2s;
    }
    .filter-search input:focus { border-color: #4f46e5; background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
    .filter-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
    .filter-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .filter-btn.all { background: #4f46e5; color: #fff; }
    .filter-btn:not(.all) { background: #f0f2f5; color: #6b7280; }
    .filter-btn:not(.all):hover { background: #eef2ff; color: #4f46e5; }

    /* Section heading */
    .section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .section-heading h2 { font-size: 17px; font-weight: 700; color: #1f2937; }
    .section-heading span { font-size: 12px; color: #9ca3af; }

    /* Project grid */
    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 28px;
    }

    /* Project card */
    .project-card {
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
    }
    .project-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
    .project-card-banner {
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      position: relative;
    }
    .project-card-body { padding: 14px; }
    .project-card-title { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
    .project-card-desc { font-size: 12px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
    .project-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
    .project-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 12px;
      font-size: 10px;
      font-weight: 600;
    }
    .project-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 10px;
      border-top: 1px solid #f3f4f6;
    }
    .project-card-status {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
    }
    .status-dot { width: 7px; height: 7px; border-radius: 50%; }
    .status-live .status-dot { background: #059669; }
    .status-live { color: #059669; }
    .status-beta .status-dot { background: #d97706; }
    .status-beta { color: #d97706; }
    .status-new .status-dot { background: #4f46e5; }
    .status-new { color: #4f46e5; }
    .open-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 14px;
      background: #4f46e5;
      color: #fff;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s;
    }
    .open-btn:hover { background: #4338ca; }

    /* Detail box (expanded) */
    .detail-box {
      background: #f8f9ff;
      border: 1px solid #e0e7ff;
      border-radius: 10px;
      padding: 14px;
      margin-top: 10px;
      display: none;
    }
    .detail-box.open { display: block; }
    .detail-box h4 { font-size: 13px; font-weight: 700; color: #4f46e5; margin-bottom: 8px; }
    .detail-feature-list { list-style: none; padding: 0; }
    .detail-feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      font-size: 12px;
      color: #374151;
      padding: 4px 0;
      border-bottom: 1px solid #e8edf8;
    }
    .detail-feature-list li:last-child { border-bottom: none; }
    .detail-feature-list li::before { content: '✓'; color: #4f46e5; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
    .detail-toggle {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 600;
      color: #4f46e5;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      margin-top: 8px;
      transition: color 0.15s;
    }
    .detail-toggle:hover { color: #4338ca; }
    .detail-toggle svg { transition: transform 0.2s; }
    .detail-toggle.open svg { transform: rotate(180deg); }

    /* Card image */
    .project-card-img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      display: block;
    }
    .project-card-img-wrap {
      position: relative;
      overflow: hidden;
      height: 140px;
      background: #f0f2f5;
    }
    .project-card-img-wrap .project-card-banner {
      height: 140px;
      font-size: 48px;
    }

    /* Good-for badge */
    .good-for-box {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      background: linear-gradient(135deg, #f0fdf4, #dcfce7);
      border: 1px solid #bbf7d0;
      border-radius: 8px;
      padding: 8px 10px;
      margin-bottom: 10px;
      font-size: 11px;
      color: #166534;
      line-height: 1.45;
    }
    .good-for-box .gf-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
    .good-for-box strong { font-weight: 700; display: block; margin-bottom: 2px; color: #15803d; }

    /* Site intro box */
    .site-intro-box {
      background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #ecfdf5 100%);
      border: 1px solid #fde68a;
      border-radius: 14px;
      padding: 22px 24px;
      margin-bottom: 20px;
      display: flex;
      gap: 18px;
      align-items: flex-start;
    }
    .site-intro-icon {
      font-size: 40px;
      flex-shrink: 0;
      line-height: 1;
    }
    .site-intro-content h3 {
      font-size: 17px;
      font-weight: 800;
      color: #92400e;
      margin-bottom: 6px;
    }
    .site-intro-content p {
      font-size: 13px;
      color: #78350f;
      line-height: 1.6;
      margin-bottom: 10px;
    }
    .site-intro-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .site-intro-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      background: rgba(255,255,255,0.7);
      color: #92400e;
      border: 1px solid #fde68a;
    }

    /* Logged-in welcome box */
    .logged-in-box {
      background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #eff6ff 100%);
      border: 1px solid #86efac;
      border-radius: 14px;
      padding: 20px 24px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 18px;
    }
    .logged-in-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #4ade80;
      box-shadow: 0 4px 12px rgba(34,197,94,0.2);
      flex-shrink: 0;
    }
    .logged-in-content { flex: 1; }
    .logged-in-content h3 { font-size: 16px; font-weight: 800; color: #14532d; margin-bottom: 3px; }
    .logged-in-content p { font-size: 13px; color: #166534; line-height: 1.5; }
    .logged-in-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
    .logged-in-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.15s;
    }
    .logged-in-btn.primary { background: #059669; color: #fff; }
    .logged-in-btn.primary:hover { background: #047857; }
    .logged-in-btn.secondary { background: #fff; color: #059669; border: 1px solid #86efac; }
    .logged-in-btn.secondary:hover { background: #f0fdf4; }

    /* About Us Box */
    .about-us-box {
      background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
      border: 1px solid #e9d5ff;
      border-radius: 14px;
      padding: 22px 24px;
      margin-bottom: 20px;
      overflow: hidden;
    }
    .about-us-avatar-wrap {
      float: left;
      margin-right: 18px;
      margin-bottom: 10px;
      position: relative;
    }
    .about-us-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #c4b5fd;
      box-shadow: 0 4px 12px rgba(139,92,246,0.2);
    }
    .about-us-badge {
      position: absolute;
      bottom: -4px;
      right: -4px;
      background: #7c3aed;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      border: 2px solid #fff;
    }
    /* User dropdown */
    .user-wrap { position: relative; }
    .user-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 8px); right: 0;
      background: #ffffff;
      border: 1px solid #e4e6ea;
      border-radius: 10px;
      min-width: 200px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      z-index: 300;
      overflow: hidden;
    }
    .user-dropdown.open { display: block; }
    .user-dropdown-header {
      padding: 12px 16px;
      background: linear-gradient(135deg, #f0fdf4, #eff6ff);
      border-bottom: 1px solid #e4e6ea;
    }
    .user-dropdown-header .ud-name { font-size: 13px; font-weight: 700; color: #1f2937; }
    .user-dropdown-header .ud-email { font-size: 11px; color: #6b7280; margin-top: 1px; }
    .user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: #6b7280; text-decoration: none; transition: background 0.15s, color 0.15s; }
    .user-dropdown a:hover { background: #f0f2f5; color: #4f46e5; }
    .user-dropdown hr { border: none; border-top: 1px solid #e4e6ea; }

    /* Modal Overlay (Kijelentkezés Megerősítő) */
    .modal-overlay {
      display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center;
    }
    .modal-overlay.open { display: flex; }
    .modal-card { background: #fff; border-radius: 14px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 10px 25px rgba(0,0,0,0.2); text-align: center; }
    .modal-card h3 { font-size: 18px; margin-bottom: 12px; }
    .modal-card p { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
    .modal-actions { display: flex; gap: 10px; justify-content: center; }

    /* Responsive */
    @media (max-width: 1000px) { .sidebar-right { display: none; } }
    @media (max-width: 720px) {
      .sidebar-left { display: none; }
      .nav-menu { display: none; }
      .hamburger { display: flex; }
      .project-grid { grid-template-columns: 1fr 1fr; }
      .google-user-name { display: none; }
    }
    @media (max-width: 480px) {
      .project-grid { grid-template-columns: 1fr; }
      .hero-stats { gap: 14px; }
      .hero-title { font-size: 20px; }
    }

    /* ── USER MANAGEMENT FORM STYLES ── */
    .um-hero {
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #0284c7 100%);
      border-radius: 16px;
      padding: 28px 28px 24px;
      margin-bottom: 22px;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .um-hero::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 180px; height: 180px;
      background: rgba(255,255,255,0.07);
      border-radius: 50%;
    }
    .um-hero-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; position: relative; z-index: 1; }
    .um-hero-sub { font-size: 13px; opacity: 0.85; position: relative; z-index: 1; }
    .form-card {
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      margin-bottom: 18px;
      overflow: hidden;
    }
    .form-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 20px;
      border-bottom: 1px solid #f3f4f6;
    }
    .form-card-header-icon {
      width: 34px; height: 34px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 17px;
      flex-shrink: 0;
    }
    .form-card-header h2 { font-size: 15px; font-weight: 700; color: #1f2937; }
    .form-card-header p { font-size: 12px; color: #9ca3af; margin-top: 1px; }
    .form-card-body { padding: 20px; }
    .avatar-section {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 20px;
      background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
      border-bottom: 1px solid #f3f4f6;
    }
    .avatar-wrap { position: relative; flex-shrink: 0; }
    .avatar-img {
      width: 88px; height: 88px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #c4b5fd;
      box-shadow: 0 4px 14px rgba(79,70,229,0.18);
      display: block;
    }
    .avatar-edit-btn {
      position: absolute;
      bottom: 2px; right: 2px;
      background: #4f46e5;
      color: #fff;
      border: 2px solid #fff;
      border-radius: 50%;
      width: 26px; height: 26px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(79,70,229,0.3);
      transition: background 0.15s, transform 0.15s;
    }
    .avatar-edit-btn:hover { background: #4338ca; transform: scale(1.1); }
    .avatar-info h3 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 3px; }
    .avatar-info p { font-size: 12px; color: #6b7280; margin-bottom: 10px; }
    .avatar-upload-hint {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: #4f46e5;
      background: #eef2ff;
      border: 1px dashed #a5b4fc;
      border-radius: 8px;
      padding: 5px 12px;
      cursor: pointer;
      transition: background 0.15s;
    }
    .avatar-upload-hint:hover { background: #e0e7ff; }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
    .form-grid.cols-1 { grid-template-columns: 1fr; }
    .form-group { display: flex; flex-direction: column; gap: 5px; }
    .form-group.full { grid-column: 1 / -1; }
    .form-label { font-size: 12px; font-weight: 600; color: #374151; }
    .form-input, .form-select, .form-textarea {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 13px;
      color: #1f2937;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      font-family: inherit;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: #4f46e5;
      background: #fff;
      box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    }
    .form-textarea { resize: vertical; min-height: 80px; }
    .form-hint { font-size: 11px; color: #9ca3af; }
    .form-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
    }
    .badge-verified { background: #dcfce7; color: #166534; }
    .badge-pending { background: #fef9c3; color: #854d0e; }
    .action-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 20px;
      background: #f9fafb;
      border-top: 1px solid #f3f4f6;
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 18px;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.15s;
      font-family: inherit;
    }
    .btn-sm { padding: 6px 13px; font-size: 12px; }
    .btn-primary { background: #4f46e5; color: #fff; }
    .btn-primary:hover { background: #4338ca; }
    .btn-secondary { background: #f0f2f5; color: #374151; }
    .btn-secondary:hover { background: #e4e6ea; }
    .btn-outline { background: transparent; color: #4f46e5; border: 1px solid #a5b4fc; }
    .btn-outline:hover { background: #eef2ff; }
    .btn-danger { background: #fee2e2; color: #e11d48; }
    .btn-danger:hover { background: #fecdd3; }
    .btn-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
    .btn-amber:hover { background: #fef3c7; }
    .toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #f3f4f6;
    }
    .toggle-row:last-child { border-bottom: none; }
    .toggle-label { font-size: 13px; font-weight: 600; color: #1f2937; }
    .toggle-sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }
    .toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
    .toggle-switch input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background: #d1d5db;
      border-radius: 22px;
      transition: 0.3s;
    }
    .toggle-slider::before {
      content: '';
      position: absolute;
      height: 16px; width: 16px;
      left: 3px; bottom: 3px;
      background: #fff;
      border-radius: 50%;
      transition: 0.3s;
    }
    .toggle-switch input:checked + .toggle-slider { background: #4f46e5; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
    .pref-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 10px;
    }
    .pref-card {
      border: 2px solid #e5e7eb;
      border-radius: 10px;
      padding: 12px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      text-align: center;
    }
    .pref-card:hover { border-color: #a5b4fc; background: #f8f9ff; }
    .pref-card.selected { border-color: #4f46e5; background: #eef2ff; }
    .pref-card-icon { font-size: 24px; margin-bottom: 6px; }
    .pref-card-label { font-size: 12px; font-weight: 600; color: #374151; }
    .toast {
      position: fixed;
      bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
      background: #1f2937;
      color: #fff;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 500;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      z-index: 9999;
      display: flex;
      align-items: center;
      gap: 10px;
      opacity: 0;
      transition: transform 0.3s, opacity 0.3s;
    }
    .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
    .toast.success { background: #059669; }
    .toast.info { background: #0284c7; }
    .toast.warning { background: #d97706; }
	
	
    /* ── ARTICLE STYLES ── */
    .article-hero {
      background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
      border-radius: 16px;
      padding: 36px 32px;
      margin-bottom: 20px;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .article-hero::before {
      content: '';
      position: absolute;
      top: -50px; right: -50px;
      width: 220px; height: 220px;
      background: rgba(255,255,255,0.04);
      border-radius: 50%;
    }
    .article-hero::after {
      content: '';
      position: absolute;
      bottom: -60px; left: -30px;
      width: 180px; height: 180px;
      background: rgba(255,255,255,0.03);
      border-radius: 50%;
    }
    .article-category-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(56,189,248,0.2);
      color: #7dd3fc;
      border: 1px solid rgba(56,189,248,0.3);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 14px;
      position: relative;
      z-index: 1;
    }
    .article-hero-title {
      font-size: 28px;
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: 14px;
      position: relative;
      z-index: 1;
    }
    .article-hero-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 12px;
      opacity: 0.8;
      position: relative;
      z-index: 1;
    }
    .article-hero-meta span { display: flex; align-items: center; gap: 5px; }

    /* Article body card */
    .article-card {
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      overflow: hidden;
      margin-bottom: 20px;
    }
    .article-cover-img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
    }
    .article-body {
      padding: 28px 32px;
    }
    .article-author-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 18px;
      border-bottom: 1px solid #f3f4f6;
      margin-bottom: 22px;
    }
    .author-avatar {
      width: 44px; height: 44px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #e0e7ff;
      flex-shrink: 0;
    }
    .author-info { flex: 1; }
    .author-name { font-size: 14px; font-weight: 700; color: #1f2937; }
    .author-meta { font-size: 12px; color: #9ca3af; margin-top: 2px; }
    .source-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #f0f9ff;
      color: #0284c7;
      border: 1px solid #bae6fd;
      border-radius: 8px;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 600;
      text-decoration: none;
      flex-shrink: 0;
    }
    .source-badge:hover { background: #e0f2fe; }

    .article-lead {
      font-size: 17px;
      font-weight: 600;
      color: #1f2937;
      line-height: 1.65;
      margin-bottom: 20px;
    }
    .article-text {
      font-size: 15px;
      color: #374151;
      line-height: 1.8;
      margin-bottom: 20px;
    }
    .article-text p { margin-bottom: 16px; }
    .article-text p:last-child { margin-bottom: 0; }

    .article-blockquote {
      border-left: 4px solid #4f46e5;
      background: linear-gradient(135deg, #eef2ff, #f5f3ff);
      border-radius: 0 10px 10px 0;
      padding: 18px 22px;
      margin: 24px 0;
      position: relative;
    }
    .article-blockquote::before {
      content: '"';
      position: absolute;
      top: -8px; left: 16px;
      font-size: 60px;
      color: #a5b4fc;
      font-family: Georgia, serif;
      line-height: 1;
    }
    .article-blockquote p {
      font-size: 16px;
      font-style: italic;
      color: #3730a3;
      line-height: 1.7;
      font-weight: 500;
      margin-bottom: 8px;
      padding-top: 10px;
    }
    .article-blockquote cite {
      font-size: 12px;
      color: #6366f1;
      font-style: normal;
      font-weight: 600;
    }

    .article-img-wrap {
      margin: 24px 0;
      border-radius: 12px;
      overflow: hidden;
    }
    .article-img-wrap img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      display: block;
    }
    .article-img-caption {
      background: #f9fafb;
      padding: 10px 14px;
      font-size: 12px;
      color: #6b7280;
      font-style: italic;
      border-top: 1px solid #f3f4f6;
    }

    .article-img-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 24px 0;
    }
    .article-img-grid .article-img-wrap {
      margin: 0;
    }
    .article-img-grid .article-img-wrap img {
      height: 180px;
    }

    .article-highlight-box {
      background: linear-gradient(135deg, #ecfdf5, #d1fae5);
      border: 1px solid #a7f3d0;
      border-radius: 12px;
      padding: 18px 20px;
      margin: 24px 0;
    }
    .article-highlight-box h4 {
      font-size: 13px;
      font-weight: 700;
      color: #065f46;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .article-highlight-box ul {
      list-style: none;
      padding: 0;
    }
    .article-highlight-box ul li {
      font-size: 13px;
      color: #064e3b;
      padding: 5px 0;
      border-bottom: 1px solid rgba(167,243,208,0.5);
      display: flex;
      align-items: flex-start;
      gap: 8px;
      line-height: 1.5;
    }
    .article-highlight-box ul li:last-child { border-bottom: none; }
    .article-highlight-box ul li::before { content: '✓'; color: #059669; font-weight: 700; flex-shrink: 0; }

    .article-section-title {
      font-size: 20px;
      font-weight: 800;
      color: #1f2937;
      margin: 28px 0 14px;
      padding-bottom: 8px;
      border-bottom: 2px solid #eef2ff;
    }

    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid #f3f4f6;
    }
    .article-tag {
      display: inline-flex;
      align-items: center;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      background: #f0f2f5;
      color: #6b7280;
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
    }
    .article-tag:hover { background: #eef2ff; color: #4f46e5; }

    /* ── GOOGLE ADS PLACEHOLDER ── */
    .ads-placeholder {
      background: #f9fafb;
      border: 2px dashed #d1d5db;
      border-radius: 12px;
      padding: 24px;
      text-align: center;
      margin: 24px 0;
    }
    .ads-placeholder-label {
      font-size: 10px;
      font-weight: 700;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }
    .ads-placeholder-inner {
      background: #ffffff;
      border: 1px solid #e4e6ea;
      border-radius: 8px;
      padding: 20px;
      min-height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 6px;
    }
    .ads-placeholder-inner svg { color: #d1d5db; }
    .ads-placeholder-inner span {
      font-size: 12px;
      color: #9ca3af;
      font-weight: 500;
    }
    .ads-placeholder-inner small {
      font-size: 10px;
      color: #d1d5db;
    }

    /* ── AJÁNLOTT CIKKEK ── */
    .section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .section-heading h2 { font-size: 19px; font-weight: 800; color: #1f2937; }
    .section-heading span { font-size: 12px; color: #9ca3af; }

    .recommended-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 28px;
    }
    .rec-card {
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }
    .rec-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
    .rec-card-img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
    }
    .rec-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
    .rec-card-category {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 7px;
    }
    .rec-card-title {
      font-size: 14px;
      font-weight: 700;
      color: #1f2937;
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .rec-card-summary {
      font-size: 12px;
      color: #6b7280;
      line-height: 1.6;
      flex: 1;
    }
    .rec-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid #f3f4f6;
    }
    .rec-card-date { font-size: 11px; color: #9ca3af; }
    .rec-card-read {
      font-size: 11px;
      font-weight: 600;
      color: #4f46e5;
    }
	@media (max-width: 1000px) { .sidebar-right { display: none; } }
    @media (max-width: 720px) {
      .form-grid { grid-template-columns: 1fr; }
      .form-grid.cols-3 { grid-template-columns: 1fr; }
      .avatar-section { flex-direction: column; text-align: center; }
	  .sidebar-left { display: none; }
      .nav-menu { display: none; }
      .hamburger { display: flex; }
      .recommended-grid { grid-template-columns: 1fr; }
      .article-img-grid { grid-template-columns: 1fr; }
      .article-hero-title { font-size: 22px; }
      .article-body { padding: 20px 18px; }
    }
    @media (max-width: 480px) {
      .action-bar { flex-direction: column; }
      .btn { width: 100%; justify-content: center; }
	  .article-cover-img { height: 200px; }
    }