/* Business Forever Design System - Luxury Fintech & Gold Market Intelligence
   Built with Glassmorphism, OLED Dark Mode, Radiant Gold Accents & High-Contrast Typography */

:root {
  --bg: #070A0F;
  --bg-gradient: radial-gradient(ellipse at 50% -10%, rgba(245, 158, 11, 0.14) 0%, rgba(7, 10, 15, 1) 75%);
  --card: rgba(15, 20, 31, 0.75);
  --card-solid: #0F141F;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  --danger: #F43F5E;
  --danger-glow: rgba(244, 63, 94, 0.18);
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.18);
  --warning: #F59E0B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(245, 158, 11, 0.35);
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-sm: rgba(0, 0, 0, 0.3);
  --sidebar-bg: rgba(11, 15, 23, 0.85);
  --glow: rgba(245, 158, 11, 0.12);
  --glass-bg: rgba(15, 20, 31, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --card-shadow-hover: 0 12px 36px -4px rgba(245, 158, 11, 0.22), 0 0 0 1px rgba(245, 158, 11, 0.4);
  --font-heading: 'Orbitron', 'Exo 2', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}


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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: #070A0F; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Focus Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

/* ===== SPINNER & LOADING ===== */
.initial-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  flex-direction: column;
  gap: 20px;
}

.spinner, .loading {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sidebar-loading {
  display: flex;
  justify-content: center;
  padding: 30px;
}

.sidebar-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 0.9rem;
}

.sidebar-error {
  text-align: center;
  color: var(--danger);
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== BADGES & LIVE INDICATORS ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.badge-success {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

/* ===== HERO HEADERS ===== */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 0;
  transition: background-color 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.85; }

.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glow);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--glow);
  font-weight: 600;
}

.badge {
  background: var(--primary);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
  color: #070A0F;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--glow);
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.btn-login,
.btn-signup {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-login:hover {
  background: var(--primary);
  color: #070A0F;
}

.btn-signup {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

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

/* User Menu & Dropdown */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #070A0F;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.user-avatar:hover { border-color: var(--primary); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 250px;
  box-shadow: 0 10px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.user-dropdown-item:hover {
  background: var(--glow);
  color: var(--primary);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Buttons */
.btn {
  background: var(--primary);
  color: #070A0F;
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

/* Main Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px;
}

/* TWO-COLUMN HOME LAYOUT */
.two-column-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 0;
  max-width: 100vw;
  min-height: calc(100vh - 80px);
}

.articles-main {
  padding: 40px;
  overflow-y: auto;
  background: transparent;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
}

.view-all-link:hover {
  background: var(--glow);
  transform: translateX(3px);
}

/* FEATURED ARTICLE */
.featured-article {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.35s ease;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease;
  box-shadow: var(--card-shadow);
}

.featured-article:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.featured-content { min-width: 0; }

.featured-thumbnail {
  float: right;
  width: 340px;
  max-width: 45%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  border: none;
  margin: 0 0 20px 30px;
  transition: all 0.4s ease;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.featured-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.featured-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 25px;
}

.featured-actions {
  clear: both;
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* NEWS SIDEBAR */
.news-sidebar {
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
  overflow-y: auto;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

.news-item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: fadeInUp 0.5s ease backwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}

.news-item-thumbnail {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-item-content { padding: 16px; }

.news-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-item-card:hover .news-item-title { color: var(--primary); }

.news-item-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards & Grids */
.card {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  animation: fadeInUp 0.5s ease;
}

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

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Market Stats Grid */
.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  background: rgba(9, 13, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  background: rgba(15, 20, 31, 0.8);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

/* Image Frame Handling */
.img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-solid);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.05);
}

.range-btn {
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.range-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #070A0F !important;
}

/* YouTube / Articles Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.youtube-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.youtube-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}

.youtube-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
}

.youtube-info { padding: 20px; }

.youtube-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.youtube-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.youtube-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== INPUT GROUPS & FORMS ===== */
.input-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.input-group input,
.input-group textarea {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(9, 13, 20, 0.7);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  min-width: 200px;
  font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow);
}

/* Full Post */
.full-post {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease;
}

.full-post h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.full-post-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.full-post-header-content { margin-top: 16px; }

.full-post .content {
  max-width: 800px;
  margin: 30px 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.full-post .content p {
  margin-bottom: 1.4em;
  color: var(--text-muted);
}

.full-post .content p:last-child {
  margin-bottom: 0;
}

.full-post .content .article-heading,
.full-post .content h3.article-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.full-post .content .article-heading:first-child,
.full-post .content h3.article-heading:first-child {
  margin-top: 0;
}

/* Also style headings in featured article text */
.featured-text .article-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.2em 0 0.4em 0;
}

.featured-text p {
  margin-bottom: 0.8em;
}

.full-post-thumbnail {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.engagement-bar {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.engage-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-weight: 600;
}

.engage-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--glow);
}

/* Auth Pages */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container { width: 100%; max-width: 460px; }

.auth-card {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.auth-header { text-align: center; margin-bottom: 30px; }

.auth-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(9, 13, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

.form-error.show {
  display: block;
  padding: 10px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid var(--danger);
}

.user-form.hide,
.admin-form { display: none; }
.admin-form.show { display: block; }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span { padding: 0 14px; font-size: 0.85rem; }

.admin-toggle-link {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== CONTACT US PAGE ===== */
.breadcrumb-bar {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-block;
}

.breadcrumb-bar span { color: var(--primary); font-weight: 600; }

.contact-section { margin-top: 20px; }

.contact-header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-header-left h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
}

.contact-info-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-form-group { margin-bottom: 20px; }

.contact-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(9, 13, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow);
}

.contact-form-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-footer {
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0;
}

.contact-footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 50px 0 30px 0;
}

.site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--primary); }

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-policy-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.footer-policy-link:hover { color: var(--primary); }
.footer-powered { color: var(--text-muted); font-size: 0.85rem; }

/* ===== ADMIN DASHBOARD ELEMENTS ===== */
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

.message-card {
  background: rgba(9, 13, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.message-card:hover { border-color: var(--border-strong); }

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.message-sender { font-weight: 700; color: var(--text); }
.message-email { color: var(--primary); font-size: 0.88rem; }
.message-date { color: var(--text-muted); font-size: 0.8rem; }
.message-body { color: var(--text); font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; }

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
  position: fixed;
  top: 85px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.92rem;
  z-index: 2000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  background: var(--card-solid);
  overflow: hidden;
}

.toast-success { border-left: 4px solid var(--success); background: rgba(16, 185, 129, 0.12); }
.toast-success .toast-icon { color: var(--success); }

.toast-error { border-left: 4px solid var(--danger); background: rgba(244, 63, 94, 0.12); }
.toast-error .toast-icon { color: var(--danger); }

.toast-info { border-left: 4px solid var(--primary); background: rgba(245, 158, 11, 0.12); }
.toast-info .toast-icon { color: var(--primary); }

.toast-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-msg { flex: 1; }

.notification-toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  animation: progress 3.2s linear forwards;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}

.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--primary); color: #070A0F; transform: translateY(-2px); }

/* ===== MINI MARKET SECTION (Dashboard Sidebar) ===== */
.mini-market-section {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.mini-market-section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.mini-market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mini-market-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.karat-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.karat-row-card:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--border-strong);
}

.karat-row-card.karat-row-tola {
  border-style: dashed;
  background: rgba(245, 158, 11, 0.04);
}

.karat-row-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.karat-row-values {
  text-align: right;
}

.karat-row-usd {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.karat-row-pkr {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.mini-market-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mini-chart-container {
  height: 80px;
  margin: 16px 0;
  position: relative;
}

.mini-market-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--glow);
  transition: all 0.2s ease;
}

.mini-market-cta:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* ===== CONTENT PAGE HEADER ===== */
.content-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.content-page-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
}

.content-page-subtitle {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 520px;
}

.content-page-count {
  background: var(--glow);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ===== CONTENT GRID & CARDS (Articles / News) ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  border-left: 3px solid transparent;
}

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

.content-card-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.content-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
}

.content-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.content-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 1;
}

.badge-featured {
  background: var(--primary);
  color: #000;
}

.badge-breaking {
  background: var(--danger);
  color: #fff;
}

.content-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px 0;
  flex: 1;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.content-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.content-card-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.content-card:hover .content-card-read-more {
  color: var(--primary-hover);
}

/* ===== NEWS TICKER (Sliding News) ===== */
.news-ticker-section {
  margin-top: 30px;
  overflow: hidden;
  position: relative;
}

.news-ticker-section::before,
.news-ticker-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.news-ticker-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.news-ticker-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.news-ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.news-ticker-card {
  flex: 0 0 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-ticker-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}

.news-ticker-card .news-item-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-ticker-card .news-item-content {
  padding: 14px;
}

.news-ticker-card .news-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-ticker-card .news-item-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .two-column-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: relative; top: 0; height: auto; border-left: none; border-top: 1px solid var(--border); }
  .featured-thumbnail { float: none; width: 100%; max-width: 100%; height: 260px; margin: 0 0 20px 0; }
  .contact-header-grid, .contact-form-map-grid, .footer-top { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .news-ticker-card {
    flex: 0 0 250px;
  }
  .nav-container { padding: 0 20px; flex-wrap: wrap; }
  .mobile-menu-btn { display: block; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 600px; }
  .container { padding: 20px; }
  .site-footer-grid { grid-template-columns: 1fr; }
}
