
    /* === MOBILE-FIRST NAVBAR === */
    .sf-navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      background: linear-gradient(135deg, #0F2D4A 0%, #1B4B7A 60%, #2563A4 100%);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }
    .sf-navbar__brand {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      flex: 1;
      min-width: 0;
    }
    .sf-navbar__logo {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.35);
      object-fit: cover;
      flex-shrink: 0;
      box-shadow: 0 0 0 3px rgba(232,139,46,0.3);
    }
    .sf-navbar__title {
      font-family: 'Noto Sans Bengali', sans-serif;
      font-weight: 800;
      font-size: 17px;
      color: #fff;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .sf-navbar__sub {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      color: rgba(255,255,255,0.7);
      display: none;
    }
    @media(min-width: 480px) {
      .sf-navbar__sub { display: block; }
      .sf-navbar__logo { width: 44px; height: 44px; }
      .sf-navbar__title { font-size: 19px; }
    }
    .sf-navbar__action {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }
    .sf-navbar__btn {
      padding: 7px 13px;
      border-radius: 20px;
      font-family: 'Noto Sans Bengali', sans-serif;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
      border: 1.5px solid rgba(255,255,255,0.4);
      background: transparent;
      color: #fff;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .sf-navbar__btn:hover {
      background: rgba(255,255,255,0.15);
    }

    /* === MOBILE-FIRST GALLERY === */
    body { background: #E8EDF2; }
    .sf-gallery-section {
      padding: 16px;
      max-width: 1440px;
      margin: 0 auto;
    }
    .sf-gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 16px;
    }
    @media(min-width: 600px) {
      .sf-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    }
    @media(min-width: 900px) {
      .sf-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    }
    @media(min-width: 1200px) {
      .sf-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    }

    /* === BEAUTIFUL GALLERY CARD THUMBNAIL === */
    .sf-gallery-card {
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.28s cubic-bezier(.4,0,.2,1);
      box-shadow: 0 2px 8px rgba(27,75,122,0.08);
      display: flex;
      flex-direction: column;
      border: 1px solid #DDE6F0;
    }
    .sf-gallery-card:hover {
      box-shadow: 0 10px 28px rgba(27,75,122,0.2);
      transform: translateY(-4px);
      border-color: #2563A4;
    }
    .sf-gallery-card:active { transform: translateY(-1px); }

    /* Card Thumbnail — Srijon Logo Theme Mini-Poster */
    .sf-card-thumb {
      height: 120px;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }
    .sf-card-thumb__bg {
      position: absolute;
      inset: 0;
    }
    .sf-card-thumb__logo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.5);
      object-fit: cover;
      box-shadow: 0 4px 14px rgba(0,0,0,0.25);
      z-index: 2;
    }
    .sf-card-thumb__icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 2rem;
      z-index: 2;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    .sf-card-thumb__top-bar {
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 5px;
      z-index: 3;
    }
    .sf-card-thumb__org {
      position: absolute;
      bottom: 8px;
      left: 0; right: 0;
      text-align: center;
      font-family: 'Noto Sans Bengali', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.03em;
      z-index: 3;
    }
    .sf-card-thumb__format-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 2px 7px;
      border-radius: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 9px;
      font-weight: 800;
      z-index: 4;
      letter-spacing: 0.04em;
    }

    /* Card Body */
    .sf-gallery-card__body {
      padding: 12px;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .sf-gallery-card__id {
      font-family: 'Inter', sans-serif;
      font-weight: 800;
      font-size: 10px;
      color: #C97420;
      letter-spacing: 0.06em;
    }
    .sf-gallery-card__title {
      font-family: 'Noto Sans Bengali', sans-serif;
      font-weight: 700;
      font-size: 13px;
      color: #0F172A;
      line-height: 1.3;
    }
    @media(min-width: 480px) { .sf-gallery-card__title { font-size: 14.5px; } }
    .sf-gallery-card__subtitle {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      color: #64748B;
    }
    .sf-gallery-card__meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px solid #F0F4F8;
    }
    .sf-gallery-card__category {
      font-family: 'Noto Sans Bengali', sans-serif;
      font-weight: 600;
      font-size: 11px;
      color: #1B4B7A;
    }
    .sf-gallery-card__format-label {
      padding: 2px 8px;
      background: #EBF2FA;
      border-radius: 6px;
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      font-size: 9px;
      color: #1B4B7A;
    }

    /* === FILTER BAR MOBILE STYLES === */
    .sf-filter-bar {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
    }
    @media(min-width: 700px) {
      .sf-filter-bar { flex-direction: row; align-items: center; gap: 14px; }
    }
    .sf-format-filters {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
    }
    .sf-format-filters::-webkit-scrollbar { display: none; }

    /* === TEMPLATE VIEWER MOBILE === */
    .sf-template-controls {
      background: #fff;
      border-bottom: 1px solid #E2E8F0;
      padding: 10px 14px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      position: sticky;
      top: 60px;
      z-index: 100;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .sf-template-stage {
      background: #D1D9E3;
      min-height: calc(100vh - 140px);
      padding: 24px 12px;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      overflow: auto;
    }
    /* Scale poster to fit screen */
    .sf-template-stage > [class^="sf-format-"] {
      transform-origin: top center;
    }
    @media screen and (max-width: 1300px) {
      .sf-template-stage .sf-format-square  { transform: scale(0.68); margin-bottom: -300px; }
      .sf-template-stage .sf-format-portrait { transform: scale(0.55); margin-bottom: -500px; }
      .sf-template-stage .sf-format-a4       { transform: scale(0.62); margin-bottom: -380px; }
    }
    @media screen and (max-width: 860px) {
      .sf-template-stage .sf-format-square   { transform: scale(0.40); margin-bottom: -600px; }
      .sf-template-stage .sf-format-portrait { transform: scale(0.33); margin-bottom: -850px; }
      .sf-template-stage .sf-format-a4       { transform: scale(0.36); margin-bottom: -700px; }
      .sf-template-stage .sf-format-wide     { transform: scale(0.36); margin-bottom: -400px; }
      .sf-template-stage .sf-format-certificate { transform: scale(0.36); margin-bottom: -500px; }
    }
    @media screen and (max-width: 480px) {
      .sf-template-stage .sf-format-square   { transform: scale(0.27); margin-bottom: -780px; }
      .sf-template-stage .sf-format-portrait { transform: scale(0.22); margin-bottom: -1050px; }
      .sf-template-stage .sf-format-a4       { transform: scale(0.24); margin-bottom: -850px; }
    }

    /* === CATEGORY TABS MOBILE === */
    .sf-category-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 2px 12px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .sf-category-tabs::-webkit-scrollbar { display: none; }
    .sf-category-tab {
      padding: 8px 16px;
      border-radius: 24px;
      font-family: 'Noto Sans Bengali', sans-serif;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      background: #fff;
      border: 1px solid #DDE6F0;
      color: #334155;
      transition: all 0.22s ease;
      white-space: nowrap;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .sf-category-tab:hover {
      background: #EBF2FA;
      border-color: #2563A4;
      color: #2563A4;
      transform: translateY(-1px);
    }
    .sf-category-tab--active {
      background: linear-gradient(135deg, #1B4B7A 0%, #2563A4 100%) !important;
      color: #fff !important;
      border-color: #1B4B7A !important;
      box-shadow: 0 4px 12px rgba(27,75,122,0.3);
    }

    /* count label */
    .sf-count-label {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: #5A6B7D;
      font-weight: 600;
      margin-top: 10px;
    }

    /* Print */
    @media print {
      .sf-navbar, .sf-template-controls, .sf-no-print { display: none !important; }
      .sf-template-stage { padding: 0 !important; background: none !important; }
      body { background: none; }
    }
  