.resources-page {
        max-width: 900px;
        margin: 0 auto;
        padding: 48px 20px 80px;
      }

      /* ── Hero ── */
      .page-hero {
        margin-bottom: 36px;
        animation: rpmc-fadeUp 0.4s var(--ease) both;
      }
      .page-hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 14px;
        border-radius: 100px;
        background: var(--accent-dim);
        border: 1px solid rgba(59, 130, 246, 0.25);
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent-2);
        margin-bottom: 14px;
      }
      .page-hero h1 {
        font-family: "Outfit", sans-serif;
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        font-weight: 800;
        color: var(--text);
        line-height: 1.15;
        margin-bottom: 10px;
      }
      .page-hero h1 span {
        background: linear-gradient(135deg, #6366f1, #a78bfa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .page-hero p {
        font-size: 0.92rem;
        color: var(--text-2);
        line-height: 1.6;
        max-width: 520px;
      }

      /* ── Search ── */
      .res-search-wrap {
        position: relative;
        margin-bottom: 28px;
        animation: rpmc-fadeUp 0.4s 0.08s var(--ease) both;
      }
      .res-search-wrap i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.82rem;
        color: var(--text-3);
        pointer-events: none;
      }
      .res-search {
        width: 100%;
        padding: 12px 16px 12px 40px;
        border-radius: var(--r-sm);
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text);
        font-family: "Baloo Da 2", "Outfit", sans-serif;
        font-size: 0.9rem;
        transition: all 0.2s;
      }
      .res-search::placeholder {
        color: var(--text-3);
      }
      .res-search:focus {
        outline: none;
        border-color: var(--accent);
        background: var(--surface-2);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
      }

      /* ── Category tabs ── */
      .cat-tabs {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 28px;
        border-bottom: 1.5px solid var(--border);
        animation: rpmc-fadeUp 0.4s 0.1s var(--ease) both;
        padding-bottom: 0;
      }
      .cat-tab {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 10px 18px;
        border-radius: 10px 10px 0 0;
        border: 1.5px solid transparent;
        border-bottom: none;
        background: none;
        color: var(--text-3);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.18s;
        position: relative;
        bottom: -1.5px;
        font-family: "Baloo Da 2", "Outfit", sans-serif;
        white-space: nowrap;
        user-select: none;
      }
      .cat-tab:hover {
        color: var(--text-2);
        background: var(--surface-2);
      }
      .cat-tab.active {
        color: var(--text);
        background: var(--surface);
        border-color: var(--border);
        border-bottom-color: var(--surface);
      }
      .cat-tab.active.lectures {
        color: #818cf8;
      }
      .cat-tab.active.question-banks {
        color: #34d399;
      }
      .cat-tab.active.books {
        color: #f472b6;
      }
      .cat-tab.active.miscellaneous {
        color: var(--text-2);
      }
      .cat-tab i {
        font-size: 0.72rem;
      }
      .tab-count {
        font-family: "Space Mono", monospace;
        font-size: 0.58rem;
        background: var(--surface-3);
        border: 1px solid var(--border);
        padding: 1px 6px;
        border-radius: 8px;
        color: var(--text-3);
      }
      .cat-tab.active .tab-count {
        background: var(--accent-dim);
        border-color: rgba(99, 102, 241, 0.2);
        color: var(--accent-2);
      }

      /* ── Sort bar ── */
      .sort-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        flex-wrap: wrap;
        gap: 8px;
        animation: rpmc-fadeUp 0.4s 0.14s var(--ease) both;
      }
      .sort-result-count {
        font-family: "Space Mono", monospace;
        font-size: 0.68rem;
        color: var(--text-3);
      }
      .sort-result-count span {
        color: var(--accent-2);
        font-weight: 700;
      }
      .sort-select {
        padding: 6px 10px;
        border-radius: 8px;
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text-2);
        font-size: 0.76rem;
        font-family: "Space Mono", monospace;
        cursor: pointer;
        transition: all 0.2s;
      }
      .sort-select:focus {
        outline: none;
        border-color: var(--accent);
      }
      .sort-select option {
        background: var(--surface-2);
      }

      /* ── Resource list ── */
      .res-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        animation: rpmc-fadeUp 0.35s var(--ease) both;
      }

      /* ── Resource card ── */
      .res-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 16px 18px;
        text-decoration: none;
        transition: all 0.22s var(--ease);
        position: relative;
        overflow: hidden;
        animation: rpmc-fadeUp 0.35s var(--ease) both;
      }
      .res-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        border-radius: 2px 0 0 2px;
        transition: width 0.2s;
      }
      /* Platform accent colors */
      .res-card.telegram::before {
        background: #2aabee;
      }
      .res-card.youtube::before {
        background: #ff0000;
      }
      .res-card.facebook::before {
        background: #1877f2;
      }
      .res-card.google-drive::before {
        background: #34a853;
      }
      .res-card.onedrive::before {
        background: #0078d4;
      }
      .res-card.whatsapp::before {
        background: #25d366;
      }
      .res-card.link::before {
        background: var(--accent);
      }

      .res-card:hover {
        background: var(--surface-2);
        border-color: var(--border-2);
        transform: translateX(4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
      }

      /* Platform icon */
      .res-platform-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        border: 1px solid var(--border);
        transition: transform 0.2s;
      }
      .res-card:hover .res-platform-icon {
        transform: scale(1.08);
      }
      .res-card.telegram .res-platform-icon {
        background: rgba(42, 171, 238, 0.12);
        color: #2aabee;
        border-color: rgba(42, 171, 238, 0.2);
      }
      .res-card.youtube .res-platform-icon {
        background: rgba(255, 0, 0, 0.1);
        color: #ff4444;
        border-color: rgba(255, 0, 0, 0.2);
      }
      .res-card.facebook .res-platform-icon {
        background: rgba(24, 119, 242, 0.12);
        color: #4e9af1;
        border-color: rgba(24, 119, 242, 0.2);
      }
      .res-card.google-drive .res-platform-icon {
        background: rgba(52, 168, 83, 0.12);
        color: #34a853;
        border-color: rgba(52, 168, 83, 0.2);
      }
      .res-card.onedrive .res-platform-icon {
        background: rgba(0, 120, 212, 0.12);
        color: #0078d4;
        border-color: rgba(0, 120, 212, 0.2);
      }
      .res-card.whatsapp .res-platform-icon {
        background: rgba(37, 211, 102, 0.12);
        color: #25d366;
        border-color: rgba(37, 211, 102, 0.2);
      }
      .res-card.link .res-platform-icon {
        background: var(--accent-dim);
        color: var(--accent-2);
        border-color: rgba(99, 102, 241, 0.2);
      }

      /* Card body */
      .res-card-body {
        flex: 1;
        min-width: 0;
      }
      .res-card-top {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        flex-wrap: wrap;
      }
      .res-card-title {
        font-family: "Outfit", sans-serif;
        font-size: 0.96rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .res-card-desc {
        font-size: 0.8rem;
        color: var(--text-2);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .res-card-footer {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 7px;
        flex-wrap: wrap;
      }
      .res-card-footer span {
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        color: var(--text-3);
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .res-card-footer i {
        font-size: 0.55rem;
      }

      /* Platform badge */
      .platform-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 9px;
        border-radius: 100px;
        font-family: "Space Mono", monospace;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border: 1px solid;
        flex-shrink: 0;
      }
      .platform-badge.telegram {
        background: rgba(42, 171, 238, 0.1);
        border-color: rgba(42, 171, 238, 0.25);
        color: #2aabee;
      }
      .platform-badge.youtube {
        background: rgba(255, 0, 0, 0.08);
        border-color: rgba(255, 68, 68, 0.25);
        color: #ff4444;
      }
      .platform-badge.facebook {
        background: rgba(24, 119, 242, 0.1);
        border-color: rgba(78, 154, 241, 0.25);
        color: #4e9af1;
      }
      .platform-badge.google-drive {
        background: rgba(52, 168, 83, 0.1);
        border-color: rgba(52, 168, 83, 0.25);
        color: #34a853;
      }
      .platform-badge.onedrive {
        background: rgba(0, 120, 212, 0.1);
        border-color: rgba(0, 120, 212, 0.25);
        color: #0078d4;
      }
      .platform-badge.whatsapp {
        background: rgba(37, 211, 102, 0.1);
        border-color: rgba(37, 211, 102, 0.25);
        color: #25d366;
      }
      .platform-badge.link {
        background: var(--accent-dim);
        border-color: rgba(99, 102, 241, 0.2);
        color: var(--accent-2);
      }
      .platform-badge i {
        font-size: 0.55rem;
      }

      /* Tag chips */
      .res-tag {
        display: inline-flex;
        align-items: center;
        padding: 1px 8px;
        border-radius: 100px;
        font-family: "Space Mono", monospace;
        font-size: 0.56rem;
        background: var(--surface-3);
        border: 1px solid var(--border);
        color: var(--text-3);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      /* Arrow */
      .res-card-arrow {
        color: var(--text-3);
        font-size: 0.78rem;
        flex-shrink: 0;
        transition:
          transform 0.2s,
          color 0.2s;
      }
      .res-card:hover .res-card-arrow {
        transform: translateX(4px);
        color: var(--accent-2);
      }

      /* ── Skeleton ── */
      .skeleton-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 16px 18px;
        display: flex;
        align-items: center;
        gap: 16px;
      }

      /* ── Empty / error ── */
      .res-empty {
        text-align: center;
        padding: 60px 20px;
        animation: rpmc-fadeUp 0.4s var(--ease) both;
      }
      .res-empty-icon {
        font-size: 2.6rem;
        color: var(--text-3);
        margin-bottom: 16px;
        display: block;
      }
      .res-empty h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-2);
        margin-bottom: 8px;
      }
      .res-empty p {
        font-size: 0.84rem;
        color: var(--text-3);
        line-height: 1.6;
      }

      /* ── Load more ── */
      .load-more-wrap {
        text-align: center;
        margin-top: 24px;
      }
      .load-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        border-radius: var(--r-sm);
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text-2);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: "Baloo Da 2", "Outfit", sans-serif;
      }
      .load-more-btn:hover {
        border-color: var(--border-active);
        background: var(--accent-dim);
        color: var(--accent-2);
      }

      /* ── Stats strip ── */
      .res-stats {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 32px;
        animation: rpmc-fadeUp 0.4s 0.06s var(--ease) both;
      }
      .res-stat {
        flex: 1;
        min-width: 120px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r-sm);
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .res-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
      }
      .res-stat-icon.lectures {
        background: rgba(129, 140, 248, 0.12);
        color: #818cf8;
      }
      .res-stat-icon.question-banks {
        background: rgba(52, 211, 153, 0.12);
        color: #34d399;
      }
      .res-stat-icon.books {
        background: rgba(244, 114, 182, 0.12);
        color: #f472b6;
      }
      .res-stat-icon.misc {
        background: var(--surface-3);
        color: var(--text-3);
      }
      .res-stat-num {
        font-family: "Space Mono", monospace;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1;
      }
      .res-stat-lbl {
        font-size: 0.68rem;
        color: var(--text-3);
        margin-top: 2px;
        font-family: "Space Mono", monospace;
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }

      @media (max-width: 600px) {
        .resources-page {
          padding: 32px 12px 60px;
        }
        .cat-tabs {
          gap: 3px;
        }
        .cat-tab {
          padding: 9px 12px;
          font-size: 0.76rem;
        }
        .res-card {
          gap: 12px;
          padding: 13px 14px;
        }
        .res-platform-icon {
          width: 38px;
          height: 38px;
          font-size: 1rem;
        }
        .res-stats {
          gap: 8px;
        }
      }

