/* Curioprompt — unified responsive UI */
:root {
  --brand: #007aff;
  --brand-hover: #0056b3;
  --brand-soft: #e8f2ff;
  --brand-muted: #dbeafe;
  --accent: #1a73e8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f0f4ff;
  --surface: #ffffff;
  --border: #c7d8f8;
  --shadow-sm: 0 1px 3px rgba(0, 82, 204, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 82, 204, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --header-height: 64px;
  --content-max: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Bootstrap theme — blue palette */
  --bs-primary: #007aff;
  --bs-primary-rgb: 0, 122, 255;
  --bs-link-color: #007aff;
  --bs-link-hover-color: #0056b3;
  --bs-body-bg: #f0f4ff;
  --bs-body-color: #1e293b;
  --bs-border-color: #c7d8f8;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-hover);
}

/* Layout */
.site-main {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 1rem 1rem calc(2rem + var(--safe-bottom));
}

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f3d91;
}

.page-subtitle {
  margin: -0.5rem 0 1.5rem;
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-muted);
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.08);
  padding-top: var(--safe-top);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0.5rem 1rem;
}

.header-logo img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.header-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.header-logout {
  flex-shrink: 0;
}

.welcome-message {
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 600;
  margin-right: 0.25rem;
  flex-shrink: 1;
  min-width: 0;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
}

.hamburger-menu:hover {
  background: var(--brand-soft);
  border-color: var(--brand-muted);
}

.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-nav-mobile {
  display: none;
  position: absolute;
  top: calc(var(--header-height) + var(--safe-top));
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--brand-muted);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 1rem;
  gap: 0.625rem;
  z-index: 999;
}

.header-nav-mobile.is-active {
  display: flex;
}

.header-nav-mobile .btn {
  width: 100%;
  justify-content: center;
}

.hamburger-menu.is-active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
}

.hamburger-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -5px);
}

@media (max-width: 1200px) {
  .welcome-message {
    display: none;
  }
}

@media (max-width: 992px) {
  .header-nav-desktop {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .welcome-message {
    display: none;
  }
}

/* Buttons — blue theme on top of Bootstrap */
.site-header .btn,
.site-main .btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header .btn-primary,
.site-main .btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-active-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.site-header .btn-primary:hover,
.site-main .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}

.site-header .btn-secondary,
.site-main .btn-secondary {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: var(--brand-soft);
  --bs-btn-border-color: var(--brand-muted);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-active-color: #fff;
}

.site-header .btn-success,
.site-main .btn-success {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
}

.site-header .btn-warning,
.site-main .btn-warning {
  --bs-btn-bg: #f59e0b;
  --bs-btn-border-color: #f59e0b;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #d97706;
  --bs-btn-hover-border-color: #d97706;
  --bs-btn-hover-color: #fff;
}

.site-header .btn-outline,
.site-main .btn-outline,
.site-header .btn-outline-primary,
.site-main .btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-active-color: #fff;
}

.site-header .btn {
  white-space: nowrap;
}

.button,
.search-container button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.search-container button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}

.my-prompts-btn,
.shortcut-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.my-prompts-btn:hover,
.shortcut-button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Search */
.search-container {
  display: flex;
  justify-content: center;
  width: min(100%, 860px);
  margin: 1.25rem auto;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.search-container .form-group {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
}

.search-container input[type="text"],
.search-container select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control,
.panel .form-control,
.form-stack .form-control {
  border-radius: var(--radius-sm);
}

.search-container input[type="text"]:focus,
.search-container select:focus,
.auth-card .form-control:focus,
.panel .form-control:focus,
.form-stack .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.search-container button {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .search-container {
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem auto;
  }

  .search-container .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-container input[type="text"],
  .search-container select,
  .search-container button {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .search-container input[type="text"],
  .search-container select {
    padding: 0.875rem 1rem;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .search-container button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  .search-container {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 0.875rem;
  }
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.panel,
.auth-card,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.panel h1,
.panel h2,
.auth-card h1,
.auth-card h2 {
  color: #0f3d91;
}

.cards-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cards-grid .card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cards-grid .card-body {
  padding: 1rem 1rem 0;
  flex: 1;
}

.cards-grid .card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f3d91;
}

.cards-grid .card-title a {
  color: inherit;
  text-decoration: none;
}

.cards-grid .card-title a:hover {
  color: var(--brand);
}

.cards-grid .card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.cards-grid .card-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.cards-grid .card-footer {
  margin-top: auto;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--brand-muted);
  background: linear-gradient(180deg, var(--brand-soft) 0%, #f8fbff 100%);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cards-grid .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Slider */
.slider {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 3 / 2;
  margin: 1.5rem auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.55);
  border: none;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  z-index: 2;
}

.slider-button.prev {
  left: 0.75rem;
}

.slider-button.next {
  right: 0.75rem;
}

/* Shortcut menu */
.shortcut-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem auto;
  max-width: 720px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Forms & auth */
.auth-card,
.panel {
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 480px;
}

.form-group,
.mb-3 {
  margin-bottom: 1rem;
}

.form-label,
label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.925rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.d-grid {
  display: grid;
}

/* Flash messages */
.flash-messages {
  margin-bottom: 1rem;
}

.flash-message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}

.flash-message.success,
.flash-message.info {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.flash-message.error,
.flash-message.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.flash-message.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* Search results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.result-card,
.search-grid .item {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover,
.search-grid .item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.image-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.prompt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-link {
  text-decoration: none;
  color: inherit;
}

.item-link h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.item-description {
  font-size: 0.925rem;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Pagination */
nav.pagination,
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}

nav.pagination .page,
nav.pagination .page.prev,
nav.pagination .page.next,
nav.pagination .ellipsis,
.pagination-bar a,
.pagination-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
}

nav.pagination .page:hover:not(.active):not(.disabled),
nav.pagination .page.prev:hover:not(.disabled),
nav.pagination .page.next:hover:not(.disabled),
.pagination-bar a:hover:not(.active) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

nav.pagination .page.active,
.pagination-bar .active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

nav.pagination .page.disabled,
nav.pagination .disabled {
  opacity: 0.5;
  border-style: dashed;
  pointer-events: none;
  color: var(--text-muted);
}

nav.pagination .ellipsis {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 0.25rem;
}

/* Prompt detail */
.prompt-detail {
  background: var(--surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.prompt-detail h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #0f3d91;
}

.content_to_copy {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--brand-soft);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.rating-section,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  margin-top: 1rem;
}

.tab-buttons,
.auth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-tab {
  background: var(--brand);
  color: #fff;
}

/* Admin tables */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--brand-soft);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f3d91;
  font-weight: 700;
}

/* Evaluation */
.results-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--brand-soft);
}

.results-container pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem calc(1.5rem + var(--safe-bottom));
  color: var(--text-muted);
  font-size: 0.925rem;
  background: linear-gradient(180deg, transparent 0%, var(--brand-soft) 100%);
  border-top: 1px solid var(--brand-muted);
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand {
  font-weight: 700;
  color: #0f3d91;
  margin-bottom: 0.5rem;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.center-section {
  text-align: center;
}

.ads-slot {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .center-section {
    display: none;
  }

  .site-main {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .cards-grid .card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: 34px;
  }
}

.login-register-logout {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.logo-real-size {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.star {
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.star.active,
.star.selected,
.star:hover {
  color: #f59e0b;
}

.share-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.tag-list {
  display: inline;
  line-height: 1.6;
}

.tag-link {
  display: inline;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.tag-link:hover {
  text-decoration: underline;
  color: var(--brand-hover);
}

.tag-sep {
  color: var(--text-muted);
}

.settings-panel {
  background: var(--surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.settings-section + .settings-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-muted);
}

.settings-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #0f3d91;
}

textarea.form-control {
  min-height: 140px;
  border-radius: var(--radius-md);
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  max-width: 90vw;
  box-shadow: var(--shadow-md);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.375rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  text-decoration: none;
}
