:root {
  --primary: #910f3f;
  /* Warm crimson/burgundy from ACK theme */
  --primary-dark: #6e0b2e;
  --bg: #f2efdd;
  /* Exact background color from ACK */
  --surface: #ffffff;
  --surface-2: #ebdcb9;
  /* Warm beige for inputs */
  --border: #dfd7b8;
  /* Soft heritage border */
  --text: #2e251b;
  /* Warm dark brown text */
  --muted: #7a6b58;
  /* Muted brown text */
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.25rem;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex-grow: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* New Content Card expanded width */
.new-content-card {
  /* Updated to fill container width */
  width: 100%;
  margin: 0 0 1.5rem 0;
}

label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Content-type tabs inside forms */
.type-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.type-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.15s;
}

.type-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.type-tab.active {
  border-color: var(--primary);
  background: rgba(108, 76, 241, 0.15);
  color: var(--primary);
}

/* Rich text area for article body */
.article-body {
  min-height: 200px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* PDF drop-zone */
.pdf-dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-top: 0.5rem;
}

.pdf-dropzone:hover,
.pdf-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(108, 76, 241, 0.07);
  color: var(--text);
}

.pdf-dropzone .drop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.pdf-dropzone .drop-hint {
  font-size: 0.85rem;
}

input,
select,
textarea,
button {
  font: inherit;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-danger {
  background: var(--danger);
}

.btn-success {
  background: var(--ok);
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  width: 80%;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  flex-wrap: nowrap;
}

.navbar .brand {
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar nav::-webkit-scrollbar {
  display: none;
}

.navbar nav a {
  color: var(--muted);
  white-space: nowrap;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--text);
}

.navbar .user-chip {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-free {
  background: #e2e8f0;
  color: var(--muted);
}

.pill-premium {
  background: rgba(108, 76, 241, 0.2);
  color: var(--primary);
}

.pill-active {
  background: rgba(49, 196, 141, 0.15);
  color: var(--ok);
}

.pill-suspended {
  background: rgba(240, 82, 82, 0.15);
  color: var(--danger);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: start;
  justify-items: stretch;
}

.magazine {
  cursor: pointer;
  transition: transform 0.1s;
  text-align: left;
}

.magazine:hover {
  transform: translateY(-3px);
}

.magazine .cover {
  height: 150px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.magazine h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

.magazine p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: left;
}

/* ── Global Card & Submission Styles ──────────────── */
.creation-card,
.article-card,
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.15s;
  text-align: left;
}

.creation-card:hover,
.article-card:hover,
.comp-card:hover {
  transform: translateY(-3px);
}

.creation-card h3,
.article-card h3,
.comp-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
  text-align: left;
}

.creation-card .snippet,
.article-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.creation-meta,
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
  text-align: left;
}

.msg {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.msg-user {
  background: var(--surface-2);
}

.msg-admin {
  background: rgba(108, 76, 241, 0.12);
  border-color: rgba(108, 76, 241, 0.4);
}

.msg .meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.alert-error {
  background: rgba(240, 82, 82, 0.12);
  color: var(--danger);
  border: 1px solid rgba(240, 82, 82, 0.4);
}

.alert-ok {
  background: rgba(49, 196, 141, 0.12);
  color: var(--ok);
  border: 1px solid rgba(49, 196, 141, 0.4);
}

.alert-info {
  background: rgba(108, 76, 241, 0.12);
  color: var(--primary);
  border: 1px solid rgba(108, 76, 241, 0.4);
}

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.toast-ok {
  border-color: var(--ok);
  color: var(--ok);
}

.toast-error {
  border-color: var(--danger);
  color: var(--danger);
}

/* PDF viewer */
#viewer {
  background: #1a1a1a;
  flex: 1;
  overflow: auto;
  padding: 1rem;
  /* pdf.js containers */
}

#viewer .page {
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.reader-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.text-muted {
  color: var(--muted);
}

.flex {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.spacer {
  flex: 1;
}

.mt {
  margin-top: 1rem;
}

.hide {
  display: none !important;
}

/* ── Modal overlay ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-box h2 {
  margin-bottom: 1.25rem;
}

.modal-box .modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

/* ── User table tweaks ───────────────────────────── */
.user-table td {
  vertical-align: middle;
}

.user-table .action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 76, 241, 0.08);
}

.btn-icon.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(240, 82, 82, 0.08);
}

.btn-icon.success:hover {
  border-color: var(--ok);
  color: var(--ok);
  background: rgba(49, 196, 141, 0.08);
}

/* ── Analytics dashboard ─────────────────────────────────────────── */

/* Platform KPI grid */
.an-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.an-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.15s;
}

.an-kpi:hover {
  transform: translateY(-2px);
}

.an-kpi.premium {
  border-color: rgba(108, 76, 241, 0.45);
  background: rgba(108, 76, 241, 0.08);
}

.an-kpi.accent {
  border-color: rgba(49, 196, 141, 0.4);
  background: rgba(49, 196, 141, 0.07);
}

.an-kpi-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.an-kpi.premium .an-kpi-val {
  color: var(--primary);
}

.an-kpi.accent .an-kpi-val {
  color: var(--ok);
}

.an-kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Magazine list */
.an-mag-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.an-mag-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.an-mag-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.an-mag-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.an-mag-cat {
  font-size: 0.82rem;
}

/* Stat row */
.an-stat-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.an-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  min-width: 80px;
  text-align: center;
}

.an-stat.accent {
  border-color: rgba(49, 196, 141, 0.35);
  background: rgba(49, 196, 141, 0.07);
}

.an-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.an-stat.accent .an-stat-val {
  color: var(--ok);
}

.an-stat-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Page heatmap */
.an-heatmap-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.an-heatmap {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 64px;
  padding: 4px 0;
}

.an-bar {
  flex: 1;
  min-width: 4px;
  max-width: 20px;
  border-radius: 2px 2px 0 0;
  background: rgba(108, 76, 241, 0.3);
  transition: background 0.15s;
  cursor: default;
}

.an-bar:hover {
  background: rgba(108, 76, 241, 0.7);
}

.an-bar.warm {
  background: rgba(245, 158, 11, 0.55);
}

.an-bar.warm:hover {
  background: rgba(245, 158, 11, 0.85);
}

.an-bar.hot {
  background: rgba(49, 196, 141, 0.65);
}

.an-bar.hot:hover {
  background: rgba(49, 196, 141, 0.95);
}

/* Legend */
.an-heatmap-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.an-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.an-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(108, 76, 241, 0.3);
  display: inline-block;
}

.an-legend-dot.warm {
  background: rgba(245, 158, 11, 0.55);
}

.an-legend-dot.hot {
  background: rgba(49, 196, 141, 0.65);
}

/* Responsive Navbar and Grid Overrides */
@media (max-width: 768px) {
  .navbar {
    width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
}

@media (min-width: 801px) {

  #home-mags-grid,
  #tab-content.grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

#home-mags-grid .magazine .cover {
  height: 120px;
  font-size: 1.4rem;
}

#home-mags-grid .magazine h3 {
  font-size: 0.88rem;
}

#home-mags-grid .magazine p {
  font-size: 0.76rem;
}

/* ── Footer styling ───────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .footer-content {
    width: 100% !important;
  }
}

/* --- Quill Editor Styling --- */
.ql-toolbar.ql-snow {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px 8px 0 0 !important;
}

.ql-container.ql-snow {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 0 8px 8px !important;
  font-family: inherit !important;
  color: var(--text) !important;
  min-height: 220px;
}

.ql-editor {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.ql-editor.ql-blank::before {
  color: var(--muted) !important;
  font-style: normal !important;
}

.ql-editor img {
  max-width: 100%;
  height: auto;
}

.ql-toolbar button.ql-image.ql-uploading {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Article Modal Styling --- */
.modal-box.article-modal {
  max-width: 800px;
  width: 90%;
}

/* --- PDF Viewer Fullscreen Modal --- */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  animation: fadeIn 0.15s ease;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f2efdd;
}

/* --- Premium tab indicators & navbar navigation --- */
.navbar nav {
  display: flex;
  gap: 0.85rem;
  margin-left: 1.25rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar nav::-webkit-scrollbar {
  display: none;
}
.navbar nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.15s, border-color 0.15s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.navbar nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.navbar nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- Engagement Widgets --- */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.widget-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  color: var(--primary);
}
.quote-content {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.quote-author {
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.quiz-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.quiz-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(145, 15, 63, 0.05);
}
.quiz-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #047857 !important;
  font-weight: bold;
}
.quiz-btn.incorrect {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}
.quiz-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(145, 15, 63, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--primary);
}

/* --- Submissions & Cards --- */
.section-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--text);
}
.creation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.15s;
}
.creation-card:hover {
  transform: translateY(-3px);
}
.creation-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.creation-card .snippet {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.creation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* --- Competitions List --- */
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.comp-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comp-card .deadline {
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: bold;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- View Modal Tweaks --- */
.article-modal h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.article-modal .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.article-modal .body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

/* --- Merchandise Styles --- */
.merch-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
  max-width: 500px;
  margin: 2rem auto;
}
.merch-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Quill Rich Editor & Modal Media Refinements --- */
.article-modal .body-text.ql-editor {
  white-space: normal;
}
.article-modal .body-text img,
.ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.75rem 0;
  display: block;
}
#sub-content-editor {
  font-family: inherit;
  font-size: 0.95rem;
}
.ql-toolbar.ql-snow {
  background: var(--surface-2);
  border-color: var(--border) !important;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.ql-container.ql-snow {
  border-color: var(--border) !important;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-family: inherit;
}