:root {
  --sp-ink: #12372a;
  --sp-text: #1f4636;
  --sp-muted: #5a7065;
  --sp-line: #d9f2e3;
  --sp-pink: #2fbf71;
  --sp-orange: #22c55e;
  --sp-yellow: #d9f99d;
  --sp-purple: #0ea5a3;
  --sp-blue: #14b8a6;
  --sp-green: #0f8f55;
  --sp-gradient-hot: linear-gradient(135deg, var(--sp-pink), var(--sp-orange));
  --sp-gradient-soft: linear-gradient(135deg, #f0fdf4, #dcfce7 52%, #ccfbf1);
  --sp-gradient-tech: linear-gradient(135deg, #2fbf71, #22c55e 52%, #14b8a6);
  --sp-radius-sm: 14px;
  --sp-radius: 22px;
  --sp-radius-lg: 30px;
  --sp-shadow: 0 18px 46px rgba(18, 55, 42, .10);
  --sp-shadow-strong: 0 28px 80px rgba(18, 55, 42, .18);
  --sp-focus: 0 0 0 .22rem rgba(47, 191, 113, .20);
}

* { letter-spacing: 0; }

body.socialpartner-theme {
  min-height: 100vh;
  color: var(--sp-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(217, 249, 157, .45), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(167, 243, 208, .42), transparent 30%),
    linear-gradient(180deg, #fafff7 0%, #f0fdf4 48%, #ecfeff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sp-navbar {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom: 1px solid rgba(217, 242, 227, .9) !important;
  backdrop-filter: blur(18px);
}

.sp-brand { color: var(--sp-ink) !important; font-weight: 900; }

.sp-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 12px;
  color: #fff;
  background: var(--sp-gradient-hot);
  box-shadow: 4px 4px 0 var(--sp-ink);
}

.navbar .nav-link {
  color: var(--sp-muted);
  font-weight: 750;
  border-radius: 999px;
  padding-left: .85rem !important;
  padding-right: .85rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--sp-ink);
  background: rgba(47, 191, 113, .10);
}

.sp-main { padding-top: 28px; padding-bottom: 76px; }
.sp-page-shell { max-width: 1180px; }

.sp-page-header,
.sp-hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--sp-radius-lg);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--sp-shadow);
}

.sp-page-header { padding: 22px; }

.sp-page-header::after,
.sp-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 191, 113, .26), transparent 68%);
  pointer-events: none;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sp-pink);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sp-title { color: var(--sp-ink); font-weight: 950; line-height: 1.05; }
.sp-subtitle { color: var(--sp-muted); }

.sp-card,
.sp-post-card,
.sp-form-card,
.sp-empty-state,
.sp-preview-card,
.sp-stat-card,
.sp-mode-card {
  border: 1px solid rgba(217, 242, 227, .95);
  border-radius: var(--sp-radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--sp-shadow);
}

.sp-card,
.sp-form-card,
.sp-empty-state,
.sp-preview-card { padding: 20px; }

.sp-card:hover,
.sp-post-card:hover,
.sp-mode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow-strong);
  transition: transform .18s ease, box-shadow .18s ease;
}

.sp-stat-card { padding: 18px; min-height: 132px; }
.sp-stat-value { color: var(--sp-ink); font-size: 1.55rem; font-weight: 950; }
.sp-mode-card { height: 100%; padding: 16px; }
.sp-mode-card h2,
.sp-card h2,
.sp-preview-card h2 { color: var(--sp-ink); font-weight: 900; }

.btn-primary,
.sp-btn-primary {
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--sp-gradient-hot) !important;
  box-shadow: 0 14px 30px rgba(47, 191, 113, .24);
  font-weight: 850;
}

.btn-primary:hover,
.sp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(47, 191, 113, .30);
}

.btn-outline-primary,
.btn-outline-secondary,
.sp-btn-secondary {
  border-color: var(--sp-line) !important;
  border-radius: 999px;
  color: var(--sp-ink) !important;
  background: rgba(255, 255, 255, .78) !important;
  font-weight: 800;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.sp-btn-secondary:hover {
  color: var(--sp-ink) !important;
  border-color: rgba(47, 191, 113, .30) !important;
  background: rgba(47, 191, 113, .10) !important;
}

.form-control,
.form-select {
  border-color: var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background-color: rgba(255, 255, 255, .9);
  padding: .78rem .95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(47, 191, 113, .70);
  box-shadow: var(--sp-focus);
}

.form-label { color: var(--sp-ink); font-weight: 850; }
.form-text,
.text-secondary { color: var(--sp-muted) !important; }
.sp-upload-box input[type="file"] { min-height: 54px; cursor: pointer; }

.badge,
.sp-status-badge { border-radius: 999px; padding: .45rem .72rem; font-weight: 850; }
.text-bg-secondary { background: #e3f8ea !important; color: var(--sp-ink) !important; }
.text-bg-warning { background: #eefdbd !important; color: #365314 !important; }
.text-bg-success { background: #daf8e8 !important; color: #0e7044 !important; }

.alert { border: 0; border-radius: var(--sp-radius); box-shadow: 0 10px 28px rgba(18, 55, 42, .07); }
.alert-warning { color: #365314; background: #f2fcbf; }
.alert-danger { color: #7f1d1d; background: #fee2e2; }
.alert-secondary { color: var(--sp-muted); background: rgba(255, 255, 255, .78); }

.sp-post-card { display: block; color: inherit; text-decoration: none; padding: 16px; }
.sp-post-thumb { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 18px; background: var(--sp-gradient-hot); }
.sp-empty-state { text-align: center; padding: 42px 20px; }
.sp-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 22px; background: var(--sp-gradient-soft); box-shadow: 6px 6px 0 var(--sp-ink); font-weight: 950; }
.sp-preview-image { width: 100%; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 28px rgba(18, 55, 42, .10); }
.sp-info-list dt { color: var(--sp-muted); font-weight: 800; }
.sp-info-list dd { color: var(--sp-ink); font-weight: 650; }
.list-group-item { border-color: var(--sp-line); background: transparent; }

.sp-legal-header { max-width: 860px; margin-left: auto; margin-right: auto; }

.sp-legal-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.68;
}

.sp-legal-content h2 { color: var(--sp-ink); font-weight: 900; }
.sp-legal-content a { color: var(--sp-pink); font-weight: 800; }
.sp-legal-content ul { padding-left: 1.25rem; }
.sp-legal-content li + li { margin-top: .35rem; }

.sp-footer {
  border-top: 1px solid rgba(217, 242, 227, .9);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(18px);
}

.sp-footer-inner {
  display: grid;
  gap: 18px;
  padding: 24px 0;
}

.sp-footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--sp-ink);
  font-weight: 950;
  text-decoration: none;
}

.sp-footer-tagline,
.sp-footer-copy { color: var(--sp-muted); font-size: .94rem; }
.sp-footer-tagline { margin-top: 8px; }

.sp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .75rem;
  border: 1px solid rgba(217, 242, 227, .92);
  border-radius: 999px;
  color: var(--sp-muted);
  background: rgba(255, 255, 255, .7);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.sp-footer-links a:hover,
.sp-footer-links a:focus {
  color: var(--sp-ink);
  border-color: rgba(47, 191, 113, .32);
  background: rgba(47, 191, 113, .10);
}

.sp-cookie-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1080;
}

.sp-cookie-banner[hidden] { display: none !important; }

.sp-cookie-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(217, 242, 227, .95);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sp-shadow-strong);
  backdrop-filter: blur(18px);
}

.sp-cookie-title {
  color: var(--sp-ink);
  font-weight: 950;
}

.sp-cookie-text {
  color: var(--sp-muted);
  font-size: .94rem;
}

.sp-cookie-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sp-bottom-actions {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 10px;
  border: 1px solid rgba(217, 242, 227, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--sp-shadow);
  backdrop-filter: blur(18px);
}

.modal-content { border: 0; border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow-strong); }

@media (max-width: 767.98px) {
  .sp-main { padding-top: 18px; padding-bottom: 92px; }
  .sp-page-header { padding: 18px; border-radius: 24px; }
  .sp-title { font-size: 2rem; }
  .sp-mobile-full,
  .sp-mobile-full .btn,
  .sp-bottom-actions .btn,
  .sp-cookie-actions .btn { width: 100%; }
  .sp-bottom-actions { border-radius: 24px; }
  .navbar .nav-link { padding-top: .7rem; padding-bottom: .7rem; }
  .sp-footer-inner { padding: 20px 0 24px; }
  .sp-footer-links { gap: 7px; }
  .sp-footer-links a { width: calc(50% - 4px); justify-content: center; text-align: center; }
}

@media (min-width: 992px) {
  .sp-page-header { padding: 30px; }
  .sp-dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
  .sp-footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .sp-footer-copy { grid-column: 1 / -1; }
  .sp-cookie-content { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; }
  .sp-cookie-actions { display: flex; align-items: center; margin-top: 0; }
}
