/* ============================================
   TIRED.COM.NG — Premium Dark Amber Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary:   #080810;
  --bg-secondary: #0f0f1a;
  --bg-card:      #13131f;
  --bg-card-hover: #181828;
  --bg-glass:     rgba(19, 19, 31, 0.7);

  --amber:        #f5a623;
  --amber-glow:   #f39c12;
  --amber-deep:   #e67e22;
  --amber-soft:   rgba(245, 166, 35, 0.15);
  --amber-border: rgba(245, 166, 35, 0.25);

  --text-primary: #f0eff8;
  --text-secondary: #9896b0;
  --text-muted:   #5a5870;

  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(245, 166, 35, 0.3);

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
  --shadow-amber: 0 0 30px rgba(245, 166, 35, 0.2);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow effect */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(243,156,18,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(243,156,18,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Header / Navbar ---- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-badge {
  background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
  color: #080810;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.45);
}

.logo-subtag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.15rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

nav a.nav-cta {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

nav a.nav-cta:hover {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}

/* ---- Notifications ---- */
.nav-notif-wrapper {
  position: relative;
  display: inline-block;
}

.nav-bell-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.nav-bell-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-color: var(--amber-border);
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(231,76,60,0.6);
}

.notif-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 330px;
  background: var(--bg-card);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  z-index: 300;
  overflow: hidden;
  animation: fade-in 0.2s ease forwards;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.notif-header h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.notif-item:hover {
  background: var(--bg-card-hover);
}

.notif-item.unread {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
}

.notif-item .notif-msg {
  color: var(--text-primary);
  line-height: 1.4;
}

.notif-item .notif-time {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ---- Layout ---- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245,166,35,0.02) 0%, transparent 60%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-clickable {
  cursor: pointer;
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- Hero Section ---- */
.hero-card {
  background: linear-gradient(135deg, rgba(22, 22, 38, 0.9) 0%, rgba(14, 14, 25, 0.95) 100%);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #f5a623 0%, #ffc107 50%, #e67e22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-stat-item span {
  color: var(--amber);
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 16, 0.95);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-desc {
  max-width: 500px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--amber);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.btn-ghost:hover {
  background: var(--amber-soft);
  box-shadow: none;
}

.btn-danger {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}

.btn-danger:hover {
  background: rgba(231,76,60,0.25);
  box-shadow: 0 4px 16px rgba(231,76,60,0.2);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-wide { width: 100%; }
.btn-loading { pointer-events: none; opacity: 0.7; }

/* ---- Form Inputs ---- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--amber-border);
  background: rgba(245,166,35,0.04);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* ---- Tags ---- */
.tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.tag:hover {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-soft);
}

.tag.active,
.tag.tag-active {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
  font-weight: 600;
}

/* ---- Meta / Alias ---- */
.meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.alias {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--amber);
  font-size: 0.85rem;
}

.alias::before {
  content: '👤';
  font-size: 0.75rem;
}

.meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ---- Post Card ---- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  transition: var(--transition);
}

.post-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card:hover::after {
  background: var(--amber);
}

.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.stat:hover { color: var(--amber); }

/* ---- Page Headers ---- */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Tag Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ---- Floating Action Button ---- */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,166,35,0.45), 0 2px 8px rgba(0,0,0,0.4);
  transition: var(--transition);
  z-index: 100;
}

.fab:hover {
  background: var(--amber-deep);
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 6px 28px rgba(245,166,35,0.55);
}

/* ---- Auth Page ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

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

.auth-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.03em;
}

.auth-logo-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 1.75rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 2rem);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ---- Comment Thread ---- */
.comment {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  animation: fade-in 0.3s ease;
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.3rem;
}

/* ---- Media Preview ---- */
.media-wrapper {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

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

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ---- Loading Spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-center {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

/* ---- Alerts / Toast ---- */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.4rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 500;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.toast-success { border-color: rgba(46,213,115,0.4); color: #2ed573; }
.toast.toast-error   { border-color: rgba(231,76,60,0.4);  color: #e74c3c; }
.toast.toast-amber   { border-color: var(--amber-border); color: var(--amber); }

/* ---- Profile ---- */
.profile-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 2px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.profile-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ---- Admin Dashboard ---- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media(min-width: 768px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-icon {
  font-size: 1.75rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.admin-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---- Table ---- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

tbody td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody td strong {
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-amber  { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-green  { background: rgba(46,213,115,0.1); color: #2ed573; border: 1px solid rgba(46,213,115,0.3); }
.badge-red    { background: rgba(231,76,60,0.1);  color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.badge-muted  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ---- File Upload Drop Zone ---- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--amber-border);
  background: var(--amber-soft);
}

/* ---- Live Feed Pill ---- */
.new-posts-pill {
  background: linear-gradient(135deg, var(--amber) 0%, #e67e22 100%);
  color: #080810;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  text-align: center;
  margin: 0 auto 1.25rem auto;
  max-width: 340px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-posts-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.55);
}

.highlight-new {
  border-color: var(--amber) !important;
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.3) !important;
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.dropzone p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dropzone span {
  color: var(--amber);
  font-weight: 600;
}

/* ---- Like Button ---- */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.like-btn:hover {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-soft);
}

.like-btn.liked {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

/* ---- Section Dividers ---- */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Animations ---- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fade-in 0.35s ease forwards; }

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.10s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.20s; opacity: 0; }

/* ---- Utility ---- */
.hidden  { display: none !important; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 1rem; }
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.font-bold { font-weight: 700; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  header { padding: 0 1rem; }
  .container, .container-wide { padding: 1.25rem 1rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .profile-hero { flex-direction: column; text-align: center; }
  .post-footer { flex-direction: column; align-items: flex-start; }
  .fab { bottom: 1.5rem; right: 1.5rem; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
}

/* ---- PWA Install Banner ---- */
.pwa-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(245, 166, 35, 0.12) 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.pwa-banner-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- Viral Social Buttons ---- */
.btn-whatsapp {
  background: #25D366;
  color: #080810 !important;
  font-weight: 700;
  border: none;
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-twitter {
  background: #000;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 600;
}

.btn-twitter:hover {
  background: #111;
  border-color: #fff;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-chip:hover {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.1);
}

.reaction-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
  font-weight: 500;
}

.reaction-btn.active .reaction-label {
  color: var(--amber);
}

/* ---- Accessibility and interaction polish ---- */
:focus-visible {
  outline: 3px solid var(--amber, #f5a623);
  outline-offset: 3px;
}
button:disabled, .btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}
.post-card[role="link"] { cursor: pointer; }
.post-card[role="link"]:focus-visible { outline-offset: 5px; }
.post-card .share-chip { position: relative; z-index: 1; }
textarea { resize: vertical; }
img, video { max-width: 100%; }

@media (max-width: 640px) {
  .pwa-banner { align-items: flex-start; }
  .pwa-banner-actions { width: 100%; }
  .pwa-banner-actions .btn { flex: 1; }
  .share-chip { min-height: 36px; }
  .post-stats { row-gap: .55rem; }
  .auth-tabs { position: sticky; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


