/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bloc Design System â€” Core Variables & Reset
   Based on bloc_theme_analysis.html blueprint
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  --color-1: #9A2E22;
  --color-2: #6A1A10;
  --color-3: #38332E;
  --color-4: #1F1B18;
  --color-5: #E8E4D9;
  --color-6: #F2EFE6;
  --color-7: #FAF8F2;
  --color-8: #FFFFFF;
  --primary-light: #FBEAE7;
  --primary-50: rgba(154, 46, 34, 0.04);
  --primary-100: rgba(154, 46, 34, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --text-muted: #847C75;
  --text-light: #B4ACA4;
  --shadow-sm: 0 2px 4px rgba(45, 35, 25, 0.03);
  --shadow-md: 0 8px 24px rgba(45, 35, 25, 0.06);
  --shadow-lg: 0 16px 48px rgba(45, 35, 25, 0.08);
  --shadow-card: 0 4px 16px rgba(45, 35, 25, 0.04), 0 0 0 1px rgba(45, 35, 25, 0.03);
  --font-headings: "Amiri", serif;
  --font-body: "Alexandria", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max-width: 1290px;
  --narrow-width: 750px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.4s;
}

/* â”€â”€ Reset â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-3);
  background-color: var(--color-7);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-4);
  line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2.188rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.563rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

a {
  color: var(--color-1);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--color-2); }

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
ul, ol { list-style: none; }

/* â”€â”€ Utility Classes â”€â”€ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-lg); }
.narrow { max-width: var(--narrow-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bloc Design â€” Header & Navigation
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.wise-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-5);
  transition: all var(--duration) var(--ease);
  height: var(--header-height);
}
.wise-header--scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}
.wise-header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

/* Logo */
.wise-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-4);
  font-family: var(--font-headings); font-weight: 800; font-size: 1.35rem;
  transition: opacity var(--duration);
}
.wise-logo:hover { opacity: 0.8; color: var(--color-4); }
.wise-logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-1), var(--color-2));
  color: #fff;
}
.wise-logo-icon svg { width: 22px; height: 22px; }

/* Desktop Nav */
.wise-nav {
  display: flex; align-items: center; gap: 4px;
}
.wise-nav-link {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 500; font-size: 0.95rem;
  color: var(--color-3); transition: all var(--duration) var(--ease);
}
.wise-nav-link:hover {
  color: var(--color-1); background: var(--primary-50);
}
.wise-nav-link--active {
  color: var(--color-1); background: var(--primary-50);
  font-weight: 600;
}

/* Header Actions */
.wise-header-actions { display: flex; align-items: center; gap: 8px; }
.wise-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  color: var(--color-3); transition: all var(--duration);
}
.wise-search-btn:hover { background: var(--color-6); color: var(--color-1); }

/* User Menu */
.wise-user-menu { position: relative; }
.wise-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border-radius: var(--radius-full);
  cursor: pointer; transition: background var(--duration);
  border: 1px solid transparent;
}
.wise-user-btn:hover { background: var(--color-6); border-color: var(--color-5); }
.wise-user-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-1), #6366f1);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  font-family: var(--font-headings);
}
.wise-user-name {
  font-size: 0.9rem; font-weight: 500; color: var(--color-4);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Dropdown */
.wise-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--color-8);
  border: 1px solid var(--color-5); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s var(--ease);
  z-index: 100;
}
.wise-user-menu:hover .wise-dropdown,
.wise-user-menu:focus-within .wise-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.wise-dropdown-header {
  padding: 12px 14px 8px; display: flex; flex-direction: column;
}
.wise-dropdown-name { font-weight: 700; color: var(--color-4); font-size: 0.95rem; }
.wise-dropdown-role { font-size: 0.8rem; color: var(--text-muted); }
.wise-dropdown-divider { height: 1px; background: var(--color-5); margin: 4px 8px; }
.wise-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--color-3);
  transition: all var(--duration);
}
.wise-dropdown-item:hover { background: var(--color-6); color: var(--color-1); }
.wise-dropdown-item svg { flex-shrink: 0; }
.wise-dropdown-logout:hover { color: var(--danger); background: #fef2f2; }

/* Guest Actions */
.wise-guest-actions { display: flex; align-items: center; gap: 8px; }
.wise-login-btn {
  padding: 8px 18px; font-weight: 500; font-size: 0.9rem;
  color: var(--color-3); border-radius: var(--radius-full);
  transition: all var(--duration);
}
.wise-login-btn:hover { color: var(--color-1); background: var(--primary-50); }
.wise-join-btn {
  padding: 8px 22px; font-weight: 600; font-size: 0.9rem;
  color: #fff; background: var(--color-1);
  border-radius: var(--radius-full);
  transition: all var(--duration);
  box-shadow: 0 2px 8px rgba(40,114,250,0.3);
}
.wise-join-btn:hover {
  background: var(--color-2); color: #fff;
  box-shadow: 0 4px 16px rgba(40,114,250,0.4);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.wise-mobile-toggle {
  display: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; color: var(--color-3);
}
.wise-mobile-toggle:hover { background: var(--color-6); }

/* Mobile Nav */
.wise-mobile-nav {
  display: none; background: var(--color-8);
  border-top: 1px solid var(--color-5);
  padding: 8px; flex-direction: column;
}
.wise-mobile-nav--open { display: flex; }
.wise-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  color: var(--color-3); font-weight: 500;
  transition: all var(--duration);
}
.wise-mobile-link:hover { background: var(--color-6); color: var(--color-1); }
.wise-mobile-link--active { color: var(--color-1); background: var(--primary-50); font-weight: 600; }

@media (max-width: 768px) {
  .wise-nav { display: none; }
  .wise-mobile-toggle { display: flex; }
  .wise-mobile-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; z-index: 99; box-shadow: var(--shadow-lg); }
  .wise-mobile-nav--open { display: flex; }
  .wise-user-name { display: none; }
  .wise-guest-actions .wise-login-btn { display: none; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bloc Design â€” Components & Cards
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Main Content Area â”€â”€ */
.main-wrap {
  min-height: calc(100vh - var(--header-height) - 300px);
  padding: 0 0 var(--sp-xl) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

/* â”€â”€ Alerts / Flash Messages â”€â”€ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-md);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: slideDown 0.3s var(--ease);
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--primary-light); color: var(--color-2); border-color: #bfdbfe; }

/* â”€â”€ Buttons â”€â”€ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-1); color: #fff;
  box-shadow: 0 2px 8px rgba(40,114,250,0.25);
}
.btn-primary:hover {
  background: var(--color-2); color: #fff;
  box-shadow: 0 4px 16px rgba(40,114,250,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-8); color: var(--color-3);
  border-color: var(--color-5);
}
.btn-secondary:hover { background: var(--color-6); color: var(--color-1); border-color: var(--color-1); }
.btn-ghost { color: var(--color-1); }
.btn-ghost:hover { background: var(--primary-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* â”€â”€ Form Elements â”€â”€ */
.input, input[type="text"], input[type="email"], input[type="password"], input[type="search"],
textarea, .select, select {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--color-5);
  border-radius: var(--radius-md);
  background: var(--color-8);
  color: var(--color-4);
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
}
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--color-1);
  box-shadow: 0 0 0 3px var(--primary-100);
  outline: none;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7b8d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center; padding-left: 40px;
}
.filter-active { border-color: var(--color-1); background: var(--primary-50); }

/* â”€â”€ Card System â”€â”€ */
.card {
  background: var(--color-8);
  border: 1px solid var(--color-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(40,114,250,0.2);
  transform: translateY(-2px);
}

/* â”€â”€ Poem Card â”€â”€ */
.poem-card {
  background: var(--color-8);
  border: 1px solid var(--color-5);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.poem-card:hover {
  border-color: rgba(40,114,250,0.25);
  box-shadow: 0 8px 24px rgba(40,114,250,0.08);
  transform: translateY(-3px);
}
.poem-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 4px; height: 0; background: var(--color-1);
  border-radius: 0 var(--radius-lg) 0 0;
  transition: height 0.3s var(--ease);
}
.poem-card:hover::before { height: 100%; }
.poem-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.poem-card-header h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.poem-card-header h3 a { color: var(--color-4); }
.poem-card-header h3 a:hover { color: var(--color-1); }
.poem-item-badge {
  flex-shrink: 0;
  padding: 3px 12px; border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--color-1);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.poem-item-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-muted);
}
.poem-item-meta span { display: flex; align-items: center; gap: 4px; }
.poem-item-meta .material-symbols-outlined { font-size: 16px; }
.poem-item-excerpt {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poem-item-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--color-6);
  margin-top: auto;
}
.poem-author { display: flex; align-items: center; gap: 8px; }
.poem-author-avatar {
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-1), #6366f1);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-headings);
}
.poem-author-name { font-size: 0.85rem; font-weight: 500; color: var(--color-3); }
.poem-stats { display: flex; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }
.poem-stats span { display: flex; align-items: center; gap: 3px; }
.poem-stats .material-symbols-outlined { font-size: 15px; }

/* â”€â”€ Poem Card Image variant â”€â”€ */
.poem-card-img-wrap {
  height: 180px; overflow: hidden; border-radius: var(--radius-md);
  margin-bottom: 12px; background: var(--color-6);
}
.poem-card-img { width: 100%; height: 100%; object-fit: cover; }
.poem-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-6), var(--primary-light));
}
.poem-card-placeholder-icon { font-size: 48px; color: var(--color-1); opacity: 0.3; }
.poem-card-body { display: flex; flex-direction: column; gap: 8px; }
.poem-card-title { font-size: 1.1rem; }
.poem-card-title a { color: var(--color-4); }
.poem-card-title a:hover { color: var(--color-1); }
.poem-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.poem-card-meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* â”€â”€ Grid System â”€â”€ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* â”€â”€ Discovery / Page Headers â”€â”€ */
.discovery-hero {
  text-align: center; padding: var(--sp-2xl) 0 var(--sp-xl);
}
.discovery-hero .section-title {
  font-size: 2rem; margin-bottom: 8px; color: var(--color-4);
}
.discovery-subtitle {
  color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto;
}
.search-heading {
  font-size: 1.2rem; color: var(--color-3); margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm); border-bottom: 2px solid var(--color-6);
}

/* â”€â”€ Filters Bar â”€â”€ */
.filters-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: var(--sp-xl); padding: var(--sp-md);
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-lg);
}
.filters-form { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.filters-form select { width: auto; min-width: 140px; padding: 9px 14px; font-size: 0.88rem; }
.filter-clear {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  color: var(--danger); background: #fef2f2;
  transition: all var(--duration);
}
.filter-clear:hover { background: #fee2e2; color: var(--danger); }
.filters-count { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* â”€â”€ Empty State â”€â”€ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: var(--sp-3xl) var(--sp-xl);
}
.empty-state-icon { margin-bottom: var(--sp-md); color: var(--text-light); }
.empty-state-icon svg { width: 64px; height: 64px; margin: 0 auto; }
.empty-state-title {
  font-family: var(--font-headings); font-size: 1.3rem;
  font-weight: 700; color: var(--color-4); margin-bottom: 8px;
}
.empty-state-subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* â”€â”€ Pagination â”€â”€ */
.pagination-wrap { display: flex; justify-content: center; padding: var(--sp-xl) 0; }
.pagination { display: flex; }
.pagination ul { display: flex; gap: 4px; align-items: center; }
.pagination li { list-style: none; }
.pagination a {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem;
  color: var(--color-3); border: 1px solid var(--color-5);
  transition: all var(--duration);
}
.pagination a:hover { border-color: var(--color-1); color: var(--color-1); background: var(--primary-50); }
.pagination .active a {
  background: var(--color-1); color: #fff; border-color: var(--color-1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bloc Design â€” Pages (Home, Single, Profile)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â•â•â•â•â•â•â•â•â•â• HOMEPAGE â•â•â•â•â•â•â•â•â•â• */
.notepen-home { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-lg); }

/* Hero */
.np-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: var(--sp-3xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-7) 0%, var(--color-6) 100%);
  border-radius: 0;
  border-bottom: 1px solid var(--color-5);
  margin-bottom: var(--sp-xl);
  overflow: hidden;
}
.np-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
  border-radius: 50%;
}
.np-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 var(--sp-lg); }
.np-hero h1 {
  font-family: var(--font-headings); font-size: 2.5rem; font-weight: 800;
  color: var(--color-4); margin-bottom: 12px; line-height: 1.25;
}
.np-hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: var(--sp-xl); line-height: 1.7; }

/* Search */
.np-search {
  display: flex; max-width: 520px; margin: 0 auto;
  background: var(--color-8); border: 1.5px solid var(--color-5);
  border-radius: var(--radius-full); padding: 5px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--duration);
  position: relative;
}
.np-search:focus-within { border-color: var(--color-1); box-shadow: 0 0 0 3px var(--primary-100); }
.np-search input {
  flex: 1; padding: 12px 20px; border: none; background: transparent;
  font-size: 1rem; color: var(--color-4);
}
.np-search input::placeholder { color: var(--text-light); }
.np-search button {
  padding: 10px 28px; background: var(--color-1); color: #fff;
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--duration);
  border: none;
}
.np-search button:hover { background: var(--color-2); }
.np-search .material-symbols-outlined {
  position: absolute; left: auto; right: auto;
  top: 50%; transform: translateY(-50%);
  display: none;
}

/* Feature Row */
.np-feature-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}
@media (max-width: 768px) { .np-feature-row { grid-template-columns: 1fr; } }

.np-poet-week {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-xl);
  text-align: center; position: relative; overflow: hidden;
}
.np-poet-week::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--color-1), #6366f1);
}
.np-medal {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 0 auto var(--sp-md);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.np-medal span { display: none; }
.np-medal b { color: #fff; font-size: 0.65rem; font-weight: 800; text-align: center; line-height: 1.2; }
.np-poet-week small {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.np-poet-week h2 { font-size: 1.4rem; margin-bottom: 8px; }
.np-poet-week p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--sp-md); }
.np-poet-week > a {
  font-weight: 600; font-size: 0.9rem; color: var(--color-1);
  display: inline-flex; align-items: center; gap: 4px;
}

.np-verse-day {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-xl);
  display: flex; flex-direction: column;
}
.np-verse-day header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-lg); }
.np-verse-day header h2 { font-size: 1.2rem; }
.np-verse-day header span { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.5px; }
.np-verse-lines {
  flex: 1; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: var(--sp-lg) var(--sp-xl); background: var(--color-6); border-radius: var(--radius-lg);
  text-align: center; margin-bottom: var(--sp-md);
}
.np-verse-lines p {
  flex: 1; min-width: 0;
  font-family: var(--font-headings); font-size: 1.25rem; font-weight: 700;
  color: var(--color-4); line-height: 1.6; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .np-verse-lines { flex-direction: column; gap: 10px; }
  .np-verse-lines p { white-space: normal; }
  .np-verse-lines .verse-divider { display: none; }
}
.np-source { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.np-source strong { color: var(--color-3); font-weight: 500; }
.np-source .material-symbols-outlined { font-size: 16px; color: var(--color-1); }

/* Directory Grid */
.np-directory-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}
@media (max-width: 768px) { .np-directory-grid { grid-template-columns: 1fr; } }

.np-dir-col {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-lg);
}
.np-dir-col h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; margin-bottom: var(--sp-md); color: var(--color-4);
}
.np-dir-col h3 .material-symbols-outlined { font-size: 20px; color: var(--color-1); }
.np-mini-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-md); }
.np-mini-list a {
  padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--color-6); color: var(--color-3);
  font-size: 0.85rem; font-weight: 500;
  transition: all var(--duration);
}
.np-mini-list a:hover { background: var(--primary-50); color: var(--color-1); }
.np-view-all { font-size: 0.85rem; font-weight: 600; color: var(--color-1); }

/* Letters */
.np-letters {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-xl); text-align: center;
  width: 100%; box-sizing: border-box;
}
.np-letters strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--color-4); margin-bottom: var(--sp-lg); }
.np-letters div { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.np-letters a {
  flex: 1; min-width: 32px; max-width: 42px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--color-6);
  color: var(--color-3); font-weight: 700; font-size: 1rem;
  font-family: var(--font-headings); transition: all var(--duration);
  text-decoration: none;
}
.np-letters a:hover { background: var(--color-1); color: #fff; transform: translateY(-2px); }
@media (max-width: 1024px) {
  .np-letters div { flex-wrap: wrap; justify-content: center; overflow-x: visible; }
  .np-letters a { flex: 0 0 36px; }
}

/* Cards Row */
.np-cards-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}
@media (max-width: 768px) { .np-cards-row { grid-template-columns: 1fr; } }

.np-info-card {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-lg);
}
.np-info-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; margin-bottom: var(--sp-md); color: var(--color-4);
}
.np-info-card h3 .material-symbols-outlined { font-size: 20px; color: var(--color-1); }
.np-pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.np-pill-list a {
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--color-6); color: var(--color-3);
  font-size: 0.85rem; font-weight: 500; transition: all var(--duration);
}
.np-pill-list a:hover { background: var(--primary-50); color: var(--color-1); }

/* Participants */
.np-participants {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: var(--sp-xl);
}
.np-participant {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: var(--color-8);
  border: 1px solid var(--color-5); border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; color: var(--color-3);
  transition: all var(--duration);
}
.np-participant:hover { border-color: var(--color-1); color: var(--color-1); background: var(--primary-50); }

/* â•â•â•â•â•â•â•â•â•â• POEM SINGLE â•â•â•â•â•â•â•â•â•â• */
.poem-single {
  max-width: var(--narrow-width); margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg);
}
.poem-single-header { text-align: center; margin-bottom: var(--sp-2xl); }
.poem-single-title {
  font-size: 2rem; font-weight: 800; color: var(--color-4);
  margin-bottom: var(--sp-md); line-height: 1.35;
}
.poem-single-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  font-size: 0.9rem; color: var(--text-muted);
}
.poem-single-meta span { display: flex; align-items: center; gap: 4px; }
.poem-single-author { font-weight: 600; color: var(--color-1); }
.poem-single-content {
  font-size: 1.25rem; line-height: 2.2; text-align: center;
  color: var(--color-4); padding: var(--sp-xl) 0;
  border-top: 1px solid var(--color-5); border-bottom: 1px solid var(--color-5);
  font-family: var(--font-headings);
}
.poem-single-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-lg); color: var(--text-muted); font-size: 0.9rem;
}
.poem-single-stats { display: flex; gap: 16px; }
.poem-single-stats span { display: flex; align-items: center; gap: 6px; }

/* â•â•â•â•â•â•â•â•â•â• COMMENTS â•â•â•â•â•â•â•â•â•â• */
.comment { margin-bottom: var(--sp-md); }
.comment-nested { margin-right: var(--sp-xl); padding-right: var(--sp-md); border-right: 2px solid var(--color-6); }
.comment-inner { display: flex; gap: 12px; }
.comment-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); flex-shrink: 0; object-fit: cover; }
.comment-content { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comment-author { font-weight: 600; color: var(--color-4); font-size: 0.92rem; }
.comment-time { font-size: 0.8rem; color: var(--text-light); }
.comment-body { font-size: 0.95rem; line-height: 1.7; color: var(--color-3); margin-bottom: 8px; }
.comment-actions { display: flex; gap: 12px; }
.comment-action-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.82rem; color: var(--text-muted); cursor: pointer;
  transition: all var(--duration);
}
.comment-action-btn:hover { background: var(--color-6); color: var(--color-1); }
.icon { display: flex; align-items: center; }
.icon-sm svg { width: 14px; height: 14px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bloc Design â€” Footer
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.wise-footer {
  background: var(--color-4);
  color: #cbd5e1;
  margin-top: var(--sp-3xl);
}
.wise-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg) var(--sp-xl);
}
.wise-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}
@media (max-width: 768px) {
  .wise-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}
@media (max-width: 480px) {
  .wise-footer-grid { grid-template-columns: 1fr; }
}

/* Brand */
.wise-footer-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-headings);
  font-weight: 800; font-size: 1.3rem; margin-bottom: var(--sp-md);
}
.wise-footer-logo:hover { color: #fff; opacity: 0.9; }
.wise-footer-logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1); color: var(--color-1);
}
.wise-footer-logo-icon svg { width: 20px; height: 20px; }
.wise-footer-desc {
  font-size: 0.9rem; line-height: 1.7; color: #94a3b8;
  margin-bottom: var(--sp-lg); max-width: 320px;
}
.wise-footer-social { display: flex; gap: 8px; }
.wise-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); color: #94a3b8;
  transition: all var(--duration);
}
.wise-social-link:hover {
  background: var(--color-1); color: #fff;
  transform: translateY(-2px);
}

/* Columns */
.wise-footer-col h4 {
  color: #fff; font-size: 1rem; font-weight: 700;
  margin-bottom: var(--sp-md);
}
.wise-footer-links { display: flex; flex-direction: column; gap: 8px; }
.wise-footer-links a {
  color: #94a3b8; font-size: 0.9rem;
  transition: all var(--duration);
  display: flex; align-items: center; gap: 4px;
}
.wise-footer-links a:hover { color: #fff; padding-right: 4px; }

/* Newsletter */
.wise-footer-newsletter-desc { font-size: 0.88rem; color: #94a3b8; margin-bottom: var(--sp-md); }
.wise-footer-form {
  display: flex; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}
.wise-footer-form input {
  flex: 1; padding: 11px 14px; background: transparent;
  color: #fff; font-size: 0.9rem; border: none;
}
.wise-footer-form input::placeholder { color: #64748b; }
.wise-footer-form button {
  padding: 11px 16px; background: var(--color-1); color: #fff;
  cursor: pointer; transition: background var(--duration); border: none;
}
.wise-footer-form button:hover { background: var(--color-2); }

/* Bottom */
.wise-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem; color: #64748b;
}
.wise-footer-legal { display: flex; gap: 12px; align-items: center; }
.wise-footer-legal a { color: #64748b; transition: color var(--duration); }
.wise-footer-legal a:hover { color: #94a3b8; }
@media (max-width: 640px) {
  .wise-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════
   Bloc Design — Articles
   ═══════════════════════════════════════════════ */

.article-card {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.article-card:hover {
  border-color: rgba(40,114,250,0.2);
  box-shadow: 0 8px 24px rgba(40,114,250,0.08);
  transform: translateY(-3px);
}
.article-card .article-cover {
  height: 180px; background: var(--color-6);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.article-card .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-cover .material-symbols-outlined { font-size: 48px; color: var(--text-light); }
.article-card-content { padding: var(--sp-lg); display: flex; flex-direction: column; gap: 10px; }
.article-card-content h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.article-card-content h3 a { color: var(--color-4); }
.article-card-content h3 a:hover { color: var(--color-1); }
.article-card-content p {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-meta .material-symbols-outlined { font-size: 16px; }
.article-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-6); }
.article-read-more { font-weight: 600; font-size: 0.9rem; color: var(--color-1); }

/* Article Single */
.article-single { max-width: var(--narrow-width); margin: 0 auto; padding: var(--sp-xl) var(--sp-lg); }
.article-single .article-card { border: none; box-shadow: none; }
.article-single .article-card:hover { transform: none; }
.article-single .article-cover { border-radius: var(--radius-lg); margin-bottom: var(--sp-lg); height: 300px; }
.article-title { font-size: 2rem; font-weight: 800; color: var(--color-4); margin-bottom: var(--sp-md); line-height: 1.35; }
.article-excerpt-block {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--primary-light); border-right: 4px solid var(--color-1);
  border-radius: var(--radius-sm); margin-bottom: var(--sp-xl);
  color: var(--color-3); font-size: 1.05rem; line-height: 1.8;
}
.article-content { font-size: 1.1rem; line-height: 1.9; color: var(--color-3); }

/* ═══════════════════════════════════════════════
   Bloc Design — Poets Grid
   ═══════════════════════════════════════════════ */

.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg);
}
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .grid-4 { grid-template-columns: 1fr; } }

.poet-profile-card {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-xl);
  text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.poet-profile-card:hover {
  border-color: rgba(40,114,250,0.25);
  box-shadow: 0 8px 24px rgba(40,114,250,0.1);
  transform: translateY(-4px);
}
.poet-avatar {
  width: 80px; height: 80px; border-radius: var(--radius-full);
  object-fit: cover; margin-bottom: var(--sp-md);
  border: 3px solid var(--color-6);
  transition: border-color 0.3s;
}
.poet-profile-card:hover .poet-avatar { border-color: var(--color-1); }
.poet-name {
  font-size: 1.1rem; font-weight: 700; color: var(--color-4);
  margin-bottom: 4px;
}
.poet-bio { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: var(--sp-sm); }
.poet-profile-card .poet-stats {
  display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   Bloc Design — Profile Page
   ═══════════════════════════════════════════════ */

.profile-hero-card {
  background: var(--color-8);
  border-bottom: 1px solid var(--color-5);
}
.profile-cover {
  height: 200px; background: linear-gradient(135deg, var(--color-1), #6366f1);
  background-size: cover; background-position: center;
}
.profile-container {
  max-width: 900px; margin: 0 auto; padding: 0 var(--sp-lg) var(--sp-xl);
}
.profile-container .relative { position: relative; margin-top: -64px; margin-bottom: var(--sp-md); }
.profile-container .relative img {
  width: 128px; height: 128px; border-radius: var(--radius-full);
  border: 4px solid var(--color-8); box-shadow: var(--shadow-lg); object-fit: cover;
}
.profile-info { display: flex; flex-direction: column; gap: 4px; }
.profile-info h1 { font-size: 1.5rem; font-weight: 800; }
.profile-info .username { color: var(--text-muted); }
.profile-info .bio { color: var(--color-3); margin-top: 8px; max-width: 600px; line-height: 1.7; }

.profile-stats-row {
  display: flex; gap: var(--sp-xl); margin-top: var(--sp-md);
}
.profile-stats-row a, .profile-stats-row div { text-align: center; text-decoration: none; }
.profile-stats-row .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--color-4); }
.profile-stats-row .stat-label { font-size: 0.85rem; color: var(--text-muted); }

.profile-actions { display: flex; gap: 8px; margin-top: var(--sp-md); }

.profile-tabs {
  background: var(--color-8); border-bottom: 1px solid var(--color-5);
  position: sticky; top: var(--header-height); z-index: 40;
}
.profile-tabs-inner {
  max-width: 900px; margin: 0 auto; padding: 0 var(--sp-lg);
  display: flex; gap: 4px;
}
.profile-tab {
  padding: 14px var(--sp-lg); font-weight: 500; font-size: 0.95rem;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: all var(--duration); text-decoration: none;
}
.profile-tab:hover { color: var(--color-3); }
.profile-tab--active { color: var(--color-1); border-bottom-color: var(--color-1); font-weight: 600; }

.profile-content {
  max-width: 900px; margin: 0 auto; padding: var(--sp-xl) var(--sp-lg);
}
.profile-poem-item {
  display: block; background: var(--color-8);
  border: 1px solid var(--color-5); border-radius: var(--radius-lg);
  padding: var(--sp-lg); margin-bottom: var(--sp-md);
  text-decoration: none; transition: all 0.3s var(--ease);
}
.profile-poem-item:hover {
  box-shadow: var(--shadow-md); border-color: rgba(40,114,250,0.2);
  transform: translateY(-2px);
}
.profile-poem-item h3 { font-size: 1.15rem; font-weight: 700; color: var(--color-4); margin-bottom: 8px; }
.profile-poem-item p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.profile-poem-item .meta { display: flex; gap: 12px; margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); }
.profile-poem-item .meta span { display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════
   Bloc Design — Comment Form & Sections
   ═══════════════════════════════════════════════ */

.comment-form-card {
  max-width: var(--narrow-width); margin: var(--sp-xl) auto;
  padding: var(--sp-xl); background: var(--color-8);
  border: 1px solid var(--color-5); border-radius: var(--radius-lg);
}
.comment-form-title {
  font-family: var(--font-headings); font-size: 1.1rem;
  font-weight: 700; color: var(--color-4); margin-bottom: var(--sp-md);
}
.comment-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.comment-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--color-5);
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 0.95rem; resize: vertical; min-height: 100px;
  transition: border-color var(--duration);
}
.comment-form textarea:focus { border-color: var(--color-1); box-shadow: 0 0 0 3px var(--primary-100); }
.comment-form .btn { align-self: flex-start; }

.comments-section {
  max-width: var(--narrow-width); margin: var(--sp-xl) auto;
}
.comments-title {
  font-family: var(--font-headings); font-size: 1.1rem;
  font-weight: 700; color: var(--color-4); margin-bottom: var(--sp-lg);
}
.comments-empty {
  text-align: center; padding: var(--sp-2xl); color: var(--text-muted);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   Bloc Design — Login/Register/Search Pages
   ═══════════════════════════════════════════════ */

.auth-page {
  max-width: 440px; margin: var(--sp-3xl) auto; padding: 0 var(--sp-lg);
}
.auth-card {
  background: var(--color-8); border: 1px solid var(--color-5);
  border-radius: var(--radius-xl); padding: var(--sp-2xl);
}
.auth-card h1 {
  font-size: 1.5rem; text-align: center; margin-bottom: var(--sp-xl);
}
.auth-card .form-group { margin-bottom: var(--sp-md); }
.auth-card label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--color-4); margin-bottom: 6px;
}
.auth-card .btn { width: 100%; margin-top: var(--sp-md); }
.auth-card .auth-footer {
  text-align: center; margin-top: var(--sp-lg);
  font-size: 0.9rem; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   Bloc Design — Responsive Tweaks
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .np-hero h1 { font-size: 1.8rem; }
  .np-hero p { font-size: 0.95rem; }
  .np-search { flex-direction: column; border-radius: var(--radius-lg); }
  .np-search button { border-radius: var(--radius-md); width: 100%; }
  .poem-single-title { font-size: 1.5rem; }
  .poem-single-content { font-size: 1.1rem; line-height: 2; }
  .article-title { font-size: 1.5rem; }
  .profile-cover { height: 140px; }
  .profile-container .relative img { width: 96px; height: 96px; }
  .profile-stats-row { flex-wrap: wrap; gap: var(--sp-md); }
}



/* ── Premium Aesthetic Upgrades (Ink & Parchment) ── */

/* 1. Grain Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Typography & Hierarchy */
.page-title, .section-title, .discovery-hero h1, .article-title, .profile-info h1 {
    font-family: var(--font-headings);
    font-size: 3.5rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-1);
    text-align: center;
    margin-bottom: var(--sp-md);
    position: relative;
    padding-bottom: var(--sp-md);
}

/* Ornate decorative divider under major titles */
.page-title::after, .section-title::after, .discovery-hero h1::after, .article-title::after, .profile-info h1::after {
    content: "✦ ✧ ✦";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--color-5);
    letter-spacing: 0.2em;
}

/* 3. Poetic Content Formatting */
.poem-single-content {
    font-family: var(--font-headings);
    font-size: 1.5rem !important;
    line-height: 2.2 !important;
    color: var(--color-4);
    text-align: center;
    padding: var(--sp-2xl) !important;
    background: var(--color-8);
    border: 1px solid var(--color-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto var(--sp-2xl);
    position: relative;
}

/* Subtle inner border for poems */
.poem-single-content::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(154, 46, 34, 0.1);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
}

/* 4. Refined Cards with Arch Motif */
.poem-card, .search-poem-card, .article-card, .poet-profile-card, .profile-poem-item, .comment-form-card, .comment-card {
    background: var(--color-8);
    border: 1px solid var(--color-5);
    border-radius: var(--radius-sm);
    border-top-left-radius: 40px; /* Arch effect */
    border-top-right-radius: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.poem-card, .search-poem-card {
    padding: var(--sp-xl) var(--sp-lg);
}

.poem-card:hover, .search-poem-card:hover, .article-card:hover, .poet-profile-card:hover, .profile-poem-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(154, 46, 34, 0.3);
}

.poem-card-header h3 a {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-4);
}

.poem-card-header h3 a:hover {
    color: var(--color-1);
}

/* 5. Buttons & Badges */
.btn-primary, .wise-join-btn {
    background: var(--color-1) !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 12px 28px !important;
    box-shadow: 0 4px 12px rgba(154, 46, 34, 0.2) !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover, .wise-join-btn:hover {
    background: var(--color-2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(154, 46, 34, 0.3) !important;
}

/* Badges */
.poem-item-badge {
    background: var(--primary-50) !important;
    color: var(--color-1) !important;
    border: 1px solid rgba(154, 46, 34, 0.15) !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.8rem !important;
    padding: 4px 12px !important;
}

/* 6. Header Enhancements */
.wise-header {
    background: rgba(250, 248, 242, 0.85) !important; /* Matches site background */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(154, 46, 34, 0.08) !important;
}

.wise-logo-icon {
    background: var(--color-1) !important; /* Solid Terracotta */
    border-radius: 4px 16px 4px 16px !important; /* Abstract motif */
}

/* 7. Footer Refinements */
.wise-footer {
    background: var(--color-4) !important; /* Dark near-black */
    color: var(--color-5) !important;
    border-top: 4px solid var(--color-1) !important;
}
.wise-footer-title {
    color: #fff !important;
    font-family: var(--font-headings);
}

/* 8. Modern Input Fields */
.form-input, .select, textarea {
    background: var(--color-8) !important;
    border: 1px solid var(--color-5) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 18px !important;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-input:focus, .select:focus, textarea:focus {
    border-color: var(--color-1) !important;
    box-shadow: 0 0 0 3px var(--primary-100) !important;
    background: #fff !important;
}

/* Subtle elegant grid gaps */
.grid-3 {
    gap: var(--sp-xl) !important;
}
