/* ============================================
   Prompt Idea — Premium Style
   A carefully curated prompt archive
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #121418;
  --bg-surface: #1d2226;
  --bg-hover: #38434f;
  --border: #38434f;
  --border-hover: #4e5a65;

  --text-primary: rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.65);
  --text-tertiary: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.3);
  
  /* Accents */
  --mint: #70b5f9;
  --mint-dim: rgba(112, 181, 249, 0.15);
  --mint-border: rgba(112, 181, 249, 0.3);
  --brand-blue: #3b82f6;
  --search-bg: rgba(0,0,0,0.2);
  --search-bg-focus: rgba(0,0,0,0.4);
  --blue: #5C87F6;
  --orange: #E48D65;
  --purple: #A78BFA;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

[data-theme="light"] {
  --bg: #f3f2ef;
  --bg-surface: #ffffff;
  --bg-raised: #ffffff;
  --bg-hover: #f3f2ef;
  --border: #dce6f1;
  --border-hover: #cacaca;

  --text-primary: rgba(0, 0, 0, 0.9);
  --text-secondary: rgba(0, 0, 0, 0.65);
  --text-tertiary: rgba(0, 0, 0, 0.5);
  --text-muted: rgba(0, 0, 0, 0.4);
  --mint: #0a66c2;
  --mint-dim: rgba(10, 102, 194, 0.1);
  --mint-border: rgba(10, 102, 194, 0.3);
  --brand-blue: #1d4ed8;
  --search-bg: rgba(0,0,0,0.05);
  --search-bg-focus: rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background: var(--bg); color: var(--text-primary);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-size: 14px; line-height: 1.6;
  transition: background .4s ease, color .3s ease;
}

/* Animated Gradient Background */
.main::before {
  content: '';
  position: fixed;
  top: -30%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(91, 131, 246, 0.08) 0%, transparent 70%);
  animation: bgFloat1 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.main::after {
  content: '';
  position: fixed;
  bottom: -20%; right: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
  animation: bgFloat2 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .main::before {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}
[data-theme="light"] .main::after {
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
}
@keyframes bgFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 12%) scale(1.15); }
}
@keyframes bgFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -10%) scale(1.1); }
}



::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
::selection { background: rgba(125,211,180,0.2); color: var(--text-primary); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Loading --- */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity .4s ease, visibility .4s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-brand { font-family: 'Space Grotesk',sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -1px; }
.loading-brand span { color: var(--brand-blue); font-weight: 500; margin-left: 1px; }
.loading-bar { width: 140px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loading-bar-inner { height: 100%; width: 40%; background: var(--text-primary); border-radius: 2px; animation: loadSlide 1s ease-in-out infinite; }
@keyframes loadSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

/* --- Sidebar --- */
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
  background: var(--bg-surface); border-right: 1px solid var(--border); z-index: 100;
  display: flex; flex-direction: column; padding: 24px 16px; transition: transform .35s var(--ease);
}
.sidebar-brand { padding: 0 12px; margin-bottom: 32px; }
.sidebar-brand h1 { font-family: 'Space Grotesk',sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -1px; line-height: 1; display: flex; align-items: baseline; }
.sidebar-brand h1 span { color: var(--brand-blue); font-weight: 500; margin-left: 1px; }
.sidebar-brand p { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; letter-spacing: .2px; font-weight: 500; }
.sidebar-label { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px; }
.sidebar-nav { list-style: none; flex: 1; overflow-y: auto; margin-bottom: 16px; }
.sidebar-nav li { margin-bottom: 2px; }

.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: color .15s ease, background .15s ease; border: 1px solid transparent; user-select: none;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.05); border-color: var(--border); }
.nav-link .nav-icon { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.7; }
.nav-link.active .nav-icon { opacity: 1; }
.nav-link .nav-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link .nav-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.nav-link.active .nav-count { color: var(--text-tertiary); }

.sidebar-footer { padding: 16px 12px 0; border-top: 1px solid var(--border); }
.sidebar-footer-link { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-tertiary); padding: 5px 0; cursor: pointer; transition: color .15s ease; }
.sidebar-footer-link:hover { color: var(--text-secondary); }
.sidebar-credit { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* --- Social Icons --- */
.sidebar-social, .footer-social {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.social-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-tertiary);
  transition: all .25s var(--ease);
}
.social-icon-link svg {
  width: 16px; height: 16px; fill: currentColor;
}
.social-icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Instagram hover */
.social-icon-link[aria-label="Instagram"]:hover {
  background: rgba(228, 64, 95, 0.15); border-color: rgba(228, 64, 95, 0.4);
  color: #e4405f;
}
/* Light theme */
[data-theme="light"] .social-icon-link {
  background: rgba(0,0,0,0.04); border-color: var(--border); color: var(--text-tertiary);
}
[data-theme="light"] .social-icon-link:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* Footer Instagram link */
.footer-ig-link {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 6px 0; transition: color .2s ease;
}
.footer-ig-link:hover { color: #e4405f !important; }
.footer-ig-icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; opacity: 0.7; transition: opacity .2s ease; }
.footer-ig-link:hover .footer-ig-icon { opacity: 1; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h);
  background: rgba(17, 21, 30, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); z-index: 90; display: flex; align-items: center; padding: 0 32px; gap: 20px;
  transition: background .4s ease;
}
[data-theme="light"] .header {
  background: rgba(243, 242, 239, 0.75);
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); padding: 4px; }
.mobile-menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Command Palette Style Search */
.search-box { flex: 1; max-width: 440px; position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 2; pointer-events: none; }
.search-box input { width: 100%; background: var(--search-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px 9px 36px; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-primary); outline: none; transition: border-color .2s ease, background .2s ease; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }
.search-box input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-box input:focus { border-color: var(--text-secondary); background: var(--search-bg-focus); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.theme-btn {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-btn:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-hover); }
.theme-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --- Language Toggle --- */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.lang-btn {
  background: none; border: none; padding: 6px 12px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text-muted); letter-spacing: .5px; transition: color .15s ease, background .15s ease;
}
.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active { color: var(--text-primary); background: rgba(255,255,255,0.08); }

/* --- Main --- */
.main { margin-left: var(--sidebar-w); padding-top: var(--header-h); min-height: 100vh; position: relative; z-index: 1; display: flex; flex-direction: column; }
.content { padding: 48px 48px 64px; flex: 1; max-width: 1400px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }

/* Editorial Hero Area */
.page-header { margin-bottom: 40px; max-width: 720px; }
.page-title { font-family: 'Space Grotesk',sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 12px; color: var(--text-primary); }
.page-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.page-stats { display: flex; align-items: center; gap: 16px; font-size: 12.5px; font-weight: 500; color: var(--text-tertiary); }
.page-stats span { display: inline-flex; align-items: center; gap: 6px; }
.page-stats svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 24px; }

/* --- Premium Card --- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; cursor: pointer;
  transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .4s var(--ease), background .3s ease;
  display: flex; flex-direction: column; position: relative;
  will-change: transform, box-shadow;
}
.card:hover {
  border-color: rgba(112, 181, 249, 0.4);
  transform: translateY(-6px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(112, 181, 249, 0.12),
    0 0 40px rgba(112, 181, 249, 0.06);
}
[data-theme="light"] .card:hover {
  border-color: rgba(10, 102, 194, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(10, 102, 194, 0.08),
    0 0 40px rgba(10, 102, 194, 0.04);
}

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text-primary); flex: 1; font-family: 'Inter', sans-serif; letter-spacing: -0.3px; }
.card-copy-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-muted); flex-shrink: 0; opacity: 0; transform: translateY(4px);
  transition: all .2s ease;
}
.card:hover .card-copy-btn { opacity: 1; transform: translateY(0); border-color: var(--border); background: rgba(0,0,0,0.2); }
.card-copy-btn:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.card-copy-btn.copied { color: var(--mint); border-color: var(--mint-dim); background: var(--mint-dim); }
.card-copy-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; flex: 1; }

.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.2px; transition: all 0.2s ease; }
.tag-category { border: none; font-weight: 500; }
.tag-model { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); font-size: 10.5px; border-radius: 12px; }
.tag-model::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: 0.6; }
.card-word-count { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Category Colors (Vibrant but Organic) */
.tag-cat-code { background: rgba(75, 114, 212, 0.15); color: #4B72D4; }
.tag-cat-design { background: rgba(139, 97, 226, 0.15); color: #8B61E2; }
.tag-cat-marketing { background: rgba(214, 106, 69, 0.15); color: #D66A45; }
.tag-cat-social { background: rgba(216, 88, 136, 0.15); color: #D85888; }
.tag-cat-writing { background: rgba(62, 163, 122, 0.15); color: #3EA37A; }
.tag-cat-education { background: rgba(181, 135, 66, 0.15); color: #B58742; }
.tag-cat-ecommerce { background: rgba(214, 139, 53, 0.15); color: #D68B35; }
.tag-cat-career { background: rgba(91, 123, 158, 0.15); color: #5B7B9E; }
.tag-cat-life { background: rgba(75, 161, 165, 0.15); color: #4BA1A5; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,10,14,0); opacity: 0; visibility: hidden; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: all .35s ease;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.open { opacity: 1; visibility: visible; background: rgba(8,10,14,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.modal {
  background: var(--bg-surface); border: 1px solid var(--border-hover); border-radius: var(--radius-lg);
  width: 90%; max-width: 640px; max-height: 85vh; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5); position: relative;
  transform: translateY(20px) scale(0.96); opacity: 0;
  transition: transform .4s var(--ease), opacity .35s ease;
  display: flex; flex-direction: column;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-overlay.closing { opacity: 0; background: rgba(8,10,14,0); backdrop-filter: blur(0px); }
.modal-overlay.closing .modal { transform: translateY(14px) scale(0.97); opacity: 0; transition: transform .25s ease, opacity .2s ease; }

.modal-scroll { max-height: 85vh; overflow-y: auto; flex: 1; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-surface); position: sticky; top: 0; z-index: 10; }
.modal-header-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-close {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-tertiary); transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-body { padding: 32px 24px; }
.modal-title { font-family: 'Space Grotesk',sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.35; margin-bottom: 16px; color: var(--text-primary); }
.modal-desc { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.modal-section-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.modal-copy-btn {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px;
  color: var(--text-primary); font-family: inherit; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none; transition: all .15s ease;
}
.modal-copy-btn:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.1); }
.modal-copy-btn.copied { color: var(--mint); border-color: var(--mint-border); background: var(--mint-dim); }
.modal-copy-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.modal-prompt-box { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.modal-prompt-box pre { font-family: 'JetBrains Mono',monospace; font-size: 13px; line-height: 1.7; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; max-height: 400px; overflow-y: auto; }
.modal-footer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }

/* --- Toast --- */
.toast-container { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none; }
.toast {
  background: var(--bg-surface); border: 1px solid var(--border-hover); border-radius: var(--radius-md);
  padding: 12px 20px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-primary);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3); opacity: 0; transform: translateY(12px) scale(0.95); transition: all .3s cubic-bezier(0.16,1,0.3,1); pointer-events: auto;
}
.toast svg { width: 16px; height: 16px; stroke: var(--mint); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* --- Empty --- */
.empty-state { text-align: center; padding: 80px 20px; grid-column: 1/-1; }
.empty-state svg { width: 36px; height: 36px; stroke: var(--text-tertiary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--text-secondary); }

/* --- Footer --- */
.footer { margin-left: var(--sidebar-w); border-top: 1px solid var(--border); padding: 48px; position: relative; z-index: 1; background: var(--bg-surface); }
.footer-inner { max-width: 960px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin: 0 auto; }
.footer-brand h3 { font-family: 'Space Grotesk',sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.footer-brand h3 span { color: var(--brand-blue); font-weight: 500; margin-left: 1px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--text-tertiary); max-width: 320px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-secondary); padding: 4px 0; font-weight: 500; transition: color .15s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); max-width: 960px; margin-left: auto; margin-right: auto; }

/* --- Static Pages --- */
.static-page { display: none; padding: 48px; flex: 1; max-width: 800px; margin: 0 auto; width: 100%; }
.static-page.visible { display: block; }
.static-page h2 { font-family: 'Space Grotesk',sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 24px; color: var(--text-primary); }
.static-page h3 { font-size: 18px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: var(--text-primary); }
.static-page p { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 16px; }
.static-page ul { list-style: none; margin-bottom: 16px; }
.static-page ul li { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); padding-left: 20px; position: relative; margin-bottom: 6px; }
.static-page ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }
.static-page a { color: var(--blue); font-weight: 500; transition: opacity .15s ease; }
.static-page a:hover { opacity: .8; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-tertiary); margin-bottom: 32px; cursor: pointer; transition: color .15s ease; }
.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Mobile Overlay --- */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 99; opacity: 0; visibility: hidden; transition: all .3s ease; }
.mobile-overlay.show { opacity: 1; visibility: visible; }

/* --- Responsive --- */
@media(max-width:1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .header { left: 0; }
  .main { margin-left: 0; }
  .footer { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
}
@media(max-width:640px) {
  .content { padding: 24px 20px 48px; }
  .header { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .card-copy-btn { opacity: 1; transform: translateY(0); border-color: var(--border); background: rgba(0,0,0,0.2); }
  .modal { width: 96%; max-height: 90vh; border-radius: var(--radius-md); }
  .modal-scroll { max-height: 90vh; }
  .modal-title { font-size: 20px; }
  .modal-body { padding: 24px 20px; }
  .footer { padding: 32px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-title { font-size: 24px; }
  .page-header { margin-bottom: 24px; }


  .sidebar-social { margin-top: 12px; }
  .social-icon-link { width: 36px; height: 36px; }
  .social-icon-link svg { width: 17px; height: 17px; }
}
