*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0A0A0F; --surface: #14141B; --surface2: #1E1E2A;
    --primary: #8B5CF6; --primary-dim: rgba(139,92,246,0.12);
    --outline: #2A2A3A; --text: #F1F1F4; --muted: #8A8B9A;
    --green: #22C55E; --red: #EF4444; --radius: 12px;
  }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: hidden; max-width: 100%; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

  /* NAV */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--outline);
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
  }
  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
  .nav-logo-icon { width: 32px; height: 32px; background: var(--primary-dim); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .nav-logo-text { font-size: 18px; font-weight: 700; color: var(--text); }
  .nav-search-wrap { flex: 1; max-width: 480px; display: flex; align-items: center; background: var(--surface2); border: 1px solid var(--outline); border-radius: 10px; padding: 0 14px; gap: 8px; transition: border-color 0.2s; }
  .nav-search-wrap:focus-within { border-color: var(--primary); }
  .nav-search-wrap input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 13px; padding: 9px 0; min-width: 0; }
  .nav-search-wrap input::placeholder { color: var(--muted); }
  .nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .nav-purchases-btn { display: flex; align-items: center; gap: 6px; position: relative; }
  .nav-purchases-count { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px; line-height: 1.4; }
  .nav-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
  .nav-user span#nav-name { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; }
  .nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .btn { border: none; cursor: pointer; font-family: inherit; font-weight: 600; border-radius: 8px; transition: opacity 0.2s; }
  .btn:hover { opacity: 0.85; }
  .btn-primary { background: var(--primary); color: #fff; padding: 8px 18px; font-size: 13px; }
  .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--outline); padding: 8px 18px; font-size: 13px; }
  .btn-sm { padding: 6px 14px; font-size: 12px; }

  /* PAGE INTRO — compact, replaces old oversized hero */
  .page-intro { max-width: 1400px; margin: 0 auto; padding: 28px 24px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .page-intro h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
  .page-intro h1 span { color: var(--primary); }
  .page-intro p { font-size: 13px; color: var(--muted); }
  .mobile-search-wrap { display: none; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
  .mobile-search-wrap .hero-search { display: flex; align-items: center; background: var(--surface2); border: 1px solid var(--outline); border-radius: var(--radius); padding: 0 14px; gap: 8px; }
  .mobile-search-wrap .hero-search:focus-within { border-color: var(--primary); }
  .mobile-search-wrap .hero-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 14px; padding: 12px 0; }

  /* SECTIONS */
  .section { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
  .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .section-title { font-size: 18px; font-weight: 700; }
  .section-sub { font-size: 13px; color: var(--muted); }

  /* CAROUSEL */
  .carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-card { flex: 0 0 300px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; transition: border-color 0.2s, transform 0.2s; }
  .carousel-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
  .carousel-img-wrap { width: 110px; flex-shrink: 0; overflow: hidden; position:relative; }
  .carousel-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .carousel-details { padding: 12px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-height: 140px; }
  .carousel-badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
  .tool-badge { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(139,92,246,0.2); }
  .carousel-title { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .carousel-desc { font-size: 11px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .carousel-footer { display: flex; justify-content: space-between; align-items: center; }
  .sold { font-size: 11px; color: var(--muted); }
  .price-badge { background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
  .carousel-nav { display: flex; gap: 8px; }
  .carousel-btn { background: var(--surface2); border: 1px solid var(--outline); color: var(--text); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
  .carousel-btn:hover { background: var(--primary-dim); }

  /* TAG ROWS — horizontal scroll, same pattern as the carousels above
     (previously a wrapping CSS grid, which read as an awkward vertical
     scroll once there were more tags than fit one row) */
  .tag-card-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .tag-card-grid::-webkit-scrollbar { display: none; }
  .tag-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
  }
  .tag-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
  .tag-card-collage { display: grid; height: 44px; flex-shrink: 0; gap: 2px; background: var(--outline); }
  .tag-card-collage.n1 { grid-template-columns: 1fr; }
  .tag-card-collage.n2 { grid-template-columns: 1fr 1fr; }
  .tag-card-collage.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .tag-card-collage.n3 img:first-child { grid-row: 1 / 3; }
  .tag-card-collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .tag-card-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tag-card-collage-fallback { display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--primary); background: var(--surface2); }
  .tag-card-body { padding: 7px 10px 8px; text-align: center; background: var(--surface); border-top: 1px solid var(--outline); }
  .tag-card-icon { font-size: 16px; margin-bottom: 4px; color: var(--primary); }
  .tag-card-name { font-size: 12px; font-weight: 700; margin-bottom: 1px; }
  .tag-card-count { font-size: 10px; color: var(--muted); }

  /* FILTERS */
  .filter-section { max-width: 1400px; margin: 16px auto 0; padding: 0 24px; }
  #filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .filter-chip { background: var(--surface2); border: 1px solid transparent; color: var(--muted); padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.15s; }
  .filter-chip:hover { color: var(--text); border-color: var(--outline); }
  .filter-chip.active { background: var(--primary-dim); color: var(--primary); border-color: rgba(139,92,246,0.3); }
  #filter-bar.compact .filter-chip { padding: 4px 10px; font-size: 11px; }

  /* GRID */
  .grid-section { max-width: 1400px; margin: 24px auto 0; padding: 0 24px 64px; }
  #prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .prompt-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
  .prompt-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(139,92,246,0.12); }
  .card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
  .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
  .prompt-card:hover .card-img-wrap img { transform: scale(1.04); }
  .card-label { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 5px; }
  .card-tool { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.1); }
  .card-body { padding: 12px; }
  .card-code { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(139,92,246,0.25); padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
  .card-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-blur-wrap { position: relative; height: 36px; margin-bottom: 10px; overflow: hidden; }
  .card-prompt-preview { font-size: 11px; color: var(--muted); line-height: 1.5; filter: blur(3px); user-select: none; }
  .lock-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .card-footer { display: flex; justify-content: space-between; align-items: center; }
  .card-price { font-size: 15px; font-weight: 700; color: var(--primary); }
  .card-sold { font-size: 11px; color: var(--muted); }

  /* EMPTY */
  #empty-state { display: none; flex-direction: column; align-items: center; padding: 64px 24px; color: var(--muted); gap: 12px; grid-column: 1/-1; }
  #empty-state span { font-size: 48px; }
  #empty-state p { font-size: 16px; font-weight: 600; color: var(--text); }

  /* LOADING */
  #loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; flex-direction: column; gap: 16px; }
  .spinner { width: 36px; height: 36px; border: 3px solid var(--outline); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  #content { display: none; }

  /* OVERLAY BASE */
  .overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 16px; }
  .overlay.active { display: flex; }
  .modal { background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
  .modal-close { position: absolute; top: 14px; right: 14px; background: var(--surface2); border: 1px solid var(--outline); color: var(--text); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10; line-height: 1; font-family: inherit; }

  /* DETAIL MODAL */
  .detail-img-wrap {
  width: 100%;
  height: 55vh;
  max-height: 500px;
  min-height: 200px;
  background: var(--surface2);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
  .detail-body { padding: 20px; }
  .detail-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .detail-code { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(139,92,246,0.25); padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; }
  .detail-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
  .detail-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
  .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .detail-tag { background: var(--surface2); color: var(--muted); font-size: 11px; padding: 3px 10px; border-radius: 6px; }
  .prompt-box { background: var(--surface2); border: 1px solid var(--outline); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
  .prompt-box-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
  .prompt-blur { font-size: 12px; color: var(--muted); line-height: 1.6; filter: blur(4px); user-select: none; }
  .prompt-unlocked { font-size: 13px; color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
  .prompt-copy-btn { width: 100%; margin-top: 10px; padding: 8px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
  .detail-buy-box { background: var(--surface2); border: 1px solid var(--outline); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
  .detail-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .detail-price { font-size: 28px; font-weight: 800; }
  .detail-price-sub { font-size: 12px; color: var(--muted); }
  .buy-btn { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s; }
  .buy-btn:hover { opacity: 0.88; }
  .buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .login-prompt-box { text-align: center; padding: 16px; background: var(--surface2); border: 1px solid var(--outline); border-radius: 12px; margin-bottom: 16px; }
  .trust-row { display: flex; justify-content: space-around; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

  /* Detail enhancements */
  .price-current { font-size: 28px; font-weight: 800; color: var(--primary); }
  .discount-badge { display: inline-block; background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
  .creator-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--outline); }
  .creator-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
  .creator-info { font-size: 12px; color: var(--muted); line-height: 1.4; }
  .creator-info strong { color: var(--text); font-size: 13px; }
  .payment-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .payment-row span { background: var(--surface2); padding: 4px 10px; border-radius: 5px; font-size: 11px; color: var(--muted); border: 1px solid var(--outline); }
  .review-section { margin-top: 16px; }
  .review-header { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
  .review-card { background: var(--surface2); border: 1px solid var(--outline); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
  .review-stars { color: #F59E0B; font-size: 12px; margin-bottom: 4px; }
  .review-text { font-size: 12px; color: var(--text); line-height: 1.5; }
  .review-author { font-size: 11px; color: var(--muted); margin-top: 4px; }

  /* AUTH MODAL */
  .auth-modal { max-width: 420px; }
  .auth-body { padding: 28px; }
  .auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
  .auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
  .auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--outline); border-radius: 10px; overflow: hidden; }
  .auth-tab { flex: 1; padding: 10px; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .auth-tab.active { background: var(--primary); color: #fff; }
  .auth-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: var(--surface2); border: 1px solid var(--outline); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.2s; width: 100%; }
  .social-btn:hover { border-color: var(--primary); }
  .or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
  .or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--outline); }
  .input-group { margin-bottom: 14px; }
  .input-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; }
  .text-input { width: 100%; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--outline); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s; }
  .text-input:focus { border-color: var(--primary); }
  .text-input::placeholder { color: var(--muted); }
  .auth-submit { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 4px; transition: opacity 0.2s; }
  .auth-submit:hover { opacity: 0.88; }
  .auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
  .auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
  .auth-switch a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
  .auth-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
  .auth-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }

  /* TOAST */
  #toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--outline); color: var(--text); padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 999; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap; }
  #toast.show { opacity: 1; }

  /* PURCHASES */
  .purchase-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
  .purchase-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(139,92,246,0.12); }
  .purchase-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
  .purchase-card-body { padding: 12px; }
  .purchase-card-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .purchase-copy-btn { width: 100%; padding: 8px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.2s; }
  .purchase-copy-btn:hover { opacity: 0.85; }
  .purchase-owned-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.3); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }

  /* EMAIL CAPTURE MODAL */
  .email-capture-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 16px; }
  .email-capture-overlay.active { display: flex; }
  .email-modal { background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; max-width: 440px; width: 100%; padding: 32px; text-align: center; }
  .email-modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
  .email-modal p { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
  .email-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; }
  .email-input { flex: 1; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--outline); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; outline: none; }
  .email-input:focus { border-color: var(--primary); }
  .email-dismiss { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; margin-top: 8px; font-family: inherit; }

  /* FOOTER */
  footer { border-top: 1px solid var(--outline); padding: 32px 24px; text-align: center; color: var(--muted); font-size: 13px; }
  footer a { color: var(--primary); text-decoration: none; }

  /* RESPONSIVE */
  @media (max-width: 780px) {
    .nav-search-wrap { display: none; }
    .mobile-search-wrap { display: block; margin-top: 12px; }
  }
  @media (max-width: 600px) {
    .page-intro { padding: 20px 16px 4px; }
    .page-intro h1 { font-size: 18px; }
    .section, .filter-section, .grid-section { padding: 0 16px; }
    .mobile-search-wrap { padding: 0 16px; }
    .grid-section { padding-bottom: 40px; }
    #prompt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .carousel-card { flex: 0 0 260px; }
    .tag-card { flex: 0 0 130px; }
    nav { padding: 0 16px; }
    .detail-title { font-size: 18px; }
    .price-current { font-size: 22px; }
    .nav-user span#nav-name { max-width: 56px; }
    .nav-user .btn-outline.btn-sm { padding: 6px 10px; font-size: 11px; }
    .nav-logo-text { display: none; }
  }
  @media (min-width: 900px) { #prompt-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1200px) { #prompt-grid { grid-template-columns: repeat(5, 1fr); } }