/* ═══════════════════════════════════════════════════════════════════════════
   Rising People Marshi 2026 — Master CSS Design System
   Theme: Black + Dark Blood Red | Mobile-First | Premium UI
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:          #080808;
  --clr-bg-2:        #111111;
  --clr-bg-3:        #181818;
  --clr-card:        #0f0f0f;
  --clr-border:      #1e0000;
  --clr-border-2:    #2e1010;

  --clr-primary:     #8b0000;   /* Dark blood red */
  --clr-primary-d:   #6b0000;   /* Deeper red */
  --clr-primary-l:   #a80000;   /* Lighter red */
  --clr-accent:      #cc1111;   /* Vivid red */
  --clr-gold:        #d4af37;   /* Premium gold */
  --clr-gold-l:      #f0cc55;

  --clr-text:        #ededeb;
  --clr-text-muted:  #888888;
  --clr-text-dim:    #555555;

  /* Gradients */
  --grad-hero:       linear-gradient(135deg, #0a0505 0%, #1a0400 50%, #0a0000 100%);
  --grad-primary:    linear-gradient(135deg, #8b0000, #cc1111);
  --grad-dark:       linear-gradient(180deg, #0d0000 0%, #080808 100%);
  --grad-card:       linear-gradient(145deg, #141414, #0c0c0c);
  --grad-gold:       linear-gradient(135deg, #b8960c, #d4af37, #f0cc55);

  /* Typography */
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-display:    'Oswald', Impact, sans-serif;

  /* Spacing Scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.8);
  --shadow-red:  0 4px 24px rgba(139,0,0,0.3);
  --shadow-gold: 0 4px 24px rgba(212,175,55,0.2);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  /* Layout */
  --container-xl: 1320px;
  --container-lg: 1100px;
  --container-md: 800px;
  --header-h: 72px;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--clr-gold); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--clr-primary); color: #fff; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--clr-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p { margin-bottom: var(--sp-md); color: var(--clr-text-muted); }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }

.section { padding: var(--sp-3xl) 0; }
.section--sm { padding: var(--sp-2xl) 0; }

/* ─── GRID ───────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--sp-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-2xl) 0; }
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,0,0,0.5);
  color: #fff;
}

.btn--gold {
  background: var(--grad-gold);
  color: #111;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
  color: #111;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary-l);
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--clr-text);
  border: 1px solid var(--clr-border-2);
}
.btn--ghost:hover {
  background: rgba(139,0,0,0.15);
  border-color: var(--clr-primary);
  color: var(--clr-text);
}

.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 16px 40px; font-size: 1rem; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card__image img {
  transform: scale(1.08);
}

.card__badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grad-primary);
  color: #fff;
  z-index: 2;
}

.card__badge--gold {
  background: var(--grad-gold);
  color: #111;
}

.card__body {
  padding: var(--sp-lg);
}

.card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__excerpt {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-md);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-md);
  margin-top: var(--sp-md);
}

.card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-primary);
  flex-shrink: 0;
}

/* ─── FEATURED CARD ──────────────────────────────────────────────────────── */
.card--featured {
  grid-column: span 2;
}

.card--featured .card__image {
  aspect-ratio: 16/7;
}

.card--featured .card__title {
  font-size: 1.4rem;
  -webkit-line-clamp: 3;
}

@media (max-width: 640px) {
  .card--featured { grid-column: span 1; }
  .card--featured .card__image { aspect-ratio: 16/9; }
}

/* ─── SECTION HEADERS ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.section-header__left {
  position: relative;
  padding-left: var(--sp-md);
}

.section-header__left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
}

/* ─── BADGES & LABELS ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge--red    { background: rgba(139,0,0,0.2);   color: #ff6666; border: 1px solid #8b000044; }
.badge--gold   { background: rgba(212,175,55,0.15); color: #d4af37; border: 1px solid #d4af3744; }
.badge--green  { background: rgba(76,175,80,0.15);  color: #66bb6a; border: 1px solid #4caf5044; }
.badge--gray   { background: rgba(100,100,100,0.15);color: #888;    border: 1px solid #44444444; }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-lg); }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label .required { color: var(--clr-accent); margin-left: 2px; }

.form-control {
  width: 100%;
  background: #0f0f0f;
  border: 1.5px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--clr-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  background: #0c0000;
  box-shadow: 0 0 0 3px rgba(139,0,0,0.15);
}

.form-control::placeholder { color: var(--clr-text-dim); }

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  margin-top: 6px;
}

.form-error {
  font-size: 0.78rem;
  color: #ff5555;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── ALERTS ─────────────────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
  border-left: 4px solid transparent;
}

.alert--success {
  background: rgba(76,175,80,0.1);
  border-color: #4caf50;
  color: #81c784;
}

.alert--error {
  background: rgba(244,67,54,0.1);
  border-color: #f44336;
  color: #e57373;
}

.alert--info {
  background: rgba(33,150,243,0.1);
  border-color: #2196f3;
  color: #64b5f6;
}

.alert--warning {
  background: rgba(255,152,0,0.1);
  border-color: #ff9800;
  color: #ffb74d;
}

/* ─── CATEGORY PILLS ─────────────────────────────────────────────────────── */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--clr-border-2);
  background: transparent;
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── DIVIDERS ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border-2), transparent);
  margin: var(--sp-xl) 0;
}

.divider--red {
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
}

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-red    { color: var(--clr-accent); }
.text-gold   { color: var(--clr-gold); }
.text-muted  { color: var(--clr-text-muted); }
.text-dim    { color: var(--clr-text-dim); }

.font-heading  { font-family: var(--font-heading); }
.font-display  { font-family: var(--font-display); }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-none  { display: none; }
.d-block { display: block; }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }

.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.w-full   { width: 100%; }
.relative { position: relative; }
.hidden   { visibility: hidden; }

/* ─── SKELETON LOADER ──────────────────────────────────────────────────────*/
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--clr-text-dim);
  padding: var(--sp-md) 0;
}

.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb .sep { color: var(--clr-text-dim); }
.breadcrumb .current { color: var(--clr-accent); font-weight: 500; }

/* ─── PAGINATION ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-xl) 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--clr-card);
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  padding: 0 12px;
}

.page-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.page-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ─── SEARCH BAR ─────────────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  max-width: 600px;
}

.search-bar__input {
  width: 100%;
  background: var(--clr-bg-2);
  border: 1.5px solid var(--clr-border-2);
  border-radius: var(--radius-full);
  padding: 12px 52px 12px 20px;
  color: var(--clr-text);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-bar__input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.15);
}

.search-bar__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-bar__btn:hover {
  background: var(--clr-accent);
  transform: translateY(-50%) scale(1.1);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  text-decoration: none;
  color: var(--clr-text);
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(139,0,0,0.1);
  color: var(--clr-text);
}

.search-result-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ─── TAGS ───────────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border-2);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(139,0,0,0.15);
  border-color: var(--clr-primary);
  color: var(--clr-accent);
}

/* ─── READING PROGRESS BAR ──────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── BACK TO TOP ────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139,0,0,0.5);
}

/* ─── AVATAR ─────────────────────────────────────────────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-primary);
  flex-shrink: 0;
}

.avatar--sm { width: 28px; height: 28px; }
.avatar--lg { width: 60px; height: 60px; border-width: 3px; }
.avatar--xl { width: 100px; height: 100px; border-width: 4px; }

.avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ─── PLAN CARDS ─────────────────────────────────────────────────────────── */
.plan-card {
  background: var(--clr-card);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.plan-card:hover,
.plan-card.selected {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-red);
  transform: translateY(-6px);
}

.plan-card--premium::before {
  background: var(--grad-gold);
}

.plan-card--premium:hover,
.plan-card--premium.selected {
  border-color: var(--clr-gold);
  box-shadow: var(--shadow-gold);
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--clr-accent);
  line-height: 1;
  margin: var(--sp-md) 0;
}

.plan-price sup { font-size: 1.2rem; vertical-align: super; }

.plan-features {
  list-style: none;
  text-align: left;
  margin: var(--sp-lg) 0;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--clr-border);
}

.plan-features li:last-child { border: none; }

.plan-features li i { color: var(--clr-accent); width: 16px; flex-shrink: 0; }

/* ─── NEWSLETTER BOX ─────────────────────────────────────────────────────── */
.newsletter-box {
  background: linear-gradient(135deg, #100000, #1a0505);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-form {
  display: flex;
  gap: var(--sp-sm);
  max-width: 500px;
  margin: var(--sp-lg) auto 0;
}

.newsletter-form .form-control {
  flex: 1;
  border-radius: var(--radius-full);
  padding: 12px 20px;
}

@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* ─── SOCIAL SHARE ───────────────────────────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.share-btn--facebook  { background: #1877f215; color: #1877f2; border-color: #1877f230; }
.share-btn--twitter   { background: #1da1f215; color: #1da1f2; border-color: #1da1f230; }
.share-btn--whatsapp  { background: #25d36615; color: #25d366; border-color: #25d36630; }
.share-btn--linkedin  { background: #0a66c215; color: #0a66c2; border-color: #0a66c230; }
.share-btn--copy      { background: rgba(255,255,255,0.05); color: var(--clr-text-muted); border-color: var(--clr-border-2); }

.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* ─── LOADER OVERLAY ─────────────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 4px solid var(--clr-border-2);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE UTILITIES ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
