.sp-notification-page {
  --sp-bg: #f4f7fb;
  --sp-surface: #ffffff;
  --sp-text: #10213d;
  --sp-muted: #607390;
  --sp-border: #d7e2ef;
  --sp-primary: #0b57d0;
  --sp-primary-strong: #093f95;
  --sp-accent: #ff7a1a;
  --sp-accent-strong: #dd6200;
  --sp-shadow: 0 12px 26px rgba(15, 36, 69, 0.09);
  --sp-shadow-soft: 0 8px 20px rgba(15, 36, 69, 0.07);
  min-height: 100vh;
  background: var(--sp-bg);
  color: var(--sp-text);
  padding-bottom: 3.3rem;
}

.sp-notification-page .sp-container {
  width: min(1020px, calc(100% - 2rem));
  margin: 0 auto;
}

.sp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2c67d8;
}

.sp-page-header {
  padding: 1.2rem 0 0.5rem;
}

.sp-page-title h1 {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: clamp(1.95rem, 3vw, 2.5rem);
}

.sp-page-title p {
  margin: 0.62rem 0 0;
  color: var(--sp-muted);
  max-width: 62ch;
}

.sp-filter-box {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  box-shadow: var(--sp-shadow-soft);
  padding: 0.85rem;
  margin: 0.7rem 0 1rem;
}

.sp-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.sp-filter-input {
  flex: 1;
  min-width: 220px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d3deed;
  background: #f8fbff;
  padding: 0.54rem 0.78rem;
  color: #1e3658;
  font-size: 0.9rem;
}

.sp-filter-input:focus {
  outline: none;
  border-color: #2d71de;
  box-shadow: 0 0 0 0.16rem rgba(45, 113, 222, 0.16);
  background: #ffffff;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 40px;
  border-radius: 10px;
  padding: 0.56rem 0.94rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sp-btn:hover {
  transform: translateY(-1px);
}

.sp-btn-primary {
  background: linear-gradient(180deg, var(--sp-primary) 0%, var(--sp-primary-strong) 100%);
  color: #ffffff;
}

.sp-btn-primary:hover {
  color: #ffffff;
}

.sp-btn-secondary {
  background: #ffffff;
  border-color: #c8d8ed;
  color: #1f3960;
}

.sp-btn-secondary:hover {
  color: var(--sp-primary);
}

.sp-btn-outline {
  background: #ffffff;
  border-color: #d0dded;
  color: #1f3960;
}

.sp-btn-outline:hover {
  color: var(--sp-primary);
}

.sp-btn-sm {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 0.4rem 0.72rem;
}

.sp-notif-list {
  display: grid;
  gap: 0.82rem;
}

.sp-notif-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  box-shadow: var(--sp-shadow-soft);
  padding: 0.92rem;
}

.sp-notif-content {
  display: grid;
  gap: 0.55rem;
}

.sp-notif-title {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
}

.sp-notif-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem;
  font-size: 0.8rem;
  color: #557091;
}

.sp-notif-desc {
  margin: 0;
  color: var(--sp-muted);
  line-height: 1.56;
  font-size: 0.9rem;
}

.sp-notif-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db0ca;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.sp-badge-default {
  color: #526b8b;
  background: #eef3fa;
}

.sp-badge-primary {
  color: #0a4cad;
  background: #e9f1ff;
}

.sp-empty-state {
  border: 1px dashed #bfd2ea;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
  padding: 1.4rem 1rem;
}

.sp-empty-compact {
  padding: 0.9rem;
}

.sp-empty-icon {
  font-size: 1.7rem;
  color: #577093;
}

.sp-empty-text {
  margin: 0.5rem 0 0;
  color: #5d7393;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.34rem;
  padding: 1rem 0 0.7rem;
  font-size: 0.83rem;
}

.sp-breadcrumb a {
  text-decoration: none;
  color: #4f6887;
  font-weight: 700;
}

.sp-breadcrumb a:hover {
  color: var(--sp-primary);
}

.sp-breadcrumb .separator,
.sp-breadcrumb span {
  color: #7286a4;
}

.sp-page-back {
  margin-bottom: 0.85rem;
}

.sp-details-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  box-shadow: var(--sp-shadow);
  padding: 1.15rem;
}

.sp-details-meta {
  margin-bottom: 0.62rem;
}

.sp-details-title {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.sp-details-media {
  margin-top: 0.9rem;
}

.sp-details-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d6e2f1;
}

.sp-details-body {
  margin-top: 1rem;
  color: #2d486f;
  line-height: 1.7;
}

.sp-comment-section {
  margin-top: 0.9rem;
  background: #ffffff;
  border: 1px solid #d6e2f1;
  border-radius: 18px;
  box-shadow: var(--sp-shadow-soft);
  padding: 1rem;
}

.sp-comment-title {
  margin: 0 0 0.72rem;
  font-family: var(--ui-font-heading);
  font-size: 1.1rem;
}

.sp-comment-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d3deed;
  background: #f8fbff;
  padding: 0.62rem 0.75rem;
  color: #1f3759;
}

.sp-comment-input:focus {
  outline: none;
  border-color: #2d71de;
  box-shadow: 0 0 0 0.16rem rgba(45, 113, 222, 0.16);
  background: #ffffff;
}

.sp-comment-actions {
  margin-top: 0.58rem;
}

.sp-comment-login-tip {
  border: 1px dashed #bfd2ea;
  border-radius: 10px;
  background: #f8fbff;
  color: #496282;
  padding: 0.65rem 0.72rem;
}

.sp-comment-login-tip a {
  color: var(--sp-primary);
  font-weight: 700;
  text-decoration: none;
}

.sp-comment-login-tip a:hover {
  color: var(--sp-primary-strong);
}

.sp-comment-list {
  display: grid;
  gap: 0.6rem;
}

.sp-comment-item {
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.72rem;
}

.sp-comment-item.is-hidden {
  opacity: 0.7;
}

.sp-comment-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.8rem;
  color: #557090;
}

.sp-comment-meta strong {
  color: #18365d;
}

.sp-comment-body {
  margin: 0.5rem 0 0;
  color: #2d486f;
  line-height: 1.55;
  white-space: pre-line;
}

.sp-comment-admin-form {
  margin-top: 0.52rem;
}

@media (max-width: 767px) {
  .sp-notification-page .sp-container {
    width: min(1020px, calc(100% - 1.2rem));
  }

  .sp-filter-form {
    flex-direction: column;
  }

  .sp-filter-input {
    width: 100%;
  }

  .sp-filter-form .sp-btn {
    width: 100%;
  }

  .sp-details-card,
  .sp-comment-section {
    padding: 0.85rem;
  }
  
  .sp-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .sp-notif-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .sp-notif-icon-wrapper {
    display: none;
  }
}

/* Stats grid */
.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.sp-stat-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--sp-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow);
}

.sp-stat-card.has-unread {
  border-color: #fca5a5;
  background: #fff8f8;
}

.sp-stat-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-total { background: #e0f2fe; }
.icon-unread { background: #fee2e2; }
.icon-promo { background: #dcfce7; }

.sp-stat-info {
  display: flex;
  flex-direction: column;
}

.sp-stat-label {
  font-size: 0.8rem;
  color: var(--sp-muted);
  font-weight: 600;
}

.sp-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.2;
}

/* Tabs */
.sp-notif-tabs-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.sp-notif-tabs-container::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.sp-notif-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--sp-border);
  padding-bottom: 2px;
  min-width: max-content;
}

.sp-notif-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sp-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sp-notif-tab:hover {
  color: var(--sp-primary);
}

.sp-notif-tab.active {
  color: var(--sp-primary);
}

.sp-notif-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sp-primary);
  border-radius: 3px;
}

.tab-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-weight: 800;
  color: white;
}

/* Enhanced Notif Card */
.sp-notif-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-notif-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow);
  border-color: #cbd5e1;
}

.sp-notif-card.unread {
  border-left: 5px solid var(--sp-accent);
  background: #fdfefe;
}

.sp-notif-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.sp-notif-card.unread .sp-notif-icon-wrapper {
  background: #fff7ed;
  box-shadow: inset 0 2px 4px rgba(255, 122, 26, 0.05);
}

.sp-notif-cat-icon {
  line-height: 1;
}

.sp-badge-promo {
  color: #15803d;
  background: #dcfce7;
}

.sp-badge-payment {
  color: #b45309;
  background: #fef3c7;
}

.sp-badge-booking {
  color: #0369a1;
  background: #e0f2fe;
}

.sp-badge-system {
  color: #1d4ed8;
  background: #dbeafe;
}

.sp-new-tag {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: white;
  background: var(--sp-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); }
}

.sp-notif-card-footer {
  border-top: 1px dashed #f1f5f9;
  padding-top: 0.75rem;
}
