/* ============================================
   MyPloxora - Clean Text-First Design System
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #FFFFFF;
  color: #000000;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: 1rem;
  color: #000000;
  line-height: 1.7;
}

a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.top-nav {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.nav-search {
  flex: 1;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #000000;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #000000;
}

.search-input::placeholder {
  color: #999999;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: #FF0000;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #CC0000;
  opacity: 1;
}

.btn-outline {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #E5E5E5;
}

.btn-outline:hover {
  border-color: #000000;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #E5E5E5;
}

/* ============================================
   MAIN LAYOUT - THREE COLUMNS
   ============================================ */
.main-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 2rem;
  align-items: start;
  overflow-x: hidden;
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */
.left-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-section {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #000000;
}

.topic-list,
.creator-list {
  list-style: none;
}

.topic-item,
.creator-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #E5E5E5;
}

.topic-item:last-child,
.creator-item:last-child {
  border-bottom: none;
}

.topic-item a,
.creator-item a {
  color: #000000;
  font-size: 0.9rem;
  display: block;
}

.topic-item a:hover,
.creator-item a:hover {
  color: #FF0000;
  opacity: 1;
}

.topic-count {
  font-size: 0.8rem;
  color: #666666;
  margin-left: 0.5rem;
}

/* ============================================
   CENTER CONTENT FEED
   ============================================ */
.content-feed {
  min-height: 100vh;
  min-width: 0;
}

.feed-header {
  margin-bottom: 2rem;
}

.feed-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.feed-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #E5E5E5;
  margin-top: 1.5rem;
}

.feed-tab {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.feed-tab.active {
  color: #000000;
  border-bottom-color: #FF0000;
}

.feed-tab:hover {
  color: #000000;
}

/* ============================================
   CONTENT CARD - CLEAN DESIGN
   ============================================ */
.content-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.content-card:hover {
  border-color: #CCCCCC;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E5E5E5;
}

.card-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.card-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000;
  display: block;
  margin-bottom: 0.2rem;
}

.card-info {
  font-size: 0.85rem;
  color: #666666;
}

.card-topic {
  color: #FF0000;
  font-weight: 500;
  margin-right: 0.5rem;
}

.card-time {
  color: #999999;
}

.card-follow {
  margin-left: auto;
}

.btn-follow {
  background: #FF0000;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-follow:hover {
  background: #CC0000;
}

.btn-follow.following {
  background: #FFFFFF;
  color: #FF0000;
  border: 1px solid #FF0000;
}

.btn-follow.following:hover {
  background: #FFF5F5;
}

.card-content {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.card-title:hover {
  color: #FF0000;
}

.card-body {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E5E5;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #666666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.action-btn:hover {
  color: #000000;
}

.action-btn.active {
  color: #FF0000;
}

.action-icon {
  font-size: 1.1rem;
}

.btn-gift {
  margin-left: auto;
  background: #FF0000;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.btn-gift:hover {
  background: #CC0000;
  color: #FFFFFF;
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.right-sidebar {
  position: sticky;
  top: 90px;
}

.featured-creators {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.featured-creators h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.featured-creator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #E5E5E5;
}

.featured-creator:last-child {
  border-bottom: none;
}

.featured-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E5E5E5;
}

.featured-info {
  flex: 1;
}

.featured-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  color: #000000;
}

.featured-followers {
  font-size: 0.8rem;
  color: #666666;
}

.wallet-summary {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.wallet-summary h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.wallet-balance {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.wallet-label {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 1rem;
}

.wallet-actions {
  display: flex;
  gap: 0.8rem;
}

.wallet-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */
.auth-container {
  max-width: 450px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.auth-box {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #000000;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #000000;
}

.form-input::placeholder {
  color: #999999;
}

.form-input.error {
  border-color: #FF0000;
}

.form-error {
  color: #FF0000;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: #333333;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E5E5;
}

.auth-footer a {
  color: #FF0000;
  font-weight: 500;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E5E5E5;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-username {
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.profile-bio {
  color: #333333;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
}

.stat-label {
  font-size: 0.85rem;
  color: #666666;
}

.profile-actions {
  display: flex;
  gap: 1rem;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.dashboard-sidebar {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.dashboard-nav {
  list-style: none;
}

.dashboard-nav-item {
  margin-bottom: 0.5rem;
}

.dashboard-nav-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #333333;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dashboard-nav-link:hover {
  background: #F5F5F5;
  color: #000000;
  opacity: 1;
}

.dashboard-nav-link.active {
  background: #000000;
  color: #FFFFFF;
}

.dashboard-content {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E5E5;
}

.dashboard-header h1 {
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
}

.stat-card-label {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.data-table th {
  background: #F9F9F9;
  border-bottom: 1px solid #E5E5E5;
  padding: 1rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #E5E5E5;
  font-size: 0.9rem;
  color: #333333;
}

.data-table tr:hover {
  background: #FAFAFA;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #FFFFFF;
  border-radius: 4px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #F5F5F5;
  color: #000000;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #E5E5E5;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   GIFT MODAL
   ============================================ */
.gift-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gift-option {
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gift-option:hover {
  border-color: #FF0000;
  background: #FFF5F5;
}

.gift-option.selected {
  border-color: #FF0000;
  background: #FFF5F5;
}

.gift-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.gift-name {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.3rem;
}

.gift-amount {
  color: #FF0000;
  font-weight: 600;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success {
  background: #F0FFF4;
  color: #22543D;
  border: 1px solid #9AE6B4;
}

.alert-error {
  background: #FFF5F5;
  color: #742A2A;
  border: 1px solid #FC8181;
}

.alert-info {
  background: #EBF8FF;
  color: #2C5282;
  border: 1px solid #90CDF4;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E5E5E5;
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 200px 1fr 280px;
    gap: 1.5rem;
  }

  .dashboard-container {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nav-search {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .main-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .gift-options {
    grid-template-columns: 1fr;
  }

  /* ── Content width containment ── */
  .content-card,
  .content-feed {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Card header: prevent flex blowout ── */
  .card-header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .card-meta {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .card-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }

  /* ── Card actions: wrap on small screens ── */
  .card-actions {
    gap: 0.6rem;
  }

  /* ── Story/question/confession h1 ── */
  .content-card h1 {
    font-size: 1.4rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* ── Titles and body text ── */
  .card-title,
  .card-body {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* ── All images contained ── */
  .content-card img,
  .content-feed img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .card-follow {
    width: 100%;
    margin-top: 0.5rem;
  }

  .btn-follow {
    width: 100%;
  }

  .card-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .btn-gift {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .content-card {
    padding: 0.75rem;
  }

  .content-card h1 {
    font-size: 1.2rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .main-container {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #666666; }
.text-red { color: #FF0000; }
.text-bold { font-weight: 600; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.w-full { width: 100%; }

/* ============================================
   GIFT BADGE SYSTEM
   ============================================ */

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: help;
}

.user-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-name {
    white-space: nowrap;
}

.badge-desc {
    display: none;
}

/* Badge Tiers */
.badge-legendary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 2px solid #FFD700;
}

.badge-diamond {
    background: linear-gradient(135deg, #B9F2FF 0%, #89CFF0 100%);
    color: #000;
    border: 2px solid #89CFF0;
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #000;
    border: 2px solid #FFD700;
}

.badge-silver {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    color: #000;
    border: 2px solid #C0C0C0;
}

.badge-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #FFF;
    border: 2px solid #CD7F32;
}

.badge-default {
    background: #F0F0F0;
    color: #333;
    border: 2px solid #DDD;
}

/* Gift Milestones */
.gift-milestones {
    background: #FFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.milestone-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F5F5F5;
}

.milestone-item:last-child {
    border-bottom: none;
}

.milestone-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.milestone-info {
    flex: 1;
}

.milestone-name {
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25rem;
}

.milestone-progress {
    font-size: 0.85rem;
    color: #666;
}

.milestone-bar {
    height: 6px;
    background: #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.milestone-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF0000 0%, #FF6B6B 100%);
    transition: width 0.3s ease;
}

.milestone-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.milestone-completed {
    background: #D4EDDA;
    color: #155724;
}

.milestone-in-progress {
    background: #FFF3CD;
    color: #856404;
}

.milestone-locked {
    background: #F8D7DA;
    color: #721C24;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .user-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .badge-icon {
        font-size: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    width: 100%;
    background: #111111;
    color: #CCCCCC;
    margin-top: 3rem;
}

.footer-container {
    width: 100%;
    padding: 3rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: #999999;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #999999;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #FF0000;
    opacity: 1;
}

.footer-copyright {
    grid-column: 1 / -1;
    border-top: 1px solid #222222;
    padding-top: 1.25rem;
    text-align: center;
    color: #666666;
    font-size: 0.8rem;
}

.footer-copyright p {
    color: #666666;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 2rem 1rem 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem 1rem;
    }
}

/* ============================================
   FEATURED IMAGES
   ============================================ */

/* Card feed image (index, explore, topic, hashtag) */
.card-featured-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.6rem 0 0.75rem;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* Profile card image */
.pf-card-featured-img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* Full post page image (story / question / confession) */
.post-featured-img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* ============================================
   FOOTER AD STRIP
   ============================================ */
.footer-ad-strip {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    text-align: center;
}

.footer-ad-label {
    font-size: 0.65rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.footer-ad-link {
    display: inline-block;
    line-height: 0;
}

.footer-ad-img {
    max-width: 100%;
    width: auto;
    max-height: 90px;
    border-radius: 4px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.footer-ad-img:hover {
    opacity: 0.88;
}
