/* ═══════════════════════════════════════════
   HAMDAM — Main CSS
   Trilingual: FR | FA | PS (RTL support)
═══════════════════════════════════════════ */

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

html, body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

body.rtl { direction: rtl; }

a { text-decoration: none; color: inherit; }
button { font-family: var(--f); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.25; }

/* ── UTILS ── */
.sec-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--bdl); }
.sec-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--red); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--red); }
.sec-all { font-size: 12px; font-weight: 700; color: var(--red); }
.sec-all:hover { text-decoration: underline; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; font-family: var(--f);
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: none; color: var(--muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orange { background: #fff7ed; color: #ea580c; }
.badge-gray { background: var(--bdl); color: var(--muted2); }
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-purple { background: #faf5ff; color: #7c3aed; }
.badge-gold { background: #fef9c3; color: #92400e; }

/* ── META ── */
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.meta-sep { color: var(--muted2); font-size: 11px; }
.meta-date { font-size: 11px; color: var(--muted2); }
.meta-read { font-size: 11px; color: var(--muted2); }
.meta-cat-sm { font-size: 9.5px; font-weight: 700; color: var(--red); text-transform: uppercase; }
.meta-date-sm { font-size: 10px; color: var(--muted2); }

/* ── BREAKING TICKER ── */
.breaking-ticker {
  background: var(--red); color: #fff;
  display: flex; align-items: center; gap: 0;
  height: 34px; overflow: hidden;
}
.ticker-label {
  background: var(--red-dark); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 0 14px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; height: 100%; position: relative; }
.ticker-text {
  display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600;
  padding: 0 16px; line-height: 34px;
  animation: ticker-scroll 25s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.rtl .ticker-text { animation: ticker-scroll-rtl 25s linear infinite; }
@keyframes ticker-scroll-rtl {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 58px;
}
.nav-logo { flex-shrink: 0; }
.logo-text {
  font-size: 22px; font-weight: 900; color: var(--red);
  letter-spacing: -.02em;
}
.logo-img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; transition: color .15s;
  display: flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-breaking { color: var(--red); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rtl .nav-actions { margin-left: 0; margin-right: auto; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 8px; border: 1px solid var(--border);
  transition: all .15s; background: var(--white);
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-dropdown {
  position: absolute; top: calc(100% + 4px);
  right: 0; background: var(--white);
  border: 1px solid var(--border); min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: none; z-index: 200; padding: 4px 0;
}
.rtl .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; width: 100%; text-align: right; padding: 8px 14px;
  font-size: 13px; color: var(--ink); cursor: pointer; background: none; border: none;
  font-family: var(--f); transition: background .1s;
}
.rtl .lang-option { text-align: right; }
.lang-option:hover { background: var(--bg); }
.lang-option.active { color: var(--red); font-weight: 700; }

/* Nav user menu */
.nav-icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; border: 1px solid var(--border);
  transition: all .15s;
}
.nav-icon-btn:hover { border-color: var(--red); color: var(--red); }
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 5px 10px; border: 1px solid var(--border);
  transition: all .15s;
}
.nav-user-btn:hover { border-color: var(--red); color: var(--red); }
.nav-user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: none; z-index: 200;
}
.rtl .user-dropdown { right: auto; left: 0; }
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 13px; color: var(--muted);
  transition: background .1s;
}
.user-dropdown a:hover { background: var(--bg); color: var(--red); }
.user-dropdown a i { width: 14px; }

/* Search bar */
.nav-search-bar {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  border-top: 1px solid var(--bdl);
}
.nav-search-bar.open { max-height: 60px; }
.search-form { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; }
.search-input { flex: 1; padding: 8px 14px; border: 1.5px solid var(--border); font-family: var(--f); font-size: 14px; outline: none; }
.search-input:focus { border-color: var(--red); }
.search-submit { background: var(--red); color: #fff; padding: 8px 18px; font-size: 14px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: .2s; }

/* ── FLASH MESSAGES ── */
.flash-messages { max-width: 1240px; margin: 16px auto; padding: 0 24px; }
.flash { padding: 12px 16px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.flash-success { background: #f0fdf4; color: #16a34a; border-left: 3px solid #16a34a; }
.flash-error { background: var(--red-bg); color: var(--red); border-left: 3px solid var(--red); }
.flash-warning { background: #fff7ed; color: #ea580c; border-left: 3px solid #ea580c; }
.rtl .flash-success, .rtl .flash-error, .rtl .flash-warning {
  border-left: none; border-right: 3px solid currentColor;
}

/* ── HOMEPAGE ── */
.homepage-wrap { padding-bottom: 60px; }
.hero-section { padding: 32px 0 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-main { position: relative; }
.hero-img { aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { padding: 20px 0; }
.hero-title { font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.25; display: block; margin: 10px 0; }
.hero-title:hover { color: var(--red); }
.hero-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; }
.hero-side { display: flex; flex-direction: column; gap: 0; }
.hero-side-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--bdl); transition: opacity .15s; }
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item:hover { opacity: .8; }
.side-img { width: 80px; height: 60px; flex-shrink: 0; overflow: hidden; background: var(--bg2); }
.side-img img { width: 100%; height: 100%; object-fit: cover; }
.side-content { flex: 1; min-width: 0; }
.side-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 4px 0; line-height: 1.4; }

/* Article grid */
.latest-section { padding: 40px 0; }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.article-card { background: var(--white); border: 1px solid var(--bdl); transition: box-shadow .2s; }
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.card-img-link { display: block; }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .card-img img { transform: scale(1.03); }
.img-ph { display: flex; align-items: center; justify-content: center; background: var(--ink); }
.img-ph i { color: rgba(255,255,255,.15); font-size: 28px; }
.img-tag {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 8px; z-index: 2;
}
.rtl .img-tag { left: auto; right: 8px; }
.card-body { padding: 14px; }
.card-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 8px 0 8px; line-height: 1.35; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bdl); }
.card-author, .card-read { font-size: 11px; color: var(--muted2); display: flex; align-items: center; gap: 4px; }

/* Subscription CTA */
.sub-cta { padding: 48px 0; background: var(--ink); }
.cta-box { text-align: center; padding: 48px; }
.cta-icon { font-size: 36px; color: var(--gold); margin-bottom: 16px; }
.cta-title { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 24px; }

/* ── ARTICLE PAGE ── */
.article-page { padding: 32px 0 60px; }
.article-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.article-main { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted2); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.breaking-banner {
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.article-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.article-title { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.article-excerpt { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.article-byline { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--bdl); border-bottom: 1px solid var(--bdl); margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.byline-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { font-size: 32px; color: var(--muted2); }
.byline-author strong { display: block; font-size: 14px; }
.byline-author .meta-date { font-size: 12px; }
.byline-actions { display: flex; align-items: center; gap: 12px; }
.share-btn { width: 32px; height: 32px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); transition: all .15s; }
.share-btn:hover { border-color: var(--red); color: var(--red); }
.views-count, .read-time { font-size: 12px; color: var(--muted2); display: flex; align-items: center; gap: 4px; }
.article-cover { margin-bottom: 28px; }
.article-cover img { width: 100%; }
.article-body.prose { font-size: 16px; line-height: 1.85; color: var(--ink); }
.article-body.prose h2 { font-size: 22px; font-weight: 800; margin: 28px 0 14px; }
.article-body.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; }
.article-body.prose p { margin-bottom: 18px; }
.article-body.prose ul, .article-body.prose ol { padding-right: 24px; margin-bottom: 18px; }
.article-body.prose li { margin-bottom: 6px; }
.article-body.prose blockquote { border-right: 4px solid var(--red); padding: 12px 18px; margin: 24px 0; background: var(--bg); color: var(--muted); font-style: italic; }
.rtl .article-body.prose blockquote { border-right: none; border-right: 4px solid var(--red); }
.article-body.prose img { border-radius: 4px; margin: 20px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bdl); }
.tag { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--bdl); transition: all .15s; }
.tag:hover { border-color: var(--red); color: var(--red); }

/* Paywall */
.article-preview { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 0; filter: blur(0); }
.paywall-gate { margin-top: -20px; background: linear-gradient(to bottom, transparent, var(--white) 60%); padding: 60px 0 0; text-align: center; }
.paywall-box { background: var(--white); border: 1px solid var(--bdl); padding: 40px; max-width: 420px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.paywall-box i { font-size: 36px; color: var(--gold); margin-bottom: 16px; }
.paywall-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.paywall-box p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* Live updates */
.live-updates-section { margin-top: 40px; border: 1px solid var(--bdl); }
.live-header { background: var(--ink); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.live-update { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--bdl); }
.live-update.important { background: var(--red-bg); }
.update-time { font-size: 11px; font-weight: 700; color: var(--red); white-space: nowrap; padding-top: 2px; min-width: 40px; }
.update-content { font-size: 14px; color: var(--ink); line-height: 1.65; }

/* Related */
.related-section { margin-top: 40px; }
.related-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 8px; transition: opacity .15s; }
.related-card:hover { opacity: .8; }
.related-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-content h4 { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-top: 4px; }

/* Sidebar */
.article-sidebar { min-width: 0; }
.sidebar-card { background: var(--white); border: 1px solid var(--bdl); padding: 16px; margin-bottom: 20px; }
.sidebar-title { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.sidebar-item { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--bdl); }
.sidebar-item:last-child { border-bottom: none; }
.si-content h5 { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-top: 3px; }
.si-content h5:hover { color: var(--red); }
.sidebar-sub-cta { background: var(--red); color: #fff; padding: 20px; text-align: center; }
.sidebar-sub-cta h4 { font-size: 16px; margin-bottom: 6px; }
.sidebar-sub-cta p { font-size: 12px; opacity: .8; margin-bottom: 14px; }

/* ── ARCHIVE PAGE ── */
.archive-page { padding: 32px 0 60px; }
.page-header { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 3px solid var(--red); }
.page-header h1 { font-size: 28px; font-weight: 900; }
.archive-filters { margin-bottom: 28px; }
.filter-form { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-search { flex: 1; min-width: 200px; padding: 8px 12px; border: 1.5px solid var(--border); font-size: 13px; font-family: var(--f); outline: none; }
.filter-search:focus { border-color: var(--red); }
.filter-select { padding: 8px 12px; border: 1.5px solid var(--border); font-size: 13px; font-family: var(--f); background: var(--white); outline: none; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill { font-size: 12px; font-weight: 600; padding: 5px 12px; border: 1.5px solid var(--border); color: var(--muted); transition: all .15s; }
.cat-pill:hover, .cat-pill.active { border-color: var(--red); color: var(--red); }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; }
.page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--muted2); }
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }

/* ── AUTH PAGE ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg2); padding: 40px 24px; }
.auth-box { background: var(--white); border: 1px solid var(--bdl); padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo a { font-size: 28px; font-weight: 900; color: var(--red); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--bdl); margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; color: var(--muted2); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .15s; }
.auth-tab.active { color: var(--red); border-bottom-color: var(--red); }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-error { background: var(--red-bg); color: var(--red); font-size: 13px; padding: 10px 14px; margin-bottom: 16px; border-right: 3px solid var(--red); }
.auth-footer { text-align: center; font-size: 11px; color: var(--muted2); margin-top: 16px; }
.auth-footer a { color: var(--red); }

/* ── FORMS ── */
.fg { margin-bottom: 14px; }
.fl { display: block; font-size: 10px; font-weight: 700; color: var(--muted2); margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.fi {
  display: block; width: 100%;
  padding: 9px 12px; border: 1.5px solid var(--border);
  font-size: 13px; color: var(--ink); background: var(--bg);
  outline: none; transition: border-color .15s; font-family: var(--f);
}
.fi:focus { border-color: var(--red); background: var(--white); }
.fi::placeholder { color: var(--muted2); }
.fi-ta { resize: vertical; min-height: 80px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Toggle */
.tg { position: relative; width: 38px; height: 20px; flex-shrink: 0; }
.tg input { opacity: 0; width: 0; height: 0; }
.tg-sl { position: absolute; cursor: pointer; inset: 0; background: var(--border); transition: .3s; border-radius: 20px; }
.tg-sl::before { position: absolute; content: ''; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; transition: .3s; border-radius: 50%; }
.tg input:checked + .tg-sl { background: var(--red); }
.tg input:checked + .tg-sl::before { transform: translateX(18px); }
.tg-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bdl); }
.tg-row:last-child { border-bottom: none; }
.tg-info strong { display: block; font-size: 13px; font-weight: 600; }
.tg-info span { font-size: 11px; color: var(--muted2); }

/* ── SUBSCRIPTION PAGE ── */
.subscription-page { padding: 48px 0; }
.sub-header { text-align: center; margin-bottom: 48px; }
.sub-header h1 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.sub-header p { color: var(--muted); font-size: 16px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan-card { background: var(--white); border: 2px solid var(--bdl); padding: 30px; position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.plan-featured { border-color: var(--red); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 14px; letter-spacing: .08em;
}
.plan-header { margin-bottom: 20px; }
.plan-name { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.price-amount { font-size: 36px; font-weight: 900; color: var(--red); }
.price-period { font-size: 14px; color: var(--muted2); }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--bdl); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: var(--red); font-size: 11px; }
.sub-faq { max-width: 600px; margin: 48px auto 0; }
.sub-faq h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--bdl); margin-bottom: 8px; }
.faq-item summary { padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.faq-item p { padding: 0 14px 14px; font-size: 13px; color: var(--muted); }

/* ── PAYMENT ── */
.checkout-page, .success-page { padding: 60px 0; }
.checkout-inner { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.checkout-inner h1 { font-size: 24px; font-weight: 900; margin-bottom: 24px; }
.checkout-summary { background: var(--white); border: 1px solid var(--bdl); padding: 28px; }
.checkout-plan h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.checkout-price { font-size: 28px; font-weight: 900; color: var(--red); margin-bottom: 16px; }
.checkout-features { list-style: none; margin-bottom: 24px; }
.checkout-features li { font-size: 13px; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.checkout-features li i { color: var(--red); }
.checkout-note { font-size: 12px; color: var(--muted2); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.success-box { max-width: 440px; margin: 0 auto; text-align: center; padding: 48px 24px; }
.success-icon { font-size: 64px; color: #16a34a; margin-bottom: 20px; }
.success-box h1 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.success-box p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* ── PROFILE PAGE ── */
.profile-page { padding: 40px 0; }
.profile-card { background: var(--white); border: 1px solid var(--bdl); padding: 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.profile-avatar { font-size: 64px; color: var(--muted2); }
.profile-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-info p { font-size: 14px; color: var(--muted2); margin-bottom: 10px; }
.profile-actions { display: flex; gap: 10px; }

/* ── STATIC PAGES ── */
.static-page { padding: 40px 0 60px; }
.static-title { font-size: 30px; font-weight: 900; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 3px solid var(--red); }
.static-content.prose { font-size: 15px; line-height: 1.85; }
.static-content.prose h2 { font-size: 20px; font-weight: 800; margin: 24px 0 12px; }
.static-content.prose p { margin-bottom: 16px; }

/* ── BREAKING / LIVE PAGES ── */
.breaking-page, .live-page { padding: 32px 0 60px; }
.breaking-header { display: flex; align-items: center; gap: 14px; }
.live-badge { display: flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 12px; letter-spacing: .08em; }
.breaking-list, .live-list { display: flex; flex-direction: column; gap: 0; }
.breaking-item { padding: 20px 0; border-bottom: 1px solid var(--bdl); }
.breaking-item:last-child { border-bottom: none; }
.breaking-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.breaking-item-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.breaking-item-title a:hover { color: var(--red); }
.breaking-item-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.live-card { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--bdl); }
.live-card-img { width: 200px; height: 120px; flex-shrink: 0; overflow: hidden; background: var(--bg2); }
.live-card-img img { width: 100%; height: 100%; object-fit: cover; }
.live-card-body { flex: 1; min-width: 0; }
.live-card-body h2 { font-size: 18px; font-weight: 800; margin: 8px 0; }
.live-card-body h2 a:hover { color: var(--red); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(255,255,255,.65); margin-top: 60px; }
.footer-top { padding: 48px 0 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 24px; font-weight: 900; color: var(--red); display: block; margin-bottom: 12px; }
.footer-about { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 14px; transition: all .15s; }
.social-link:hover { border-color: var(--red); color: #fff; background: var(--red); }
.footer-col-title { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .footer-inner { grid-template-columns: 1fr auto; gap: 20px; display: flex; align-items: center; justify-content: space-between; }
.copyright { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-langs { display: flex; gap: 4px; }
.footer-lang-btn { padding: 3px 8px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); background: none; font-family: var(--f); cursor: pointer; transition: all .15s; }
.footer-lang-btn:hover, .footer-lang-btn.active { color: #fff; border-color: var(--red); background: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-grid, .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 3fr 2fr; }
  .article-inner { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .article-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .plans-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .frow, .frow3 { grid-template-columns: 1fr; }
  .article-title { font-size: 24px; }
}
@media (max-width: 480px) {
  .article-grid, .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
