/* ═══════════════════════════════════════════
   DIAPOCLIC — Front-End Styles
   ═══════════════════════════════════════════ */

:root {
  --bg: #f8f6f3;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0ede8;
  --bg-dark: #1c1917;
  --bg-dark-elevated: #292524;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.07);
  --accent-border: rgba(194, 65, 12, 0.2);
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --shadow-xs: 0 1px 2px rgba(28,25,23,0.04);
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.06), 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.08);
  --shadow-lg: 0 12px 40px rgba(28,25,23,0.1);
  --shadow-xl: 0 20px 60px rgba(28,25,23,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --green: #059669; --blue: #2563eb; --purple: #7c3aed;
  --blue-soft: rgba(37, 99, 235, 0.08); --green-soft: rgba(5, 150, 105, 0.08); --purple-soft: rgba(124, 58, 237, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 16px; height: 16px; }

/* ─── ANIMATIONS ─── */
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes subIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══════════════════════════════════════════
   NAV BAR
   ═══════════════════════════════════════════ */
.nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(248,246,243,0.92); backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 0 36px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-family: var(--font-display); font-size: 1.3rem; }
.logo-text span { color: var(--accent); }
.nav-items { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; padding: 20px 0; }
.nav-item-trigger { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; padding: 7px 12px; border-radius: 7px; transition: all var(--transition); cursor: pointer; border: none; background: none; font-family: var(--font-body); }
.nav-item-trigger svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item-trigger:hover, .nav-item.open .nav-item-trigger { color: var(--text); background: var(--bg-subtle); }
.nav-item.open .nav-item-trigger svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 7px 12px; border-radius: 7px; transition: all var(--transition); }
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: white; border: none; padding: 8px 18px; border-radius: 7px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary svg { width: 15px; height: 15px; }

/* Search */
.search-wrap { position: relative; }
.nav-search { display: flex; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 0 4px 0 14px; height: 38px; width: 280px; transition: all 0.3s; }
.nav-search.focused { width: 340px; border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-search input { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 0.85rem; color: var(--text); background: transparent; }
.nav-search input::placeholder { color: var(--text-tertiary); }
.nav-search-btn { background: none; border: none; color: var(--text-tertiary); width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: all var(--transition); }
.nav-search-btn:hover { color: var(--accent); background: var(--accent-soft); }
.nav-search-btn svg { width: 15px; height: 15px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); width: 36px; height: 36px; border-radius: 7px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-toggle svg { width: 20px; height: 20px; }

/* ═══ MEGA PANELS ═══ */
.mega-backdrop { display: none; position: fixed; inset: 0; background: rgba(28,25,23,0.15); z-index: 998; animation: backdropIn 0.2s ease-out; }
.mega-backdrop.open { display: block; }
.mega-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 999; background: var(--bg-elevated); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xl); animation: megaIn 0.2s ease-out; }
.mega-panel.open { display: block; }
.mega-inner { max-width: 1320px; margin: 0 auto; padding: 28px 36px 32px; }
.mega-col-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-tertiary); margin-bottom: 12px; }

/* Explorer */
.mega-explorer { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 340px; }
.mega-exp-left { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.mega-exp-left .mega-col-label { padding: 0 14px; }
.mega-cat-list { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; border-right: 1px solid var(--border); padding-right: 0; }
.mega-cat-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; transition: all 0.12s; cursor: pointer; border-left: 3px solid transparent; }
.mega-cat-item:hover { background: var(--bg-subtle); color: var(--text); }
.mega-cat-item.active { background: var(--bg-subtle); color: var(--text); border-left-color: var(--accent); }
.mega-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; transition: transform var(--transition); display: inline-block; }
.mega-cat-item.active .mega-cat-dot { transform: scale(1.3); }
.mega-cat-name { flex: 1; }
.mega-cat-count { font-size: 0.68rem; font-weight: 700; color: var(--text-tertiary); background: var(--bg); padding: 1px 7px; border-radius: 4px; transition: all var(--transition); }
.mega-cat-item.active .mega-cat-count { background: var(--accent-soft); color: var(--accent); }
.mega-cat-chevron { width: 14px; height: 14px; color: var(--text-tertiary); opacity: 0; transition: all var(--transition); flex-shrink: 0; }
.mega-cat-item:hover .mega-cat-chevron, .mega-cat-item.active .mega-cat-chevron { opacity: 1; }
.mega-cat-item.active .mega-cat-chevron { color: var(--accent); }
.mega-cat-viewall { display: flex; align-items: center; gap: 6px; padding: 12px 14px; margin-top: auto; border-top: 1px solid var(--border); text-decoration: none; color: var(--accent); font-size: 0.82rem; font-weight: 600; transition: gap var(--transition); }
.mega-cat-viewall:hover { gap: 10px; }
.mega-cat-viewall svg { width: 14px; height: 14px; }
.mega-exp-center { padding: 0 32px; display: flex; flex-direction: column; }
.mega-subcat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mega-subcat-title { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.mega-subcat-title .mega-cat-dot { width: 10px; height: 10px; }
.mega-subcat-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.mega-subcat-link:hover { gap: 8px; }
.mega-subcat-link svg { width: 12px; height: 12px; }
.mega-subcat-panel { display: none; animation: subIn 0.18s ease-out; flex: 1; }
.mega-subcat-panel.active { display: flex; flex-direction: column; }
.mega-subcat-area { padding: 0 32px; display: flex; flex-direction: column; }
.mega-subcat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega-subcat-item, .mega-subcat-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; transition: all var(--transition); }
.mega-subcat-item:hover, .mega-subcat-card:hover { background: var(--bg-subtle); color: var(--text); }
.mega-subcat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.mega-subcat-icon svg { width: 15px; height: 15px; }
.mega-subcat-card:hover .mega-subcat-icon { filter: brightness(1.15); }
.mega-subcat-info { display: flex; flex-direction: column; min-width: 0; }
.mega-subcat-name { font-weight: 600; font-size: 0.85rem; }
.mega-subcat-count { font-size: 0.72rem; color: var(--text-tertiary); }
.mega-subcat-seeall { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.mega-subcat-seeall:hover { gap: 8px; }
.mega-subcat-seeall svg { width: 12px; height: 12px; }
.sub-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-tertiary); transition: color var(--transition); }
.sub-icon svg { width: 14px; height: 14px; }
.mega-subcat-item:hover .sub-icon { color: var(--accent); }
.mega-popular-row { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.mega-popular-row .mega-col-label { margin-bottom: 8px; }
.mega-quick-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mega-quick-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-subtle); border: 1px solid var(--border); padding: 6px 14px; border-radius: 7px; text-decoration: none; color: var(--text-secondary); font-size: 0.78rem; font-weight: 600; transition: all var(--transition); }
.mega-quick-pill:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.mega-quick-pill svg { width: 13px; height: 13px; }
.mega-exp-right { padding-left: 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.mega-featured { background: var(--bg-subtle); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; display: block; transition: all 0.3s; }
.mega-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mega-featured-thumb { height: 100px; display: flex; align-items: center; justify-content: center; }
.mega-featured-thumb svg { width: 36px; height: 36px; opacity: 0.5; stroke: white; fill: none; stroke-width: 1.2; }
.mega-featured-body { padding: 12px 14px; }
.mega-featured-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 3px; }
.mega-featured-title { font-weight: 700; font-size: 0.85rem; line-height: 1.3; margin-bottom: 3px; }
.mega-featured-meta { font-size: 0.7rem; color: var(--text-tertiary); display: flex; gap: 8px; }

/* ─── AVATAR NAV ─── */
.avatar-nav { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #db2777); color: white; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); flex-shrink: 0; }
.avatar-nav:hover { transform: scale(1.08); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ─── SEARCH DROPDOWN ─── */
.search-wrap { position: relative; }
.search-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 380px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xl); z-index: 1000; animation: megaIn 0.15s ease-out; overflow: hidden; }
.search-dropdown.open { display: block; }
.sd-section { padding: 14px 16px; }
.sd-section + .sd-section { border-top: 1px solid var(--border); }
.sd-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-tertiary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sd-label svg { width: 12px; height: 12px; }
.sd-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); font-size: 0.84rem; transition: all var(--transition); }
.sd-item:hover { background: var(--bg-subtle); color: var(--text); }
.sd-item svg { width: 13px; height: 13px; color: var(--text-tertiary); flex-shrink: 0; }
.sd-item-meta { margin-left: auto; font-size: 0.7rem; color: var(--text-tertiary); }
.sd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-tag { display: inline-block; padding: 5px 12px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text-secondary); font-size: 0.78rem; font-weight: 600; transition: all var(--transition); }
.sd-tag:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.sd-footer { padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-subtle); }
.sd-footer a { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; transition: gap var(--transition); }
.sd-footer a:hover { gap: 8px; }
.sd-footer svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   MEGA MENU — COLLECTIONS
   ═══════════════════════════════════════════ */
.mega-collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.collection-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: all 0.3s; }
.collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.collection-cover { height: 110px; display: flex; align-items: center; justify-content: center; position: relative; }
.collection-cover svg { width: 44px; height: 44px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.2; }
.collection-count-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); color: white; padding: 2px 9px; border-radius: 5px; font-size: 0.68rem; font-weight: 700; }
.collection-body { padding: 14px 16px; flex: 1; }
.collection-title, .collection-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.collection-desc { font-size: 0.78rem; color: var(--text-tertiary); line-height: 1.45; }
.collection-curator { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }
.collection-curator-dot { width: 22px; height: 22px; border-radius: 50%; color: white; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   MEGA MENU — COMMUNAUTÉ
   ═══════════════════════════════════════════ */
.mega-community { display: grid; grid-template-columns: 240px 1fr 280px; gap: 0; min-height: 320px; }
.mega-com-left { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.mega-com-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mega-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text-secondary); transition: all var(--transition); border-radius: 0; }
.mega-link:hover { background: var(--bg-subtle); color: var(--text); }
.mega-link-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.mega-link-icon svg { width: 15px; height: 15px; }
.mega-link:hover .mega-link-icon { background: var(--accent-soft); color: var(--accent); }
.mega-link-text { font-size: 0.85rem; font-weight: 600; }
.mega-link-desc { font-size: 0.72rem; font-weight: 400; color: var(--text-tertiary); margin-top: 1px; }
.com-stats-banner { display: flex; gap: 0; margin: 0 -36px -32px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%); border-top: 1px solid var(--border); }
.com-stat-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 18px 24px; position: relative; }
.com-stat-item::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.com-stat-item:last-child::after { display: none; }
.com-stat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.com-stat-icon svg { width: 16px; height: 16px; }
.com-stat-num { font-weight: 800; font-size: 1.2rem; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.com-stat-label { font-size: 0.62rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-top: 3px; }
.mega-com-center { padding: 0 28px; }
.mega-contrib-mini { display: flex; flex-direction: column; gap: 2px; }
.mega-contrib-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: all var(--transition); }
.mega-contrib-item:hover { background: var(--bg-subtle); }
.mega-contrib-rank { font-size: 0.72rem; font-weight: 700; color: var(--text-tertiary); min-width: 20px; }
.mega-contrib-avatar { width: 36px; height: 36px; border-radius: 50%; color: white; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-contrib-info { display: flex; flex-direction: column; min-width: 0; }
.mega-contrib-name { font-weight: 600; font-size: 0.85rem; }
.mega-contrib-stat { font-size: 0.72rem; color: var(--text-tertiary); }
.mega-contrib-count { font-size: 0.72rem; color: var(--text-tertiary); }
.mega-contrib-badge { margin-left: auto; padding: 2px 9px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.mega-com-right { padding-left: 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; margin-right: 4px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-feed { display: flex; flex-direction: column; gap: 4px; }
.live-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.live-item:last-child { border-bottom: none; }
.live-item strong { color: var(--text); font-weight: 600; }
.live-item .live-time { display: block; font-size: 0.68rem; color: var(--text-tertiary); margin-top: 3px; }
.live-avatar { width: 30px; height: 30px; border-radius: 50%; color: white; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-content { flex: 1; min-width: 0; }
.live-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }
.live-text strong { color: var(--text); font-weight: 600; }
.live-time { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 2px; }
.seasonal-banner { margin-top: auto; background: linear-gradient(135deg, #059669, #22c55e); border-radius: var(--radius); padding: 16px 18px; color: white; }
.seasonal-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; margin-bottom: 2px; }
.seasonal-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 3px; }
.seasonal-desc { font-size: 0.75rem; opacity: 0.9; margin-bottom: 10px; line-height: 1.4; }
.seasonal-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: white; text-decoration: none; transition: gap var(--transition); }
.seasonal-link:hover { gap: 8px; }
.seasonal-link svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   MEGA MENU — MON ESPACE
   ═══════════════════════════════════════════ */
.mega-espace { display: grid; grid-template-columns: 220px 1fr 260px; gap: 0; min-height: 340px; }
.mega-esp-left { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.mega-esp-profile { display: flex; align-items: center; gap: 12px; padding: 0 14px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.mega-esp-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #db2777); color: white; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-esp-name { font-weight: 700; font-size: 0.9rem; }
.mega-esp-role { font-size: 0.72rem; color: var(--text-tertiary); }
.mega-esp-nav { display: flex; flex-direction: column; gap: 1px; }
.mega-esp-link { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; transition: all var(--transition); }
.mega-esp-link:hover { background: var(--bg-subtle); color: var(--text); }
.mega-esp-link .mega-link-icon { width: 28px; height: 28px; border-radius: 7px; }
.mega-esp-link .mega-link-icon svg { width: 14px; height: 14px; }
.mega-esp-link:hover .mega-link-icon { background: var(--accent-soft); color: var(--accent); }
.notif-badge { margin-left: auto; background: var(--accent); color: white; font-size: 0.62rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.mega-esp-center { padding: 0 28px; display: flex; flex-direction: column; }
.my-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.my-stat-card { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--border); }
.my-stat-num { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.my-stat-label { font-size: 0.7rem; color: var(--text-tertiary); margin-bottom: 3px; }
.my-stat-trend { font-size: 0.65rem; font-weight: 600; }
.trend-up { color: #059669; }
.trend-down { color: #dc2626; }
.my-recent-title { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin-bottom: 10px; }
.my-recent-title svg { width: 13px; height: 13px; }
.my-diapo-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: all var(--transition); }
.my-diapo-row:hover { background: var(--bg-subtle); }
.my-diapo-thumb { width: 44px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.my-diapo-thumb svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.5; }
.my-diapo-body { flex: 1; min-width: 0; }
.my-diapo-title { font-weight: 600; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-diapo-meta { font-size: 0.7rem; color: var(--text-tertiary); }
.my-diapo-status { font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.status-published { background: #dcfce7; color: #166534; }
.status-draft { background: #fef3c7; color: #92400e; }
.mega-esp-right { padding-left: 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: var(--radius-sm); transition: background var(--transition); position: relative; }
.notif-item:hover { background: var(--bg-subtle); }
.notif-unread::before { content: ''; position: absolute; top: 12px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notif-icon-wrap { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon-wrap svg { width: 14px; height: 14px; }
.ni-like { background: #fce7f3; color: #be185d; }
.ni-comment { background: #dbeafe; color: #2563eb; }
.ni-follow { background: #ede9fe; color: #7c3aed; }
.ni-system { background: var(--accent-soft); color: var(--accent); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.notif-text strong { color: var(--text); font-weight: 600; }
.notif-time { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 2px; }

/* ═══════════════════════════════════════════
   MEGA MENU — PARTAGER
   ═══════════════════════════════════════════ */
.mega-share { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: start; }
.mega-share-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; border-radius: var(--radius); color: inherit; background: var(--bg-subtle); min-height: 200px; }
.mega-share-cta .mega-upload-icon { margin-bottom: 8px; }
.mega-share-cta .mega-upload-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.mega-share-cta .mega-upload-desc { font-size: 0.82rem; color: var(--text-secondary); max-width: 320px; line-height: 1.5; }
.mega-upload-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mega-upload-icon svg { width: 22px; height: 22px; }
.mega-upload-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.mega-upload-desc { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 12px; line-height: 1.4; }
.mega-formats { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.mega-format-tag { padding: 3px 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); font-family: monospace; }
.mega-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.mega-step { display: flex; align-items: flex-start; gap: 12px; }
.mega-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-step-text { padding-top: 2px; }
.mega-step-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.mega-step-desc { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.4; }
.mega-tips { background: var(--bg-subtle); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.mega-tips-title { font-weight: 700; font-size: 0.82rem; margin-bottom: 14px; }
.mega-tip { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.mega-tip:last-child { margin-bottom: 0; }
.mega-tip-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-tip-icon svg { width: 14px; height: 14px; }
.mega-tip-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; padding-top: 4px; }

/* ═══════════════════════════════════════════
   MEGA MENU — AIDE
   ═══════════════════════════════════════════ */
.mega-help { display: grid; grid-template-columns: repeat(3, 1fr) auto auto; gap: 18px; align-items: start; }
.mega-help-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; transition: all 0.3s; }
.mega-help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.mega-help-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mega-help-card-icon svg { width: 22px; height: 22px; }
.mega-help-card-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.mega-help-card-desc { font-size: 0.78rem; color: var(--text-tertiary); line-height: 1.45; }
.mega-help-links { display: flex; flex-direction: column; gap: 6px; }
.mega-help-link { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.mega-help-link:hover { color: var(--accent); }
.mega-help-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 2px 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 5px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero { padding: 130px 40px 72px; text-align: center; max-width: 1280px; margin: 0 auto; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-elevated); border: 1px solid var(--border); padding: 6px 16px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 28px; box-shadow: var(--shadow-xs); animation: slideUp 0.6s ease-out; }
.hero-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.5px; max-width: 680px; margin: 0 auto 20px; animation: slideUp 0.6s ease-out 0.1s both; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 36px; line-height: 1.65; animation: slideUp 0.6s ease-out 0.2s both; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; animation: slideUp 0.6s ease-out 0.3s both; }
.hero-note { margin-top: 18px; font-size: 0.78rem; color: var(--text-tertiary); animation: slideUp 0.6s ease-out 0.4s both; }
.btn-large { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 9px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; border: none; }
.btn-large svg { width: 17px; height: 17px; }
.btn-large--fill { background: var(--accent); color: white; box-shadow: 0 4px 16px rgba(194,65,12,0.2); }
.btn-large--fill:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(194,65,12,0.25); }
.btn-large--outline { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-large--outline:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════
   CATEGORIES BAR
   ═══════════════════════════════════════════ */
.categories { padding: 0 40px 56px; max-width: 1280px; margin: 0 auto; }
.cat-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-elevated); border: 1px solid var(--border); padding: 8px 18px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.cat-pill:hover { border-color: var(--accent-border); color: var(--accent); }
.cat-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.cat-pill .cat-count { background: rgba(0,0,0,0.05); padding: 1px 7px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.cat-pill.active .cat-count { background: rgba(255,255,255,0.2); }

/* ─── SECTION HEADER ─── */
.section-head { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.section-head a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.section-head a:hover { gap: 8px; }
.section-head a svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   PPS GRID & CARDS
   ═══════════════════════════════════════════ */
.grid-section { max-width: 1280px; margin: 0 auto; padding: 0 40px 72px; }
.pps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pps-card { background: var(--bg-elevated); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.pps-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pps-thumb { height: 180px; position: relative; overflow: hidden; }
.pps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pps-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); }
.pps-thumb-inner svg { width: 48px; height: 48px; opacity: 0.5; stroke: white; fill: none; stroke-width: 1.2; }
.pps-badge { position: absolute; top: 10px; left: 10px; background: var(--bg-elevated); padding: 3px 10px; border-radius: var(--radius-xs); font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: 0.5px; }
.pps-slide-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); color: white; padding: 2px 9px; border-radius: 5px; font-size: 0.7rem; font-weight: 600; }
.pps-body { padding: 16px 18px; }
.pps-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pps-meta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 12px; }
.pps-author-pic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; font-weight: 700; flex-shrink: 0; }
.pps-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.pps-stats { display: flex; gap: 12px; }
.pps-stat { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; color: var(--text-tertiary); font-weight: 500; }
.pps-stat svg { width: 13px; height: 13px; }
.pps-dl-btn { background: var(--accent-soft); border: none; color: var(--accent); width: 32px; height: 32px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.pps-dl-btn:hover { background: var(--accent); color: white; }
.pps-dl-btn svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   CONTRIBUTORS
   ═══════════════════════════════════════════ */
.contributors { padding: 72px 40px; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.contributors-inner { max-width: 1280px; margin: 0 auto; }
.contrib-head { text-align: center; margin-bottom: 36px; }
.contrib-head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin-bottom: 6px; }
.contrib-head p { font-size: 0.88rem; color: var(--text-tertiary); }
.contrib-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contrib-card { background: var(--bg-elevated); border-radius: var(--radius); padding: 24px 28px; text-align: center; width: 170px; border: 1px solid var(--border); transition: all 0.3s; }
.contrib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contrib-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 10px; color: white; font-weight: 700; }
.contrib-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.contrib-count { font-size: 0.75rem; color: var(--text-tertiary); font-weight: 500; }
.contrib-badge { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-gold { background: #fef3c7; color: #92400e; }
.badge-silver { background: #f3f4f6; color: #6b7280; }
.badge-bronze { background: #ffedd5; color: #c2410c; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-section { padding: 88px 40px; max-width: 1280px; margin: 0 auto; }
.how-head { text-align: center; margin-bottom: 48px; }
.how-head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin-bottom: 6px; }
.how-head p { font-size: 0.88rem; color: var(--text-tertiary); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.how-step { text-align: center; position: relative; }
.how-icon { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; }
.how-icon svg { width: 26px; height: 26px; }
.how-icon .step-num { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: white; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hi-1 { background: var(--accent-soft); color: var(--accent); }
.hi-2 { background: rgba(37,99,235,0.07); color: #2563eb; }
.hi-3 { background: rgba(124,58,237,0.07); color: #7c3aed; }
.hi-4 { background: rgba(5,150,105,0.07); color: #059669; }
.how-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.how-step p { font-size: 0.82rem; color: var(--text-tertiary); line-height: 1.55; }

/* ═══════════════════════════════════════════
   CTA BANNER & FOOTER
   ═══════════════════════════════════════════ */
.cta-section { max-width: 1280px; margin: 0 auto; padding: 0 40px 80px; }
.cta-banner { background: var(--bg-dark); border-radius: 20px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 0%, rgba(194,65,12,0.12) 0%, transparent 60%); pointer-events: none; }
.cta-banner h2 { font-family: var(--font-display); color: white; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 400; margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.5); font-size: 0.95rem; margin-bottom: 28px; max-width: 420px; margin-left: auto; margin-right: auto; position: relative; }
.cta-email-row { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; position: relative; }
.cta-email-row input { flex: 1; padding: 12px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: white; font-family: var(--font-body); font-size: 0.88rem; outline: none; transition: border-color var(--transition); }
.cta-email-row input::placeholder { color: rgba(255,255,255,0.3); }
.cta-email-row input:focus { border-color: var(--accent); }
.cta-email-row button { background: var(--accent); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.cta-email-row button:hover { background: var(--accent-hover); }

footer { padding: 48px 40px 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; max-width: 1280px; margin: 0 auto; }
.footer-left { max-width: 260px; }
.footer-left .logo { margin-bottom: 12px; }
.footer-left p { color: var(--text-tertiary); font-size: 0.82rem; line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-tertiary); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { width: 100%; text-align: center; padding-top: 20px; border-top: 1px solid var(--border); margin-top: 12px; font-size: 0.78rem; color: var(--text-tertiary); }

/* ═══════════════════════════════════════════
   DIAPORAMA DETAIL PAGE
   ═══════════════════════════════════════════ */
.breadcrumb-bar { padding: 80px 40px 0; max-width: 1280px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-tertiary); animation: fadeIn 0.5s ease-out; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.page-layout { max-width: 1280px; margin: 0 auto; padding: 20px 40px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.main-col { animation: slideUp 0.6s ease-out 0.05s both; }
.side-col { animation: slideUp 0.6s ease-out 0.2s both; position: sticky; top: 84px; }

/* Viewer */
.viewer { background: var(--bg-dark); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-xl); position: relative; }
.viewer-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; text-align: center; opacity: 0; transition: opacity 0.55s ease, transform 0.55s ease; transform: scale(0.98); pointer-events: none; }
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide.slide-img { padding: 0; background: #0a0a0a; }
.slide.slide-img img { width: 100%; height: 100%; object-fit: contain; }
.slide::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none; }
.slide h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: white; margin-bottom: 12px; font-weight: 400; text-shadow: 0 2px 30px rgba(0,0,0,0.2); position: relative; }
.slide p { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.65; position: relative; }
.s-bg-1 { background: linear-gradient(145deg, #292524, #44403c, #57534e); }
.s-bg-2 { background: linear-gradient(145deg, #1e3a5f, #2c5f8a, #3b82b5); }
.s-bg-3 { background: linear-gradient(145deg, #4c1d95, #6d28d9, #8b5cf6); }
.s-bg-4 { background: linear-gradient(145deg, #7c2d12, #c2410c, #ea580c); }
.s-bg-5 { background: linear-gradient(145deg, #14532d, #166534, #22c55e); }
.s-bg-6 { background: linear-gradient(145deg, #581c87, #7e22ce, #a855f7); }
.s-bg-7 { background: linear-gradient(145deg, #78350f, #b45309, #f59e0b); }
.s-bg-8 { background: linear-gradient(145deg, #1c1917, #292524, #44403c); }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.15); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); z-index: 10; }
.viewer-arrow:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.06); }
.viewer-arrow svg { width: 18px; height: 18px; }
.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }
.slide-indicator { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.45); backdrop-filter: blur(12px); color: rgba(255,255,255,0.85); padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; z-index: 10; }
.btn-fs { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.45); backdrop-filter: blur(12px); color: rgba(255,255,255,0.85); border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; z-index: 10; display: flex; align-items: center; gap: 5px; font-family: var(--font-body); transition: background var(--transition); }
.btn-fs:hover { background: rgba(0,0,0,0.65); }
.btn-fs svg { width: 14px; height: 14px; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--bg-dark); }
.viewer-dots { display: flex; gap: 5px; align-items: center; }
.v-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; padding: 0; transition: all 0.25s; }
.v-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }
.v-dot:hover:not(.active) { background: rgba(255,255,255,0.4); }
.viewer-progress { flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; margin: 0 20px; position: relative; }
.viewer-progress-fill { height: 100%; background: var(--accent); border-radius: 1px; transition: width 0.4s ease; }
.viewer-btns { display: flex; gap: 4px; }
.v-btn { background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.5); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.v-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.v-btn.is-playing { color: var(--accent); }
.v-btn svg { width: 14px; height: 14px; }
.viewer.fullscreen { position: fixed; inset: 0; z-index: 9999; border-radius: 0; display: flex; flex-direction: column; }
.viewer.fullscreen .viewer-stage { flex: 1; aspect-ratio: unset; }
.viewer-embed { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-xl); background: var(--bg-dark); }
.viewer-embed iframe { width: 100%; aspect-ratio: 16 / 10; display: block; border: none; background: #1a1a1a; }
.viewer-embed-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-dark); }
.viewer-embed-info { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.78rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-embed.fullscreen { position: fixed; inset: 0; z-index: 9999; border-radius: 0; display: flex; flex-direction: column; }
.viewer-embed.fullscreen iframe { flex: 1; aspect-ratio: unset; }

/* Info card */
.info-card { margin-top: 24px; background: var(--bg-elevated); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; }
.info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.info-top h1 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; line-height: 1.3; }
.category-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 600; margin-top: 8px; letter-spacing: 0.3px; text-transform: uppercase; text-decoration: none; }
.category-tag:hover { background: var(--accent); color: white; }
.like-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: all var(--transition); flex-shrink: 0; }
.like-btn:hover, .like-btn.liked { border-color: #dc2626; background: rgba(220,38,38,0.04); }
.like-btn svg { width: 22px; height: 22px; color: var(--text-tertiary); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.like-btn.liked svg { color: #dc2626; transform: scale(1.15); fill: #dc2626; }
.like-btn .like-num { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.author-row { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.author-details { flex: 1; }
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-name a { color: var(--text); text-decoration: none; }
.author-name a:hover { color: var(--accent); }
.author-time { font-size: 0.78rem; color: var(--text-tertiary); }
.description { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 22px; }
.stats-row { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 500; color: var(--text-tertiary); }
.stat-item svg { width: 14px; height: 14px; }
.actions-row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; border: none; }
.act-btn svg { width: 15px; height: 15px; }
.act-btn--fill { background: var(--accent); color: white; }
.act-btn--fill:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.act-btn--outline { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.act-btn--outline:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-subtle); }
.share-wrap { position: relative; }
.share-popover { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 260px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xl); z-index: 100; padding: 8px; animation: megaIn 0.15s ease-out; }
.share-popover.open { display: block; }
.share-popover::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--bg-elevated); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; background: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.share-item:hover { background: var(--bg-subtle); color: var(--text); }
.share-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-link-area { display: flex; gap: 4px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.share-link-input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-xs); font-family: var(--font-body); font-size: 0.72rem; color: var(--text-secondary); background: var(--bg-subtle); min-width: 0; outline: none; }
.share-link-input:focus { border-color: var(--accent-border); }
.share-copy { padding: 6px 12px; background: var(--accent); color: white; border: none; border-radius: var(--radius-xs); font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
.share-copy:hover { background: var(--accent-hover); }

/* Comments */
.comments-card { margin-top: 24px; background: var(--bg-elevated); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.comments-head h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; display: flex; align-items: center; gap: 10px; }
.count-chip { background: var(--bg-subtle); padding: 2px 10px; border-radius: 20px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); }
.comment { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(231,229,228,0.6); }
.comment:last-child { border-bottom: none; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.comment-content { flex: 1; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-name { font-weight: 700; font-size: 0.85rem; }
.comment-date { font-size: 0.75rem; color: var(--text-tertiary); }
.comment-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.comments-empty { color: var(--text-tertiary); text-align: center; padding: 24px 0; }

/* Download btn extras */
.act-btn--disabled { background: var(--bg-subtle); color: var(--text-tertiary); border: 1px solid var(--border); cursor: not-allowed; opacity: 0.65; }
.act-btn-meta { font-weight: 400; font-size: 0.7rem; opacity: 0.8; margin-left: 2px; }
.act-label-short { display: none; }

/* ═══ COMMENT ALERT ═══ */
.cm-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.85rem; font-weight: 500; animation: slideDown 0.25s ease-out; }
.cm-alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.cm-alert--ok { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2); color: #059669; }
.cm-alert--err { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.18); color: #dc2626; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ═══ COMMENT FORM ═══ */
.cform-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.cform-title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; margin-bottom: 18px; }
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform-field { display: flex; flex-direction: column; gap: 5px; }
.cform-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 2px; }
.cform-req { color: var(--accent); }
.cform-opt { font-weight: 400; font-size: 0.72rem; color: var(--text-tertiary); }
.cform-field input[type="text"],
.cform-field input[type="email"],
.cform-field textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.88rem; color: var(--text);
  background: var(--bg); transition: border-color var(--transition); outline: none; resize: vertical;
}
.cform-field input:focus, .cform-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cform-field input::placeholder, .cform-field textarea::placeholder { color: var(--text-tertiary); }
.cform-counter { text-align: right; font-size: 0.7rem; color: var(--text-tertiary); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cform-counter.cform-counter--warn { color: var(--accent); font-weight: 600; }
.cform-user { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-subtle); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); }
.cform-user strong { color: var(--text); }
.cform-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.12); border-radius: var(--radius-sm); font-size: 0.78rem; color: #2563eb; }
.cform-notice svg { width: 14px; height: 14px; flex-shrink: 0; }
.cform-submit {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 10px 22px; background: var(--accent); color: white; border: none;
  border-radius: 8px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); line-height: 1.4;
}
.cform-submit svg { width: 14px; height: 14px; flex-shrink: 0; }
.cform-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ═══ EMAIL MODAL ═══ */
.emodal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 9998; backdrop-filter: blur(3px); animation: fadeIn 0.2s ease-out;
}
.emodal-overlay.open { display: block; }
.emodal {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 9999;
  width: 95%; max-width: 520px; max-height: 90vh;
  background: var(--bg-elevated); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-xl);
  overflow: hidden; flex-direction: column;
  animation: modalIn 0.25s ease-out;
}
.emodal.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.emodal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.emodal-header h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.emodal-header h3 svg { width: 18px; height: 18px; color: var(--accent); }
.emodal-close { background: none; border: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--text-tertiary); transition: all var(--transition); }
.emodal-close:hover { background: var(--bg-subtle); color: var(--text); }
.emodal-close svg { width: 18px; height: 18px; }

.emodal-body { padding: 24px; overflow-y: auto; flex: 1; }
.emodal-intro { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.5; }
.emodal-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.emodal-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.emodal-field input, .emodal-field textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.88rem; color: var(--text);
  background: var(--bg); transition: border-color var(--transition); outline: none; resize: vertical;
}
.emodal-field input:focus, .emodal-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.emodal-field input::placeholder, .emodal-field textarea::placeholder { color: var(--text-tertiary); }
.emodal-row { display: grid; grid-template-columns: 1fr; gap: 12px; }

.emodal-preview { margin-top: 6px; }
.emodal-preview-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 8px; }
.emodal-preview-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--bg-subtle); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.emodal-preview-thumb { width: 56px; height: 40px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.emodal-preview-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.emodal-preview-placeholder svg { width: 20px; height: 20px; color: var(--accent); }
.emodal-preview-info { flex: 1; min-width: 0; }
.emodal-preview-title { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emodal-preview-url { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; }

.emodal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-subtle);
}
.emodal-sent { text-align: center; padding: 32px 24px; }
.emodal-sent svg { width: 40px; height: 40px; color: #059669; margin-bottom: 12px; }
.emodal-sent p { font-size: 0.9rem; color: var(--text-secondary); margin: 8px 0 0; }
.emodal-sent h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }

/* Sidebar */
.side-card { background: var(--bg-elevated); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 16px; }
.side-card-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.side-author { text-align: center; }
.side-avatar { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 22px; margin: 0 auto 12px; }
.side-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.side-bio { font-size: 0.8rem; color: var(--text-tertiary); line-height: 1.5; margin-bottom: 16px; }
.side-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.side-stat { text-align: center; }
.side-stat-num { font-weight: 700; font-size: 1.05rem; }
.side-stat-label { font-size: 0.7rem; color: var(--text-tertiary); }
.btn-follow { background: var(--accent); color: white; border: none; padding: 8px 22px; border-radius: 7px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-follow:hover { background: var(--accent-hover); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; background: var(--bg-subtle); border: 1px solid transparent; padding: 4px 12px; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.tag:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.related-link { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(231,229,228,0.5); text-decoration: none; color: inherit; transition: all var(--transition); }
.related-link:first-of-type { padding-top: 0; }
.related-link:last-of-type { border-bottom: none; }
.related-link:hover .related-name { color: var(--accent); }
.related-thumb { width: 64px; height: 48px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; }
.related-body { flex: 1; min-width: 0; }
.related-name { font-size: 0.82rem; font-weight: 700; line-height: 1.35; margin-bottom: 2px; transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-stats { font-size: 0.7rem; color: var(--text-tertiary); display: flex; gap: 8px; font-weight: 500; }
.see-all-link { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.82rem; transition: gap var(--transition); }
.see-all-link:hover { gap: 8px; }
.nl-card { background: var(--bg-dark); border-color: transparent; color: white; text-align: center; }
.nl-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; margin-bottom: 6px; color: white; }
.nl-card p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; line-height: 1.5; }
.nl-row { display: flex; gap: 4px; }
.nl-input { flex: 1; padding: 9px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: white; font-family: var(--font-body); font-size: 0.8rem; outline: none; }
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.nl-input:focus { border-color: var(--accent); }
.nl-submit { background: var(--accent); color: white; border: none; padding: 9px 16px; border-radius: 7px; font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: background var(--transition); }
.nl-submit:hover { background: var(--accent-hover); }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(60px); background: var(--bg-dark); color: white; padding: 10px 24px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 10000; opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pag-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 7px; background: var(--bg-elevated); border: 1px solid var(--border); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); cursor: pointer; }
.pag-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.pag-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.pag-dots { display: flex; align-items: center; color: var(--text-tertiary); padding: 0 4px; }

/* ─── PAGE TITLE (category / search) ─── */
.page-title-section { padding: 100px 40px 40px; max-width: 1280px; margin: 0 auto; text-align: center; }
.page-title-section h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 400; margin-bottom: 8px; }
.page-title-section p { color: var(--text-secondary); font-size: 0.95rem; }
.page-title-section .cat-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }

/* ═══════════════════════════════════════════
   MOBILE DRAWER
   ═══════════════════════════════════════════ */
.mobile-overlay { position: fixed; inset: 0; background: rgba(28,25,23,0.4); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; display: none; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 90vw; background: var(--bg-elevated); z-index: 2000; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: none; flex-direction: column; box-shadow: -8px 0 40px rgba(28,25,23,0.15); overflow: hidden; }
.mobile-drawer.open { transform: translateX(0); }
.mob-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.mob-close { background: none; border: none; color: var(--text-tertiary); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 7px; }
.mob-close:hover { background: var(--bg-subtle); color: var(--text); }
.mob-close svg { width: 20px; height: 20px; }
.mob-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.mob-search { display: flex; align-items: center; gap: 8px; background: var(--bg-subtle); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.mob-search svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.mob-search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); }
.mob-section { margin-bottom: 8px; }
.mob-section-trigger { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 8px; border: none; background: none; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer; transition: background var(--transition); }
.mob-section-trigger:hover { background: var(--bg-subtle); }
.mob-section-trigger svg { width: 18px; height: 18px; color: var(--text-tertiary); }
.mob-chev { margin-left: auto; transition: transform var(--transition); }
.mob-section.open .mob-chev { transform: rotate(180deg); }
.mob-content { display: none; padding: 4px 0 8px 12px; }
.mob-section.open .mob-content { display: block; }
.mob-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 7px; text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; transition: all var(--transition); }
.mob-link:hover { background: var(--bg-subtle); color: var(--text); }
.mob-footer { padding: 16px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.mob-footer-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: var(--accent); color: white; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: background var(--transition); }
.mob-footer-btn:hover { background: var(--accent-hover); }
.mob-footer-btn svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
/* ═══ NAV AUTH LINK ═══ */
.btn-nav-link { font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border-radius: var(--radius-sm); transition: all var(--transition); }
.btn-nav-link:hover { color: var(--accent); background: var(--accent-soft); }

/* ═══ AUTH PAGES ═══ */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 64px); padding: 80px 24px 48px; }
.auth-card { width: 100%; max-width: 460px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); animation: slideUp 0.5s ease-out; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 6px; }
.auth-header p { font-size: 0.88rem; color: var(--text-secondary); }
.auth-alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.auth-alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.auth-alert-error { background: rgba(220,38,38,0.06); color: #dc2626; border: 1px solid rgba(220,38,38,0.15); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.auth-input-wrap { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; transition: border-color var(--transition), box-shadow var(--transition); }
.auth-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-input-wrap svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.auth-input-wrap input { flex: 1; border: none; background: none; padding: 11px 0; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); outline: none; }
.auth-input-wrap input::placeholder { color: var(--text-tertiary); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { width: 100%; padding: 12px; background: var(--accent); color: white; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all var(--transition); margin-top: 4px; }
.auth-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.auth-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--text-tertiary); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ═══ MAILLAGE INTERNE ═══ */
.maillage { max-width: 1320px; margin: 0 auto; padding: 0 36px 48px; }
.maillage-section { margin-bottom: 36px; }
.maillage-section:last-child { margin-bottom: 0; }
.maillage-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.maillage-header h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; margin: 0; }
.maillage-header h2 svg { width: 20px; height: 20px; color: var(--accent); }
.maillage-more { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.maillage-more svg { width: 14px; height: 14px; }
.maillage-more:hover { text-decoration: underline; }

.maillage-grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.maillage-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: all 0.25s; }
.maillage-card:hover { border-color: var(--accent-border); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transform: translateY(-2px); }
.maillage-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-subtle); }
.maillage-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.maillage-card:hover .maillage-thumb img { transform: scale(1.05); }
.maillage-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.maillage-thumb-placeholder svg { width: 36px; height: 36px; opacity: 0.4; }
.maillage-badge { position: absolute; top: 8px; left: 8px; color: white; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px; }
.maillage-body { padding: 14px 16px; }
.maillage-title { font-weight: 600; font-size: 0.88rem; line-height: 1.35; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.maillage-meta { font-size: 0.75rem; color: var(--text-tertiary); }

.maillage-grid--cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.maillage-cat-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: all 0.2s; }
.maillage-cat-card:hover { border-color: var(--accent-border); background: var(--bg-subtle); }
.maillage-cat-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.maillage-cat-info { flex: 1; min-width: 0; }
.maillage-cat-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.maillage-cat-count { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 1px; }
.maillage-cat-arrow { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; transition: all 0.2s; }
.maillage-cat-card:hover .maillage-cat-arrow { color: var(--accent); transform: translateX(3px); }

/* ═══ DRAG & DROP ZONE ═══ */
/* share CTA hover */
.mega-drop-feedback { margin-top: 12px; padding: 8px 14px; border-radius: var(--radius-xs); font-size: 0.82rem; font-weight: 600; text-align: center; }
.mega-drop-feedback.drop-ok { background: rgba(5,150,105,0.08); color: #059669; }
.mega-drop-feedback.drop-err { background: rgba(220,38,38,0.06); color: #dc2626; }

@media (max-width: 1024px) {
  .mega-explorer { grid-template-columns: 200px 1fr; }
  .mega-exp-right { display: none; }
  .mega-collections { grid-template-columns: repeat(2, 1fr); }
  .mega-community { grid-template-columns: 220px 1fr; }
  .mega-com-right { display: none; }
  .mega-espace { grid-template-columns: 200px 1fr; }
  .mega-esp-right { display: none; }
  .mega-share { grid-template-columns: 1fr 1fr; }
  .mega-share .mega-tips { grid-column: 1 / -1; }
  .mega-help { grid-template-columns: repeat(3, 1fr); }
  .mega-help > div:nth-child(4), .mega-help > div:nth-child(5) { grid-column: span 1; }
  .page-layout { grid-template-columns: 1fr; }
  .side-col { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side-card { margin-bottom: 0; }
  .maillage-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .maillage-grid--cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mega-explorer { grid-template-columns: 180px 1fr; min-height: 300px; }
  .mega-subcat-grid { grid-template-columns: 1fr; }
  .mega-collections { grid-template-columns: repeat(2, 1fr); }
  .mega-community { grid-template-columns: 1fr; }
  .mega-com-left { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .com-stats-banner { margin: 0 -20px -20px; flex-wrap: wrap; }
  .com-stat-item { flex: 1 1 45%; min-width: 0; padding: 12px 16px; }
  .com-stat-item:nth-child(2)::after { display: none; }
  .mega-espace { grid-template-columns: 1fr; }
  .mega-esp-left { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .mega-share { grid-template-columns: 1fr; }
  .mega-help { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 28px; }
  .nav-inner { padding: 0 20px; }
  .mega-inner { padding: 20px; }
  .emodal { max-width: 480px; }
}
@media (max-width: 800px) {
  .nav-items, .search-wrap { display: none; }
  .mobile-toggle { display: flex; }
  .btn-nav-link, .avatar-nav, .btn-primary { display: none; }
  .mega-panel, .mega-backdrop { display: none !important; }
  .nav-inner { padding: 0 16px; height: 56px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 7px; }
  .logo-mark svg { width: 16px; height: 16px; }
  .logo-text { font-size: 1.15rem; }
  .mobile-drawer, .mobile-overlay { display: flex; display: block; }
  .mobile-drawer { display: flex; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 20px 56px; }
  .categories, .grid-section { padding-left: 16px; padding-right: 16px; }
  .section-head { padding: 0 16px; }
  .pps-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-section { padding: 56px 20px; }
  .contributors { padding: 48px 16px; }
  .cta-section { padding: 0 16px 56px; }
  .cta-banner { padding: 40px 24px; border-radius: 16px; }
  .cta-email-row { flex-direction: column; }
  footer { padding: 32px 16px; flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 24px; }
  .breadcrumb-bar { padding: 80px 16px 0; }
  .page-layout { padding: 16px 16px 40px; gap: 24px; }
  .side-col { grid-template-columns: 1fr; }
  .maillage { padding: 0 16px 36px; }
  .maillage-grid--4 { grid-template-columns: 1fr; }
  .maillage-grid--cats { grid-template-columns: 1fr; }
  .maillage-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .info-top { flex-direction: column; }
  .actions-row { flex-direction: column; }
  .act-btn { justify-content: center; }
  .act-label-long { display: none; }
  .act-label-short { display: inline; }
  .cform-row { grid-template-columns: 1fr; }
  .cform-submit { align-self: stretch; justify-content: center; }
  .comments-card { padding: 20px 16px; }
  .cform-wrap { padding-top: 20px; }
  .emodal { width: 100%; max-width: none; max-height: 100vh; top: auto; left: 0; bottom: 0; transform: none; border-radius: 16px 16px 0 0; animation: modalSlideUp 0.3s ease-out; }
  .emodal-body { padding: 20px 16px; }
  .emodal-header { padding: 16px; }
  .emodal-footer { padding: 12px 16px; }
  @keyframes modalSlideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
  .page-title-section { padding: 90px 16px 32px; }
  .nav-link { display: none; }
  .auth-card { padding: 24px; }
  .auth-row { grid-template-columns: 1fr; }
}
