:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #2a2a2a;
  --muted: #6b7280;
  --primary: #25206e;
  --border: #f1f1f1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.app-toast {
  --toast-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  position: fixed;
  z-index: 10050;
  right: 20px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--toast-shadow);
  transform: translate3d(120%, 0, 0);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.app-toast.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.app-toast.is-hiding {
  transform: translate3d(0, 16px, 0) scale(0.97);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.35s ease;
  pointer-events: none;
}

.app-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.app-toast--success .app-toast__icon {
  color: #0d7a3e;
  background: rgba(16, 185, 129, 0.18);
}

.app-toast--error .app-toast__icon {
  color: #c81e4a;
  background: rgba(244, 63, 94, 0.16);
}

.app-toast--info .app-toast__icon {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.18);
}

.app-toast--warning .app-toast__icon {
  color: #b45309;
  background: rgba(245, 158, 11, 0.2);
}

.app-toast__message {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-weight: 500;
}

.app-toast--success {
  box-shadow: var(--toast-shadow), inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.app-toast--error {
  box-shadow: var(--toast-shadow), inset 0 0 0 1px rgba(244, 63, 94, 0.1);
}

.app-toast__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-toast__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.panel-page {
  padding: 32px 0 48px;
  min-height: 50vh;
}

.panel-title {
  font-size: clamp(26px, 3vw, 34px);
  color: #25206e;
  margin-bottom: 8px;
  font-weight: 600;
}

.panel-lead {
  color: #5c6477;
  margin-bottom: 28px;
  max-width: 720px;
  line-height: 1.55;
}

.panel-card {
  background: #fff;
  border: 1px solid #e8ebf4;
  border-radius: 16px;
  padding: 22px 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 8px 28px rgba(30, 40, 80, 0.06);
}

.panel-card h2 {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #25206e;
  margin-bottom: 16px;
  font-weight: 600;
}

.user-post-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #374151;
}

.user-post-form label span {
  font-weight: 600;
}

.user-post-form input,
.user-post-form textarea {
  border: 1px solid #dbe0ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}

.btn-panel-primary {
  background: #25206e;
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.btn-panel-ghost {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.user-posts-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.user-post-item {
  border-top: 1px solid #eef0f7;
  padding-top: 16px;
}

.user-post-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.user-post-item h3 {
  font-size: 18px;
  color: #1e1b4b;
  margin-bottom: 6px;
  font-weight: 600;
}

.user-post-date {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.user-post-body {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 10px;
}

.user-post-delete {
  margin-top: 4px;
}

/* ——— User blog panel (writer — VIP, aligned with admin look) ——— */
body.page-user-panel {
  background: #06050f;
  color: #e2e8f0;
}

body.page-user-panel .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #06050f;
  background: linear-gradient(180deg, #06050f 0%, #06050f 45%, rgba(6, 5, 15, 0.92) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  padding-top: env(safe-area-inset-top, 0px);
}

body.page-user-panel .brand-block,
body.page-user-panel .main-nav-row {
  display: none;
}

body.page-user-panel .top-social-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0f0d1a 0%, #2d2a5c 50%, #0f0d1a 100%);
  box-shadow: inset 0 -1px 0 rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(30, 27, 55, 0.9);
}

body.page-user-panel .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: #0a0912;
  position: relative;
  z-index: 2;
}

body.page-user-panel .site-footer .footer-col h4,
body.page-user-panel .site-footer a,
body.page-user-panel .site-footer p,
body.page-user-panel .site-footer .footer-bottom-inner p {
  color: #a8a29e;
}

body.page-user-panel .footer-top {
  border-color: rgba(255, 255, 255, 0.06);
}

body.page-user-panel .footer-bottom {
  border-color: rgba(255, 255, 255, 0.06);
}

body.page-user-panel .footer-newsletter input {
  background: #12101f;
  border-color: rgba(212, 175, 55, 0.2);
  color: #e2e8f0;
}

body.page-user-panel .footer-newsletter button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: 0;
}

.user-panel-vip {
  position: relative;
  padding: 28px 0 56px;
  min-height: 56vh;
  overflow: visible;
}

.user-vip-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -15%, rgba(99, 102, 241, 0.2) 0%, transparent 48%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(212, 175, 55, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #06050f 0%, #0e0c18 50%, #06050f 100%);
}

.user-vip-ribbon {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 3px;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #c4a035, #f5e6b3, #c4a035, transparent);
  opacity: 0.9;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.user-vip-container {
  position: relative;
  z-index: 2;
  width: min(900px, 96%);
}

.user-vip-hero {
  position: relative;
  margin-bottom: 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 24px 48px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-vip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1535 0%, #0f0d1a 50%, #15102a 100%);
  z-index: 0;
}

.user-vip-hero__inner {
  position: relative;
  z-index: 1;
  padding: 30px 28px 32px;
  text-align: center;
}

.user-vip-hero__glow {
  position: absolute;
  top: -35%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 480px;
  height: 90%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.user-vip-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.user-vip-kicker i {
  color: #e8c76b;
  font-size: 13px;
}

.user-vip-title {
  position: relative;
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(135deg, #faf8f5 0%, #e8c76b 45%, #f0ead8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.user-vip-title span {
  display: block;
  margin-top: 4px;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  -webkit-text-fill-color: #94a3b8;
  color: #94a3b8;
}

.user-vip-lead {
  position: relative;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #9ca3af;
}

.user-vip-lead strong {
  color: #e2e8f0;
  font-weight: 600;
}

.user-vip-lead__email {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.user-vip-hero__stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.user-vip-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 22px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  min-width: 100px;
}

.user-vip-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8c76b;
  line-height: 1.1;
}

.user-vip-stat__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
}

.user-vip-hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.user-vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.user-vip-btn--site {
  color: #0f0d1a;
  background: linear-gradient(135deg, #e8c76b, #b8860b);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.user-vip-btn--site:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.user-vip-btn--logout {
  color: #e2e8f0;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.user-vip-btn--logout:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
}

.user-vip-btn--primary {
  color: #0c0b18;
  background: linear-gradient(135deg, #e8c76b, #9a7209);
  border: 0;
  padding: 12px 22px;
  margin-top: 4px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.user-vip-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.user-vip-btn--danger {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 7px 14px;
  font-size: 12px;
}

.user-vip-btn--danger:hover {
  background: rgba(185, 28, 28, 0.5);
  color: #fff;
}

.user-vip-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.user-vip-surface {
  position: relative;
  padding: 22px 24px 24px;
  background: linear-gradient(165deg, rgba(26, 22, 50, 0.85) 0%, rgba(10, 9, 18, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.user-vip-surface__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5a0;
}

.user-vip-surface__title i {
  color: #e8c76b;
  font-size: 14px;
}

.user-vip-surface__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #94a3b8;
}

.user-vip-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #cbd5e1;
}

.user-vip-field span {
  font-weight: 600;
  color: #a8b0c0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.user-vip-field input,
.user-vip-field textarea {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #f1f5f9;
  background: rgba(6, 5, 15, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-vip-field input::placeholder,
.user-vip-field textarea::placeholder {
  color: #64748b;
}

.user-vip-field input:focus,
.user-vip-field textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.user-vip-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.user-vip-field__optional {
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 11px;
}

.user-vip-field__file {
  padding: 8px 0;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
}

.user-vip-field__file::file-selector-button {
  margin-right: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.user-vip-field__hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  font-weight: 400;
}

.user-vip-post__figure {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.25);
}

.user-vip-post__img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  vertical-align: middle;
}

.user-vip-empty {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  font-style: italic;
}

.user-vip-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-vip-posts > li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0 0;
  margin: 0;
}

.user-vip-posts > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.user-vip-post__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.user-vip-post__date {
  margin: 0 0 10px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-vip-post__date i {
  color: #64748b;
  font-size: 11px;
}

.user-vip-post__body {
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.user-vip-post__delete {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

@media (max-width: 600px) {
  .user-vip-hero__inner {
    padding: 24px 18px 28px;
  }

  .user-vip-surface {
    padding: 18px 16px 20px;
  }
}

/* ——— Onboarding: topic picks (Medium-style, Blogs Bhanu) ——— */
html:has(body.page-user-interests) {
  scroll-behavior: smooth;
}

body.page-user-interests {
  background: #fafaf9;
  color: #1a1a1a;
}

body.page-user-interests .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e5e5e4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  padding-top: env(safe-area-inset-top, 0);
}

body.page-user-interests .brand-block,
body.page-user-interests .main-nav-row {
  display: none;
}

body.page-user-interests .top-social-bar {
  min-height: 40px;
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
}

body.page-user-interests .site-footer {
  margin-top: 0;
  background: #fff;
  border-top: 1px solid #e5e5e4;
}

body.page-user-interests .site-footer .footer-top {
  background: #fafaf9;
}

body.page-user-interests .user-int-page {
  min-height: 60vh;
  padding: 32px 16px 64px;
}

.user-int-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.user-int-logo {
  display: inline-block;
  margin: 0 auto 8px;
  line-height: 0;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.user-int-logo:hover {
  opacity: 1;
}

.user-int-logo img {
  max-width: min(200px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.user-int-illustration {
  margin: 20px 0 28px;
  display: flex;
  justify-content: center;
}

.user-int-illustration__svg {
  width: min(200px, 50vw);
  height: auto;
  opacity: 0.85;
}

.user-int-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 500;
  color: #0f0f0f;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.user-int-sub {
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.5;
  color: #6b6b6b;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.user-int-categories {
  text-align: left;
}

.user-int-category {
  margin-bottom: 32px;
}

.user-int-category__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e6;
  font-family: "Montserrat", system-ui, sans-serif;
}

.user-int-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.user-int-pill {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: #292929;
  background: #fff;
  border: 1px solid;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.user-int-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-int-pill--tech,
.user-int-pill--code,
.user-int-pill--culture {
  border-color: #c9c9c4;
  background: #fff;
}

.user-int-pill--wellness {
  border-color: #e8a4b4;
  background: #fff9fa;
}

.user-int-pill--life {
  border-color: #d4a843;
  background: #fffef8;
}

.user-int-pill--society {
  border-color: #7ab8d4;
  background: #f7fcfe;
}

.user-int-pill--business {
  border-color: #3ba7a0;
  background: #f5fcfc;
}

.user-int-pill.is-selected,
.user-int-pill[aria-pressed="true"] {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.user-int-pill--wellness.is-selected {
  background: #9d1b4a;
  border-color: #9d1b4a;
  color: #fff;
}

.user-int-pill--life.is-selected {
  background: #8a6a12;
  border-color: #8a6a12;
}

.user-int-pill--society.is-selected {
  background: #0e5a7a;
  border-color: #0e5a7a;
}

.user-int-pill--business.is-selected {
  background: #0d6b66;
  border-color: #0d6b66;
}

.user-int-pill--tech.is-selected,
.user-int-pill--code.is-selected,
.user-int-pill--culture.is-selected {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.user-int-footer {
  margin-top: 20px;
  text-align: center;
}

.user-int-continue {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #fff;
  background: #1a1a1a;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.user-int-continue:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
}

.user-int-continue:disabled {
  background: #e0e0de;
  color: #9a9a9a;
  cursor: not-allowed;
  transform: none;
}

.user-int-hint {
  font-size: 14px;
  color: #6b6b6b;
  margin: 0;
  line-height: 1.45;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 480px) {
  body.page-user-interests .user-int-page {
    padding: 20px 12px 48px;
  }

  .user-int-pill {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ——— Membership / plans (Medium-style, INR) ——— */
html:has(body.page-user-plans) {
  scroll-behavior: smooth;
}

body.page-user-plans {
  background: #fff;
  color: #1a1a1a;
}

body.page-user-plans .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e8e8e6;
  padding-top: env(safe-area-inset-top, 0);
}

body.page-user-plans .brand-block,
body.page-user-plans .main-nav-row {
  display: none;
}

body.page-user-plans .top-social-bar {
  min-height: 40px;
  background: #fff;
  border-bottom: 0;
}

body.page-user-plans .site-footer {
  margin-top: 0;
  background: #fafaf9;
  border-top: 1px solid #e5e5e4;
}

.user-plans-page {
  position: relative;
  min-height: 64vh;
  padding: 24px 16px 56px;
}

.user-plans-closeform {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 50;
  margin: 0;
}

.user-plans-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f0ee;
  color: #6b6b6b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-plans-close:hover {
  background: #e2e2df;
  color: #1a1a1a;
}

.user-plans-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8px;
}

.user-plans-logo {
  display: inline-block;
  line-height: 0;
  margin: 0 0 20px;
  text-decoration: none;
  opacity: 0.95;
}

.user-plans-logo img {
  max-width: min(200px, 70vw);
  height: auto;
}

.user-plans-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: #0f0f0f;
  margin: 0 auto 10px;
  max-width: 32rem;
  letter-spacing: -0.02em;
}

.user-plans-hero__lead {
  margin: 0 auto 24px;
  font-size: 15px;
  color: #6b6b6b;
  line-height: 1.5;
  max-width: 28rem;
}

.user-plans-billing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto 32px;
}

.user-plans-billing__opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  padding: 10px 20px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #242424;
  background: #fff;
  border: 1.5px solid #d0d0cc;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.user-plans-billing__opt.is-active {
  background: #e8f5e9;
  border-color: #1b5e20;
  color: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(27, 94, 32, 0.15);
}

.user-plans-billing__save {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #2e7d32;
}

.user-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .user-plans-grid {
    grid-template-columns: 1fr;
  }
}

.user-plans-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e0e0dc;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-plans-card__head {
  padding: 24px 22px 20px;
  border-bottom: 1px solid #eee;
}

.user-plans-avatar {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.user-plans-avatar__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #e3e3e0, #c9c9c2);
  font-size: 1.4rem;
  font-weight: 600;
  color: #3d3d3a;
  font-family: "Montserrat", system-ui, sans-serif;
}

.user-plans-avatar__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
}

.user-plans-avatar__badge--star {
  background: linear-gradient(145deg, #e8c76b, #b8860b);
}

.user-plans-avatar__badge--heart {
  background: linear-gradient(145deg, #e91e63, #c2185b);
}

.user-plans-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.user-plans-card__price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.user-plans-card__rupee {
  font-size: 0.9em;
  color: #444;
  margin-right: 1px;
}

.user-plans-card__per {
  font-size: 0.6em;
  font-weight: 500;
  color: #6b6b6b;
  margin-left: 2px;
}

.user-plans-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0 0 16px;
}

.user-plans-card__form {
  margin: 0;
}

.user-plans-select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #fff;
  background: #1a8917;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.user-plans-select:hover {
  background: #157a13;
  filter: brightness(1.02);
}

.user-plans-feat {
  list-style: none;
  margin: 0;
  padding: 18px 22px 22px;
  font-size: 14px;
  line-height: 1.45;
  color: #3d3d3a;
  flex: 1 1 auto;
}

.user-plans-feat li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.user-plans-feat li:last-child {
  margin-bottom: 0;
}

.user-plans-feat i.fa-check {
  color: #1a8917;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 12px;
}

.user-plans-feat__starline {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.user-plans-feat__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  list-style: none;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 6px 0 10px;
  padding: 0;
  gap: 8px;
}

.user-plans-feat__plus::before,
.user-plans-feat__plus::after {
  content: "";
  flex: 1 1 20%;
  height: 1px;
  background: #e0e0dc;
}

.user-plans-feat__plus span {
  padding: 0 6px;
}

.user-plans-free-wrap {
  margin: 32px 0 0;
  text-align: center;
}

.user-plans-free-form {
  display: inline;
  margin: 0;
}

.user-plans-free-link {
  background: none;
  border: 0;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: "Montserrat", system-ui, sans-serif;
  padding: 8px 12px;
}

.user-plans-free-link:hover {
  color: #1a8917;
}

.panel-table-wrap {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.panel-table th,
.panel-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f7;
  vertical-align: middle;
}

.panel-table th {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-form {
  display: inline;
}

.panel-empty {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 480px) {
  .app-toast {
    right: 12px;
    left: 12px;
    bottom: 16px;
    max-width: none;
    transform: translate3d(0, 100%, 0);
  }

  .app-toast.is-visible {
    transform: translate3d(0, 0, 0);
  }
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
}

.top-social-bar {
  background: #25206e;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.social-wrap {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 12px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-wrap--has-welcome {
  justify-content: space-between;
}

.social-welcome {
  margin: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.45px;
  font-weight: 500;
  padding: 4px 14px 4px 12px;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  max-width: min(240px, 55vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-welcome-name {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-nav a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.social-nav a:hover {
  opacity: 0.8;
}

.brand-block {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 46px 0 38px;
}

.brand-logo {
  display: inline-block;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 340px;
  max-width: 92vw;
  height: auto;
}

.main-nav-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.nav-mobile-head {
  display: none;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  min-height: 62px;
}

.main-nav a {
  color: #232323;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
}

.nav-item {
  position: relative;
}

.main-nav .dd {
  font-size: 10px;
  margin-left: 2px;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 192px;
  background: #24206f;
  padding: 10px 14px;
  display: none;
  z-index: 20;
}

.submenu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu li:last-child {
  border-bottom: 0;
}

.submenu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 500;
  line-height: 1.3;
  padding: 11px 0;
}

.submenu-arrow {
  font-size: 11px;
  margin-left: 10px;
}

.has-submenu:hover .submenu {
  display: block;
}

.hero-slider-wrap {
  padding: 22px 0 0;
}

.hero-slider-wrap .container {
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.hero-track {
  display: flex;
  transition: transform 700ms ease-in-out;
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: min(52vw, 640px);
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-overlay h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: 1px;
}

.hero-btn {
  margin-top: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 10px 26px;
  font-size: 11px;
  letter-spacing: 2px;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-date {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 2px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7d7d7;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.active {
  background: #c5c5c5;
}

.hero-floating-icons {
  position: absolute;
  right: -22px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-floating-icons button {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #25206e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
}

.explore-grid-wrap {
  padding: 26px 0 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.explore-right-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.explore-card {
  position: relative;
  overflow: hidden;
}

.explore-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.explore-card-large img {
  min-height: 520px;
}

.explore-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.16);
}

.explore-label-box {
  background: rgba(255, 255, 255, 0.9);
  width: 142px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4a4a4a;
}

.explore-label-box i {
  font-size: 24px;
}

.explore-label-box span {
  font-size: 15px;
  letter-spacing: 1px;
}

.explore-text {
  color: #fff;
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 500;
}

.explore-text i {
  font-size: 20px;
}

.story-layout-wrap {
  padding: 34px 0 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.story-sidebar {
  align-self: start;
}

.story-feed {
  display: grid;
  gap: 18px;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.story-meta {
  order: 1;
  margin-bottom: 12px;
  font-size: 10px;
  color: #b8b8b8;
  letter-spacing: 1.8px;
  text-align: center;
}

.story-card img {
  order: 3;
  width: 100%;
  height: clamp(310px, 36vw, 460px);
  object-fit: cover;
  display: block;
  margin: 0;
  max-width: none;
}

.story-card h3 {
  order: 2;
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
}

.story-card-footer {
  order: 4;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-date {
  color: #c9ccd4;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 600;
}

.story-date span {
  font-size: 48px;
  color: #d2d5dd;
}

.story-view-btn {
  color: #25206e;
  border: 1px solid #aeb0b5;
  text-decoration: none;
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 1.8px;
}

.story-sidebar-sticky {
  position: sticky;
  top: 14px;
  width: 100%;
}

.sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.sidebar-socials a {
  color: #2d2d2d;
  font-size: 19px;
}

.sidebar-widget {
  margin-bottom: 16px;
}

.sidebar-widget h4 {
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  color: #6a6a6a;
}

.search-row {
  display: flex;
  align-items: stretch;
}

.sidebar-widget input {
  width: calc(100% - 36px);
  border: 1px solid #e6e6e6;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.search-row button {
  width: 36px;
  border: 0;
  background: #25206e;
  color: #fff;
}

.sidebar-categories {
  list-style: none;
  display: grid;
  gap: 10px;
}

.sidebar-categories a {
  text-decoration: none;
  color: #fff;
  background: #4c5160;
  font-size: 10px;
  letter-spacing: 1.8px;
  display: inline-block;
  padding: 7px 10px;
  text-transform: uppercase;
}

.mini-slider-viewport {
  height: auto;
  overflow: visible;
  background: #fff;
  border: 0;
}

.mini-slider-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-slide-card {
  position: relative;
}

.mini-slider-track img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  border-bottom: 0;
}

.mini-slide-card span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.follow-strip-wrap {
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  margin-top: 26px;
  background: #fff;
}

.pagination-wrap {
  margin-top: 26px;
}

.pagination-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-num,
.page-nav {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  color: #5c5f66;
}

.page-num.active {
  background: #454850;
  color: #fff;
}

.follow-strip {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.follow-strip a {
  text-decoration: none;
  color: #666;
  font-size: 10px;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.follow-strip a i {
  color: #2d2d2d;
  margin-right: 6px;
}

body.modal-open {
  overflow: hidden;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 12px 28px;
  scroll-padding-top: 16px;
}

.signup-modal.is-open {
  display: block;
}

/* Fixed so it does not add scroll height; only the dialog scrolls away */
.signup-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(17, 23, 45, 0.62);
  backdrop-filter: blur(5px);
}

.signup-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 94%);
  margin: clamp(12px, 3vh, 32px) auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(20, 26, 54, 0.35);
}

.signup-modal-banner {
  position: relative;
  min-height: 160px;
  height: clamp(180px, 36vh, 480px);
}

.signup-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.signup-modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(31, 45, 98, 0.35), rgba(56, 29, 106, 0.4));
}

.signup-modal-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f8f9ff 100%);
  padding: 28px 26px 24px;
}

.signup-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #d8deef;
  border-radius: 50%;
  background: #fff;
  color: #545d74;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.signup-modal-card h2 {
  font-size: clamp(30px, 3.1vw, 40px);
  color: #181a40;
  margin-top: 8px;
  text-align: center;
}

.signup-modal-subtitle {
  margin-top: 6px;
  text-align: center;
  color: #646d85;
  font-size: 14px;
}

.signup-modal-oauth-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  background: #f0f4ff;
  border: 1px solid #dbe4ff;
  border-radius: 12px;
}

.signup-modal-oauth-hint i {
  margin-top: 2px;
  color: #25206e;
  flex-shrink: 0;
}

.signup-page-oauth-hint {
  text-align: left;
  max-width: 100%;
  margin: 10px 0 6px;
}

.signup-modal-options {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.signup-modal-btn {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid #2a3044;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #11152e;
  text-decoration: none;
  background: #fff;
}

.signup-modal-btn:hover {
  background: #f7f9ff;
}

.signup-modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.signup-modal-icon.google {
  color: #db4437;
  background: rgba(219, 68, 55, 0.11);
}

.signup-modal-icon.facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}

.signup-modal-icon.email {
  color: #4a5061;
  background: rgba(74, 80, 97, 0.1);
}

.signup-modal-remember {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #22263b;
  font-size: 14px;
}

.signup-modal-remember input {
  width: 17px;
  height: 17px;
  accent-color: #25206e;
}

.signup-modal-switch {
  margin-top: 16px;
  text-align: center;
  color: #222944;
  font-size: 17px;
}

.signup-modal-switch a {
  color: #111735;
  font-weight: 600;
}

.signup-modal-policy {
  margin-top: 18px;
  text-align: center;
  color: #5f677f;
  font-size: 12px;
  line-height: 1.6;
}

.signup-modal-policy a {
  color: #2a3156;
}

.email-auth-form {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.email-auth-form input[type="text"],
.email-auth-form input[type="email"],
.email-auth-form input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe0ee;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
}

.email-auth-submit {
  min-height: 45px;
  border: 0;
  border-radius: 12px;
  background: #25206e;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.auth-sep {
  color: #b1b7c9;
  margin: 0 7px;
}

.shop-page-wrap {
  position: relative;
  min-height: 600px;
  padding: 8px 0 30px;
}

.shop-content {
  text-align: center;
  max-width: 900px;
}

.shop-content h1 {
  font-size: 46px;
  letter-spacing: 1px;
  font-weight: 500;
  color: #25206e;
}

.shop-content p {
  font-size: 14px;
  color: #666a76;
  margin-top: 7px;
}

.shop-post-link {
  display: inline-block;
  margin-top: 10px;
  color: #25206e;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.shop-books {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 120px;
}

.book-card img {
  width: 255px;
  height: 380px;
  object-fit: cover;
  display: block;
}

.book-card a {
  display: inline-block;
  margin-top: 14px;
  color: #25206e;
  font-size: 13px;
  letter-spacing: 0.8px;
}

.shop-side-socials {
  position: fixed;
  left: 0;
  top: 34%;
  border: 1px solid #d6d6d6;
  background: #fff;
  z-index: 8;
}

.shop-side-socials a {
  width: 24px;
  height: 30px;
  border-bottom: 1px solid #d6d6d6;
  color: #25206e;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 10px;
}

.shop-side-socials a:last-child {
  border-bottom: 0;
}

.shop-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}

.shop-floating-actions button {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #25206e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.contact-page-wrap {
  position: relative;
  padding: 8px 0 28px;
}

.contact-content {
  max-width: 1100px;
}

.contact-content h1 {
  text-align: center;
  font-size: 46px;
  color: #25206e;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-content p {
  font-size: 14px;
  color: #5f6470;
  margin-bottom: 10px;
}

.contact-content h3 {
  text-align: center;
  margin-top: 34px;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.work-intro-block {
  margin-top: 24px;
  border-top: 1px solid #eceef4;
  padding-top: 16px;
}

.work-intro-block h2 {
  text-align: center;
  font-size: 24px;
  color: #25206e;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.work-intro-block p {
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.7;
}

.work-intro-block a {
  color: #25206e;
}

.brand-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brand-logo-card {
  border: 1px solid #e6e8ef;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.brand-logo-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
}

.faq-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e2e5ed;
  background: #fff;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #25206e;
  letter-spacing: 0.6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.faq-body {
  display: none;
  border-top: 1px solid #eceef4;
  padding: 12px 16px;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-item.active .faq-toggle span {
  transform: rotate(45deg);
}

.contact-cta {
  margin-top: 20px;
  text-align: center;
  border: 1px solid #e2e5ed;
  background: #fff;
  padding: 14px;
}

.contact-cta h4 {
  color: #25206e;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}

.contact-floating-actions button {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #25206e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.press-page-wrap {
  position: relative;
  padding: 8px 0 24px;
}

.press-content h1 {
  text-align: center;
  font-size: 46px;
  color: #25206e;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 20px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.press-card p {
  font-size: 10px;
  color: #7f8492;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.press-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #fff;
  border: 10px solid #fff;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18);
  transform: rotate(-1deg);
}

.press-card-tall img {
  height: 438px;
}

.press-card:nth-child(even) img {
  transform: rotate(1deg);
}

.press-card:nth-child(3n) img {
  transform: rotate(-0.6deg);
}

.press-links {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.press-links p {
  color: #8f94a0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.press-links a {
  color: #25206e;
  font-size: 12px;
}

.press-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}

.press-floating-actions button {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #25206e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.scuba-page-wrap {
  position: relative;
  padding: 12px 0 26px;
}

.scuba-hero-banner {
  position: relative;
  margin-bottom: 34px;
}

.scuba-hero-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.scuba-hero-banner h1 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  letter-spacing: 9px;
  font-size: 44px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.scuba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 24px;
}

.scuba-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.scuba-date-chip {
  width: fit-content;
  margin: -11px auto 0;
  background: #25206e;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 16px;
  position: relative;
  z-index: 2;
}

.scuba-meta {
  margin-top: 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #b7bcc8;
  text-transform: uppercase;
}

.scuba-card h3 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  color: #2d2f36;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scuba-excerpt {
  margin-top: 8px;
  text-align: center;
  color: #7a7f8b;
  font-size: 12px;
}

.scuba-read-btn {
  margin: 12px auto 0;
  display: inline-block;
  color: #25206e;
  border: 1px solid #c2c5ce;
  padding: 7px 18px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 1px;
}

.scuba-pagination {
  margin-top: 36px;
}

.scuba-floating-actions {
  position: fixed;
  right: 16px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 8;
}

.scuba-floating-actions button {
  border: 1px solid #ebebeb;
  background: #fff;
  color: #25206e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}

/* ——— Admin login (dedicated full layout) ——— */
body.page-admin-login {
  background: #0e0c1d;
}

body.page-admin-login .brand-block,
body.page-admin-login .main-nav-row {
  display: none;
}

body.page-admin-login .site-header {
  background: #121028;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-admin-login .top-social-bar {
  background: #15132e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.page-admin-login .site-footer {
  margin-top: 0;
  background: #121028;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-admin-login .site-footer .footer-col h4 {
  color: #e2e8f0;
}

body.page-admin-login .site-footer .footer-col a,
body.page-admin-login .site-footer .footer-bottom-inner p,
body.page-admin-login .site-footer .footer-col p,
body.page-admin-login .site-footer .footer-col li {
  color: #94a3b8;
}

body.page-admin-login .site-footer .footer-top {
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-login-page-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(70vh, calc(100vh - 120px));
  padding: 36px 0 56px;
  color: #e2e8f0;
}

.admin-login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 20% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 90% 80%, rgba(37, 32, 110, 0.5) 0%, transparent 45%),
    linear-gradient(168deg, #0f0d22 0%, #1a1750 48%, #120f2e 100%);
}

.admin-login-page-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.admin-login-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

.admin-login-decor-1 {
  width: 280px;
  height: 280px;
  left: -8%;
  top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.15));
  opacity: 0.55;
}

.admin-login-decor-2 {
  width: 200px;
  height: 200px;
  right: 5%;
  bottom: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.2), rgba(37, 32, 110, 0.2));
  opacity: 0.45;
}

.admin-login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  min-height: min(60vh, 640px);
}

.admin-login-brand {
  padding: 8px 8px 8px 0;
}

.admin-login-logo-link {
  display: inline-block;
  margin-bottom: 20px;
  line-height: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.admin-login-logo-img {
  max-width: min(280px, 75vw);
  height: auto;
  opacity: 0.95;
}

.admin-login-kicker {
  font-size: 11px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: #a5b4fc;
  font-weight: 600;
  margin: 0 0 6px;
}

.admin-login-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.admin-login-blurb {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 0 22px;
}

.admin-login-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #e2e8f0;
}

.admin-login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-login-features li:last-child {
  border-bottom: 0;
}

.admin-login-features i {
  color: #a5b4fc;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.admin-login-aside {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 30px 28px 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-login-card-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: #c7d2fe;
  background: linear-gradient(145deg, rgba(37, 32, 110, 0.85), rgba(55, 48, 163, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.admin-login-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #f1f5f9;
  margin: 0 0 6px;
}

.admin-login-lead {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 22px;
  padding: 0 2px;
}

.admin-login-form {
  display: grid;
  gap: 0;
}

.admin-login-field {
  margin-bottom: 16px;
}

.admin-login-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.admin-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
}

.admin-login-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 14px 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-input.has-icon {
  padding-left: 42px;
}

.admin-login-input::placeholder {
  color: #94a3b8;
}

.admin-login-input:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.admin-login-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.admin-login-submit {
  width: 100%;
  margin-top: 4px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #312e81 0%, #25206e 50%, #1e1b4b 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(37, 32, 110, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.admin-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 32, 110, 0.55);
}

.admin-login-submit:active {
  transform: translateY(0);
}

.admin-login-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 20px 0 0;
  padding: 12px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-login-footnote i {
  margin-top: 2px;
  color: #a5b4fc;
  flex-shrink: 0;
}

.admin-login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #c7d2fe;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-login-back:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

@media (max-width: 900px) {
  .admin-login-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
  }

  .admin-login-brand {
    text-align: center;
    padding: 0;
  }

  .admin-login-logo-link {
    display: block;
  }

  .admin-login-blurb {
    max-width: none;
  }

  .admin-login-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ——— Admin panel (VIP / premium dashboard) ——— */
body.page-admin-panel {
  background: #07060f;
  color: #e2e8f0;
  /* Must match .admin-panel-container: width: min(1320px, 96%) */
  --admin-container-w: min(1320px, 96%);
  --admin-side-w: 270px;
  --admin-side-gap: 28px;
  /* Height of the visible top strip (site-header with only .top-social-bar) + gap under it */
  --admin-social-h: 48px;
  --admin-side-top-gap: 14px;
}

body.page-admin-panel .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #07060f;
  background: linear-gradient(180deg, #07060f 0%, #07060f 40%, rgba(7, 6, 15, 0.92) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  padding-top: env(safe-area-inset-top, 0px);
}

body.page-admin-panel .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: #0c0b18;
  position: relative;
  z-index: 25;
}

/* Fixed side menu ke neeche footer na aaye: content same offset pe rakho (desktop) */
@media (min-width: 901px) {
  body.page-admin-panel .site-footer {
    margin-left: calc(var(--admin-side-w) + var(--admin-side-gap));
    width: calc(100% - (var(--admin-side-w) + var(--admin-side-gap)));
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  body.page-admin-panel .site-footer {
    margin-left: 0;
    width: 100%;
  }
}

body.page-admin-panel .site-footer .footer-col h4,
body.page-admin-panel .site-footer a {
  color: #a8a29e;
}

.admin-panel-page.admin-vip {
  position: relative;
  padding: 32px 0 64px;
  min-height: 60vh;
  /* No overflow: hidden on ancestors — that breaks sticky; clip only if needed. */
  overflow: visible;
}

/* Full-page night luxury wash */
.admin-vip-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(37, 32, 110, 0.35) 0%, transparent 45%),
    linear-gradient(180deg, #0c0b18 0%, #12101f 40%, #0a0912 100%);
}

.admin-vip-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.admin-panel-bg.admin-vip-bg-ribbon {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 4px;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #b8860b, #e8c76b, #b8860b, transparent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  opacity: 0.85;
}

html:has(body.page-admin-panel) {
  scroll-behavior: smooth;
}

.admin-panel-container {
  position: relative;
  z-index: 2;
  width: min(1320px, 96%);
}

/* Side menu + main column (mobile: stack; desktop: fixed left rail) */
.admin-vip-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 4px;
}

.admin-vip-side {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: none;
  padding: 0;
  background: linear-gradient(165deg, rgba(30, 27, 55, 0.92) 0%, rgba(12, 11, 24, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-vip-side__scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop: side menu fixed — page scroll se menu scroll up nahi hoga */
@media (min-width: 901px) {
  .admin-vip-layout {
    display: block;
  }

  .admin-vip-side {
    position: fixed;
    /* Niche: sticky social bar + safe area ke baad, taake menu overlap na ho */
    top: calc(
      env(safe-area-inset-top, 0px) + var(--admin-social-h) + var(--admin-side-top-gap)
    );
    left: max(0px, calc(50% - (var(--admin-container-w) / 2)));
    z-index: 20;
    width: var(--admin-side-w);
    max-width: min(var(--admin-side-w), calc(100vw - 24px));
    max-height: calc(
      100vh - env(safe-area-inset-top, 0px) - var(--admin-social-h) - var(
          --admin-side-top-gap
        ) - 16px
    );
  }

  .admin-vip-side__scroller {
    max-height: none;
  }

  .admin-vip-main {
    margin-left: calc(var(--admin-side-w) + var(--admin-side-gap));
    min-width: 0;
  }
}

.admin-vip-side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #e8c76b, #5c4409, #b8860b);
  border-radius: 2px 0 0 2px;
}

.admin-vip-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4b5a0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-vip-side__brand i {
  color: #e8c76b;
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

.admin-vip-side__nav {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 14px 14px;
  gap: 2px;
}

.admin-vip-side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-vip-side__link i {
  width: 1.1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.15s ease;
}

.admin-vip-side__link:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.25);
}

.admin-vip-side__link:hover i {
  color: #a5b4fc;
}

.admin-vip-side__link.is-active {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.admin-vip-side__link.is-active i {
  color: #e8c76b;
}

.admin-vip-side__link.is-placeholder {
  opacity: 0.5;
  cursor: not-allowed;
  font-style: italic;
  pointer-events: none;
  user-select: none;
}

.admin-vip-side__badge {
  margin-left: auto;
  min-width: 1.4rem;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #0c0b18;
  background: linear-gradient(135deg, #e8c76b, #b8860b);
  border-radius: 6px;
}

.admin-vip-side__label {
  margin: 12px 4px 6px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-vip-main {
  min-width: 0;
}

#admin-stats,
#admin-section-pending,
#admin-section-members,
#admin-dashboard-hero {
  scroll-margin-top: 20px;
}

@media (max-width: 900px) {
  .admin-vip-side {
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
  }

  .admin-vip-side__scroller {
    max-height: min(55vh, 360px);
  }

  .admin-vip-main {
    margin-left: 0;
  }
}

/* Site logo at top of side menu */
.admin-vip-side__logo {
  flex-shrink: 0;
  padding: 10px 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.admin-vip-side__logo .admin-vip-logo-site {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.admin-vip-side__logo .admin-vip-logo-site:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.25));
}

.admin-vip-side__logo .admin-vip-logo-site img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* VIP hero */
.admin-vip-hero {
  position: relative;
  margin-bottom: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-vip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1535 0%, #0f0d1f 45%, #15102a 100%);
  z-index: 0;
}

.admin-vip-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 28px 32px 30px;
}

.admin-vip-hero--compact {
  margin-bottom: 20px;
}

.admin-vip-hero--compact::before {
  background: linear-gradient(145deg, #18152e 0%, #0f0d1a 100%);
}

.admin-vip-hero__inner--compact {
  align-items: center;
  padding: 18px 22px 20px;
  gap: 16px 24px;
}

.admin-page-hero__titles {
  flex: 1;
  min-width: min(100%, 280px);
}

.admin-vip-hero--compact .admin-vip-kicker {
  margin: 0 0 4px;
}

.admin-vip-hero--compact .admin-vip-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
  margin: 0 0 4px;
}

.admin-vip-hero--compact .admin-vip-title span {
  display: none;
}

.admin-page-hero__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}

.admin-vip-hero__shine {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.admin-vip-ribbon {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4b5a0;
}

.admin-vip-ribbon i {
  color: #d4af37;
  font-size: 14px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.admin-vip-tag {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #0c0b18;
  background: linear-gradient(135deg, #e8c76b, #b8860b);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.admin-vip-kicker {
  color: #a5b4fc;
}

.admin-vip-title {
  background: linear-gradient(135deg, #faf8f5 0%, #e8c76b 50%, #f5f0e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.9rem, 2.6vw, 2.35rem) !important;
  margin: 0 0 8px;
}

.admin-vip-title span {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: none;
  -webkit-text-fill-color: #94a3b8;
  color: #94a3b8;
  margin-top: 4px;
}

.admin-vip-lead {
  color: #9ca3af;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.admin-panel-hero__text {
  flex: 1;
  min-width: min(100%, 320px);
  max-width: 36rem;
}

.admin-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #a5b4fc;
}

.admin-panel-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 2.4vw, 2.1rem);
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.admin-panel-hero__lead {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
  max-width: 40rem;
}

.admin-panel-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 170px;
}

.btn-admin-logout,
.btn-admin-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-admin-logout {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-admin-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
}

.btn-admin-site {
  color: #0c0b18;
  background: linear-gradient(135deg, #f0d78c 0%, #d4af37 40%, #b8860b 100%);
  border: 1px solid #9a7b15;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-admin-site:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

/* Stat cards (VIP) */
.admin-stat-grid--vip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
}

.admin-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 12px 32px -8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(30%, -35%);
  opacity: 0.3;
  pointer-events: none;
}

.admin-stat-card--violet::before {
  background: #818cf8;
}
.admin-stat-card--amber::before {
  background: #fbbf24;
}
.admin-stat-card--emerald::before {
  background: #34d399;
}
.admin-stat-card--sky::before {
  background: #38bdf8;
}

.admin-stat-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.admin-stat-card--violet .admin-stat-card__icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.35);
}
.admin-stat-card--amber .admin-stat-card__icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 12px rgba(245, 158, 11, 0.35);
}
.admin-stat-card--emerald .admin-stat-card__icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.35);
}
.admin-stat-card--sky .admin-stat-card__icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.35);
}

.admin-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(232, 199, 107, 0.9), rgba(212, 175, 55, 0.2));
  opacity: 0.85;
  pointer-events: none;
}

.admin-stat-card__value {
  font-size: clamp(1.65rem, 2.2vw, 1.95rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.admin-stat-card__label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #a8a29e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Section cards (on VIP dark page — frosted light panels) */
.admin-surface {
  background: linear-gradient(180deg, #fefefe 0%, #f8f7fd 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 22px;
  padding: 0;
  margin-bottom: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 20px 40px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.admin-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 22px 26px 20px;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 100%);
  border-bottom: 1px solid #ede9fe;
}

.admin-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #1e1b4b;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  font-family: "Playfair Display", Georgia, serif;
}

.admin-section__title i {
  color: #7c3aed;
  font-size: 1rem;
  opacity: 0.9;
}

.admin-section__desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 42rem;
}

.admin-section__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #4c1d95;
  background: linear-gradient(135deg, #ede9fe, #e9d5ff);
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(76, 29, 149, 0.08);
}

.admin-section__badge--soft {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: none;
}

/* Empty */
.admin-empty {
  text-align: center;
  padding: 40px 24px 44px;
}

.admin-empty__art {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #10b981;
  background: linear-gradient(160deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 20px;
}

.admin-empty__art--slate {
  color: #64748b;
  background: linear-gradient(160deg, #f1f5f9, #e2e8f0);
  border-color: #cbd5e1;
}

.admin-empty__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
}

.admin-empty__text {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* Tables */
.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.admin-data-table thead th {
  text-align: left;
  padding: 14px 20px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5f0e6;
  background: linear-gradient(180deg, #211d45 0%, #1a1538 100%);
  border-bottom: 2px solid #b8860b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-data-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-data-table tbody tr {
  transition: background 0.12s ease;
}

.admin-data-table tbody tr:hover {
  background: #fafbfe;
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-th-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.admin-th-num,
.admin-td-num {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.admin-td-mono {
  font-size: 13px;
  color: #475569;
  word-break: break-all;
}

.admin-td-muted {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.admin-td-actions {
  text-align: right;
  white-space: nowrap;
}

/* User + pills */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4f46e5;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}

.admin-avatar--slate {
  color: #475569;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border-color: #cbd5e1;
}

.admin-user-cell__name {
  font-weight: 600;
  color: #0f172a;
}

.admin-inline-form {
  display: inline;
}

.btn-admin-approve,
.btn-admin-reject {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  margin-left: 4px;
}

.btn-admin-approve {
  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.btn-admin-approve:hover {
  filter: brightness(1.05);
}

.btn-admin-reject {
  color: #b91c1c;
  background: #fff;
  border: 1px solid #fecaca;
}
.btn-admin-reject:hover {
  background: #fef2f2;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.admin-pill--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.admin-pill--wait {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.admin-pill--no {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.admin-pill--admin {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.admin-pill--user {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.admin-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.admin-provider-pill i {
  font-size: 13px;
  color: #64748b;
}

.admin-writer-wrap {
  padding: 22px 26px 26px;
}

.admin-writer-form {
  display: grid;
  gap: 14px;
}

.admin-writer-field {
  display: grid;
  gap: 6px;
}

.admin-writer-field > span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.admin-writer-field input[type="text"],
.admin-writer-field input[type="file"],
.admin-writer-field textarea {
  width: 100%;
  border: 1px solid #dbe0ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
}

.admin-writer-field textarea {
  min-height: 130px;
  resize: vertical;
}

.admin-writer-field input[type="text"]:focus,
.admin-writer-field input[type="file"]:focus,
.admin-writer-field textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.admin-writer-btn {
  justify-self: start;
  margin-top: 2px;
}

.admin-count-badge {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 1000px) {
  .admin-stat-grid--vip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-vip-hero__inner {
    padding: 20px 18px 22px;
  }

  .admin-panel-hero__actions {
    width: 100%;
    min-width: 0;
  }

  .admin-stat-grid--vip {
    grid-template-columns: 1fr;
  }

  .admin-data-table--wide {
    min-width: 520px;
  }

  .admin-td-actions {
    white-space: normal;
  }

  .btn-admin-approve,
  .btn-admin-reject {
    margin: 2px 0;
  }
}

body.page-admin-panel .brand-block,
body.page-admin-panel .main-nav-row {
  display: none;
}

body.page-admin-panel .top-social-bar {
  min-height: var(--admin-social-h);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0f0d1a 0%, #25206e 50%, #0f0d1a 100%);
  box-shadow: inset 0 -1px 0 rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(30, 27, 55, 0.9);
}

body.page-admin-panel .top-social-bar .container {
  width: min(1320px, 96%);
  margin: 0 auto;
}

body.page-admin-panel .social-wrap {
  min-height: 38px;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
}

body.page-admin-panel .social-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 4px;
}

body.page-admin-panel .admin-empty__title {
  color: #1e1b4b;
  font-family: "Playfair Display", Georgia, serif;
}

body.page-admin-panel .admin-avatar,
body.page-admin-panel .admin-avatar--slate {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.signup-page-wrap {
  position: relative;
  padding: 26px 0 34px;
  background: radial-gradient(circle at 15% 25%, rgba(138, 172, 255, 0.2), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(106, 79, 240, 0.25), transparent 48%),
    linear-gradient(145deg, #f5f7ff 0%, #f1f2fb 55%, #eef1f8 100%);
}

.signup-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px 0;
}

.signup-decor {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(1px);
  z-index: 0;
}

.signup-decor-left {
  left: 4%;
  top: 9%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(83, 112, 255, 0.45));
  box-shadow: 0 14px 36px rgba(54, 74, 183, 0.22);
}

.signup-decor-right {
  right: 3%;
  bottom: 7%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(118, 75, 230, 0.45));
  box-shadow: 0 16px 40px rgba(77, 49, 156, 0.22);
}

.signup-card {
  position: relative;
  z-index: 1;
  width: min(540px, 95%);
  border-radius: 24px;
  padding: 30px 30px 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.92) 100%);
  border: 1px solid rgba(197, 203, 221, 0.7);
  box-shadow: 0 22px 48px rgba(36, 35, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform-style: preserve-3d;
  transform: perspective(1300px) rotateX(2deg) rotateY(-2deg);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.signup-card:hover {
  transform: perspective(1300px) rotateX(0deg) rotateY(0deg) translateY(-2px);
  box-shadow: 0 28px 54px rgba(36, 35, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.signup-close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d7dcec;
  background: #fff;
  color: #50556a;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.signup-card h1 {
  text-align: center;
  font-size: clamp(34px, 4.2vw, 45px);
  color: #181a40;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.signup-subtitle {
  margin-top: 8px;
  text-align: center;
  color: #667089;
  font-size: 14px;
}

.signup-options {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.signup-option-btn {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid #1f2430;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #13172c;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0 18px 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 8px 18px rgba(24, 32, 66, 0.08);
}

.signup-option-btn span:last-child {
  font-size: 22px;
}

.signup-option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(24, 32, 66, 0.12);
}

.signup-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.signup-option-icon.google {
  color: #db4437;
  background: rgba(219, 68, 55, 0.11);
}

.signup-option-icon.facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}

.signup-option-icon.email {
  color: #454b5f;
  background: rgba(69, 75, 95, 0.1);
}

.signup-email-wizard[hidden] {
  display: none !important;
}

.signup-email-wizard {
  margin-top: 16px;
}

.signup-wizard-step {
  display: none;
  gap: 10px;
}

.signup-wizard-step.is-active {
  display: grid;
}

.signup-wizard-step label {
  color: #3a425a;
  font-size: 14px;
  font-weight: 600;
}

.signup-wizard-step input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe0ee;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
}

.signup-wizard-next {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #25206e;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.signup-remember {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #22263b;
  font-size: 15px;
}

.signup-remember input {
  width: 18px;
  height: 18px;
  accent-color: #25206e;
}

.signup-switch {
  margin-top: 20px;
  text-align: center;
  color: #21263e;
  font-size: 20px;
}

.signup-switch a {
  color: #111735;
  text-underline-offset: 2px;
  font-weight: 600;
}

.signup-policy {
  margin-top: 24px;
  text-align: center;
  color: #5d667e;
  font-size: 13px;
  line-height: 1.6;
}

.signup-policy a {
  color: #2a3156;
}

.site-footer {
  border-top: 1px solid #e9ebf3;
  margin-top: 40px;
  background: #f7f8fc;
}

.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1.1fr;
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 13px;
  color: #5d6473;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-newsletter {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.footer-newsletter input {
  flex: 1;
  height: 38px;
  border: 1px solid #dce0ea;
  padding: 0 10px;
  font-size: 13px;
}

.footer-newsletter button {
  border: 0;
  background: #25206e;
  color: #fff;
  padding: 0 14px;
  font-size: 12px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #e3e7f0;
}

.footer-bottom-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom-inner p {
  color: #6b7280;
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d4d8e4;
  color: #25206e;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 900px) {
  .container {
    width: min(1100px, 94%);
  }

  .nav-mobile-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e5ef;
    background: #fff;
    color: #232323;
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
    cursor: pointer;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 12px;
    min-height: auto;
    overflow: visible;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a,
  .main-nav > .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 4px;
    background: #fff;
    white-space: normal;
  }

  .nav-item {
    flex: 1 1 auto;
  }

  .submenu {
    position: static;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 4px;
    display: none;
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .nav-item.is-open .submenu {
    display: block;
  }

  .submenu li a {
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 9px 0;
  }

  .main-nav-row {
    margin-bottom: 12px;
  }

  .brand-block {
    padding: 22px 0 18px;
  }

  .brand-logo img {
    width: 280px;
  }

  .hero-floating-icons {
    right: 10px;
    bottom: 16px;
  }

  .hero-slide img {
    min-height: 280px;
  }

  .hero-overlay h2 {
    font-size: clamp(22px, 6vw, 34px);
  }

  .hero-btn {
    padding: 9px 18px;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card-large img {
    min-height: 420px;
  }

  .explore-text {
    font-size: 24px;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-card h3 {
    font-size: 24px;
  }

  .story-card-footer {
    gap: 12px;
  }

  .story-sidebar-sticky {
    position: static;
    width: auto;
  }

  .follow-strip {
    justify-content: flex-start;
    gap: 14px 24px;
    padding: 10px 0;
    min-height: auto;
  }

  .signup-modal-dialog {
    width: min(560px, 95%);
    grid-template-columns: 1fr;
  }

  .signup-modal-banner {
    min-height: 140px;
    height: clamp(140px, 30vh, 300px);
  }

  .signup-modal-card {
    padding: 20px 18px 18px;
  }

  .signup-modal-switch {
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .shop-books {
    gap: 24px;
    flex-wrap: wrap;
  }

  .brand-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .press-grid {
    grid-template-columns: 1fr;
  }

  .press-card-tall img {
    height: 300px;
  }

  .scuba-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .signup-card {
    width: min(520px, 100%);
    padding: 24px 22px;
    transform: none;
  }

  .signup-card:hover {
    transform: none;
  }

  .signup-card h1 {
    font-size: clamp(28px, 6vw, 34px);
  }

  .signup-option-btn {
    min-height: 50px;
    font-size: 17px;
  }

  .signup-option-btn span:last-child {
    font-size: 16px;
  }

  .signup-remember,
  .signup-switch,
  .signup-policy {
    font-size: 14px;
  }

  .scuba-hero-banner h1 {
    font-size: 32px;
    letter-spacing: 6px;
  }

  .scuba-card img {
    height: 300px;
  }

  .shop-side-socials,
  .shop-floating-actions,
  .contact-floating-actions,
  .press-floating-actions,
  .scuba-floating-actions {
    display: none;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(1100px, 95.5%);
  }

  .top-social-bar {
    min-height: 36px;
  }

  .social-welcome {
    font-size: 10px;
    padding: 3px 10px;
    max-width: 48%;
  }

  .social-wrap--has-welcome {
    row-gap: 8px;
  }

  .social-nav {
    gap: 12px;
  }

  .social-nav a {
    font-size: 16px;
  }

  .main-nav {
    gap: 8px;
    padding-bottom: 10px;
  }

  .main-nav > a,
  .main-nav > .nav-item > a {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .submenu {
    margin-top: 5px;
  }

  .hero-slider-wrap {
    padding-top: 14px;
  }

  .hero-slide img {
    height: 68vw;
    min-height: 220px;
  }

  .hero-overlay {
    padding: 12px;
  }

  .hero-kicker,
  .hero-date {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .hero-overlay h2 {
    margin-top: 6px;
    font-size: clamp(19px, 6.2vw, 26px);
    line-height: 1.2;
  }

  .hero-btn {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 8px 14px;
  }

  .explore-card-large img,
  .explore-card img {
    min-height: 240px;
    height: 58vw;
  }

  .explore-overlay {
    padding: 14px;
  }

  .explore-text {
    font-size: 20px;
  }

  .story-layout-wrap {
    padding-top: 24px;
  }

  .signup-modal-dialog {
    margin: 14px auto;
    border-radius: 16px;
  }

  .signup-modal-banner {
    min-height: 120px;
    height: clamp(120px, 26vh, 240px);
  }

  .signup-modal-card h2 {
    font-size: clamp(26px, 7vw, 32px);
    margin-top: 10px;
  }

  .signup-modal-btn {
    min-height: 49px;
    padding-right: 10px;
    font-size: 14px;
  }

  .signup-modal-subtitle,
  .signup-modal-remember,
  .signup-modal-switch,
  .signup-modal-policy {
    font-size: 13px;
  }

  .email-auth-form input[type="text"],
  .email-auth-form input[type="email"],
  .email-auth-form input[type="password"],
  .email-auth-submit {
    min-height: 42px;
  }

  .story-meta {
    margin-bottom: 8px;
  }

  .story-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .story-card img {
    height: 68vw;
    min-height: 220px;
  }

  .story-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .story-date {
    text-align: center;
    font-size: 18px;
  }

  .story-date span {
    font-size: 34px;
  }

  .story-view-btn {
    text-align: center;
    padding: 11px 18px;
  }

  .shop-content h1,
  .contact-content h1,
  .press-content h1 {
    font-size: 34px;
  }

  .shop-books {
    margin-top: 22px;
    gap: 18px;
  }

  .book-card img {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .press-card img {
    height: 230px;
  }

  .press-card-tall img {
    height: 280px;
  }

  .scuba-page-wrap {
    padding-top: 6px;
  }

  .scuba-hero-banner {
    margin-bottom: 20px;
  }

  .scuba-hero-banner img {
    height: 240px;
  }

  .scuba-hero-banner h1 {
    font-size: 24px;
    letter-spacing: 3px;
    text-align: center;
    padding: 0 10px;
  }

  .scuba-card img {
    height: 240px;
  }

  .scuba-card h3 {
    font-size: 21px;
  }

  .scuba-date-chip {
    font-size: 9px;
    letter-spacing: 1.1px;
    padding: 7px 9px;
  }

  .follow-strip {
    gap: 8px 14px;
    justify-content: center;
  }

  .follow-strip a {
    font-size: 9px;
    letter-spacing: 0.9px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .signup-page-wrap {
    padding: 12px 0 20px;
  }

  .signup-hero {
    min-height: auto;
    padding: 8px 0 14px;
  }

  .signup-decor {
    width: 170px;
    height: 170px;
  }

  .signup-option-btn {
    padding-right: 12px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }
}

/* ——— User dashboard: Medium-style (3-column) ——— */
body.page-user-panel.page-medium-dashboard {
  background: #fff;
  color: #242424;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.page-user-panel.page-medium-dashboard .site-header.site-header--md-dashboard {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

body.page-user-panel.page-medium-dashboard .md-app-header__inner {
  max-width: 1192px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 57px;
}

body.page-user-panel.page-medium-dashboard .md-app-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #242424;
  flex-shrink: 0;
}

body.page-user-panel.page-medium-dashboard .md-app-header__logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

body.page-user-panel.page-medium-dashboard .md-app-header__logo-text {
  font-size: 22px;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.02em;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-app-header__search {
  flex: 1;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 14px 8px 12px;
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-app-header__search:focus-within {
  background: #fff;
  border-color: #e5e5e5;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-app-header__search-input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: #242424;
  outline: none;
}

body.page-user-panel.page-medium-dashboard .md-app-header__search-input::placeholder {
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-app-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

body.page-user-panel.page-medium-dashboard .md-app-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

body.page-user-panel.page-medium-dashboard .md-app-header__icon-btn:hover {
  color: #242424;
  background: #f2f2f2;
}

body.page-user-panel.page-medium-dashboard .md-app-header__icon-btn--muted {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

body.page-user-panel.page-medium-dashboard .md-app-header__avatar {
  display: block;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

body.page-user-panel.page-medium-dashboard .md-app-header__avatar-wrap {
  display: flex;
  margin-left: 2px;
}

body.page-user-panel.page-medium-dashboard .site-footer {
  display: none;
}

.md-dashboard {
  min-height: calc(100vh - 120px);
  padding-bottom: 48px;
}

.md-dashboard__grid {
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  gap: 32px 24px;
  align-items: start;
}

.md-rail--left {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
  border-right: 1px solid #f0f0f0;
  padding-right: 12px;
  min-height: 200px;
}

.md-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.2;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 2px;
}

.md-rail__link i {
  width: 1.1em;
  text-align: center;
  color: #8e8e8e;
  font-size: 18px;
}

.md-rail__link.is-active,
.md-rail__link:hover {
  color: #242424;
  background: #f2f2f2;
}

.md-rail__link.is-active i {
  color: #242424;
}

.md-rail__menu {
  display: grid;
  gap: 2px;
}

.md-rail__divider {
  height: 1px;
  background: #f0f0f0;
  margin: 12px 0 14px;
}

.md-rail__sublink {
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: none;
  margin-bottom: 10px;
}

.md-rail__sublink:hover {
  text-decoration: underline;
}

.md-rail__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8e8e8e;
  margin: 4px 0 8px 8px;
  font-weight: 600;
}

.md-rail__topics {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 0 4px;
}

.md-rail__topics li {
  margin: 0 0 4px 0;
}

.md-rail__topic-pill {
  display: block;
  font-size: 13px;
  color: #5c5c5c;
  line-height: 1.3;
  padding: 2px 0;
  cursor: default;
}

.md-rail__site {
  font-size: 13px;
  color: #6b6b6b;
  text-decoration: none;
  margin-top: auto;
  padding: 8px 8px 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.md-rail__site:hover {
  text-decoration: underline;
}

.md-rail--right {
  position: sticky;
  top: 72px;
  padding-top: 8px;
}

.md-side-block {
  margin-bottom: 28px;
}

.md-side-block__title {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
  margin: 0 0 12px 0;
  letter-spacing: 0.01em;
}

.md-staff {
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-staff__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.md-staff__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.md-staff__title {
  font-size: 13px;
  line-height: 1.35;
  color: #242424;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.md-staff__empty,
.md-follow__empty {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.md-topic-pill {
  display: inline-block;
  padding: 5px 12px 6px;
  border: 1px solid #d3d3d3;
  border-radius: 20px;
  font-size: 13px;
  color: #5c5c5c;
  background: #fff;
  line-height: 1;
  cursor: default;
  transition: border-color 0.12s, background 0.12s;
}

.md-topic-pill:hover {
  border-color: #8e8e8e;
  background: #fafafa;
}

.md-follow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-follow__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.md-follow__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.md-follow__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.md-follow__name {
  font-size: 14px;
  font-weight: 500;
  color: #242424;
}

.md-follow__bio {
  font-size: 12px;
  color: #6b6b6b;
}

.md-follow__btn {
  font-size: 12px;
  color: #6b6b6b;
  border: 1px solid #d3d3d3;
  border-radius: 20px;
  padding: 5px 12px 6px;
  flex-shrink: 0;
  cursor: default;
  line-height: 1;
  background: #fff;
}

.md-mini-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #8e8e8e;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.md-mini-footer a {
  color: #6b6b6b;
  text-decoration: none;
}

.md-mini-footer a:hover {
  text-decoration: underline;
}

.md-feed {
  min-width: 0;
  padding-top: 8px;
}

.md-feed-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
  padding: 0 0 0 2px;
}

.md-feed-tabs__tab {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  padding: 8px 0 14px;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.12s, border-color 0.12s;
}

.md-feed-tabs__tab.is-active {
  color: #242424;
  font-weight: 500;
  border-bottom-color: #242424;
}

.md-feed__leadin {
  font-size: 14px;
  color: #6b6b6b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.md-feed__leadin strong {
  color: #242424;
  font-weight: 600;
}

.md-feed__meta {
  color: #5c5c5c;
}

.md-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  background: #fff;
}

.md-profile-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.md-profile-card__meta {
  min-width: 0;
  flex: 1;
}

.md-profile-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #242424;
  line-height: 1.2;
}

.md-profile-card__email {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-compose {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
  padding-bottom: 24px;
}

.md-compose__kicker {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 10px 0;
}

.md-compose__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-compose__title {
  font-size: 20px;
  font-weight: 500;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  padding: 4px 0 10px;
  outline: none;
  color: #242424;
  font: inherit;
}

.md-compose__title::placeholder {
  color: #b3b3b3;
}

.md-compose__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #6b6b6b;
}

.md-compose__file-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.md-compose__file {
  max-width: 200px;
  font-size: 12px;
}

.md-compose__hint {
  font-size: 12px;
  color: #8e8e8e;
}

.md-compose__body {
  font-size: 16px;
  line-height: 1.6;
  border: 0;
  resize: vertical;
  min-height: 100px;
  font: inherit;
  color: #242424;
  padding: 4px 0;
  outline: none;
  background: #fafafa;
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
}

.md-compose__body::placeholder {
  color: #b3b3b3;
}

.md-compose__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.md-btn--dark {
  display: inline-block;
  background: #1a8917;
  color: #fff;
  border: 0;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px 9px;
  cursor: pointer;
  transition: background 0.12s, opacity 0.12s;
  font-family: inherit;
}

.md-btn--dark:hover {
  background: #0f7d0e;
}

.md-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.md-post-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 24px;
  border-bottom: 1px solid #f0f0f0;
}

.md-post-card--condensed {
  padding: 16px 0 20px;
}

.md-post-card__text {
  flex: 1;
  min-width: 0;
  order: 0;
}

.md-post-card__author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.md-post-card__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.md-post-card__name {
  color: #242424;
  font-weight: 500;
}

.md-post-card__in,
.md-post-card__pub {
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 400;
}

.md-post-card__headline {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.md-post-card__headline a {
  color: inherit;
  text-decoration: none;
}

.md-post-card__headline a:hover {
  text-decoration: underline;
}

.md-post-card__snippet {
  font-size: 16px;
  line-height: 1.4;
  color: #6b6b6b;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.md-post-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 8px;
}

.md-post-card__dot {
  user-select: none;
}

.md-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.2;
  margin-left: 6px;
}

.md-pill--soft {
  background: #f2f2f2;
  color: #5c5c5c;
}

.md-post-card__bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.md-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  border-radius: 4px;
  color: #6b6b6b;
  cursor: pointer;
  padding: 0;
}

.md-icon-btn:hover {
  color: #242424;
  background: #f2f2f2;
}

.md-icon-btn--danger:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.md-post-card__delete {
  margin: 0;
  display: inline;
  padding: 0;
  border: 0;
  background: none;
}

.md-post-card__thumb {
  flex-shrink: 0;
  width: 160px;
  height: 107px;
  border-radius: 2px;
  overflow: hidden;
  background: #f2f2f2;
  align-self: flex-start;
}

.md-post-card__thumb--placeholder {
  background: linear-gradient(135deg, #ececec, #e0e0e0);
  min-height: 80px;
  width: 120px;
  height: 80px;
}

.md-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.md-empty {
  font-size: 15px;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 0;
  padding: 8px 0 24px;
}

.md-empty a {
  color: #1a8917;
  text-decoration: underline;
}

body.page-user-panel.page-medium-dashboard .app-toast {
  z-index: 200;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .md-dashboard__grid {
    display: block;
  }

  .md-rail--left {
    position: sticky;
    top: 56px;
    z-index: 30;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 0 16px;
    padding: 4px 0 10px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }

  .md-rail--left .md-rail__link {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .md-rail--left .md-rail__link span {
    display: none;
  }

  .md-rail--left .md-rail__divider,
  .md-rail--left .md-rail__sublink,
  .md-rail--left .md-rail__label,
  .md-rail--left .md-rail__topics,
  .md-rail--left .md-rail__site {
    display: none;
  }

  .md-rail--right {
    position: static;
  }
}

@media (max-width: 800px) {
  .md-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .md-rail--right {
    position: static;
    order: 3;
  }

  .md-rail--left {
    order: 0;
  }

  .md-feed {
    order: 1;
  }

  .md-rail--right {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
  }

  .md-post-card {
    flex-direction: column-reverse;
  }

  .md-post-card__thumb,
  .md-post-card__thumb--placeholder {
    width: 100%;
    max-width: 100%;
    height: 180px;
  }

  body.page-user-panel.page-medium-dashboard .md-app-header__inner {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  body.page-user-panel.page-medium-dashboard .md-app-header__search {
    order: 3;
    max-width: none;
    width: 100%;
    margin-top: 4px;
  }
}

/* Medium-like polish + Write popup */
body.page-user-panel.page-medium-dashboard .md-app-header__write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 20px;
  cursor: pointer;
}

body.page-user-panel.page-medium-dashboard .md-app-header__write-btn:hover {
  background: #f2f2f2;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-dashboard__grid {
  grid-template-columns: 210px minmax(0, 1fr) 300px;
  gap: 26px;
  padding-top: 8px;
}

body.page-user-panel.page-medium-dashboard .md-rail--left {
  border-right: 1px solid #ececec;
  background: #fafafa;
  min-height: calc(100vh - 92px);
  border-radius: 12px;
  padding: 16px 12px 12px 10px;
  box-shadow: inset 0 0 0 1px #f3f3f3;
}

body.page-user-panel.page-medium-dashboard .md-feed {
  padding-top: 8px;
}

body.page-user-panel.page-medium-dashboard .md-feed-tabs {
  margin-bottom: 18px;
}

body.page-user-panel.page-medium-dashboard .md-post-card__headline {
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

body.page-user-panel.page-medium-dashboard .md-post-card__snippet {
  font-size: 24px;
  line-height: 1.35;
  color: #4b4b4b;
}

body.page-user-panel.page-medium-dashboard .md-post-card {
  padding: 20px 0 24px;
}

body.page-user-panel.page-medium-dashboard .md-post-card__thumb {
  width: 190px;
  height: 124px;
  border-radius: 8px;
}

body.page-user-panel.page-medium-dashboard .md-rail--right {
  border-left: 1px solid #ececec;
  padding-left: 18px;
}

body.page-user-panel.page-medium-dashboard .md-side-block {
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  margin-bottom: 16px;
}

body.page-user-panel.page-medium-dashboard .md-side-block__title {
  margin-bottom: 10px;
}

body.page-user-panel.page-medium-dashboard .md-write-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
}

body.page-user-panel.page-medium-dashboard .md-write-modal[hidden] {
  display: none !important;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

body.page-user-panel.page-medium-dashboard .md-write-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__close:hover {
  background: #f2f2f2;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__form {
  display: grid;
  gap: 12px;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__field {
  display: grid;
  gap: 6px;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__field > span {
  color: #4b4b4b;
  font-size: 13px;
  font-weight: 600;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__field input[type="text"],
body.page-user-panel.page-medium-dashboard .md-write-modal__field input[type="file"],
body.page-user-panel.page-medium-dashboard .md-write-modal__field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #242424;
  background: #fff;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__field textarea {
  min-height: 180px;
  resize: vertical;
}

body.page-user-panel.page-medium-dashboard .md-write-modal__field input:focus,
body.page-user-panel.page-medium-dashboard .md-write-modal__field textarea:focus {
  outline: none;
  border-color: #1a8917;
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.13);
}

body.page-user-panel.page-medium-dashboard .md-write-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

body.page-user-panel.page-medium-dashboard.md-modal-open {
  overflow: hidden;
}

/* ——— User /stats page ——— */
body.page-user-panel.page-medium-dashboard .md-page-stats .md-feed--stats {
  max-width: 100%;
}

body.page-user-panel.page-medium-dashboard .md-page-stats .md-feed-tabs {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

body.page-user-panel.page-medium-dashboard .md-page-stats .md-feed-tabs__tab.is-active {
  pointer-events: none;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero {
  margin-bottom: 24px;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero__av {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #ececec;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero__title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  color: #242424;
  letter-spacing: -0.02em;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero__sub {
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-stats-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.5;
  color: #4b4b4b;
}

body.page-user-panel.page-medium-dashboard .md-stats-kpis {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.page-user-panel.page-medium-dashboard .md-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  min-height: 120px;
}

body.page-user-panel.page-medium-dashboard .md-stat-tile__icon {
  color: #6b6b6b;
  font-size: 16px;
  margin-bottom: 8px;
}

body.page-user-panel.page-medium-dashboard .md-stat-tile__val {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.page-user-panel.page-medium-dashboard .md-stat-tile__suffix {
  font-size: 15px;
  font-weight: 500;
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-stat-tile__lab {
  margin-top: 6px;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.3;
}

body.page-user-panel.page-medium-dashboard .md-stats-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

body.page-user-panel.page-medium-dashboard .md-stats-panel {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 18px 18px 16px;
}

body.page-user-panel.page-medium-dashboard .md-stats-panel__h {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-stats-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-user-panel.page-medium-dashboard .md-stats-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efefef;
}

body.page-user-panel.page-medium-dashboard .md-stats-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.page-user-panel.page-medium-dashboard .md-stats-facts__k {
  color: #6b6b6b;
  flex-shrink: 0;
}

body.page-user-panel.page-medium-dashboard .md-stats-facts__v {
  color: #111;
  font-weight: 500;
  text-align: right;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: st;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px 12px;
  align-items: start;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #efefef;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank li:last-child {
  border-bottom: 0;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank__i {
  font-size: 12px;
  font-weight: 700;
  color: #8e8e8e;
  line-height: 1.4;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank__t {
  color: #111;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-user-panel.page-medium-dashboard .md-stats-rank__w {
  color: #6b6b6b;
  font-size: 12px;
  white-space: nowrap;
  align-self: center;
}

body.page-user-panel.page-medium-dashboard .md-stats-empty {
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.5;
}

body.page-user-panel.page-medium-dashboard .md-stats-empty a {
  color: #1a8917;
  font-weight: 500;
  text-decoration: underline;
}

body.page-user-panel.page-medium-dashboard .md-stats-aside__p {
  font-size: 14px;
  line-height: 1.5;
  color: #4b4b4b;
  margin: 0 0 12px;
}

body.page-user-panel.page-medium-dashboard .md-stats-aside__btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1a8917;
  border-radius: 99px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background 0.12s, opacity 0.12s;
}

body.page-user-panel.page-medium-dashboard .md-stats-aside__btn:hover {
  background: #0f7d0e;
  color: #fff;
}

body.page-user-panel.page-medium-dashboard .md-stats-aside__link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
  text-decoration: none;
}

body.page-user-panel.page-medium-dashboard .md-stats-aside__link:hover {
  color: #111;
  text-decoration: underline;
}

body.page-user-panel.page-medium-dashboard .md-stats-tips {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 13px;
  line-height: 1.55;
  color: #4b4b4b;
}

body.page-user-panel.page-medium-dashboard .md-page-stats .md-rail--right .md-side-block {
  text-align: left;
}

/* ——— User /library page ——— */
body.page-user-panel.page-medium-dashboard .md-page-library .md-feed--library {
  max-width: 100%;
}

body.page-user-panel.page-medium-dashboard .md-lib-hero {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin-bottom: 16px;
}

body.page-user-panel.page-medium-dashboard .md-lib-hero__title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  color: #111;
  letter-spacing: -0.02em;
}

body.page-user-panel.page-medium-dashboard .md-lib-hero__lead {
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.45;
}

body.page-user-panel.page-medium-dashboard .md-lib-hero__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.page-user-panel.page-medium-dashboard .md-lib-section {
  margin-bottom: 22px;
}

body.page-user-panel.page-medium-dashboard .md-lib-section__head h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-lib-saved-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.page-user-panel.page-medium-dashboard .md-lib-mini-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  padding: 12px 12px 10px;
}

body.page-user-panel.page-medium-dashboard .md-lib-mini-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #111;
  line-height: 1.3;
}

body.page-user-panel.page-medium-dashboard .md-lib-mini-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.4;
}

body.page-user-panel.page-medium-dashboard .md-lib-mini-card span {
  font-size: 12px;
  color: #8e8e8e;
}

/* ——— User /profile page ——— */
body.page-user-panel.page-medium-dashboard .md-page-profile .md-feed--profile {
  max-width: 100%;
}

body.page-user-panel.page-medium-dashboard .md-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #fff;
}

body.page-user-panel.page-medium-dashboard .md-profile-hero__avatar {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e8e8e8;
}

body.page-user-panel.page-medium-dashboard .md-profile-hero__name {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: #111;
  letter-spacing: -0.02em;
}

body.page-user-panel.page-medium-dashboard .md-profile-hero__email {
  margin: 6px 0 8px;
  color: #6b6b6b;
  font-size: 14px;
}

body.page-user-panel.page-medium-dashboard .md-profile-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.page-user-panel.page-medium-dashboard .md-profile-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

body.page-user-panel.page-medium-dashboard .md-profile-kpi {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

body.page-user-panel.page-medium-dashboard .md-profile-kpi__v {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

body.page-user-panel.page-medium-dashboard .md-profile-kpi__k {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-profile-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.page-user-panel.page-medium-dashboard .md-profile-panel {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 16px;
}

body.page-user-panel.page-medium-dashboard .md-profile-panel__h {
  margin: 0 0 10px;
  font-size: 15px;
  color: #242424;
}

body.page-user-panel.page-medium-dashboard .md-profile-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-user-panel.page-medium-dashboard .md-profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}

body.page-user-panel.page-medium-dashboard .md-profile-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.page-user-panel.page-medium-dashboard .md-profile-list li span {
  color: #6b6b6b;
}

body.page-user-panel.page-medium-dashboard .md-profile-list li strong {
  color: #111;
  text-align: right;
  font-weight: 600;
}

body.page-user-panel.page-medium-dashboard .md-profile-aside__muted {
  margin: 0 0 8px;
  color: #6b6b6b;
  font-size: 13px;
}

body.page-user-panel.page-medium-dashboard .md-profile-aside__link {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #6b6b6b;
  text-decoration: none;
}

body.page-user-panel.page-medium-dashboard .md-profile-aside__link:hover {
  color: #111;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  body.page-user-panel.page-medium-dashboard .md-stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-user-panel.page-medium-dashboard .md-stats-subgrid {
    grid-template-columns: 1fr;
  }

  body.page-user-panel.page-medium-dashboard .md-profile-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-user-panel.page-medium-dashboard .md-profile-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body.page-user-panel.page-medium-dashboard .md-stats-kpis {
    grid-template-columns: 1fr;
  }

  body.page-user-panel.page-medium-dashboard .md-stats-rank__w {
    white-space: normal;
  }

  body.page-user-panel.page-medium-dashboard .md-profile-hero {
    align-items: flex-start;
  }

  body.page-user-panel.page-medium-dashboard .md-profile-hero__name {
    font-size: 24px;
  }

  body.page-user-panel.page-medium-dashboard .md-profile-kpis {
    grid-template-columns: 1fr;
  }

  body.page-user-panel.page-medium-dashboard .md-lib-saved-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1300px) {
  body.page-user-panel.page-medium-dashboard .md-post-card__headline {
    font-size: 34px;
  }

  body.page-user-panel.page-medium-dashboard .md-post-card__snippet {
    font-size: 21px;
  }
}

/* Desktop lock: clean fixed side rails (no unwanted gaps) */
@media (min-width: 1100px) {
  body.page-user-panel.page-medium-dashboard .md-dashboard {
    padding-bottom: 20px;
  }

  body.page-user-panel.page-medium-dashboard .md-dashboard__grid {
    max-width: 1380px;
    padding: 0;
    gap: 0;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
  }

  body.page-user-panel.page-medium-dashboard .md-rail--left {
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
    border-right: 1px solid #ececec;
    border-radius: 0;
    box-shadow: none;
    background: #fbfbfb;
    margin: 0;
    padding: 18px 12px 18px 12px;
  }

  body.page-user-panel.page-medium-dashboard .md-feed {
    padding: 18px 26px 0 26px;
    min-width: 0;
  }

  body.page-user-panel.page-medium-dashboard .md-rail--right {
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
    border-left: 1px solid #ececec;
    padding: 18px 18px 10px 18px;
    margin: 0;
  }

  body.page-user-panel.page-medium-dashboard .md-side-block {
    border-radius: 10px;
    margin-bottom: 12px;
  }
}
