/* ================================================
   TRADING JOURNAL — Global Design System (Dark)
   ================================================ */

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

/* ——— CSS Variables ——— */
:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #0f1117;
  --bg-card: #13151d;
  --bg-card-hover: #191c27;
  --bg-sidebar: #0d0f16;

  --border: #1e2235;
  --border-accent: #2a2f45;

  --text-primary: #e8ecf4;
  --text-secondary: #8b95b0;
  --text-muted: #545d78;

  --accent: #3b82f6;
  --accent-hover: #5b9ef9;
  --accent-glow: rgba(59, 130, 246, 0.15);

  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.1);

  --gold: #f59e0b;
  --gold-dark: #b45309;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 20px rgba(59,130,246,0.2);

  --nav-height: 64px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ——— Typography ——— */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }

/* ——— Layout ——— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ——— Navbar ——— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 11, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.navbar-logo span { color: var(--accent); }
.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.navbar-links a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--text-primary); background: var(--bg-card); }
.navbar-links .btn-admin {
  background: var(--accent);
  color: white !important;
  padding: 0.4rem 1rem !important;
}
.navbar-links .btn-admin:hover { background: var(--accent-hover) !important; }
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--bg-card); border-color: var(--border); }

/* ——— Footer ——— */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; max-width: 280px; }
.footer-heading { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ——— Hero ——— */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(99,102,241,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; color: var(--green); animation: pulse 2s infinite; }
.hero h1 {
  background: linear-gradient(135deg, #e8ecf4 0%, #8b95b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 320px;
}
.chart-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.chart-card-title { font-size: 0.85rem; font-weight: 600; }
.chart-card-badge { font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--bg-card); color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ——— Cards ——— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ——— Blog Card ——— */
.blog-card-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
}
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); }
.blog-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.trade-levels { display: flex; gap: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; }
.level-entry { color: var(--accent); }
.level-sl { color: var(--red); }
.level-tp { color: var(--green); }

/* ——— Grid Layouts ——— */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ——— Stats ——— */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }
.stat-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ——— Section Header ——— */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }

/* ——— Category Filter ——— */
.category-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ——— Blog Post Detail ——— */
.post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.post-header { margin-bottom: 2rem; }
.post-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.post-content { line-height: 1.8; }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; border: 1px solid var(--border); }
.post-content strong { color: var(--text-primary); font-weight: 600; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.post-sticky { position: sticky; top: calc(var(--nav-height) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.trade-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trade-panel-header {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.trade-panel-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.trade-row { display: flex; justify-content: space-between; align-items: center; }
.trade-row-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.trade-row-value { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 600; }

/* ——— RR Calculator ——— */
.rr-calc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rr-calc-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.rr-calc-header span { color: var(--accent); }
.rr-calc-body { padding: 1.25rem; }
.rr-input-group { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.rr-input-row { display: flex; flex-direction: column; gap: 0.3rem; }
.rr-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rr-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
}
.rr-input:focus { outline: none; border-color: var(--accent); }
.rr-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.rr-result { background: var(--bg-secondary); border-radius: var(--radius); padding: 0.75rem; }
.rr-result-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.3rem; }
.rr-result-row:last-child { margin-bottom: 0; font-weight: 700; }
.rr-tp { color: var(--green); font-family: 'JetBrains Mono', monospace; }

/* ——— Share Buttons ——— */
.share-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.share-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  color: white;
}
.share-wa { background: #25d366; }
.share-wa:hover { background: #1da854; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #1558b0; }
.share-tw { background: #1da1f2; }
.share-tw:hover { background: #0c85d0; }

/* ——— Comments ——— */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: white;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.35rem; }
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--text-muted); }
.comment-text { font-size: 0.9rem; color: var(--text-secondary); }
.comment-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem; }

/* ——— Forms ——— */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-textarea, .form-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.form-section-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }

/* ——— Journal Table ——— */
.journal-table { width: 100%; border-collapse: collapse; }
.journal-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.journal-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.journal-table tr:hover td { background: var(--bg-card-hover); }
.journal-table tr:last-child td { border-bottom: none; }
.pair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--bg-card-hover);
  border-radius: 4px;
}
.result-win { color: var(--green); font-weight: 700; }
.result-loss { color: var(--red); font-weight: 700; }
.result-be { color: var(--yellow); font-weight: 700; }
.pnl-positive { color: var(--green); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.pnl-negative { color: var(--red); font-family: 'JetBrains Mono', monospace; font-weight: 600; }

/* ——— Admin Layout ——— */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
}
.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--bg-primary); }
.admin-topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-content { padding: 2rem; }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 1rem 0.35rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  cursor: pointer;
}
.admin-nav-item:hover { color: var(--text-primary); background: var(--bg-card); }
.admin-nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
}
.admin-nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-page-title { font-size: 1.25rem; font-weight: 800; }
.admin-dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }

/* ——— Data Table (Admin) ——— */
.data-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-card-hover); }
.actions { display: flex; gap: 0.4rem; }
.published-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }

/* ——— Newsletter signup ——— */
.newsletter-section {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 1.5rem auto 0; }
.newsletter-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.newsletter-input:focus { outline: none; border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }

/* ——— Page Hero (inner pages) ——— */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.page-hero h1 { margin-bottom: 0.75rem; }

/* ——— About ——— */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about-photo {
  aspect-ratio: 16/10;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.8s ease;
}
.about-photo:hover img { transform: scale(1.05); }

.about-feature { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(59,130,246,0.1);
}

.elite-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.about-feature-text h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.about-feature-text p { font-size: 0.85rem; }

/* ——— Contact ——— */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon { font-size: 1.5rem; }

/* ——— Breadcrumb ——— */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ——— Alerts / Toasts ——— */
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius); border-left: 3px solid; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.alert-error { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.alert-info { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* ——— Empty State ——— */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; }

/* ——— Tags ——— */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ——— Rich Text Editor (admin) ——— */
.rich-editor {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rich-editor-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.toolbar-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.toolbar-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.rich-editor textarea {
  width: 100%;
  min-height: 350px;
  background: transparent;
  border: none;
  padding: 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.7;
  resize: vertical;
}
.rich-editor textarea:focus { outline: none; }

/* ——— Candle Chart Decoration ——— */
.candles {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}
.candle {
  width: 8px;
  border-radius: 2px;
  position: relative;
}
.candle.green { background: var(--green); }
.candle.red { background: var(--red); }

/* ——— Image Upload ——— */
.upload-area {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: var(--accent-glow); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { font-size: 0.875rem; color: var(--text-secondary); }
.upload-preview { max-width: 100%; border-radius: var(--radius); margin-top: 1rem; }
.upload-preview img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* ——— Animations ——— */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ——— Scrollbar ——— */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sticky { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-dash-grid { grid-template-columns: 1fr 1fr; }
  .data-table-wrap { overflow-x: auto; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .admin-dash-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-body {
    padding: 1.5rem;
}

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

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

/* Scrollbar for modal body */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* --- TABS --- */
.tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* --- TRADE DETAILS --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.detail-item {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-value {
    font-size: 1.15rem;
    font-weight: bold;
}

.detail-screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-screenshot:hover {
    transform: scale(1.02);
}

.checklist-view {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.check-pill {
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.check-pill.followed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.check-pill.broken {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

/* --- STATS BAR (COMPACT) --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-group .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-group .value {
    font-size: 1.35rem;
    font-weight: bold;
}

/* Clickable elements */
.calendar-day-active, .clickable-row {
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day-active:hover {
    border-color: var(--accent) !important;
    background: var(--bg-card-hover) !important;
}

.clickable-row:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* --- COMPACT PRO MODE (NARROW VIEWPORTS) --- */
@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    
    /* Header optimization */
    .section-tag { font-size: 0.65rem; }
    h1 { font-size: 1.75rem !important; }
    
    /* Stacking buttons and headers */
    div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    div[style*="display: flex; gap: 1rem"] { width: 100%; margin-top: 0.5rem; }
    div[style*="display: flex; gap: 1rem"] button { flex: 1; font-size: 0.8rem; padding: 0.5rem; }

    /* Compact Stats */
    .grid-3 { grid-template-columns: 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }

    .stats-bar { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .stat-group { align-items: flex-start; }
    .stat-group .value { font-size: 1.2rem; }

    /* Tabs scrollable */
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0px;
        scrollbar-width: none;
        width: 100%;
    }
    .tabs-header::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 0.5rem 0.75rem; font-size: 0.85rem; }

    /* Compact Calendar */
    .calendar-day-active, .tab-content div[style*="display: grid"] > div {
        min-height: 80px !important;
        padding: 0.4rem !important;
    }
    .calendar-day-active span[style*="font-size: 0.6rem"] {
        padding: 0.1rem 0.3rem !important;
        font-size: 0.5rem !important;
    }
    .calendar-day-active div[style*="font-size: 1.1rem"] {
        font-size: 0.9rem !important;
    }
    .calendar-day-active div[style*="font-size: 0.75rem"] {
        font-size: 0.65rem !important;
    }

    /* Modal Optimization */
    .modal-overlay { padding: 0.5rem; }
    .modal-content { max-height: 98vh; border-radius: 12px; }
    .modal-header { padding: 1rem; }
    .modal-body { padding: 1rem; }
    
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0.75rem; }
    
    .detail-grid { gap: 0.75rem; grid-template-columns: 1fr !important; }
    .detail-item { padding: 0.75rem; }
    .detail-value { font-size: 1rem; }
}

@media (max-width: 400px) {
    h1 { font-size: 1.5rem !important; }
    .stat-value { font-size: 1.25rem; }
    .tab-btn { padding: 0.5rem; font-size: 0.75rem; }
    
    /* Calendar fonts */
    .tab-content div[style*="display: grid"] > div { font-size: 0.75rem; }
    .calendar-day-active div[style*="font-size: 0.9rem"] { font-size: 0.8rem !important; }
    
    /* Table optimization */
    .data-table th, .data-table td { padding: 0.5rem !important; font-size: 0.75rem !important; }
}

/* --- ELITE PRO UI (CONSOLE STYLES) --- */
:root {
    --glass-bg: rgba(23, 23, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(59, 130, 246, 0.4);
    --accent-gradient: linear-gradient(90deg, #3b82f6, #06b6d4);
    --admin-accent: #06b6d4;
    --admin-glow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Elite Dashboard Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

/* ... existing glass-card styles ... */

.admin-glass-sidebar {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
}

.admin-nav-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--admin-accent);
    padding-left: 1.5rem;
}

.admin-nav-item.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--admin-accent);
    border-right: 3px solid var(--admin-accent);
    box-shadow: 10px 0 20px -10px rgba(6, 182, 212, 0.5);
}

.admin-topbar-pro {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 2.5rem;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.glow-accent-top {
    position: relative;
    overflow: hidden;
}

.glow-accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    box-shadow: var(--neon-glow);
}

.elite-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.elite-stat-box {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elite-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.elite-stat-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pro-nav-card {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.animate-fade-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Tab Overwrites for Pro look */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    opacity: 0.7;
}

.tab-btn.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

/* Responsive Overwrites */
@media (max-width: 768px) {
    .elite-stat-grid { grid-template-columns: 1fr; }
    .elite-stat-value { font-size: 1.5rem; }
}

/* ================================================
   ELITE RICH CONTENT STYLING (For Blog & Reports)
   ================================================ */

.rich-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.rich-content h1, .rich-content h2, .rich-content h3 {
    color: #fff;
    margin: 2.5rem 0 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rich-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rich-content p {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.8);
}

.rich-content ul, .rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.6rem;
    position: relative;
}

.rich-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    backdrop-filter: blur(5px);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.rich-content img:hover {
    transform: scale(1.01);
}

.rich-content strong {
    color: #fff;
    font-weight: 700;
}

.rich-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 3rem 0;
}

/* --- UI UPGRADES (Apr 2026) --- */

/* 1. Text Color Fix — handled by JS in footer.php (smart luminance check) */
/* .rich-content * { color: inherit !important; }  <-- REMOVED: was breaking intentional colors */

/* 2. Stretched Link Utility */
.stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: " \; }

/* 3. Lightbox System */
.lightbox-modal { display: none; position: fixed; z-index: 9999; padding-top: 40px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px); cursor: zoom-out; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-modal.show { display: block; opacity: 1; }
.lightbox-content { margin: auto; display: block; width: 90%; max-width: 1200px; border-radius: var(--radius-lg); box-shadow: 0 0 50px rgba(0,0,0,0.8); transform: scale(0.9); transition: transform 0.3s ease; }
.lightbox-modal.show .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 35px; font-weight: 300; transition: 0.3s; cursor: pointer; z-index: 10000; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* 4. Modern Auth & Form Styles */
.auth-container { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(circle at top right, var(--accent-glow), transparent 40%), radial-gradient(circle at bottom left, rgba(99,102,241,0.05), transparent 40%); }
.auth-card { width: 100%; max-width: 440px; background: rgba(19, 21, 29, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); padding: 3rem 2.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-header h2 { font-size: 1.85rem; margin-top: 0.5rem; background: linear-gradient(135deg, #fff 0%, #8b95b0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-input-group { margin-bottom: 1.5rem; }
.auth-input-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-input { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1.1rem; color: #fff; font-size: 0.95rem; transition: all 0.2s; }
.auth-input:focus { outline: none; border-color: var(--accent); background: rgba(0,0,0,0.3); box-shadow: 0 0 0 4px var(--accent-glow); }
.auth-btn { width: 100%; padding: 0.9rem; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; margin-top: 1rem; font-size: 1rem; }
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5); filter: brightness(1.1); }
.auth-footer { text-align: center; margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 600; margin-left: 0.25rem; }

/* Zoomable images cursor */
.post-content img, .rich-content img { cursor: zoom-in; }
