/* ========================================
   RedChef — Royal Fan Page Theme
   Shared CSS variables for Admin compatibility
   ======================================== */

:root {
  --red: #D42B2B;
  --red-dark: #A82020;
  --copper: #C76B3A;
  --copper-light: #E08A5A;
  --gold: #F5C518;
  --gold-dark: #D4A800;
  --black: #1A1A1A;
  --black-light: #2A2A2A;
  --white: #FFF8F0;
  --gray: #888;
  --gray-light: #DDD;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);

  /* Theme-specific */
  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.3);
  --max-feed: 600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== TOP NAV ========== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-icon { font-size: 1.5rem; line-height: 1; }

.nav-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-name span { color: var(--red); }

.nav-admin-link {
  margin-left: auto;
  text-decoration: none;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-admin-link:hover {
  color: var(--gold);
  background: rgba(245, 197, 24, 0.1);
}

/* ========== COVER BANNER ========== */

.cover-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #C76B3A 0%, #D42B2B 40%, #A82020 100%);
  position: relative;
  overflow: hidden;
}

.cover-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245,197,24,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.03) 20px,
      rgba(255,255,255,0.03) 40px
    );
  pointer-events: none;
}

/* ========== PROFILE HEADER ========== */

.profile-header {
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  position: relative;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--copper));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
  margin-top: -48px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.profile-info { margin-bottom: 12px; }

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.profile-handle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text);
}

.profile-stats {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stat strong { color: var(--text); font-weight: 700; }

.profile-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 15px rgba(245,197,24,0.35);
  line-height: 1;
}

.btn-subscribe:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(245,197,24,0.5);
}

.btn-subscribe:active {
  transform: scale(0.98);
}

.btn-subscribe-icon { font-size: 1.1rem; }

.btn-subscribe-per {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}

.btn-subscribed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  background: white;
  color: var(--text-muted);
  line-height: 1;
}

.btn-member-badge {
  color: var(--gold-dark);
  font-weight: 700;
}

.profile-benefits {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ========== TABS ========== */

.tabs-bar {
  max-width: var(--max-feed);
  margin: 0 auto;
  display: flex;
  border-bottom: 2px solid var(--border);
  padding: 0 1.5rem;
}

.tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab:hover { color: var(--text); }

.tab-active {
  color: var(--red);
}

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

.tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== FEED ========== */

.feed {
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== POST CARD ========== */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-card);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.post-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--copper));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.post-header-info {
  flex: 1;
  min-width: 0;
}

.post-header-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-header-name .verified-badge {
  width: 16px;
  height: 16px;
  font-size: 0.5rem;
}

.post-header-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.post-caption {
  padding: 10px 16px;
}

.post-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.post-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== MEDIA ========== */

.post-media {
  position: relative;
  margin: 0;
  background: #000;
}

.post-media img,
.post-media video {
  width: 100%;
  display: block;
}

.post-media img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-media video {
  max-height: 70vh;
  background: #000;
}

/* Locked overlay */
.post-media-locked {
  position: relative;
  overflow: hidden;
}

.post-media-locked .post-media-blur {
  filter: blur(30px);
  transform: scale(1.15);
  pointer-events: none;
  user-select: none;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  gap: 8px;
  padding: 1.5rem;
  text-align: center;
}

.post-locked-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.post-locked-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.post-locked-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  margin-top: 4px;
}

.post-locked-btn:hover {
  transform: scale(1.05);
}

.post-locked-sub {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: white;
  transition: all 0.2s;
  margin-top: 4px;
}

.post-locked-sub:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ========== POST ACTIONS ========== */

.post-actions {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.15s;
}

.action-btn:hover {
  background: var(--border-light);
  color: var(--red);
}

.action-btn .action-icon { font-size: 1rem; line-height: 1; }

.action-btn.active {
  color: var(--red);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ========== LINKED POSTS ========== */

.linked-posts {
  padding: 8px 16px 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.linked-posts-label {
  font-weight: 600;
}

.linked-post-link {
  color: var(--copper);
  text-decoration: none;
  transition: color 0.2s;
}

.linked-post-link:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ========== COMMENTS ========== */

.comments-section {
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  background: rgba(0,0,0,0.1);
}

.comments-loading {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px;
}

.comment {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  margin: 2px 0;
  word-wrap: break-word;
}

.comment-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  align-items: center;
}

.comment-reply-link {
  color: var(--copper);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.comment-empty, .comment-error {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
  font-style: italic;
}

.comment-login-msg {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px;
}

.comment-login-msg a {
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.comment-login-msg a:hover {
  text-decoration: underline;
}

.comment-form, .comment-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: var(--copper);
}

/* ========== LINKS MODAL (admin) ========== */

.links-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.links-item:hover {
  background: rgba(255,255,255,0.03);
}

.links-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* ========== SUBSCRIBE MODAL ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalSlide 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--border-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

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

.modal-subtitle strong {
  color: var(--copper);
}

.modal-form-group {
  margin-bottom: 1rem;
}

.modal-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: var(--copper);
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.btn-subscribe-modal {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1.05rem;
}

/* ========== PROCESSING OVERLAY ========== */

.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.processing-spinner {
  font-size: 3.5rem;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.processing-text {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

/* ========== TOAST ========== */

.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--black-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.4s ease;
  max-width: 90vw;
  pointer-events: auto;
  color: white;
}

.toast-icon { font-size: 1.4rem; }

.toast-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-text .amount {
  color: var(--gold);
  font-weight: 900;
}

/* ========== EMPTY STATE ========== */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p {
  font-size: 1rem;
}

/* ========== FOOTER ========== */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  max-width: var(--max-feed);
  margin: 0 auto;
}

.site-footer .disclaimer {
  font-style: italic;
  margin-top: 4px;
  opacity: 0.7;
}

/* ========== ANIMATIONS ========== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* ========== MEDIA GRID VIEW ========== */

.feed-media {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 !important;
}

.media-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.media-grid-item img,
.media-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-grid-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
}

.media-grid-item:hover .media-grid-info {
  opacity: 1;
}

.media-grid-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-grid-date {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}

.media-grid-locked {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-grid-blur {
  filter: blur(20px);
  transform: scale(1.1);
  width: 100%;
  height: 100%;
}

.media-grid-blur img,
.media-grid-blur video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  font-size: 2rem;
}

/* ========== AUTH BAR (logged-in state in nav) ========== */

.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--red);
  color: white;
  line-height: 1;
}

.nav-auth-btn:hover {
  background: var(--red-dark);
}

.nav-auth-btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.nav-auth-btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-user-email {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-user-badge-admin {
  background: rgba(212,43,43,0.15);
  color: var(--red);
}

.nav-user-badge-paid {
  background: rgba(245,197,24,0.15);
  color: var(--gold-dark);
}

/* ========== FILTER BAR ========== */

.filter-bar {
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 12px 1.5rem 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--copper);
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: var(--copper);
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--red);
  color: white;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: var(--red-dark);
}

/* ========== AUTH MODALS ========== */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.auth-modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalSlide 0.3s ease;
}

.auth-modal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.auth-modal .auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal .form-group {
  margin-bottom: 1rem;
}

.auth-modal .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.auth-modal .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.auth-modal .form-group input:focus {
  outline: none;
  border-color: var(--copper);
}

.auth-modal .btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.auth-modal .btn-primary:hover {
  background: var(--red-dark);
}

.auth-modal .auth-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
  text-align: center;
}

.auth-modal .auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-modal .auth-switch a {
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-modal .auth-switch a:hover {
  text-decoration: underline;
}

.auth-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--border-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}

.auth-modal .modal-close:hover {
  background: var(--border);
  color: var(--text);
}

/* ========== PAYWALL BANNER ========== */

.paywall-banner {
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.paywall-card {
  background: linear-gradient(135deg, var(--black-light), #222);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.paywall-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.paywall-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.btn-unlock {
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 15px rgba(245,197,24,0.35);
  transition: all 0.2s;
}

.btn-unlock:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(245,197,24,0.5);
}

.btn-unlock:active {
  transform: scale(0.98);
}

/* ========== RESPONSIVE FOR NEW ELEMENTS ========== */

@media (max-width: 640px) {
  .filter-bar {
    padding: 12px 1rem 0;
    gap: 6px;
  }
  .filter-select, .filter-input {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .nav-user-email {
    max-width: 80px;
  }
  .nav-auth-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}

/* ========== RESPONSIVE (original) ========== */

@media (max-width: 640px) {
  .cover-banner { height: 140px; }

  .profile-header { padding: 0 1rem 1rem; }
  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 2.2rem;
    margin-top: -36px;
  }
  .profile-name { font-size: 1.2rem; }
  .profile-stats { gap: 12px; font-size: 0.8rem; }
  .btn-subscribe { padding: 10px 20px; font-size: 0.9rem; }
  .btn-subscribed { padding: 10px 18px; font-size: 0.85rem; }
  .profile-benefits { font-size: 0.75rem; }

  .tabs-bar { padding: 0 1rem; }
  .feed { padding: 0.75rem 1rem 2rem; gap: 0.75rem; }
  .post-header { padding: 12px 12px 0; }
  .post-caption { padding: 8px 12px; }
  .post-actions { padding: 6px 8px; }

  .modal { padding: 1.5rem; margin: 1rem; }
  .modal-form-row { gap: 8px; }

  .toast { padding: 12px 18px; font-size: 0.85rem; }
}
